Содержание
- CentOS
- [SOLVED] mirroring with rsync, error «unknown module»
- [SOLVED] mirroring with rsync, error «unknown module»
- Rsync Unknown module error
- Images
CentOS
The Community ENTerprise Operating System
[SOLVED] mirroring with rsync, error «unknown module»
[SOLVED] mirroring with rsync, error «unknown module»
Post by kallen » 2011/06/06 20:39:33
using mrepo, i’m trying to pull down centos 5.6 updates from a mirror (say, mirrors.kernel.org or mirrors.usc.edu). i want to use rsync to do this so i can try to exclude packages i don’t need on my servers (e.g. firefox, openoffice). when i try this, i get the error «@ERROR: Unknown module ‘5.6’».
the following rsync command is what mrepo uses when i run «mrepo -ugvvvv»:
/usr/bin/rsync -rtHL —partial -vvv —progress —delete-after —delete-excluded —exclude=»/headers/» —exclude=»/repodata/» —exclude=»*.src.rpm» —exclude=»/SRPMS/» —exclude=»*-debuginfo-*.rpm» —exclude=»/debug/» —include=»*.rpm» —exclude=»*.*» rsync://mirrors.usc.edu::centos/5.6/updates/x86_64/RPMS/ destination_dir
when i run that, i get the unknown module error.
fwiw, the config line in mrepo.conf is
updates_potential=rsync://mirrors.usc.edu::centos/5.6/updates/$arch/RPMS/
but what i don’t understand about that error is, sniffing out the rsync server’s modules on the commandline shows me that module (and path?) should work. like so:
[arsenal ]$ rsync mirrors.usc.edu:: | grep centos
centos Centos mirror
[arsenal ]$ rsync mirrors.usc.edu::centos/5.6
drwxrwxr-x 4096 2011/04/06 08:23:21 5.6
let’s drill down to an actual pkg:
[arsenal ]$ rsync mirrors.usc.edu::centos/5.6/updates/x86_64/RPMS/apr-1.2.7-11.el5_6.4.i386.rpm
-rw-rw-r— 126625 2011/05/11 19:45:44 apr-1.2.7-11.el5_6.4.i386.rpm
what would an error look like?
[arsenal ]$ rsync mirrors.usc.edu::centos/5.6/updates/x86_64/RPMS/apr-1.2.7-11.el5_6.4.i386.rpm-hahanotfound
rsync: link_stat «/5.6/updates/x86_64/RPMS/apr-1.2.7-11.el5_6.4.i386.rpm-hahanotfound» (in centos) failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1526) [Receiver=3.0.7]
anyone know what i’m doing wrong when trying to pull this mirror down via mrepo? (or even that long rsync command)
Источник
Rsync Unknown module error
I have 2 OMV servers setup, the backup one is a mirror of the main one. I want to pull the data using the backup server.
I have added the FW route on the main server- backup source — main dest — dest port 873
I have enabled my rsync server on the main box
on the backup side I have rsync job setup as remote/pull. Source server = rsync://user1@192.168.1.51/Software/
When I run it i get the following.
rsync error: error starting client-server protocol (code 5) at main.c(1524) [Receiver=3.0.7]
@ERROR: Unknown module ‘Software’
Rsync Server log
Unknown module ‘Software’ tried from OMV.local (192.168.1.40)
Connect from OMV.local (192.168.1.40)
I think my source is wrong but I have changed it every way i can think.
The share folder name is Software on volume /dev/sbd1/
You probably have a ‘::’ instead of ‘:’ in your rsync syntax. Fix that and the error should be gone.
«Well. lately this forum has become support for everything except omv» [. ] «And is like someone is banning Google from their browsers»
Only two things are infinite, the universe and human stupidity, and I’m not sure about the former.
Upload Logfile via WebGUI/CLI
#openmediavault on freenode IRC | German & English | GMT+1
Absolutely no Support via PM!
It should just be one ‘:’.
If the error persists post a screenshot of the configured rsync job in the WebGUI here.
«Well. lately this forum has become support for everything except omv» [. ] «And is like someone is banning Google from their browsers»
Only two things are infinite, the universe and human stupidity, and I’m not sure about the former.
Upload Logfile via WebGUI/CLI
#openmediavault on freenode IRC | German & English | GMT+1
Absolutely no Support via PM!
This is what I have.
Images
Try ’51::Software’ or ’51::/Software’ or ’51:Software’ or ’51:/Software’ instead.
«Well. lately this forum has become support for everything except omv» [. ] «And is like someone is banning Google from their browsers»
Only two things are infinite, the universe and human stupidity, and I’m not sure about the former.
Upload Logfile via WebGUI/CLI
#openmediavault on freenode IRC | German & English | GMT+1
Absolutely no Support via PM!
Thanks David. This is what I did
changed the job to try each one and is what was output in the job window
51::Software
[Receiver]
rsync error: unexplained error (code 255) at io.c(601) [Receiver=3.0.7]
::/Software
[Receiver]
rsync error: unexplained error (code 255) at io.c(601) [Receiver=3.0.7]
:Software
[Receiver]
rsync error: unexplained error (code 255) at io.c(601) [Receiver=3.0.7]
:/Software
Logs show this for each job run
Unknown module ‘Software’ tried from OMV.local (192.168.1.40)
Connect from OMV.local (192.168.1.40)
did you add the module on the destination rsync server in the rsync settings?
oh you mean that big tab that says module. geez I feel stupid. that worked
Thank you davidh2k and toppi for your help..
rsync ueber ssh geht nicht via gui
ich verwende OMV 1.9 und versuche einen rsync zu erstellen.
Leider funktioniert das nicht.
OMV 1.9 ist in Virtualbox installiert.
Eine ssh Verbindung kann ich herstellen.
Als admin kann ich mich auf dem Webinterface einloggen.
Zwei Virtuelle HDDs habe ich angelegt.
Einen User «openmedianer» habe ich angelegt.
Den Ordner /openmedianer habe bei rsync in Server — Module angelegt.
Führe ich den Job als admin aus, erhalte ich folgende Fehlermeldung:
Als eingeloggter User «openmedianer» habe ich nicht die Möglichkeit einen rsync zu starten.
Weitere Fehlermeldungen wie hier schon beschrieben:
Hi,did you add the module on the destination rsync server in the rsync settings
Was ist damit gemeint?
Wie löse ich das Problem?
Wie suche ich den Fehler?
rsync ueber ssh geht nicht via gui
Es funktioniert im Terminal von Kubuntu 14.04.2 wie folgt:
Es funktioniert im Terminal, wenn man sich im OpenMediaVault als root eingeloggt hat und zwei wie folgt:
Den ssh Terminal habe ich bei diesem Versuch gewählt, weil ich mit copy und paste die UUID kopieren kann. Solche Aktionen als root ausführen halte ich auch für nicht geeignet.
Warum funktioniert es mit der OpenMediaVault WEB-GUI nicht?
Was habe ich in der OpenMediaVault 1.9 rsync WEB-GUI richtig einzugeben?
Edited 21 times, last by openmedianer ( Apr 5th 2015 ).
Источник
When trying to run a «cobbler sync» I get an rsync failure.
This seems to be because rsync can’t find the module (in /etc/rsyncd.conf) for each section it needs to replicate. This is not a hassle to fix though, there’s no need to manually create these modules.
Instead, on the cobbler master, edit /etc/cobbler/settings and set
manage_rsync: 1
(to allow cobbler to manage rsyncd on your behalf)
Then run
systemctl cobbler restart
(to reload the config file)cobbler sync
(to generate the new rsync file with the cobbler modules)
Then presto — the replicate works
Some more error details below
[root@cobbler-slave ~]# cobbler replicate --master=192.168.0.1 --sync-all
task started: 2016-02-09_110804_replicate
task started (id=Replicate, time=Tue Feb 9 11:08:04 2016)
cobbler_master = 192.168.0.1
distro_patterns = []
profile_patterns = []
system_patterns = []
repo_patterns = []
image_patterns = []
mgmtclass_patterns = []
package_patterns = []
file_patterns = []
omit_data = False
sync_all = True
use_ssl = False
XMLRPC endpoint: http://192.168.0.1/cobbler_api
test ALPHA
test BETA
Querying Both Servers
remote names struct is {'profile': ['centos7.2-virtualbox-x86_64', 'centos7.1-vmware-x86_64', 'centos7.2-vmware-x86_64', 'centos7.2-dell-x86_64', 'centos7.1-x86_64', 'centos6.5-x86_64', 'centos7.1-devel-x86_64', 'virtualbox-centos7.1-x86_64', 'centos7.1-dell-x86_64', 'centos7.1-live'], 'package': [], 'mgmtclass': [], 'image': [], 'system': ['server1', 'server2', 'server3', 'default'], 'repo': ['Centos-7.1-OS'], 'file': [], 'distro': ['centos7.1-live', 'centos7.1-x86_64', 'centos6.5-x86_64', 'centos7.1-devel-x86_64', 'centos7.1-new-x86_64', 'centos7.2-x86_64']}
transfer list for distro is ['centos6.5-x86_64', 'centos7.1-x86_64', 'centos7.1-live', 'centos7.1-devel-x86_64', 'centos7.1-new-x86_64', 'centos7.2-x86_64']
transfer list for profile is ['centos7.2-virtualbox-x86_64', 'centos7.1-vmware-x86_64', 'centos7.2-vmware-x86_64', 'centos7.2-dell-x86_64', 'centos7.1-x86_64', 'centos6.5-x86_64', 'centos7.1-devel-x86_64', 'virtualbox-centos7.1-x86_64', 'centos7.1-dell-x86_64', 'centos7.1-live']
transfer list for system is ['server1', 'server2', 'server3', 'default']
transfer list for repo is ['Centos-7.1-OS']
transfer list for image is []
transfer list for mgmtclass is []
transfer list for package is []
transfer list for file is []
*NOT* Removing Objects Not Stored On Master
Rsyncing distros
Rsyncing distro centos6.5-x86_64
running: rsync -avzH 192.168.0.1::distro-centos6.5-x86_64 /var/www/cobbler/ks_mirror/centos6.5-x86_64
received on stdout:
received on stderr: @ERROR: Unknown module 'distro-centos6.5-x86_64'
rsync error: error starting client-server protocol (code 5) at main.c(1516) [Receiver=3.0.9]
rsync failed
Rsyncing distro centos7.1-x86_64
running: rsync -avzH 192.168.0.1::distro-centos7.1-x86_64 /var/www/cobbler/ks_mirror/centos7.1-x86_64
received on stdout:
received on stderr: @ERROR: Unknown module 'distro-centos7.1-x86_64'
rsync error: error starting client-server protocol (code 5) at main.c(1516) [Receiver=3.0.9]
rsync failed
Rsyncing distro centos7.1-live
Skipping distro centos7.1-live, as it doesn't appear to live under ks_mirror
Rsyncing distro centos7.1-devel-x86_64
running: rsync -avzH 192.168.0.1::distro-centos7.1-devel-x86_64 /var/www/cobbler/ks_mirror/centos7.1-x86_64-devel
received on stdout:
received on stderr: @ERROR: Unknown module 'distro-centos7.1-devel-x86_64'
rsync error: error starting client-server protocol (code 5) at main.c(1516) [Receiver=3.0.9]
rsync failed
Rsyncing distro centos7.1-new-x86_64
running: rsync -avzH 192.168.0.1::distro-centos7.1-new-x86_64 /var/www/cobbler/ks_mirror/centos7.1-x86_64-new
received on stdout:
received on stderr: @ERROR: Unknown module 'distro-centos7.1-new-x86_64'
rsync error: error starting client-server protocol (code 5) at main.c(1516) [Receiver=3.0.9]
rsync failed
Rsyncing distro centos7.2-x86_64
running: rsync -avzH 192.168.0.1::distro-centos7.2-x86_64 /var/www/cobbler/ks_mirror/centos7.2-x86_64
received on stdout:
received on stderr: @ERROR: Unknown module 'distro-centos7.2-x86_64'
rsync error: error starting client-server protocol (code 5) at main.c(1516) [Receiver=3.0.9]
rsync failed
Rsyncing repos
running: rsync -avzH 192.168.0.1::repo-Centos-7.1-OS /var/www/cobbler/repo_mirror/Centos-7.1-OS
received on stdout:
received on stderr: @ERROR: Unknown module 'repo-Centos-7.1-OS'
rsync error: error starting client-server protocol (code 5) at main.c(1516) [Receiver=3.0.9]
rsync failed
Rsyncing distro repo configs
running: rsync -avzH 192.168.0.1::cobbler-distros/config/ /var/www/cobbler/ks_mirror/config
received on stdout:
received on stderr: @ERROR: Unknown module 'cobbler-distros'
rsync error: error starting client-server protocol (code 5) at main.c(1516) [Receiver=3.0.9]
rsync failed
Rsyncing kickstart templates & snippets
running: rsync -avzH 192.168.0.1::cobbler-kickstarts /var/lib/cobbler/kickstarts
received on stdout:
received on stderr: @ERROR: Unknown module 'cobbler-kickstarts'
rsync error: error starting client-server protocol (code 5) at main.c(1516) [Receiver=3.0.9]
rsync failed
running: rsync -avzH 192.168.0.1::cobbler-snippets /var/lib/cobbler/snippets
received on stdout:
received on stderr: @ERROR: Unknown module 'cobbler-snippets'
rsync error: error starting client-server protocol (code 5) at main.c(1516) [Receiver=3.0.9]
rsync failed
Rsyncing triggers
running: rsync -avzH 192.168.0.1::cobbler-triggers /var/lib/cobbler/triggers
received on stdout:
received on stderr: @ERROR: Unknown module 'cobbler-triggers'
rsync error: error starting client-server protocol (code 5) at main.c(1516) [Receiver=3.0.9]
rsync failed
Rsyncing scripts
running: rsync -avzH 192.168.0.1::cobbler-scripts /var/lib/cobbler/scripts
received on stdout:
received on stderr: @ERROR: Unknown module 'cobbler-scripts'
rsync error: error starting client-server protocol (code 5) at main.c(1516) [Receiver=3.0.9]
rsync failed
Removing Objects Not Stored On Local
adding distro centos6.5-x86_64
failed to add distro centos6.5-x86_64
adding distro centos7.1-x86_64
running python triggers from /var/lib/cobbler/triggers/add/distro/pre/*
running shell triggers from /var/lib/cobbler/triggers/add/distro/pre/*
running python triggers from /var/lib/cobbler/triggers/change/*
running python trigger cobbler.modules.scm_track
running shell triggers from /var/lib/cobbler/triggers/change/*
running shell trigger /var/lib/cobbler/triggers/change/cobbler_backup.sh
running: ['/var/lib/cobbler/triggers/change/cobbler_backup.sh', 'centos7.1-x86_64']
Exception occured: <type 'exceptions.OSError'>
Exception value: [Errno 13] Permission denied
Exception Info:
File "/usr/lib/python2.7/site-packages/cobbler/utils.py", line 1737, in subprocess_sp
sp = subprocess.Popen(cmd, shell=shell, stdin=stdin, stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=True)
File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1308, in _execute_child
raise child_exception
Exception occured: <class 'cobbler.cexceptions.CX'>
Exception value: "OS Error, command not found? While running: ['/var/lib/cobbler/triggers/change/cobbler_backup.sh', 'centos7.1-x86_64']"
Exception Info:
File "/usr/lib/python2.7/site-packages/cobbler/utils.py", line 126, in die
raise CX(msg)
Tag
View previous topic :: View next topic | |||||||
Author | Message | ||||||
---|---|---|---|---|---|---|---|
Joseph_sys Advocate Joined: 08 Jun 2004 |
|
||||||
Back to top |
|
||||||
BradN Advocate Joined: 19 Apr 2002 |
|
||||||
Back to top |
|
||||||
lxg Veteran Joined: 12 Nov 2005 |
|
||||||
Back to top |
|
||||||
BradN Advocate Joined: 19 Apr 2002 |
|
||||||
Back to top |
|
||||||
Joseph_sys Advocate Joined: 08 Jun 2004 |
|
||||||
Back to top |
|
||||||
lxg Veteran Joined: 12 Nov 2005 |
|
||||||
Back to top |
|
||||||
BradN Advocate Joined: 19 Apr 2002 |
|
||||||
Back to top |
|
||||||
|
You cannot post new topics in this forum |