Somestimes, openRC isn't verbose enough when some services fail to start.
When that happens to me, I just run the command from a terminal (with appropriate arguments), and that generally gives me a better error message that I can troubleshoot properly.
Julien
Mar 23, 2022, 07:23 by
[email protected]:
On Monday, 21 March 2022 16:17:04 GMT Michael wrote:
I've moved my local portage distfiles server to a new installation, with no >> changes in the configuration. I expected www-servers/boa to start, but for >> reasons I fail to understand it won't do so:
~ # 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
This is the content of my boa.conf:
~ # cat /etc/boa/boa.conf | grep ^[^#]
Port 5024
Listen 192.168.023
User nobody
Group nogroup
ErrorLog /var/log/boa/error_log
AccessLog /var/log/boa/access_log
UseLocaltime
DocumentRoot /var/cache/distfiles
UserDir public_html
DirectoryIndex index.html
DirectoryMaker /usr/lib/boa/boa_indexer
KeepAliveMax 1000
KeepAliveTimeout 10
MimeTypes /etc/boa/mime.types
DefaultType text/plain
Alias /doc /usr/share/doc
Alias /icons /var/www/localhost/icons
Alias /distfiles /var/cache/distfiles
ScriptAlias /cgi-bin/ /var/www/localhost/cgi-bin/
PidFile /run/boa.pid
The /var/cache/distfiles directory is readable by all:
~ # stat /var/cache/distfiles
File: /var/cache/distfiles
Size: 98304 Blocks: 200 IO Block: 4096 directory
Device: 802h/2050d Inode: 854295 Links: 2
Access: (0775/drwxrwxr-x) Uid: ( 0/ root) Gid: ( 250/ portage)
Access: 2022-03-21 11:31:07.571755000 +0000
Modify: 2022-03-21 15:44:43.278010793 +0000
Change: 2022-03-21 15:44:43.278010793 +0000
Birth: 2022-03-18 19:24:56.282024446 +0000
Can you see anything amiss in the above setup, to explain why the server
does not start?
Gatling works, boa doesn't.
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<div>Somestimes, openRC isn't verbose enough when some services fail to start.<br></div><div dir="auto">When that happens to me, I just run the command from a terminal (with appropriate arguments), and that generally gives me a better error message that
I can troubleshoot properly.<br></div><div dir="auto"><br></div><div>Julien<br></div><div><br></div><div><br></div><div><br></div><div>Mar 23, 2022, 07:23 by
[email protected]:<br></div><blockquote class="tutanota_quote" style="border-left: 1px
solid #93A3B8; padding-left: 10px; margin-left: 5px;"><div>On Monday, 21 March 2022 16:17:04 GMT Michael wrote:<br></div><blockquote><div>I've moved my local portage distfiles server to a new installation, with no<br></div><div>changes in the
configuration. I expected www-servers/boa to start, but for<br></div><div>reasons I fail to understand it won't do so:<br></div><div><br></div><div>~ # rc-service -v boa start<br></div><div> * Caching service dependencies ...
[ ok<br></div><div>] * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh<br></div><div>/etc/init.d/ boa start<br></div><div> * Starting boa ...<br></div><div> * start-stop-daemon: fopen `/run/boa.pid': No such file or directory<br></div>
<div> * Detaching to start `/usr/sbin/boa' ...<br></div><div>[21/Mar/2022:15:46:43 +0000] Before parse_debug, debug_level is: 0<br></div><div>[21/Mar/2022:15:46:43 +0000] Enabling CGI Input debug level.<br></div><div>[21/Mar/2022:15:46:43 +0000] After
parse_debug, debug_level is: 4<br></div><div>gethostbyname:: Success<br></div><div> * start-stop-daemon: failed to start `/usr/sbin/boa'<br></div><div> * Failed to start boa<br></div><div>[ !! ]<br></div><div> * ERROR: boa failed to start<br></div><div>
<br></div><div><br></div><div>This is the content of my boa.conf:<br></div><div><br></div><div>~ # cat /etc/boa/boa.conf | grep ^[^#]<br></div><div>Port 5024<br></div><div>Listen 192.168.023<br></div><div>User nobody<br></div><div>Group nogroup<br></div><
ErrorLog /var/log/boa/error_log<br></div><div>AccessLog /var/log/boa/access_log<br></div><div>UseLocaltime<br></div><div>DocumentRoot /var/cache/distfiles<br></div><div>UserDir public_html<br></div><div>DirectoryIndex index.html<br></div><div>
DirectoryMaker /usr/lib/boa/boa_indexer<br></div><div>KeepAliveMax 1000<br></div><div>KeepAliveTimeout 10<br></div><div>MimeTypes /etc/boa/mime.types<br></div><div>DefaultType text/plain<br></div><div>Alias /doc /usr/share/doc<br></div><div>Alias /icons /
var/www/localhost/icons<br></div><div>Alias /distfiles /var/cache/distfiles<br></div><div>ScriptAlias /cgi-bin/ /var/www/localhost/cgi-bin/<br></div><div>PidFile /run/boa.pid<br></div><div><br></div><div><br></div><div>The /var/cache/distfiles directory
is readable by all:<br></div><div><br></div><div>~ # stat /var/cache/distfiles<br></div><div> File: /var/cache/distfiles<br></div><div> Size: 98304 Blocks: 200 IO Block: 4096 directory<br></div><div>Device: 802h/2050d Inode:
854295 Links: 2<br></div><div>Access: (0775/drwxrwxr-x) Uid: ( 0/ root) Gid: ( 250/ portage)<br></div><div>Access: 2022-03-21 11:31:07.571755000 +0000<br></div><div>Modify: 2022-03-21 15:44:43.278010793 +0000<br></div><div>Change: 2022-03-
21 15:44:43.278010793 +0000<br></div><div> Birth: 2022-03-18 19:24:56.282024446 +0000<br></div><div><br></div><div>Can you see anything amiss in the above setup, to explain why the server<br></div><div>does not start?<br></div></blockquote><div><br></div>
<div>Gatling works, boa doesn't.<br></div></blockquote><div dir="auto"><br></div> </body>
</html>
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)