Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 177428 - net-proxy/http-replicator-3.0 fail to start at boot (fix included)
Summary: net-proxy/http-replicator-3.0 fail to start at boot (fix included)
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Maurice van der Pot (RETIRED)
URL: http://freshmeat.net/projects/http-re...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-07 09:40 UTC by Davide Cendron (RETIRED)
Modified: 2010-04-23 10:19 UTC (History)
5 users (show)

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


Attachments
needed change to initscript (http-replicator-3.0.init.diff,531 bytes, patch)
2007-05-07 09:42 UTC, Davide Cendron (RETIRED)
Details | Diff
Temporary workaround for SIGHUP (http-replicator-sighup.patch,998 bytes, patch)
2007-07-09 18:27 UTC, Maurice van der Pot (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Davide Cendron (RETIRED) gentoo-dev 2007-05-07 09:40:43 UTC
net-proxy/http-replicator-3.0 fails to start with actual Gentoo configuration (i think that recent baselayout changes have break something :P)

The fix is simple: just adding the "--background" option to start section of provided initscript (files/http-replicator-3.0.init )

See this Gentoo Forum post for further informations: http://forums.gentoo.org/viewtopic-p-4026539.html#4026539

Reproducible: Always

Steps to Reproduce:
1. Boot system
2. rc-status shows that http-replicator is started
3. ps -ef|grep replicator doesn't show any active process about this program
4. a /etc/init.d/http-replicator restart seems to start properly it

Actual Results:  
http-replicator doesn't start properly

Expected Results:  
http-replicator should start properly
Comment 1 Davide Cendron (RETIRED) gentoo-dev 2007-05-07 09:42:11 UTC
Created attachment 118412 [details, diff]
needed change to initscript

Diff of fixed initscript
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-05-12 16:24:57 UTC
*** Bug 178220 has been marked as a duplicate of this bug. ***
Comment 3 Davide Cendron (RETIRED) gentoo-dev 2007-06-05 16:15:53 UTC
I've test a new installation from scratch in a Virtualbox VM.

- i've used a x86 stage3-2007.0 with a recent portage snapshot (around May, 18th)
- i've used a simple partitioning scheme (hda1-> boot , hda2-> / , hda3 -> swap)
- i haven't updated anything, so the installed system is a "vanilla" stage3 (plus the necessary system tools and grub)
- i've installed http-replicator, added it to default runlevel and.....

IT WORKS!

:PPP

So i suppose that could be some problem in MY OWN actual Gentoo installations :P

I'll try to update and setup the VM following my typical configurations, and i hope to find where the things break... stay tuned 8)
Comment 4 Alin Năstac (RETIRED) gentoo-dev 2007-06-17 04:57:39 UTC
Maurice, care to fix that or do you want me to fix it?
Comment 5 Maurice van der Pot (RETIRED) gentoo-dev 2007-06-17 11:07:40 UTC
Alin, adding --background is not the right solution and I am unable to reproduce the problem myself. 

Can you reproduce the problem? If so, we could do some debugging to find the real cause.
Comment 6 Lars Weiler (RETIRED) gentoo-dev 2007-07-08 13:50:35 UTC
(In reply to comment #5)
> Can you reproduce the problem? If so, we could do some debugging to find the
> real cause.

I can reproduce this problem on my machine.  So I can help as well.

Comment 7 Maurice van der Pot (RETIRED) gentoo-dev 2007-07-09 18:27:58 UTC
Created attachment 124346 [details, diff]
Temporary workaround for SIGHUP

Further debugging showed that ignoring SIGHUP in the child process fixes the problem. The solution will probably need some more changes, but as a workaround the attached patch should do the trick.

Stay tuned.
Comment 8 Maurice van der Pot (RETIRED) gentoo-dev 2007-07-10 18:29:19 UTC
I checked in the work-around I mentioned. If anyone notices any problems with it, please reopen this bug.

I'm closing this bug now as RESOLVED/UPSTREAM because upstream is working on a new release that is a rewrite and it wouldn't make much sense to spend time on fixing the old code base if there's a work-around in place.

Thanks everyone!
Comment 9 Andrey Niahajchyk 2010-02-11 11:48:50 UTC
It is still not working. I have two updated systems with different profiles. And http-replicator doesn't start.

/etc/init.d/http-replicator start
 * Caching service dependencies             [ ok ]
 * Starting Http-Replicator                                                  
 * Failed to start           [ !! ]

but in log file
tail /var/log/http-replicator.log
11 Feb 2010 13:42:26 INFO: HttpReplicator started

If I copy-paste start string from init.d script the replicator will be started without problem.
Comment 10 Andrey Niahajchyk 2010-02-20 15:15:31 UTC
--oknodo solution from http://bugs.gentoo.org/show_bug.cgi?id=281704 fixed this problem
Comment 11 Deniss Gaplevsky 2010-04-23 10:16:07 UTC
looks likes the problem is in start-stop-daemon cos `pidof -x http-replicator` (as called from start-stop-daemon to check when process is already started) returns nothing even http-replicator is runnning.
due this http-replicator fails to start
Comment 12 Deniss Gaplevsky 2010-04-23 10:19:33 UTC
see #286191