Koozali.org: home of the SME Server

problems with rsync over external IP

Offline umbi

  • ***
  • 100
  • +0/-0
problems with rsync over external IP
« on: February 14, 2024, 06:32:41 PM »
Hi togheter

I have an old 9.2 server connected on a public static ip adress i want to exchange versus an V10 SME Server.

The new V10 Server is connected in a local network IP: 192.x.x.x     the old server is connected on external 77.x.x.x

Both have rsync installed

I use that command from the V10 Server CLI and receive that error:

[root@v10-server ~]# rsync -arv root@77.*.*.*:/home/e-smith/files/ibays/ib_old/ /home/e-smith/files/ibays/ib_old
root@77.*.*.*'s password:
receiving incremental file list
rsync: change_dir "/home/e-smith/files/ibays/ib_old" failed: No such file or directory (2)

sent 8 bytes  received 110 bytes  26.22 bytes/sec
total size is 0  speedup is 0.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1658) [Receiver=3.1.2]
rsync: [Receiver] write error: Broken pipe (32)
[root@v10-server ~]#

Can someone tell me please what im doing wrong ?

Thank you in advance

Online Jean-Philippe Pialasse

  • *
  • 2,765
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: problems with rsync over external IP
« Reply #1 on: February 14, 2024, 06:51:48 PM »
sound like ibay has not been created on new system.  either create it or do

rsync -arv root@77.*.*.*:/home/e-smith/files/ibays/ib_old /home/e-smith/files/ibays/

Offline umbi

  • ***
  • 100
  • +0/-0
Re: problems with rsync over external IP
« Reply #2 on: February 14, 2024, 07:43:21 PM »
Hi Jean-Philippe

First @ all thank you for the fast reply.

the ip 77.x  is the old server 9.2 with existent ibay "ib_old"

so i guess creating there the same ibay isn't the correct way.

Another possibility is that i havent installed the right rsync repo on old v9.2.

When i type the show config rsync there it shows nothing, only the cli commandline appears.

Can you please post the right command to install by cli the rsync for v9.2 ?

i guess i used:

yum --enablerepo=smecontribs install smeserver-rsync



Offline ReetP

  • *
  • 3,740
  • +5/-0
Re: problems with rsync over external IP
« Reply #3 on: February 14, 2024, 10:01:49 PM »
Make your life easy and look at the stuff written to help you.

Also, you are waaaaay late to the party so be prepared for another upgrade soon.

https://wiki.koozali.org/Migratehelper
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Online Jean-Philippe Pialasse

  • *
  • 2,765
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: problems with rsync over external IP
« Reply #4 on: February 14, 2024, 11:41:28 PM »
Hi Jean-Philippe

First @ all thank you for the fast reply.

the ip 77.x  is the old server 9.2 with existent ibay "ib_old"

so i guess creating there the same ibay isn't the correct way.

Another possibility is that i havent installed the right rsync repo on old v9.2.

When i type the show config rsync there it shows nothing, only the cli commandline appears.

Can you please post the right command to install by cli the rsync for v9.2 ?

i guess i used:

yum --enablerepo=smecontribs install smeserver-rsync

well that is what i understood 77 point to the old server.  that is why i say it does not exist on new and suggest you a new syntax for rsync creating the ibay folder for you on the new instead of asking it to fill a non existing folder and erroring.

alternatively, again,  you could as instead first create your ibays before doing the rsync… and keep your syntax

Offline umbi

  • ***
  • 100
  • +0/-0
Re: problems with rsync over external IP
« Reply #5 on: February 15, 2024, 12:31:18 AM »
the new folder on sme v10 ip 192.x.x.x was created by server-manager and has the required rights. i can put datas inside by filetransfer. Only that issue with rsync.

So the folder is existent and your purpose to recreate it, makes me a little confuse 🙈

Thats why i think that maybe rsync was not right installed on old server.

I will check it again but before i need have a break (sleep) :-)
« Last Edit: February 15, 2024, 12:39:33 AM by umbi »

Online Jean-Philippe Pialasse

  • *
  • 2,765
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: problems with rsync over external IP
« Reply #6 on: February 15, 2024, 12:47:26 AM »
the error is pretty clear

Code: [Select]
rsync: change_dir "/home/e-smith/files/ibays/ib_old" failed: No such file or directory (2)
nothing related to rsync being not well installed.
nothing related to ip.
just directory not existing

Offline umbi

  • ***
  • 100
  • +0/-0
Re: problems with rsync over external IP
« Reply #7 on: February 15, 2024, 04:22:50 PM »
Jean-Philippe

tu avais raison, comme toujours !  :D

i had an "-" instead a "_" in the second server ibay...

how embarrassing for me. It was a good thing that I went to sleep first, because when I was well rested I saw the small detail that I had missed the day before because I was tired.

is there for rsync allso a command to sync a database to the new server ?

Offline ReetP

  • *
  • 3,740
  • +5/-0
Re: problems with rsync over external IP
« Reply #8 on: February 15, 2024, 04:52:16 PM »
IIRC the smeserver-rsync contrib is not completely secure in some scenarios. It is "Alpha" for a reason.

See https://bugs.koozali.org/show_bug.cgi?id=11296

It probably doesn't affect this issue but you should be aware of the consequences of having it installed.

You will be much better off using the right tool for the job.

Either backup/restore, or migrate helper which and does the work for you.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation