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-03-29, 13:25:18

Author Topic: [RESOLVED] Apache+nginx still dying after removing/adding domain  (Read 13123 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Nobody sees this ? chris ?

It all started after KloxoMR 7.0b with new configs

You just add domain:

- pages are stalled
- then pages instantly shows nginx error message
- then nothing is working at all apache+nginx died - no such server message from the browser
- then after a minute apache+nginx is restarted by watchdog and everything is working fine again

Quote
[Sat Sep 13 01:33:22 2014] [notice] FastCGI: process manager initialized (pid 31962)
[Sat Sep 13 14:06:16 2014] [notice] FastCGI: process manager initialized (pid 9202)
[Sat Sep 13 15:07:18 2014] [alert] (4)Interrupted system call: FastCGI: read() from pipe failed (0)
[Sat Sep 13 15:07:18 2014] [alert] (4)Interrupted system call: FastCGI: the PM is shutting down, Apache seems to have disappeared - bye
[Sat Sep 13 15:07:39 2014] [notice] FastCGI: process manager initialized (pid 19808)
[Sat Sep 13 15:08:16 2014] [notice] FastCGI: process manager initialized (pid 21851)
[Sat Sep 13 15:10:20 2014] [alert] (2)No such file or directory: FastCGI: read() from pipe failed (0)
[Sat Sep 13 15:10:20 2014] [alert] (2)No such file or directory: FastCGI: the PM is shutting down, Apache seems to have disappeared - bye
[Sat Sep 13 15:10:40 2014] [notice] FastCGI: process manager initialized (pid 28093)
[Sat Sep 13 15:11:17 2014] [notice] FastCGI: process manager initialized (pid 29858)
« Last Edit: 2014-09-22, 16:21:50 by Spacedust »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Apache+nginx still dying after removing/adding domain
« Reply #1 on: 2014-09-13, 16:40:12 »
See how it looks like !

It says no such file or directory in one place. But which file ???


Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Apache+nginx still dying after removing/adding domain
« Reply #2 on: 2014-09-13, 16:46:25 »
There are some nasty bugs - Mustafa fix this immediately !!!

This is the first one:

Quote
FCGIWrapper /home/kloxo/client/php5.fcgi .php

but Apache+nginx still dying even with only one domain.
« Last Edit: 2014-09-13, 16:51:42 by Spacedust »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Apache+nginx still dying after removing/adding domain
« Reply #3 on: 2014-09-15, 01:21:57 »
Still not fixed !

Quote
[root@c44-49 /]# tail -f /var/log/httpd/error_log
[Mon Sep 15 01:20:23 2014] [warn] RSA server certificate wildcard CommonName (CN) `*.lxlabs.com' does NOT match server name!?
[Mon Sep 15 01:20:23 2014] [warn] RSA server certificate wildcard CommonName (CN) `*.lxlabs.com' does NOT match server name!?
[Mon Sep 15 01:20:23 2014] [notice] Digest: generating secret for digest authentication ...
[Mon Sep 15 01:20:23 2014] [notice] Digest: done
[Mon Sep 15 01:20:23 2014] [notice] FastCGI: process manager initialized (pid 1984)
[Mon Sep 15 01:20:23 2014] [warn] RSA server certificate wildcard CommonName (CN) `*.lxlabs.com' does NOT match server name!?
[Mon Sep 15 01:20:23 2014] [warn] RSA server certificate wildcard CommonName (CN) `*.lxlabs.com' does NOT match server name!?
[Mon Sep 15 01:20:23 2014] [warn] RSA server certificate wildcard CommonName (CN) `*.lxlabs.com' does NOT match server name!?
[Mon Sep 15 01:20:23 2014] [warn] RSA server certificate wildcard CommonName (CN) `*.lxlabs.com' does NOT match server name!?
[Mon Sep 15 01:20:23 2014] [notice] Apache/2.2.29 (Unix) DAV/2 mod_fastcgi/2.4.7 mod_rpaf/0.6 mod_ssl/2.2.29 OpenSSL/1.0.1e-fips mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Mon Sep 15 01:20:57 2014] [notice] caught SIGTERM, shutting down
[Mon Sep 15 01:20:57 2014] [alert] (2)No such file or directory: FastCGI: read() from pipe failed (0)
[Mon Sep 15 01:20:57 2014] [alert] (2)No such file or directory: FastCGI: the PM is shutting down, Apache seems to have disappeared - bye
^C
[root@c44-49 /]# yum upgrade
Loaded plugins: fastestmirror, priorities, replace
Loading mirror speeds from cached hostfile
 * base: www.gtlib.gatech.edu
 * elrepo: ftp.nluug.nl
 * epel: mirror.its.dal.ca
 * extras: www.gtlib.gatech.edu
 * mratwork-epel: mirror.its.dal.ca
 * mratwork-ius-stable: mirror.amsiohosting.net
 * rpmforge: mirror.nl.leaseweb.net
 * updates: www.gtlib.gatech.edu
