Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
distcc : failed to create...
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
dju`
Retired Dev
Retired Dev


Joined: 11 Feb 2003
Posts: 370

PostPosted: Fri Mar 12, 2004 11:44 am    Post subject: distcc : failed to create... Reply with quote

Hello,

I'm experiencing this:
Code:
# emerge mozilla-thunderbird
Calculating dependencies ...done!
>>> emerge (1 of 1) net-mail/mozilla-thunderbird-0.5-r1 to /
>>> md5 src_uri ;-) thunderbird-0.5-source.tar.bz2
>>> md5 src_uri ;-) enigmail-0.83.3.tar.gz
>>> md5 src_uri ;-) ipc-1.0.5.tar.gz
distcc[22292] (dcc_open_lockfile) ERROR: failed to creat /var/tmp/portage/.distcc/lock/cpu_localhost_0: Permission denied
distcc[22292] (dcc_lock_one) ERROR: failed to lock
distcc[13780] (dcc_open_lockfile) ERROR: failed to creat /var/tmp/portage/.distcc/lock/cpu_localhost_0: Permission denied
distcc[13780] (dcc_lock_one) ERROR: failed to lock


however, the file /var/tmp/portage/.distcc/lock/cpu_localhost_0 exists, but distcc is still complaining. Then, while compiling, i get:

Code:
distcc[2835] (dcc_open_lockfile) ERROR: failed to creat /var/tmp/portage/.distcc/lock/cpu_localhost_0: Permission denied
distcc[2835] (dcc_lock_one) ERROR: failed to lock
distcc[2835] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
distcc[2835] (dcc_open_lockfile) ERROR: failed to creat /var/tmp/portage/.distcc/lock/cpu_localhost_0: Permission denied
distcc[2835] (dcc_lock_one) ERROR: failed to lock


what's wrong please? thanks.
Back to top
View user's profile Send private message
dju`
Retired Dev
Retired Dev


Joined: 11 Feb 2003
Posts: 370

PostPosted: Thu Apr 01, 2004 8:07 am    Post subject: Reply with quote

*bump*

deleting /var/tmp/portage/.distcc temporarily solves the problem, but sometimes it appears again...
Back to top
View user's profile Send private message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2593
Location: userland

PostPosted: Thu Apr 01, 2004 8:24 am    Post subject: Reply with quote

Found this in gentoo's distcc docs. Dunno why your ebuild is trying to use distcc here, better turn it off...
Back to top
View user's profile Send private message
dju`
Retired Dev
Retired Dev


Joined: 11 Feb 2003
Posts: 370

PostPosted: Thu Apr 01, 2004 8:27 am    Post subject: Reply with quote

interesting... maybe some of these ebuilds should have an disable-distcc option or similar...
Back to top
View user's profile Send private message
nagmat84
Apprentice
Apprentice


Joined: 27 Mar 2007
Posts: 205

PostPosted: Mon Dec 26, 2016 8:25 am    Post subject: Reply with quote

@Voltago: What did you find in the docs? I do not find something related to the described error. Please enlighten me.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9679
Location: almost Mile High in the USA

PostPosted: Tue Aug 29, 2017 11:29 pm    Post subject: Reply with quote

Sheesh, another year later and I'm still seeing this.

What I found was for some reason, the first time distcc is invoked upon emerge, it's run as root. It will then setup the distcc tracking directory with owner 'root'. However portage will switch to the user 'portage' while in the sandbox and now can no longer write into the tracking directory!

As an experiment to prove this, I chown -R $DISTCC_DIR distcc and it stopped generating these errors.

This was working a few seconds ago on my machine before a reboot, so there's something with my config that I botched...maybe...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
luciano
Tux's lil' helper
Tux's lil' helper


Joined: 18 Nov 2004
Posts: 132

PostPosted: Sat May 26, 2018 10:19 am    Post subject: Reply with quote

Weird; this just happened to me now, emerging wine-vanilla. Never had this problem before. The chown fix above worked though.
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