public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: lee <lee@yagibdah.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] emerging squid indefinitely
Date: Tue, 24 Nov 2015 23:39:01 +0100	[thread overview]
Message-ID: <87ziy3c9a2.fsf@heimdali.yagibdah.de> (raw)
In-Reply-To: <5653931A.3000701@gmail.com> (Alan McKinnon's message of "Tue, 24 Nov 2015 00:28:42 +0200")

Alan McKinnon <alan.mckinnon@gmail.com> writes:

> On 23/11/2015 23:04, lee wrote:
>> Alan McKinnon <alan.mckinnon@gmail.com> writes:
>> 
>>> On 23/11/2015 17:02, lee wrote:
>>>>
>>>> Hi,
>>>>
>>>> emerging squid doesn't seem to ever finish:
>>>>
>>>>
>>>> [...]
>>>>>>> Emerging (9 of 9) net-proxy/squid-3.5.6::gentoo
>>>>>>> Jobs: 8 of 9 complete, 1 running                Load avg: 0.37, 0.61, 0.53
>>>>
>>>>
>>>> What would I look at, without interrupting emerge, to find out what's
>>>> going on?
>>>>
>>>
>>>
>>> tail the build log
>> 
>> Which is where?  There isn't anything in
>> /var/log/portage/elog/summary.log, and /var/log/emerge.log only says:
>> 
>> 
>> 1448288177:  ::: completed emerge (8 of 9) net-libs/gnutls-3.3.17.1 to /
>> 1448288177:  >>> emerge (9 of 9) net-proxy/squid-3.5.6 to /
>> 1448288177:  === (9 of 9) Cleaning (net-proxy/squid-3.5.6::/usr/portage/net-proxy/squid/squid-3.5.6.ebuild)
>> 1448288177:  === (9 of 9) Compiling/Merging (net-proxy/squid-3.5.6::/usr/portage/net-proxy/squid/squid-3.5.6.ebuild)
>> 
>> 
>> It's still pretending that it's compiling, hours later ...
>> 
>
>
> the build logs are the same place they have always been, in
> /var/tmp/portage/.....
>
> that location is a symlink to:
>
> /var/log/portage/<cat>:<pkg>-<ver>:<timestamp>.log
>
> and that info is dumped to the console in volume every time emerge fails
> for any reason.
>
> /var/log/portage/elog/summary.log and /var/log/emerge.log are emerge's
> logs and contains logs of what emerge is doing. You want build logs to
> find out what make and gcc etc are doing.

Cool, let's see what it does (It's still emerging.):


,----
| dawn ~ # cat /var/tmp/portage/net-proxy/squid-3.5.6/temp/build.log                                                                                                                                                                        
|  * Package:    net-proxy/squid-3.5.6
|  * Repository: gentoo
|  * Maintainer: eras@gentoo.org
|  * USE:        abi_x86_64 amd64 caps elibc_glibc htcp ipv6 kernel_linux pam ssl userland_GNU wccp wccpv2
|  * FEATURES:   preserve-libs sandbox userpriv usersandbox
|  * Adding group 'squid' to your system ...
|  *  - Groupid: next available
`----


,----
| dawn ~ # ps xa | grep gro
| 10563 pts/0    T      0:00 groupadd -r squid
| 11315 pts/0    S+     0:00 grep --colour=auto gro
| dawn ~ # 
`----


It shouldn't take /that/ long to add a group, not even for a system
group.


,----
| dawn ~ # grep squid /etc/group
| squid:x:245:
| dawn ~ # 
`----


So the group has already been created.  Let's create a test group:


,----
| dawn ~ # time groupadd -r test
| groupadd: cannot lock /etc/group; try again later.
| 
| real    0m15.003s
| user    0m0.000s
| sys     0m0.000s
| dawn ~ # grep test /etc/group
| dawn ~ # ls -la /etc/group*
| -rw-r--r-- 1 root root 552 Nov 23 15:16 /etc/group
| -rw------- 1 root root 539 Nov  8 19:23 /etc/group-
| -rw------- 1 root root   6 Nov 23 15:16 /etc/group.lock
| dawn ~ # 
`----


Well, ok, the file is still locked.

'group-' looks like a backup, and 'group.lock' contains 10563, which is
the pid of groupadd.  I'd think that's ok.

So what all does it take to create a system group?  I suppose I could
kill groupadd and the emerging might go on, though I wonder what the
problem might be and if something else besides making an entry to
/etc/group needs to be done.  What might require an indefinite delay
here?

Any ideas?


  reply	other threads:[~2015-11-24 22:39 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-23 15:02 [gentoo-user] emerging squid indefinitely lee
2015-11-23 15:25 ` Alan McKinnon
2015-11-23 21:04   ` lee
2015-11-23 22:12     ` Todd Goodman
2015-11-23 22:28     ` Alan McKinnon
2015-11-24 22:39       ` lee [this message]
2015-11-25  0:32         ` [gentoo-user] " walt
2015-11-25 11:30           ` lee
2015-11-25 16:53             ` Alan McKinnon
2015-11-25 23:33               ` lee
2015-11-26  7:58                 ` Alan McKinnon
2015-11-26  0:03               ` walt
2015-11-26  7:57                 ` Alan McKinnon
2015-11-26  9:48                 ` Peter Humphrey
2015-11-26 11:22                   ` waltdnes
2015-11-26 17:35                     ` J. Roeleveld
2015-11-26  9:51                 ` Neil Bothwick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ziy3c9a2.fsf@heimdali.yagibdah.de \
    --to=lee@yagibdah.de \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox