You are not logged in.

#1 2019-07-11 10:57:49

Rumcajs
Member
Registered: 2009-09-25
Posts: 37

[Solved] lighttpd 100 cpu usage after start

Hi,

i can't figure out why lighttpd stuck at 100% CPU usage after startup, i have try to start the srv even with "lighttpd -tt -f /etc/lighttpd/lighttpd.conf" its stuck to without any output

/etc/lighttpd/lighttpd.conf :

server.modules += (
   "mod_access",
   "mod_accesslog",
)

server.port		= 80
server.username		= "http-srv"
server.groupname	= "http-srv"
server.document-root	= "/var/http-srv/http"
server.errorlog		= "/var/log/lighttpd/error.log"
accesslog.filename      = "/var/log/lighttpd/access.log"
dir-listing.activate	= "enable"
index-file.names	= ( "index.html" )
mimetype.assign		= (
				".html" => "text/html",
				".txt" => "text/plain",
				".css" => "text/css",
				".js" => "application/x-javascript",
				".jpg" => "image/jpeg":,
				".jpeg" => "image/jpeg",
				".gif" => "image/gif",
				".png" => "image/png",
				"" => "application/octet-stream")

include "conf.d/cgi.conf"

Permissions :

/var/http-srv/http  : drwxrwx---  root:http-srv
/var/log/lighttpd   : drwxrwx---  root:http-srv
/var/cache/lighttpd : drwxrwx---  root:http-srv

/etc/passwd

http-srv:x:989:989::/var/http-srv/http:/var/bin/nologin

/etc/group

http-srv:x:989:andy,http-srv

sudo systemctl start lighttpd

● lighttpd.service - Lighttpd Web Server
   Loaded: loaded (/usr/lib/systemd/system/lighttpd.service; disabled; vendor preset: disabled)
   Active: active (running) since Thu 2019-07-11 12:59:16 CEST; 3s ago
 Main PID: 8870 (lighttpd-angel)
    Tasks: 2 (limit: 4915)
   Memory: 624.0K
   CGroup: /system.slice/lighttpd.service
           ├─8870 /usr/bin/lighttpd-angel -D -f /etc/lighttpd/lighttpd.conf
           └─8871 /usr/bin/lighttpd -D -f /etc/lighttpd/lighttpd.conf

Jul 11 12:59:16 archbox systemd[1]: Started Lighttpd Web Server.

sudo systemctl stop lighttpd (takes a while)
sudo systemctl status lighttpd

● lighttpd.service - Lighttpd Web Server
   Loaded: loaded (/usr/lib/systemd/system/lighttpd.service; disabled; vendor preset: disabled)
   Active: failed (Result: timeout) since Thu 2019-07-11 13:03:02 CEST; 45s ago
  Process: 8870 ExecStart=/usr/bin/lighttpd-angel -D -f /etc/lighttpd/lighttpd.conf (code=killed, signal=KILL)
 Main PID: 8870 (code=killed, signal=KILL)

Jul 11 12:59:16 archbox systemd[1]: Started Lighttpd Web Server.
Jul 11 13:01:32 archbox systemd[1]: Stopping Lighttpd Web Server...
Jul 11 13:01:32 archbox lighttpd-angel[8870]: lighttpd-angel.c.156: child (pid=8871) exited unexpectedly with signal 2, restarting
Jul 11 13:03:02 archbox systemd[1]: lighttpd.service: State 'stop-sigterm' timed out. Killing.
Jul 11 13:03:02 archbox systemd[1]: lighttpd.service: Killing process 8870 (lighttpd-angel) with signal SIGKILL.
Jul 11 13:03:02 archbox systemd[1]: lighttpd.service: Killing process 9022 (lighttpd) with signal SIGKILL.
Jul 11 13:03:02 archbox systemd[1]: lighttpd.service: Main process exited, code=killed, status=9/KILL
Jul 11 13:03:02 archbox systemd[1]: lighttpd.service: Failed with result 'timeout'.
Jul 11 13:03:02 archbox systemd[1]: Stopped Lighttpd Web Server.

Im really lost here, don't have a clue what it can be sad

Last edited by Rumcajs (2019-07-20 06:12:43)

Offline

#2 2019-07-17 16:32:58

ua4000
Member
Registered: 2015-10-14
Posts: 418

Re: [Solved] lighttpd 100 cpu usage after start

Offline

#3 2019-07-20 06:12:19

Rumcajs
Member
Registered: 2009-09-25
Posts: 37

Re: [Solved] lighttpd 100 cpu usage after start

I have deleted the /etc/lighttpd/lighttpd.conf file and start with a templete from lighttpd site, its works now, can't say why it was not working with the above setup.

Offline

Board footer

Powered by FluxBB