Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-28, 08:49:16

Author Topic: Error: Starting httpd: (98)Address already in use: make_sock: could not bind to  (Read 8594 times)

0 Members and 1 Guest are viewing this topic.

Offline alexo

  • Junior Member
  • *
  • Posts: 45
  • Karma: +0/-0
    • View Profile
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:                                         

Quote
[  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 ---

Code: [Select]
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

Offline alexo

  • Junior Member
  • *
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Also, check such error in php-fpm/error.log


Code: [Select]
[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)

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
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.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline alexo

  • Junior Member
  • *
  • Posts: 45
  • Karma: +0/-0
    • View Profile
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 ?
« Last Edit: 2014-03-04, 16:22:37 by alexo »

Offline alexo

  • Junior Member
  • *
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Any advice pls !!!

Server was down every 2-3 hours.

Any ideas!?

Code: [Select]
root@server ~]# netstat -lnp | grep :80
tcp        0      0 :::80                       :::*                        LISTEN      9130/httpd.event

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Try change php-fpm_worker in php-type.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline alexo

  • Junior Member
  • *
  • Posts: 45
  • Karma: +0/-0
    • View Profile
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.

Quote
[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


Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
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.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline alexo

  • Junior Member
  • *
  • Posts: 45
  • Karma: +0/-0
    • View Profile
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.



Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Open /usr/local/lxlabs/kloxo/etc/process/apache file and then change 'graceful' to 'restart'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline alexo

  • Junior Member
  • *
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Done.

thank you

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
The same effect if you delete apache file.

The same way for httpd file (change to graceful) or delete the file.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline alexo

  • Junior Member
  • *
  • Posts: 45
  • Karma: +0/-0
    • View Profile
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

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
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.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix

Page created in 0.028 seconds with 18 queries.

web stats analysis