View previous topic :: View next topic |
Author |
Message |
dju` Retired Dev
Joined: 11 Feb 2003 Posts: 370
|
Posted: Fri Mar 12, 2004 11:44 am Post subject: distcc : failed to create... |
|
|
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 |
|
|
dju` Retired Dev
Joined: 11 Feb 2003 Posts: 370
|
Posted: Thu Apr 01, 2004 8:07 am Post subject: |
|
|
*bump*
deleting /var/tmp/portage/.distcc temporarily solves the problem, but sometimes it appears again... |
|
Back to top |
|
|
Voltago Advocate
Joined: 02 Sep 2003 Posts: 2593 Location: userland
|
Posted: Thu Apr 01, 2004 8:24 am Post subject: |
|
|
Found this in gentoo's distcc docs. Dunno why your ebuild is trying to use distcc here, better turn it off... |
|
Back to top |
|
|
dju` Retired Dev
Joined: 11 Feb 2003 Posts: 370
|
Posted: Thu Apr 01, 2004 8:27 am Post subject: |
|
|
interesting... maybe some of these ebuilds should have an disable-distcc option or similar... |
|
Back to top |
|
|
nagmat84 Apprentice
Joined: 27 Mar 2007 Posts: 205
|
Posted: Mon Dec 26, 2016 8:25 am Post subject: |
|
|
@Voltago: What did you find in the docs? I do not find something related to the described error. Please enlighten me. |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9679 Location: almost Mile High in the USA
|
Posted: Tue Aug 29, 2017 11:29 pm Post subject: |
|
|
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 |
|
|
luciano Tux's lil' helper
Joined: 18 Nov 2004 Posts: 132
|
Posted: Sat May 26, 2018 10:19 am Post subject: |
|
|
Weird; this just happened to me now, emerging wine-vanilla. Never had this problem before. The chown fix above worked though. |
|
Back to top |
|
|
|