Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > Bugs > Topic : Services stopped working but WEBUZO working smoothly



Threaded Mode | Print  

 Services stopped working but WEBUZO working smoothly, After upgrading into latest version 2.1.6 I experiences some errors such as service stopped unexpectedly (11 Replies, Read 30542 times)
Arick
Group: Member
Post Group: Newbie
Posts: 9
Status:

Let's help the others
Hi all. Hope you all are doing well today.
I really love Webuzo and would like to 'report' (I feel the word 'notify' is more suitable for this situation) something weird.

After using Webuzo 2.1.6, the services in my VPS often stopped unexpectedly. Few services which failed to start are PHP-FPM and NGINX (yes I didn't use Apache).
It stopped almost daily and I have to start it manually.

I have done basic testing such as:
- restarting Webuzo by using "service webuzo restart" and webuzo restarted nicely as expected but Nginx and PHP-FPM will be back at their last condition. If it is stopped then it would reamain stopped while webuzo restart. If it is running while webuzo restarted, ti will run nicely too.
- Sometime starting nginx and php-fpm via "Webuzo service panel" is not possible. However, "restarting" it seems working nicely.

I have no idea why both Nginx and Php-FPM stopped working after more than 24 hours. I think it maybe have something to do with the traffic or server configuration.
While looking at the traffic (including bots/other access), it seems my site only get lower traffic. Plus, I look at the hits, resources consumption, any in/out traffic and it looks the services (nginx and php-FPM) 'die' not because of the traffic.
I was thinking maybe it is server issue or has something to do with the OS.
I have re-installed both webuzo and Centos (32 and 64, I tried both of them) and the problem persist.

I didn't think it is a bug but I think writing in 'Bug' section is more suitable than in 'support' forum . (I was thinking support forum is only if the user need "support"). Just sharing my experience while using the latest webuzo on production sites.

I was thinking using cronjob to start both services (nginx and php-fpm) is good idea but then I think it is better to notify staff about my experience.

By the way, I see the demo (http://demo.webuzo.com/enduser/) return an error: "HTTP Error 503: The requested service is unavailable"
Yes, that is what I got every time WebServer stopped working (both nginx and php-fpm failed to start but Webuzo is still running fine).
The reason why I write this is because I think the staff may aware about Nginx or other service stopped unexpectedly almost daily.
If anyone using Webuzo and didn't get teh error maybe there is something wrong with my VPS/server. If that is what was happen, just ignore this thread. :)

Arick

-----------------------
Always remember: Help the other whenever possible.
IP: --   

Services stopped working but WEBUZO working smoothly
valley
Group: Webuzo Team
Post Group: Super Member
Posts: 1644
Status:
What do the NGINX and PHP-FPM logs have to say ?
They might help you trace the cause for the services to fail every 24 hours.

-----------------------
Webuzo : Single User Control Panel
Join Webuzo :
Facebook
Twitter

IP: --   

Services stopped working but WEBUZO working smoothly
Arick
Group: Member
Post Group: Newbie
Posts: 9
Status:

Let's help the others
Thanks for the reply.
I have checked the log file:
  1. NginX at "/usr/local/apps/nginx/var/log/error.log" and there is no error at all (no information at all/ empty file)
  2. NginX at "/usr/local/apps/nginx/var/error_log" and it print usual activity visible in 'WebServer log' file
However, while looking at "/usr/local/apps/php54/var/log/php-fpm.log", I get this information:
Quote
[21-Jan-2014 10:16:01] ERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use (98) [21-Jan-2014 10:16:01] ERROR: FPM initialization failed [21-Jan-2014 10:17:01] ERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use (98) [21-Jan-2014 10:17:01] ERROR: FPM initialization failed [21-Jan-2014 10:18:01] ERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use (98) [21-Jan-2014 10:18:01] ERROR: FPM initialization failed [21-Jan-2014 10:19:01] ERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use (98) [21-Jan-2014 10:19:01] ERROR: FPM initialization failed [21-Jan-2014 10:20:01] ERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use (98) [21-Jan-2014 10:20:01] ERROR: FPM initialization failed [21-Jan-2014 10:21:01] ERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use (98) [21-Jan-2014 10:21:01] ERROR: FPM initialization failed [21-Jan-2014 10:22:01] ERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use (98) [21-Jan-2014 10:22:01] ERROR: FPM initialization failed [21-Jan-2014 10:23:01] ERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use (98) [21-Jan-2014 10:23:01] ERROR: FPM initialization failed [21-Jan-2014 10:24:01] ERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use (98) [21-Jan-2014 10:24:01] ERROR: FPM initialization failed [21-Jan-2014 10:25:01] ERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use (98) [21-Jan-2014 10:25:01] ERROR: FPM initialization failed [21-Jan-2014 10:26:01] ERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use (98) [21-Jan-2014 10:26:01] ERROR: FPM initialization failed [21-Jan-2014 10:27:01] ERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use (98) [21-Jan-2014 10:27:01] ERROR: FPM initialization failed
Service in Webuzo down again (about twenty hour after it started working correctly). At this time, three services were stopped:
  1. NginX
  2. PHP-FPM
  3. Pure-FTPD

I have setup cronjob to start a script that will 'start' both NginX and PHP-FPM if it stopped by anything. However, the script unable to 'start' both PHP-FPM and NginX'. The strange thing is even starting it via Webuzo Control Panel or root is not possible. However, 'Restart" it via Webuzo and Root work flawlessly.

While logging in Root, I use this command: "service --status--all" and here is the result:
Quote

crond (pid  1071) is running...
Status of csf:Error: /sbin/ip6tables (ip6tables binary location) does not exist!, at line 41

httpd is stopped
exim (pid  20417) is running...
htcacheclean is stopped
Table: nat
Chain PREROUTING (policy ACCEPT)
num  target    prot opt source              destination

Chain POSTROUTING (policy ACCEPT)
num  target    prot opt source              destination

Chain OUTPUT (policy ACCEPT)
num  target    prot opt source              destination

Table: mangle
Chain PREROUTING (policy ACCEPT)
num  target    prot opt source              destination

Chain INPUT (policy ACCEPT)
num  target    prot opt source              destination

Chain FORWARD (policy ACCEPT)
num  target    prot opt source              destination

Chain OUTPUT (policy ACCEPT)
num  target    prot opt source              destination

Chain POSTROUTING (policy ACCEPT)
num  target    prot opt source              destination

Table: filter
Chain INPUT (policy ACCEPT)
num  target    prot opt source              destination

Chain FORWARD (policy ACCEPT)
num  target    prot opt source              destination

Chain OUTPUT (policy ACCEPT)
num  target    prot opt source              destination

Status of lfd:lfd is stopped

SUCCESS! MySQL running (16317)
version: 9.8.2rc1-RedHat-9.8.2-0.23.rc1.el6_5.1
CPUs found: 8
worker threads: 8
number of zones: 74
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
recursive clients: 0/0/1000
tcp clients: 0/100
server is up and running
named (pid  19166) is running...
netconsole module not loaded
Configured devices:
lo venet0
Currently active devices:
lo venet0
nginx (pid 17100) is running...
nmbd is stopped
nscd is stopped
Usage: perl-fcgi {start|stop|restart}
php-fpm (pid 17950) is running
php-fpm stopped

portreserve is stopped
status: Unknown job: pure-ftpd
quota_nld is stopped
rdisc is stopped
rpcbind is stopped
rsyslogd (pid  653) is running...
sandbox is stopped
saslauthd (pid  932) is running...
sendmail is stopped
sm-client is stopped
smbd is stopped
snmpd is stopped
snmptrapd is stopped
openssh-daemon (pid  727) is running...
nginx (pid 626) is running...
php-fpm (pid 638) is running...

winbindd is stopped
xinetd (pid  734) is running...

I saw there are two PHP-FPM and NginX PID in the log above (i have no idea it is normal or not) but I use default config for NginX with only one Worker Process.
Most o the times, the log in Webuzo Panel (WebServer log) said "NginX PID is XX" but when I checked it via root it was "YX". As an example, Webuzo panel said in Webserver log if NginX PID is 17101 but when I checked via root it says NginX with PID 1700. Another PID (look nGinX PID above), 626 is not even listed in webserver log.

About Pure-FTP stopped working correctly, I have no idea about it but if we look at the log above, status of the Pure-FTP is "Unknown job". Maybe this is what cause the trouble (just my assumption).
By the way, checking the status of Pure-FTPD via root is not possible when it is under "unknown job".

Arick

-----------------------
Always remember: Help the other whenever possible.
IP: --   

Services stopped working but WEBUZO working smoothly
Arick
Group: Member
Post Group: Newbie
Posts: 9
Status:

Let's help the others
I see the first log is somewhat hard to read. I couldn't edit my post above as I cannot find 'EDIT' menu.
I hope it readable for anyone.

Anyone know where is the edit button? :)

-----------------------
Always remember: Help the other whenever possible.
IP: --   

Services stopped working but WEBUZO working smoothly
Arick
Group: Member
Post Group: Newbie
Posts: 9
Status:

Let's help the others
If it is possible, you may want to check the demo to find out whether the CSF and LFD were started successfully or not.

While looking at the log provided above, Do you think CSF and LFD is running smoothly? Is it actually started or stopped?. I install CSF via Webuzo APPS panel.

I was thinking maybe (just maybe) CSF and LFD were not working correctly (partially or at all).

-----------------------
Always remember: Help the other whenever possible.
IP: --   

Services stopped working but WEBUZO working smoothly
pinoyjunction
Group: Member
Post Group: Newbie
Posts: 17
Status:
Did you resolve your problem? It happened to me before.

Here's what I did.

I installled PHP 5.5
Deleted PHP 5.3
Installed apache.
Uninstalled apache.

Error:
Code

ERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use


Run these commands as root:

fuser -k 80/tcp
service nginx start

How to automatically start nginx on reboot:

chkconfig nginx on

After performing the steps above, go to services and restart all the running processes.

Reboot your server and check all your services.



IP: --   

Services stopped working but WEBUZO working smoothly
fijinetworks
Group: Member
Post Group: Newbie
Posts: 2
Status:
Quote From : pinoyjunction February 19, 2014, 1:05 am
Did you resolve your problem? It happened to me before.

Here's what I did.

I installled PHP 5.5
Deleted PHP 5.3
Installed apache.
Uninstalled apache.

Error:
Code

ERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use


Run these commands as root:

fuser -k 80/tcp
service nginx start

How to automatically start nginx on reboot:

chkconfig nginx on

After performing the steps above, go to services and restart all the running processes.

Reboot your server and check all your services.



I was experiencing the same issue and followed your steps and it seems to have solved my problem with Nginx

Thank you for posting your solution
IP: --   

Services stopped working but WEBUZO working smoothly
doganmanis
Group: Member
Post Group: Newbie
Posts: 6
Status:
thanks it work for me too :D
IP: --   

Services stopped working but WEBUZO working smoothly
swizeus
Group: Member
Post Group: Newbie
Posts: 4
Status:
Dear all,

I just key in fuser -k 80/tcp and service webuzo restart
but I can't access the files to my server at all

please help

thanks
IP: --   

Services stopped working but WEBUZO working smoothly
valley
Group: Webuzo Team
Post Group: Super Member
Posts: 1644
Status:
Quote From : swizeus March 9, 2015, 4:55 pm
Dear all,

I just key in fuser -k 80/tcp and service webuzo restart
but I can't access the files to my server at all

please help

thanks


Restart Webuzo as follows

Root > service webuzo restart

Restart the services from the Webuzo Panel
http://webuzo.com/wiki/Restart_services

Hope this helps :)


