Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge --sync -> rsync: ERROR: cannot stat destination
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
h4jo
n00b
n00b


Joined: 05 Nov 2007
Posts: 7
Location: Hösel

PostPosted: Wed Sep 11, 2013 7:45 am    Post subject: emerge --sync -> rsync: ERROR: cannot stat destination Reply with quote

All of a sudden I got the following error when trying to emerge --sync:
rsync: ERROR: cannot stat destination "/var/tmp/tmp7QWkJ5": Permission denied (13)

strace -fp emerge --sync reveals:
...
open("/var/tmp/tmpSaIEJs", O_RDWR|O_CREAT|O_EXCL|O_NOFOLLOW, 0600) = 3
fcntl(3, F_GETFD) = 0
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
close(3) = 0
stat("/var/tmp/tmpSaIEJs", {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
chown("/var/tmp/tmpSaIEJs", 250, 4294967295) = 0 /* 250 is portage */
...
[pid 31338] stat("/var/tmp/tmpSaIEJs", 0x7fffade5ad10) = -1 EACCES (Permission denied)
[pid 31338] write(2, "rsync: ERROR: cannot stat destin"..., 82rsync: ERROR: cannot stat destination "/var/tmp/tmpSaIEJs": Permission denied (13)) = 82
...

It seems (I believe) that tmpdir creation is done by root and accessing it is done by user portage running rsync.
I'm somewhat clueless how to find the culprit.
Am I alone with this problem? Hints anybody?

Cheers
Hajo
Back to top
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1226

PostPosted: Wed Sep 11, 2013 11:00 am    Post subject: Reply with quote

Maybe the sticky bit got lost. Check ls -la /var/tmp/ .
_________________
Hello 911? How are you?
Back to top
View user's profile Send private message
Nonno Cicala
n00b
n00b


Joined: 11 Sep 2013
Posts: 1
Location: Rome, Italy

PostPosted: Wed Sep 11, 2013 11:44 am    Post subject: Reply with quote

Thank you, when I moved my /var/tmp to a separate partition I forgot to set the permissions to the default 1777.
Back to top
View user's profile Send private message
h4jo
n00b
n00b


Joined: 05 Nov 2007
Posts: 7
Location: Hösel

PostPosted: Wed Sep 11, 2013 12:41 pm    Post subject: Reply with quote

Thanks massimo - chmod 1777 did the trick :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum