Koozali.org: home of the SME Server
Contribs.org Forums => Koozali SME Server 10.x Contribs => Topic started by: umbi 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
-
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/
-
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
-
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
-
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
-
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) :-)
-
the error is pretty clear
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
-
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 ?
-
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.