We have upgraded the community system as part of the upgrade a password reset is required for all users before login in.

[Resolved] I can't use rsync in both sides



  • Hello all. Now I setup cross-compiler on a virtual machine and rsync utility that need to copy binary files after compilation to the Omega2.

    There are next problems:

    1. I can't install rsync on the Omega2, look at the errors below.
    root@Omega-D913:~# opkg update && opkg install rsync
    Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/Packages.gz
    Updated list of available packages in /var/opkg-lists/reboot_base
    Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/Packages.sig
    Signature check passed.
    Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/packages/Packages.gz
    Updated list of available packages in /var/opkg-lists/reboot_packages
    Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/packages/Packages.sig
    Signature check passed.
    Downloading http://repo.onion.io/omega2/packages/core/Packages.gz
    Updated list of available packages in /var/opkg-lists/omega2_core
    Downloading http://repo.onion.io/omega2/packages/core/Packages.sig
    Signature check passed.
    Downloading http://repo.onion.io/omega2/packages/base/Packages.gz
    Updated list of available packages in /var/opkg-lists/omega2_base
    Downloading http://repo.onion.io/omega2/packages/base/Packages.sig
    Signature check passed.
    Downloading http://repo.onion.io/omega2/packages/packages/Packages.gz
    Updated list of available packages in /var/opkg-lists/omega2_packages
    Downloading http://repo.onion.io/omega2/packages/packages/Packages.sig
    Signature check passed.
    Downloading http://repo.onion.io/omega2/packages/routing/Packages.gz
    Updated list of available packages in /var/opkg-lists/omega2_routing
    Downloading http://repo.onion.io/omega2/packages/routing/Packages.sig
    Signature check passed.
    Downloading http://repo.onion.io/omega2/packages/onion/Packages.gz
    Updated list of available packages in /var/opkg-lists/omega2_onion
    Downloading http://repo.onion.io/omega2/packages/onion/Packages.sig
    Signature check passed.
    Upgrading rsync on root from 3.1.2-1 to 3.1.3-3...
    Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/packages/rsync_3.1.3-3_mipsel_24kc.ipk
    Installing libpopt0 (1.16-2) to root...
    Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/libpopt0_1.16-2_mipsl_24kc.ipk
    Collected errors:
     * check_data_file_clashes: Package libpopt0 wants to install file /usr/lib/libpopt.so.0
            But that file is already provided by package  * libpopt
     * check_data_file_clashes: Package libpopt0 wants to install file /usr/lib/libpopt.so.0.0.0
            But that file is already provided by package  * libpopt
     * opkg_install_cmd: Cannot install package rsync.
    
    
    1. Next. At my cross-compile virtual-machine (Debian 9). The RSA-keys to connect without password are not working, but the key appends into file /root/.ssh/authorized_keys as normal. After connection I must already type a password.


  • I've install rsync utility on Onion Omega2+ Pro. Look at the rigth command below:

    opkg update && opkg install --nodeps rsync
    

    The problem is in conflict of libpopt, but it is already installed by firmware OS.

    But I can't connect via rsync:// protocol. Authorization is already failed. These are my rsyncd.conf file and command to run rsync as daemon:

    rsync --daemon
    

    List of my file /etc/rsyncd.conf

    root@Omega-D913:~# cat /etc/rsyncd.conf
    uid = root
    gid = root
    use chroot = no
    max connections = 4
    syslog facility = local5
    
    [myprojects]
            path = /root/projects
            comment = My folder with projects C, C++
    

    See to the successful connection to Omega2+ from my Debian Virtual Machine.

    vladimir@debian-dev:~/projects/ac_template$ rsync -avz ./config.log rsync://root@192.168.31.123
    myprojects      My folder with projects C, C++
    

    Here is myprojects preset

    Then I try to sync...

    vladimir@debian-dev:~/projects/ac_template$ rsync -avz ./config.log rsync://root@192.168.31.123:/myprojects
    sending incremental file list
    rsync: connection unexpectedly closed (0 bytes received so far) [sender]
    rsync error: error in rsync protocol data stream (code 12) at io.c(235) [sender=3.1.3]
    


  • On the onion, you need to put the keys in /etc/dropbear/authorized_keys. Maybe you're doing this -- it's not clear. I can say is that I use rsync to upload my distro to Omega2+, and it works. So whatever you're doing is fixable.



  • @JP-Norair said in I can't use rsync in both sides:

    On the onion, you need to put the keys in /etc/dropbear/authorized_keys. Maybe you're doing this -- it's not clear. I can say is that I use rsync to upload my distro to Omega2+, and it works. So whatever you're doing is fixable.

    Many Thanks - it's work!


Log in to reply
 

Looks like your connection to Community was lost, please wait while we try to reconnect.