-----------------------
Webuzo : Single User Control Panel
Join Webuzo :
Facebook
Twitter

IP: --   

Services stopped working but WEBUZO working smoothly
swizeus
Group: Member
Post Group: Newbie
Posts: 4
Status:
Unfortunately that didn't work. I restart the service, restart the VPS still can't access the IP. What an expensive experience, I cleaned up the entire VPS, reinstall webuzo and reinput my articles in wordpress. A real expensive experience
IP: --   

Services stopped working but WEBUZO working smoothly
valley
Group: Webuzo Team
Post Group: Super Member
Posts: 1644
Status:
Quote From : swizeus March 10, 2015, 12:24 pm
Unfortunately that didn't work. I restart the service, restart the VPS still can't access the IP. What an expensive experience, I cleaned up the entire VPS, reinstall webuzo and reinput my articles in wordpress. A real expensive experience


Restarting the webuzo service should get the webuzo panel up and running, and restarting the services gets the sites up and running.
Re-installing the server is not the solution, you can re-install(remove and install) the system applications instead.

http://webuzo.com/wiki/Restart_services

You can provide the steps to replicate the issue and we shall debug and resolve it ASAP.


-----------------------
Webuzo : Single User Control Panel
Join Webuzo :
Facebook
Twitter

IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is January 19, 2021, 11:51 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 10  |  Page Created In:0.554