Setting up Upgrade Process
No Packages marked for Update

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Apache+nginx still dying after removing/adding domain
« Reply #4 on: 2014-09-15, 01:28:04 »
Happens on mod_ruid2 and suphp too.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Apache+nginx still dying after removing/adding domain
« Reply #5 on: 2014-09-15, 01:31:24 »
Happens on Apache only configuration too.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Apache+nginx still dying after removing/adding domain
« Reply #6 on: 2014-09-15, 01:33:51 »
Happens on nginx only configuration too:

2014/09/15 01:32:14 [crit] 12186#0: *3 open() "/home/httpd/tester.xxx.pl/stats/tester.xxx.pl-custom_log" failed (13: Permission denied) while logging request, client: 62.21.44.49, server: tester.xxx.pl, request: "GET /images/kloxo-mr.png HTTP/1.1", host: "www.tester.xxx.pl", referrer: "http://www.tester.xxx.pl/"
« Last Edit: 2014-09-15, 01:37:40 by Spacedust »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Apache+nginx still dying after removing/adding domain
« Reply #7 on: 2014-09-16, 22:04:07 »
Still not fixed even on Kloxo-MR 7.0.0.b-2014091602 with /script/cleanup. All pages are down till Kloxo executes magic commands:

21:03 Sep/16/2014: Closed Exec /usr/local/lxlabs/kloxo/cexe/closeinput '/etc/init.d/httpd graceful' >/dev/null 2>&1 &
21:03 Sep/16/2014: Closed Exec /usr/local/lxlabs/kloxo/cexe/closeinput '/etc/init.d/nginx restart' >/dev/null 2>&1 &



Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Apache+nginx still dying after removing/adding domain
« Reply #8 on: 2014-09-16, 22:12:48 »
Every delete/add domains, kloxo will be execute restart for services in queue (execute with createRestartFile).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Apache+nginx still dying after removing/adding domain
« Reply #9 on: 2014-09-16, 22:29:51 »
Every delete/add domains, kloxo will be execute restart for services in queue (execute with createRestartFile).

I know, but nginx+apache is dying before Kloxo executes /etc/init.d/nginx reload +/etc/init.d/httpd graceful

so you have about 20-60 seconds downtime on each domain added/removed...

It happens even on clean system with just 1 domain !

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Apache+nginx still dying after removing/adding domain
« Reply #10 on: 2014-09-17, 00:57:26 »
Interesting thing - if I use Kloxo-MR 6.5.1.b-2014070704 folder from backup then it all works again, so our configs are fine, the problem is inside Kloxo code. What was changed ???
« Last Edit: 2014-09-17, 01:15:24 by Spacedust »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Apache+nginx still dying after removing/adding domain
« Reply #11 on: 2014-09-17, 01:34:09 »
Happens on Kloxo-MR 7.0.0.b-2014082703 too. I need to test older versions to see where this bug was introduced.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Apache+nginx still dying after removing/adding domain
« Reply #12 on: 2014-09-17, 01:39:34 »
Suprise - Kloxo-MR 7.0.0.b-2014082402 works perfectly - so there must be a bug introduced from this version.

kloxomr7-7.0.0.b-2014082701.mr.noarch - is not working ok
« Last Edit: 2014-09-17, 01:41:29 by Spacedust »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Apache+nginx still dying after removing/adding domain
« Reply #13 on: 2014-09-18, 12:49:11 »
I've tested latest configs with version Kloxo-MR 7.0.0.b-2014082402 and all works fine.

Something is inside Kloxo source code which is causing this ! I suspect httpdocs directory.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Apache+nginx still dying after removing/adding domain
« Reply #14 on: 2014-09-18, 13:13:19 »
The problem is inside /usr/local/lxlabs/kloxo/httpdocs/driver/web directory.

Now we have to find which file is causing this !

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.046 seconds with 18 queries.

web stats analysis