View previous topic :: View next topic |
Author |
Message |
MickKi Veteran

Joined: 08 Feb 2004 Posts: 1179
|
Posted: Tue Mar 22, 2022 3:44 pm Post subject: Boa server doesn't start |
|
|
[ Split from Boa not starting. The original topic is from 2005, although I don't mind bumping old topic in this case, but this split will allow this post to remain in "Unanswered posts" -category now, making it visible to more eyes. -- Zucca ]
I suppose the OP is not still waiting for an answer, but in case he found the solution I'd be interested to know ...
I've suddenly started having problems launching boa, after many years of reliable and flawless service.
I've replatformed it, copied over the config file and now it won't launch:
Code: | # rc-service -v boa start
* Caching service dependencies ... [ ok ]
* Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh /etc/init.d/
boa start
* Starting boa ...
* start-stop-daemon: fopen `/run/boa.pid': No such file or directory
* Detaching to start `/usr/sbin/boa' ...
[21/Mar/2022:15:46:43 +0000] Before parse_debug, debug_level is: 0
[21/Mar/2022:15:46:43 +0000] Enabling CGI Input debug level.
[21/Mar/2022:15:46:43 +0000] After parse_debug, debug_level is: 4
gethostbyname:: Success
* start-stop-daemon: failed to start `/usr/sbin/boa'
* Failed to start boa [ !! ]
* ERROR: boa failed to start |
I created /var/log/boa/error_log and access_log with 0600 rights, owned by root:root. Nothing shows up in there or in syslog.
How could I troubleshoot this problem? _________________ Regards,
Mick |
|
Back to top |
|
 |
Zucca Moderator


Joined: 14 Jun 2007 Posts: 3966 Location: Rasi, Finland
|
Posted: Sat Mar 26, 2022 6:53 am Post subject: |
|
|
Code: | start-stop-daemon: fopen `/run/boa.pid': No such file or directory | I suspect this is why the service fails. To me it still looks like boa started successfully.
Have you tried to start boa manually? Does it start then?
Do you have any boa log file to look at? _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
 |
MickKi Veteran

Joined: 08 Feb 2004 Posts: 1179
|
Posted: Sat Mar 26, 2022 8:36 am Post subject: |
|
|
There are no boa log files created, or boa logs captured, other than this minimal error statement in syslog: Code: | Mar 26 08:21:40 aspire /etc/init.d/boa[8379]: start-stop-daemon: failed to start `/usr/sbin/boa'
Mar 26 08:21:40 aspire /etc/init.d/boa[8150]: ERROR: boa failed to start |
I created manually boa error and access log files, but they are not written to.
Attempting to start it from the CLI gives a similar output: Code: | ~ # /usr/sbin/boa -c /etc/boa -l 4
[26/Mar/2022:08:29:28 +0000] Before parse_debug, debug_level is: 0
[26/Mar/2022:08:29:28 +0000] Enabling CGI Input debug level.
[26/Mar/2022:08:29:28 +0000] After parse_debug, debug_level is: 4
gethostbyname:: Success |
but no boa ever starts. I also created a /run/boa.pid file. The error then changes complaining about no pid found in the file: Code: | ~ # rc-service -v boa start
* Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh /etc/init.d/boa start
* Starting boa ...
* start-stop-daemon: no pid found in `/run/boa.pid'
* Detaching to start `/usr/sbin/boa' ...
[26/Mar/2022:08:33:47 +0000] Before parse_debug, debug_level is: 0
[26/Mar/2022:08:33:47 +0000] Enabling CGI Input debug level.
[26/Mar/2022:08:33:47 +0000] After parse_debug, debug_level is: 4
gethostbyname:: Success
* start-stop-daemon: failed to start `/usr/sbin/boa'
* Failed to start boa [ !! ]
* ERROR: boa failed to start |
_________________ Regards,
Mick |
|
Back to top |
|
 |
GDH-gentoo Veteran


Joined: 20 Jul 2019 Posts: 1830 Location: South America
|
Posted: Sat Mar 26, 2022 5:17 pm Post subject: |
|
|
You are talking about package www-servers/boa, right? If yes, it looks like the OpenRC service script relies on /usr/sbin/boa creating a PID file with a name specified by the PidFile directive in /etc/boa/boa.conf, but support for PID files and the PidFile directive has been removed upstream.
Try changing this line in /etc/init.d/boa:
Code: | command_args="${BOA_OPTS}" | to:
Code: | command_args="-d ${BOA_OPTS}"
command_background=yes | And see if it works.
The changes will be undone the next time that you upgrade or reinstall www-servers/boa; this is just a test. |
|
Back to top |
|
 |
MickKi Veteran

Joined: 08 Feb 2004 Posts: 1179
|
Posted: Sat Mar 26, 2022 6:35 pm Post subject: |
|
|
Thanks GDH-gentoo, good catch. I changed the init.d file and tried to start it.
Now it creates a pid! Code: | ~ # cat /run/boa.pid
8265 |
It says it is backgrounded: Code: | ~ # rc-service -v boa start
* Caching service dependencies ... [ ok ]
* Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh /etc/init.d/boa start
* Starting boa ...
* start-stop-daemon: fopen `/run/boa.pid': No such file or directory
* Detaching to start `/usr/sbin/boa' ... [ ok ] |
However it doesn't create any log files and also it does not start.
I think I'll move on. Gatling appears to be a better solution for my needs and thankfully, it starts, it runs, it serves!  _________________ Regards,
Mick |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|