MRatWork Forum by Mustafa Ramadhan
Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: alexo on 2014-03-04, 14:43:45
-
Hello
During last 3-4 days my VPS account was down several times. And each time when i try to restart httpd i got a strange error:
[ OK ]
Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
[FAILED]
I'm on CentOS release 5.10 (Final), 3gb RAM, 1 account (+ 1admin account) and just 1 site.
Php 53u_ (as 5.3.28)
php type - php-fpm_event (enable php 5.2)
apache memory optimize- ---none---
mysql convert --none ---
sudo netstat -tulpn| grep :80
tcp 0 0 :::80 :::* LISTEN 31286/httpd.event
After few restarts vps become online, but after 3-4 hours i got the same picture - VPS is down, and the same error.
Any advice !!!
thank you
-
Also, check such error in php-fpm/error.log
[04-Mar-2014 05:44:34] ERROR: failed to ptrace(PEEKDATA) pid 31640: Input/output error (5)
[04-Mar-2014 05:44:34] ERROR: failed to ptrace(PEEKDATA) pid 31644: Input/output error (5)
[04-Mar-2014 05:45:04] ERROR: failed to ptrace(PEEKDATA) pid 31635: Input/output error (5)
[04-Mar-2014 05:45:24] ERROR: failed to ptrace(PEEKDATA) pid 31463: Input/output error (5)
-
There look like httpd not able bind to port 80 because another service use it or previous httpd service not able to stopped.
Try reboot and watch this issue after that.
-
Thank you
Each time it happened i try to reboot httpd, mysqld, kill -9 mysql, and reboot system and server become online, but after 0.5 hour-6hours it repeats.
Can you pls advice to what proccess i must watch ?
-
Any advice pls !!!
Server was down every 2-3 hours.
Any ideas!?
root@server ~]# netstat -lnp | grep :80
tcp 0 0 :::80 :::* LISTEN 9130/httpd.event
-
Try change php-fpm_worker in php-type.
-
Of course during last 2-3 days i tried and this too - to php-fpm_worker, but the same picture. :-[
--
During last 8 hours with this configuration my VPS account was ONLINE, w/o any downtime, but i'm sure that it's just temporary.
[root@server ~]# sh /script/sysinfo
A. Kloxo-MR: 6.5.0.f-2014020301
B. OS: CentOS release 5.10 (Final) i686
C. Apps:
1. MySQL: mysql55-5.5.36-1.ius.el5
2. PHP: php53u-5.3.28-1.ius.el5
3. Httpd: httpd-2.2.26-2.el5
4. Lighttpd: --uninstalled--
5. Nginx: --uninstalled--
6. Qmail: qmail-toaster-1.03-1.3.35.mr.el5
- with: courier-imap-toaster-4.1.2-1.3.14.mr.el5
7. Dns: bind-9.9.5-1.el5
D. Php-type (for Httpd/proxy): php-fpm_event
E. Memory:
total used free shared buffers cached
Mem: 3072 891 2180 0 0 596
-/+ buffers/cache: 295 2776
Swap: 0 0 0
-
Kloxo/Kloxo-MR have a feature for restart of certain services if stop. They use watchdog for this purpose.
Add email address in 'Information' and Kloxo-MR will be send notification for you.
-
Thx MRatWork, add my email in "Information" tab to get notifications (anyway i got this notifications via emails and SMS from different uptime services too - uptimerobot.com, monitor.us and pingdom.com).
Also , i don't sure, that any service stops, as because during that downtimes users cann't open website, but i cann't claim that website/httpd or mysqld was stopped/offline.
-
Open /usr/local/lxlabs/kloxo/etc/process/apache file and then change 'graceful' to 'restart'.
-
Done.
thank you
-
The same effect if you delete apache file.
The same way for httpd file (change to graceful) or delete the file.
-
Sorry MRatWork don't understand you right. Can you explain it :-) I did it as you told me in previous post, but don't understand why?
Why or when i need to "delete apache file" - and what effect can i get changing "graceful" to "restart ".
I'm sorry if my questions are a little "Noob"
thank you
-
I mean delete /usr/local/lxlabs/kloxo/etc/process/apache and /usr/local/lxlabs/kloxo/etc/process/httpd.
But, better copy to custom.apache and custom.httpd because Kloxo-MR will be read custom.apache/custom.httpd if exists instead read apache and httpd file.