LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-22-2015, 01:26 PM   #1
prathamesh7478
Member
 
Registered: Feb 2013
Location: Pune
Distribution: Unix,Solaris,Ubuntu.
Posts: 35

Rep: Reputation: Disabled
Question rsync: opendir "/db/pluto/test" failed: Permission denied (13)


I am getting the below error when try to run a perl script which copy mysql db using resync.

Could anyone please help



Creating log directories
Initializing data
WARNING: Use of this system is restricted and monitored!
This system is for the use of authorized users only. Individuals using
this computer system without authority, or in excess of their
authority, are subject to having all of their activities on this system
monitored and recorded by system personnel. In the course of
monitoring individuals improperly using this system, or in the course
of system maintenance, the activities of authorized users may also
be monitored. Anyone using this system expressly consents to such
monitoring and is advised that if such monitoring reveals possible
evidence of criminal activity, system personnel may provide the
evidence of such monitoring to law enforcement officials.
receiving incremental file list
rsync: opendir "/db/pluto/test" failed: Permission denied (13)
sent 12 bytes received 130 bytes 284.00 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files/attrs were not transferred (see previous errors) (code 2 3) at main.c(1505) [generator=3.0.6]
Aborting : Database copy from primary to secondary failed.
 
Old 03-22-2015, 01:38 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,258

Rep: Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436
Quote:
Originally Posted by prathamesh7478 View Post
I am getting the below error when try to run a perl script which copy mysql db using resync. Could anyone please help

Creating log directories
Initializing data
WARNING: Use of this system is restricted and monitored!
This system is for the use of authorized users only. Individuals using
this computer system without authority, or in excess of their
authority, are subject to having all of their activities on this system
monitored and recorded by system personnel. In the course of
monitoring individuals improperly using this system, or in the course
of system maintenance, the activities of authorized users may also
be monitored. Anyone using this system expressly consents to such
monitoring and is advised that if such monitoring reveals possible
evidence of criminal activity, system personnel may provide the
evidence of such monitoring to law enforcement officials.
receiving incremental file list
rsync: opendir "/db/pluto/test" failed: Permission denied (13)
sent 12 bytes received 130 bytes 284.00 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files/attrs were not transferred (see previous errors) (code 2 3) at main.c(1505) [generator=3.0.6]
Aborting : Database copy from primary to secondary failed.
What would you like us to help you with???? The error is VERY clear...it's telling you that whatever user ID you're using, does not have permissions to open that directory. So, either use sudo in your script, change the permissions of the directory, or use a different ID. I'd first suggest reading some of your previous threads, going back years...the answers haven't changed:
http://www.linuxquestions.org/questi...ad-4175452115/
http://www.linuxquestions.org/questi...rs-4175452119/


Also, you need to read the Question Guidelines link in my posting signature...you aren't giving us ANY details at all; version/distro of Linux, contents of that perl program, or even what permissions on that directory. Without details, there is nothing we can help with.
 
Old 03-22-2015, 01:40 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,332

Rep: Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406
From the information you posted it would seem the user running the rsync command does not have permission to writ to the "db/pluto/test" directory. Are the source and destination on the same machine? is it on a network? Who is the owner:group and what are the permissions?
 
Old 03-23-2015, 01:09 AM   #4
prathamesh7478
Member
 
Registered: Feb 2013
Location: Pune
Distribution: Unix,Solaris,Ubuntu.
Posts: 35

Original Poster
Rep: Reputation: Disabled
Hi Guys,

I have two servers dc2db01 and dc2db02 used as (primary and secondary for MYSQL DB) there is user pluto on both the servers and db test is located on "/db/pluto/test" i am trying to copy test from dc2db01 to "/db/pluto/test" on dc2db02. When i am creating a DB for customers generally we run a perl script, it is first ran on dc2db01 and then on dc2bd02.IN case of dc2db02 it trys to copy db from primary server dc2db01 and fails with a permission denied error.

pluto user has below permission

drwx - -
 
Old 03-23-2015, 02:41 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,258

Rep: Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436
Quote:
Originally Posted by prathamesh7478 View Post
Hi Guys,
I have two servers dc2db01 and dc2db02 used as (primary and secondary for MYSQL DB) there is user pluto on both the servers and db test is located on "/db/pluto/test" i am trying to copy test from dc2db01 to "/db/pluto/test" on dc2db02. When i am creating a DB for customers generally we run a perl script, it is first ran on dc2db01 and then on dc2bd02.IN case of dc2db02 it trys to copy db from primary server dc2db01 and fails with a permission denied error.

pluto user has below permission

drwx - -
Again, you STILL aren't providing enough details. Again, the error is very clear...whoever you're running the script as does not have permissions to read that directory specified. You aren't providing the script, or telling us anything about how these things are set up, or even telling us what version/distro of Linux you're using.

Since it's working on one server and not another, then it's very clear there is a DIFFERENCE between the two. Identify it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
curlftpfs mount fails with "fuse: failed to open /dev/fuse: Permission denied" camperbait Linux - General 2 06-12-2013 12:32 PM
[SOLVED] rsync: mkdir "/home/backup" failed: Permission denied (13) gorgabal Linux - Server 2 07-24-2012 12:46 PM
when use minicom, received "Device /dev/ttyS1 access failed: Permission denied." fulee1 Linux - Newbie 3 04-02-2010 04:11 PM
rsync mysqldatabase "Permission denied" duckdream Linux - Newbie 1 06-17-2009 03:46 AM
Failed to execute child process "ooffice" (Permission denied) Mol_Bolom Linux - Software 2 03-11-2009 05:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration