Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 436642 - net-nntp/nzbget-0.8.0 after emerge works after next reboot nzbgetd service crashed
Summary: net-nntp/nzbget-0.8.0 after emerge works after next reboot nzbgetd service cr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Sven Wegener
URL:
Whiteboard:
Keywords:
: 446574 450488 (view as bug list)
Depends on:
Blocks: keepdir-var-run_lock
  Show dependency tree
 
Reported: 2012-09-30 11:42 UTC by Christophe DAPREMONT
Modified: 2013-01-08 18:35 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christophe DAPREMONT 2012-09-30 11:42:31 UTC
Hello,

When i emerge net-nntp/nzbget-0.8.0
All are good, service start normally, i can use normally nzbget.

When i reboot the computer, the service start crashed (with default user nzbget group nzbget) with no log

Reproductible always

The work around is to re-emerge again net-nntp/nzbget-0.8.0 before use it

Thanks.
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-09-30 18:45:02 UTC
How does it crash? Just terminate normally, or segfault? In case of segfault, can you get a backtrace?
Comment 2 Christophe DAPREMONT 2012-10-01 06:18:47 UTC
(In reply to comment #1)
> How does it crash? Just terminate normally, or segfault? In case of
> segfault, can you get a backtrace?

haven't got any error log

After reboot :
# /etc/init.d/nzbget status -> crashed

# /etc/init.d/nzbget stop -> ok
# /etc/init.d/nzbget start -> ok
---- wait few sec .....
# /etc/init.d/nzbget status -> crashed


if i wan't use it i need to re emerge it, and start it
Comment 3 loux thefuture 2012-10-22 14:24:45 UTC
hi,
check that /var/run/nzbget is created and with the right permissions (maybe nzbget:nzbget) !
It wasn't on my server so nzbget crashed
Regars,
Loux
Comment 4 Christophe DAPREMONT 2012-10-24 21:00:40 UTC
(In reply to comment #3)
> hi,
> check that /var/run/nzbget is created and with the right permissions (maybe
> nzbget:nzbget) !
> It wasn't on my server so nzbget crashed
> Regars,
> Loux

Thanks you for your reply!

When i emerge nzbget have this message  :

* Messages for package net-nntp/nzbget-0.8.0:

 * One or more symlinks to directories have been preserved in order to
 * ensure that files installed via these symlinks remain accessible. This
 * indicates that the mentioned symlink(s) may be obsolete remnants of an
 * old install, and it may be appropriate to replace a given symlink with
 * the directory that it points to.
 * 
 * 	/var/run

Effectively my entire /var/run folder was symlinked? and no /var/run/nzbget folder inside.
I do not understand how that can be arrived

i delete the /var/run symlink
and i make a big error, that kill my MySQL and other services
they won't be restart after reboot.... 

now all are ok and NZBget works fine at every reboot !
Comment 5 Michal Kurgan 2012-12-09 05:46:44 UTC
I would say the problem is new openrc which uses tmpfs for /run (and /var/run symlink to it) directory and nzbget configuration as patched in 0.8.0 ebuild:

LockFile=/var/run/nzbget/nzbget.pid

While directory will be created it will be missing upon reboot, thus nzbget will run after install, but not upon reboot.

While looking at other services in /etc/init.d i find that /var/run/<name>.pid is used for storing daemon process pid.

Note that i have no idea how openrc manages boot and /run mounting, but in my case /var/run/nzbget is missing upon reboot.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2012-12-09 19:55:54 UTC
*** Bug 446574 has been marked as a duplicate of this bug. ***
Comment 7 Michal Kurgan 2012-12-09 23:52:17 UTC
Ok, my other bug is marked as duplicate to this, but this bug is not resolved! Please mark it as such.
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2013-01-07 03:53:29 UTC
*** Bug 450488 has been marked as a duplicate of this bug. ***
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2013-01-07 03:54:17 UTC
     keepdir /var/log/nzbget /run/nzbget

That's the wrong fix.
Comment 10 Michel Lang 2013-01-07 09:44:51 UTC
As pointed out in bug 450488 the directory must be created on each start() with the right ownership. Also note that nzbget-9.0.ebuild is also affected by this bug. The specific dodir/fowners/fperms lines should be removed from the ebuilds.
Comment 11 Tim Harder gentoo-dev 2013-01-08 18:35:01 UTC
Fixed in 9.0 on re-emerge and 9.1_pre538.