* [gentoo-user] emerge can't create lock in NFS exported distfiles directory
@ 2005-08-22 8:55 Alexander Skwar
2005-08-22 14:07 ` Matthew Cline
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Alexander Skwar @ 2005-08-22 8:55 UTC (permalink / raw
To: gentoo-user
Hi!
alexander@blatt ~ $ sudo emerge -vf rt2500
Calculating dependencies ...done!
>>> emerge (1 of 1) net-wireless/rt2500-1.1.0_beta3 to /
Traceback (most recent call last):
File "/usr/bin/emerge", line 3200, in ?
mydepgraph.merge(mydepgraph.altlist())
File "/usr/bin/emerge", line 1859, in merge
retval=portage.doebuild(y,"fetch",myroot,self.pkgsettings,edebug,("--pretend" in myopts),fetchonly=1)
File "/usr/lib/portage/pym/portage.py", line 2664, in doebuild
if mydo!="manifest" and not fetch(fetchme, mysettings, listonly=listonly, fetchonly=fetchonly):
File "/usr/lib/portage/pym/portage.py", line 1819, in fetch
file_lock = portage_locks.lockfile(mysettings["DISTDIR"]+"/"+locks_in_subdir+"/"+myfile,wantnewlockfile=1)
File "/usr/lib/portage/pym/portage_locks.py", line 93, in lockfile
fcntl.lockf(myfd,fcntl.LOCK_EX|fcntl.LOCK_NB)
IOError: [Errno 13] Permission denied
As you can see, emerge (/usr/lib/portage/pym/portage_locks.py) failed
to create a lock file - or rather failed to lock the file.
On the client, I've got in make.conf:
DISTDIR="/Gentoo/Portage/distfiles"
alexander@blatt ~ $ ls -lad /Gentoo/Portage/distfiles /misc/distfiles /misc/distfiles/.locks
lrwxrwxrwx 1 root portage 15 22. Aug 09:43 /Gentoo/Portage/distfiles -> /misc/distfiles
drwxrwsr-x 4 root portage 16384 22. Aug 10:46 /misc/distfiles
drwxrwsr-x 2 root portage 125 22. Aug 10:46 /misc/distfiles/.locks
Normal files can be created just fine in $DISTDIR/.locks:
alexander@blatt ~ $ date > $DISTDIR/.locks/testfile.$(id -un)
alexander@blatt ~ $ date | sudo -u portage dd of=$DISTDIR/.locks/testfile.portage
0+1 Datensätze ein
0+1 Datensätze aus
alexander@blatt ~ $ date | sudo dd of=$DISTDIR/.locks/testfile.root
0+1 Datensätze ein
0+1 Datensätze aus
alexander@blatt ~ $ ls -la $DISTDIR/.locks
insgesamt 32
drwxrwsr-x 2 root portage 4096 22. Aug 10:53 .
drwxrwsr-x 4 root portage 16384 22. Aug 10:52 ..
-rw-r--r-- 1 alexander portage 29 22. Aug 10:52 testfile.alexander
-rw-r--r-- 1 portage portage 29 22. Aug 10:53 testfile.portage
-rw-r--r-- 1 root portage 29 22. Aug 10:54 testfile.root
How can I use a NFS exported distfiles directory?
Thanks,
Alexander Skwar
--
* Culus thinks we should go to trade shows and see how many people we
can kill by throwing debian cds at them
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] emerge can't create lock in NFS exported distfiles directory 2005-08-22 8:55 [gentoo-user] emerge can't create lock in NFS exported distfiles directory Alexander Skwar @ 2005-08-22 14:07 ` Matthew Cline 2005-08-22 16:33 ` Alexander Skwar 2005-08-22 14:35 ` Roman v. Gemmeren 2005-08-22 15:31 ` Neil Bothwick 2 siblings, 1 reply; 8+ messages in thread From: Matthew Cline @ 2005-08-22 14:07 UTC (permalink / raw To: gentoo-user On 8/22/05, Alexander Skwar <listen@alexander.skwar.name> wrote: > How can I use a NFS exported distfiles directory? > Try exporting the NFS share with the "no_root_squash" variable. HTH, Matt -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] emerge can't create lock in NFS exported distfiles directory 2005-08-22 14:07 ` Matthew Cline @ 2005-08-22 16:33 ` Alexander Skwar 0 siblings, 0 replies; 8+ messages in thread From: Alexander Skwar @ 2005-08-22 16:33 UTC (permalink / raw To: gentoo-user Matthew Cline schrieb: > On 8/22/05, Alexander Skwar <listen@alexander.skwar.name> wrote: >> How can I use a NFS exported distfiles directory? >> > > Try exporting the NFS share with the "no_root_squash" variable. It was already exported with no_root_squash - you might have noticed, that the "testfile.root" was owned by root. Here's the excert from exports: /Gentoo/Portage/distfiles *.bei.digitalprojects.com(async,rw,no_root_squash) /Gentoo/Notebook/Gentoo/Portage/packages *.bei.digitalprojects.com(async,rw,no_root_squash) /Gentoo/Notebook/var/lib/portage *.bei.digitalprojects.com(async,rw,no_root_squash) Alexander Skwar -- Today is National Existential Ennui Awareness Day. -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] emerge can't create lock in NFS exported distfiles directory 2005-08-22 8:55 [gentoo-user] emerge can't create lock in NFS exported distfiles directory Alexander Skwar 2005-08-22 14:07 ` Matthew Cline @ 2005-08-22 14:35 ` Roman v. Gemmeren 2005-08-22 15:31 ` Neil Bothwick 2 siblings, 0 replies; 8+ messages in thread From: Roman v. Gemmeren @ 2005-08-22 14:35 UTC (permalink / raw To: gentoo-user Alexander Skwar wrote: > Hi! > How can I use a NFS exported distfiles directory? Hi, this is part of my /etc/exports, where sleipnir is the name of the computer: /usr/portage/ sleipnir(rw,sync,no_root_squash,nohide,no_subtree_check) works fine here. -- Ciao, Roman v. Gemmeren -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] emerge can't create lock in NFS exported distfiles directory 2005-08-22 8:55 [gentoo-user] emerge can't create lock in NFS exported distfiles directory Alexander Skwar 2005-08-22 14:07 ` Matthew Cline 2005-08-22 14:35 ` Roman v. Gemmeren @ 2005-08-22 15:31 ` Neil Bothwick 2005-09-01 13:25 ` Alexander Skwar 2 siblings, 1 reply; 8+ messages in thread From: Neil Bothwick @ 2005-08-22 15:31 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 318 bytes --] On Mon, 22 Aug 2005 10:55:36 +0200, Alexander Skwar wrote: > As you can see, emerge (/usr/lib/portage/pym/portage_locks.py) failed > to create a lock file - or rather failed to lock the file. Add distlocks to FEATURES in make.conf -- Neil Bothwick "Hey Rocky, watch me pull a klingon out of my hat!" [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] emerge can't create lock in NFS exported distfiles directory 2005-08-22 15:31 ` Neil Bothwick @ 2005-09-01 13:25 ` Alexander Skwar 2005-09-01 14:16 ` Neil Bothwick 0 siblings, 1 reply; 8+ messages in thread From: Alexander Skwar @ 2005-09-01 13:25 UTC (permalink / raw To: gentoo-user Neil Bothwick schrieb: > On Mon, 22 Aug 2005 10:55:36 +0200, Alexander Skwar wrote: > >> As you can see, emerge (/usr/lib/portage/pym/portage_locks.py) failed >> to create a lock file - or rather failed to lock the file. > > Add distlocks to FEATURES in make.conf I already had distlocks in the FEATURES - must be some default thing, as I did not add in the make.conf. Anyway, I now added distlocks in make.conf - still no go :( alexander@blatt ~ $ sudo emerge -vat app-text/txt2man These are the packages that I would merge, in reverse order: Calculating dependencies ...done! [ebuild N ] app-text/txt2man-1.4.8-r1 11 kB Total size of downloads: 11 kB Do you want me to merge these packages? [Yes/No] >>> emerge (1 of 1) app-text/txt2man-1.4.8-r1 to / Traceback (most recent call last): File "/usr/bin/emerge", line 3200, in ? mydepgraph.merge(mydepgraph.altlist()) File "/usr/bin/emerge", line 1912, in merge retval=portage.doebuild(y,"merge",myroot,self.pkgsettings,edebug) File "/usr/lib/portage/pym/portage.py", line 2664, in doebuild if mydo!="manifest" and not fetch(fetchme, mysettings, listonly=listonly, fetchonly=fetchonly): File "/usr/lib/portage/pym/portage.py", line 1819, in fetch file_lock = portage_locks.lockfile(mysettings["DISTDIR"]+"/"+locks_in_subdir+"/"+myfile,wantnewlockfile=1) File "/usr/lib/portage/pym/portage_locks.py", line 93, in lockfile fcntl.lockf(myfd,fcntl.LOCK_EX|fcntl.LOCK_NB) IOError: [Errno 13] Permission denied alexander@blatt ~ $ emerge info | grep -i FEAT FEATURES="autoconfig ccache distcc distlocks sandbox sfperms strict" alexander@blatt ~ $ emerge info | grep DISTDIR DISTDIR="/Gentoo/Portage/distfiles" alexander@blatt ~ $ grep /Gentoo/Portage/distfiles /etc/autofs/auto.misc distfiles -fstype=nfs,bg,hard,tcp,rsize=8192,wsize=8192,nfsvers=3,timeo=14 server:/Gentoo/Portage/distfiles On the "server": /Gentoo/Portage/distfiles *.bei.digitalprojects.com(sync,rw,no_root_squash) Why is portage failing to create a lock? (Answer: Because it's not allow - "Permission denied". Q: Why is the permission not granted? What to do, to grant the permission?) Alexander Skwar -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] emerge can't create lock in NFS exported distfiles directory 2005-09-01 13:25 ` Alexander Skwar @ 2005-09-01 14:16 ` Neil Bothwick 2005-09-01 16:14 ` Alexander Skwar 0 siblings, 1 reply; 8+ messages in thread From: Neil Bothwick @ 2005-09-01 14:16 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 575 bytes --] On Thu, 01 Sep 2005 15:25:52 +0200, Alexander Skwar wrote: > Why is portage failing to create a lock? (Answer: Because > it's not allow - "Permission denied". Q: Why is the permission > not granted? What to do, to grant the permission?) Maybe this will give a clue? # ls -ld /mnt/portage/distfiles/.locks/ drwxrwxr-x 2 root portage 72 Sep 1 11:34 /mnt/portage/distfiles/.locks/ My .locks directory is owned by the portage group, and group-writeable. -- Neil Bothwick My friends went to alt.california, and all they brought me was this lousy sig. [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] emerge can't create lock in NFS exported distfiles directory 2005-09-01 14:16 ` Neil Bothwick @ 2005-09-01 16:14 ` Alexander Skwar 0 siblings, 0 replies; 8+ messages in thread From: Alexander Skwar @ 2005-09-01 16:14 UTC (permalink / raw To: gentoo-user Neil Bothwick schrieb: > On Thu, 01 Sep 2005 15:25:52 +0200, Alexander Skwar wrote: > >> Why is portage failing to create a lock? (Answer: Because >> it's not allow - "Permission denied". Q: Why is the permission >> not granted? What to do, to grant the permission?) > > Maybe this will give a clue? Not really :( alexander@blatt ~ $ ls -ld /Gentoo/Portage/distfiles/.locks drwxrwsr-x 2 root portage 6 1. Sep 18:01 /Gentoo/Portage/distfiles/.locks Hm. Now all of a sudden, it works. Strange. The only change was, that I rebooted "server". Alexander Skwar -- The haughty do but build castle walls behind which they try to hide their doubts and fears. -- Bene Gesserit Axiom -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-09-01 16:19 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2005-08-22 8:55 [gentoo-user] emerge can't create lock in NFS exported distfiles directory Alexander Skwar 2005-08-22 14:07 ` Matthew Cline 2005-08-22 16:33 ` Alexander Skwar 2005-08-22 14:35 ` Roman v. Gemmeren 2005-08-22 15:31 ` Neil Bothwick 2005-09-01 13:25 ` Alexander Skwar 2005-09-01 14:16 ` Neil Bothwick 2005-09-01 16:14 ` Alexander Skwar
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox