Project

General

Profile

Actions

Bug #2709

closed

webgui cannot restart if php is hung

Added by Jeremy Porter over 12 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Web Interface
Target version:
-
Start date:
12/03/2012
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.1
Affected Architecture:

Description

If php crashes or hangs it appears to leave stale unix domain sockets in /tmp. Requests to the default URL will return ok, "GET / HTTP/1.1" will work. Other requests will fail, with
no response. The restart script "/etc/rc.restart_webgui" does not restart php, and lighttpd does not appear to be able to connect to the http process after this.

Actions #1

Updated by Danilo Baio over 12 years ago

The same is happening with me (2.0.2)

% git diff
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index dc369b8..a215f61 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -733,6 +733,9 @@ function system_webgui_start() {
        if ($g['booting'])
                echo gettext("Starting webConfigurator...");

+       /* kill any remain(s) of php-sochet(s) */
+       exec("find /tmp -name \"php-fastcgi.socket*\" -exec rm -rf {} \;");
+
        /* kill any running lighttpd */
        killbypid("{$g['varrun_path']}/lighty-webConfigurator.pid");

% 
Actions #2

Updated by Jim Pingle over 12 years ago

  • Status changed from New to Feedback

This should be fixed/irrelevant now on 2.0.3 and 2.1. Many related changes in lighttpd and php config were made to fix this and similar issues, including the change shown on this ticket already.

Actions #3

Updated by Chris Buechler about 11 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF