LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   lftp mirror: Access failed: 550 /var/www/vhosts/test: No such file or directory (https://www.linuxquestions.org/questions/linux-software-2/lftp-mirror-access-failed-550-var-www-vhosts-test-no-such-file-or-directory-778537/)

speedy6 12-28-2009 02:05 PM

lftp mirror: Access failed: 550 /var/www/vhosts/test: No such file or directory
 
Hi,

I'm trying to setup lftp but it isn't working.
I hope someone has expierence with this.

I'm logged in as root.
When I execute this:
lftp -u login,passws-e "mirror --delete --only-newer --verbose /var/www/vhosts/test/ /backupsplesk" www.domain.com

I get mirror: Access failed: 550 /var/www/vhosts/test: No such file or directory
1 error detected


The folder test certainly exists. What do I wrong?

Thanks

centosboy 12-29-2009 06:48 AM

Quote:

Originally Posted by speedy6 (Post 3807099)
Hi,

I'm trying to setup lftp but it isn't working.
I hope someone has expierence with this.

I'm logged in as root.
When I execute this:
lftp -u login,passws-e "mirror --delete --only-newer --verbose /var/www/vhosts/test/ /backupsplesk" www.domain.com

I get mirror: Access failed: 550 /var/www/vhosts/test: No such file or directory
1 error detected


The folder test certainly exists. What do I wrong?

Thanks

what kind of permissions on this directory>?

speedy6 12-29-2009 08:34 AM

Quote:

Originally Posted by centosboy (Post 3807747)
what kind of permissions on this directory>?

Non specific... but I tought I'm logged in as root... that use has access everywhere??

THanks

centosboy 12-30-2009 04:25 AM

Quote:

Originally Posted by speedy6 (Post 3807835)
Non specific... but I tought I'm logged in as root... that use has access everywhere??

THanks


Well, the error message is pretty much to the point..

/var/www/vhosts/test - i would look at permissions/attributes etc on this folder...or at least list them so we can see that they are correct...

speedy6 12-31-2009 04:54 AM

1 Attachment(s)
Read access to everybody. See screenshot

centosboy 12-31-2009 05:09 AM

Quote:

Originally Posted by speedy6 (Post 3809777)
Read access to everybody. See screenshot

ok, but what about the test directory??

worm5252 12-31-2009 05:12 AM

Could the problem be that the directory is owned by root and not www-data?

centosboy 12-31-2009 05:44 AM

Quote:

Originally Posted by worm5252 (Post 3809786)
Could the problem be that the directory is owned by root and not www-data?


could be....def a permissions issue somewhere....

speedy6 12-31-2009 05:57 AM

Same thing for the test folder... same access.
I checked var, and www also read access to the whole group.

centosboy 12-31-2009 06:19 AM

Quote:

Originally Posted by speedy6 (Post 3809811)
Same thing for the test folder... same access.
I checked var, and www also read access to the whole group.

sorry, but for ftp 550 is more an execute permissions error.
example - if i wanted to delete a file that had read only access i would get this error.
if i wanted to change into a directory that had read only access i would get this error also as it would need execute permissions

speedy6 01-01-2010 05:00 AM

First off all, a happy newyear! :)

Secondly:
I gave the folder www full permissions also to others.
The problem with modification rights is that I'm not trying to modificy the files localy hwere it gives an error..

Could it be because I'm running it as a php script?

johnny_snq 10-22-2012 02:06 PM

If anyone is still struggling with this problem the solution is to add a -R in the options for mirror as you are most probably syncing a folder and you need to say so.


All times are GMT -5. The time now is 02:56 AM.