LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   rsync: opendir "/db/pluto/test" failed: Permission denied (13) (https://www.linuxquestions.org/questions/linux-newbie-8/rsync-opendir-db-pluto-test-failed-permission-denied-13-a-4175537530/)

prathamesh7478 03-22-2015 12:26 PM

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.

TB0ne 03-22-2015 12:38 PM

Quote:

Originally Posted by prathamesh7478 (Post 5336015)
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.

yancek 03-22-2015 12:40 PM

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?

prathamesh7478 03-23-2015 12:09 AM

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 - -

TB0ne 03-23-2015 01:41 PM

Quote:

Originally Posted by prathamesh7478 (Post 5336194)
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.


All times are GMT -5. The time now is 10:54 AM.