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?
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.
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 /
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
I don't know anything about boa, but I'm fairly certain that
Listen 192.168.023
is never going to work since that's obviously not a valid IP address to listen on.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 302 |
Nodes: | 16 (2 / 14) |
Uptime: | 99:14:02 |
Calls: | 6,767 |
Calls today: | 5 |
Files: | 12,295 |
Messages: | 5,376,405 |
Posted today: | 1 |