- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- rsync: link_stat "/mnt/dvd/." failed: Permission d...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2010 08:19 AM
тАО10-05-2010 08:19 AM
[root@kickstart-togo ks_mirror]# cobbler import --path=/mnt/dvd --name=rhel5.4 --arch=x86_64
task started: 2010-10-05_001753_import
task started (id=Media import, time=Tue Oct 5 00:17:53 2010)
running: rsync -a '/mnt/dvd/' /var/www/cobbler/ks_mirror/rhel5.4-x86_64 --exclude-from=/etc/cobbler/rsync.exclude --progress
building file list ...
rsync: link_stat "/mnt/dvd/." failed: Permission denied (13)
0 files to consider
rsync: cannot stat destination "/var/www/cobbler/ks_mirror/rhel5.4-x86_64": Permission denied (13)
rsync error: errors selecting input/output files, dirs (code 3) at main.c(493) [receiver=2.6.8]
rsync: connection unexpectedly closed (8 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(463) [sender=2.6.8]
returned: 12
Exception occured: cobbler.cexceptions.CX
Exception value: 'Command failed'
Exception Info:
File "/usr/lib/python2.4/site-packages/cobbler/utils.py", line 123, in die
raise CX(msg)
Exception occured: cobbler.cexceptions.CX
Exception value: 'Command failed'
Exception Info:
File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 95, in run
rc = self._run(self)
File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 224, in runner
self.logger
File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 658, in import_tree
return importer.run()
File "/usr/lib/python2.4/site-packages/cobbler/action_import.py", line 181, in run
self.run_this(rsync_cmd, (spacer, self.mirror, self.settings.webdir, self.mirror_name))
File "/usr/lib/python2.4/site-packages/cobbler/action_import.py", line 262, in run_this
utils.die(self.logger,"Command failed")
File "/usr/lib/python2.4/site-packages/cobbler/utils.py", line 131, in die
raise CX(msg)
!!! TASK FAILED !!!
[root@kickstart-togo ks_mirror]#
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2010 10:17 AM
тАО10-05-2010 10:17 AM
Re: rsync: link_stat "/mnt/dvd/." failed: Permission denied (13)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2010 01:53 PM
тАО10-05-2010 01:53 PM
SolutionPlease show the output of all these commands:
ls -ld / /mnt /mnt/dvd
mount | grep '^/mnt/dvd'
If /mnt/dvd is NFS mounted from a remote host, please show the appropriate line of the /etc/exports (or equivalent config file) of that remote host too.
Do you have SELinux enabled in enforcing mode? If you do, then check the logs to see if it has rejected your access attempt: cobbler may be treated by SELinux as a web service component, and thus the SELinux policy might stop it from accessing any removable media by default.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2010 11:10 AM
тАО10-06-2010 11:10 AM
Re: rsync: link_stat "/mnt/dvd/." failed: Permission denied (13)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-08-2010 09:22 AM
тАО10-08-2010 09:22 AM
Re: rsync: link_stat "/mnt/dvd/." failed: Permission denied (13)
DVD is mounted locally. I am configuring on the laptop. And SELINUX is set to as enforcing.
SELINUX=enforcing
The following are the details you asked:
[root@kickstart-togo ~]# ls -ld /mnt/dvd
drwxrwxrwx 2 root root 4096 Oct 4 21:21 /mnt/dvd
[root@kickstart-togo ~]# mount | grep '^/mnt/dvd'
[root@kickstart-togo ~]# cd /etc/selinux
[root@kickstart-togo selinux]# cat config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=enforcing
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
SETLOCALDEFS=0
[root@kickstart-togo selinux]#
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-08-2010 09:33 AM
тАО10-08-2010 09:33 AM
Re: rsync: link_stat "/mnt/dvd/." failed: Permission denied (13)
Sorry, These are the output you asked me:
[root@kickstart-togo ks_mirror]# ls -ld / /mnt /mnt/dvd
drwxr-xr-x 26 root root 4096 Oct 7 20:41 /
drwxrwxrwx 4 root root 4096 Oct 4 21:54 /mnt
dr-xr-xr-x 8 root root 10240 Aug 19 2009 /mnt/dvd
[root@kickstart-togo ks_mirror]# mount | grep '^/mnt/dvd'
[root@kickstart-togo ks_mirror]#
And SELINUX is set to enforcing. Please let me know. Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-08-2010 09:37 AM
тАО10-08-2010 09:37 AM
Re: rsync: link_stat "/mnt/dvd/." failed: Permission denied (13)
Do you think this the problem?
[root@kickstart-togo dev]# ls -ld dvd
lrwxrwxrwx 1 root root 4 Oct 7 20:40 dvd -> scd0
[root@kickstart-togo dev]#
In the /dev directory dvd is linked to scd0.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-08-2010 09:51 AM
тАО10-08-2010 09:51 AM