MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: NetMajom on 2014-08-21, 07:10:24

Title: All system crashed!
Post by: NetMajom on 2014-08-21, 07:10:24
Hello

I dont know what happenned, because all system worked well at yesterday night, but today morning all system crashed. Please see...

What can i do?

Code: [Select]
A(z) mysqld Stop:                                    [  OK  ]
A(z) mysqld Start:                                      [  OK  ]
A named Stop:                                        [  OK  ]
A named Start:
Error in named configuration:
/etc/named.conf:10: open: /opt/configs/bind/conf/defaults/named.acl.conf: file not found
                                                           [FAILED]
Stopping traffic_cop:                                      [  OK  ]
Stopping traffic_manager:                                  [  OK  ]
Stopping traffic_server:                                   [  OK  ]
Starting Apache Traffic Server:                            [  OK  ]
A(z) httpd Stop:                                     [FAILED]
A(z) httpd Start: httpd.event: Syntax error on line 63 of /etc/httpd/conf/httpd.conf: Syntax error on line 91 of /etc/httpd/conf.d/~lxcenter.conf: Include directory '/opt/configs/apache/conf/defaults' not found
                                                           [FAILED]
Stopping Hiawatha web server:                              [FAILED]
Starting Hiawatha web server: Error while including '/opt/configs/hiawatha/conf/defaults'
                                                           [FAILED]
Stopping qmail-toaster: svscan qmail logging.
qmail-send: no killed process
Starting qmail-toaster: svscan.
xinetd Stop:                                    [  OK  ]
xinetd Start:                                      [  OK  ]
Execute fixlxphpexe for php53s...
Stopping kloxo-phpcgi:                                     [  OK  ]
Starting kloxo-phpcgi:                                     [  OK  ]
Stopping kloxo-hiawatha:                                   [  OK  ]
Starting kloxo-hiawatha:                                   [  OK  ]
Stopping php53m-fpm:                                       [  OK  ]
Starting php53m-fpm:                                       [  OK  ]

Title: Re: All system crashed!
Post by: chrisf on 2014-08-21, 07:27:39
First SSH, run 'sh /script/upcp' as root.

Login to panel, switch to a non-apache webserver (lightppd) in switch programs.  After it has completed, wait about 5 minutes, switch it back to whatever webserver you want.

Ssh:
sh /script/restart-all

Do that then report.  I will help.  I already have kloxomr7 running on two servers.
Title: Re: All system crashed!
Post by: azzureal on 2014-08-21, 07:49:21
I have the same error.
I run /script/upcp and upcp -y but the same.

[root@localhost home]# /etc/init.d/httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd: Syntax error on line 3 of /opt/configs/apache/conf/defaults/init.conf:
Invalid command 'Define', perhaps misspelled or defined by a module not included in the server configuration
                                                           [FAILED]
Title: Re: All system crashed!
Post by: NetMajom on 2014-08-21, 09:56:33
Hello

Thank you for your reply, i try to do that, but the error is the same.  I cannot enter any of my websites, the kloxo too.  Nothing changed  :'( please help, any other solution?

Code: [Select]
*** Executing Update (cleanup) - END ***

*** Restart services - BEGIN ***
mysqld stop:                                    [  OK  ]
mysqld start:                                      [  OK  ]
A named stop:                                        [  OK  ]
A named start:
Error in named configuration:
/etc/named.conf:10: open: /opt/configs/bind/conf/defaults/named.acl.conf: file not found
                                                           [FAILED]
Stopping traffic_cop:                                      [  OK  ]
Stopping traffic_manager:                                  [  OK  ]
Stopping traffic_server:                                   [  OK  ]
Starting Apache Traffic Server:                            [  OK  ]
A(z) httpd stop:                                     [FAILED]
A(z) httpd start: Syntax error on line 3 of /opt/configs/apache/conf/defaults/init.conf:
Invalid command 'Define', perhaps misspelled or defined by a module not included in the server configuration
                                                           [FAILED]
Stopping Hiawatha web server:                              [  OK  ]
Starting Hiawatha web server:                              [  OK  ]
Stopping qmail-toaster: svscan qmail logging.
qmail-send: no killed process
Starting qmail-toaster: svscan.
A(z) xinetd stop:                                    [  OK  ]
A(z) xinetd strart:                                      [  OK  ]
Execute fixlxphpexe for php53s...
Stopping kloxo-phpcgi:                                     [  OK  ]
Starting kloxo-phpcgi:                                     [  OK  ]
Stopping kloxo-hiawatha:                                   [  OK  ]
Starting kloxo-hiawatha:                                   [  OK  ]
Stopping php53m-fpm:                                       [  OK  ]
Starting php53m-fpm:                                       [  OK  ]
*** Restart services - END ***


*** Process Time: 00:00:03:32.212511 (dd:hh:mm:ss:xxxxxx) ***

Title: Re: All system crashed!
Post by: MRatWork on 2014-08-21, 10:14:49
Update Kloxo-MR and then run cleanup.

Or, try 'yum install mod_define'.
Title: Re: All system crashed!
Post by: NetMajom on 2014-08-21, 10:42:06
Almost good :)

No i can enter the kloxo, the named work, but i use hiawatha proxy and the error is the same. I try to switch another web server like apache (in the apache web server the httpd good), or any, and after that restart, but when i switch back to hiawatha proxy the error again. what can i do?

Code: [Select]
httpd stop: [Failed]
httpd start: (98)Address already in use: make_sock: could not bind to address 127.0.0.1:30080
no listening sockets available, shutting down
Unable to open logs
                                                           [FAILED]
Title: Re: All system crashed!
Post by: azzureal on 2014-08-21, 10:49:40
I tried to run yum install mod_define and cleanup, but the same message.
Title: Re: All system crashed!
Post by: MRatWork on 2014-08-21, 11:06:17
Inform here 'sh /script/sysinfo'.
Title: Re: All system crashed!
Post by: NetMajom on 2014-08-21, 11:15:22
Here it is:

Code: [Select]
A. Kloxo-MR: 7.0.0.b-2014082102

B. OS: CentOS release 6.5 (Final) x86_64

C. Apps:
   1. MySQL: mysql55-5.5.39-1.ius.el6.x86_64
   2. PHP: php54-5.4.31-1.ius.el6.x86_64
   3. Httpd: httpd-2.2.27-1.mr.e6.x86_64
   4. Lighttpd: --uninstalled--
   5. Hiawatha: hiawatha-9.7.b-1.mr.el6.x86_64
   6. Nginx: --uninstalled--
   7. Cache: trafficserver-4.0.1-1.mr.el6.x86_64
   8. Dns: bind-9.9.5-1.el6.x86_64
   9. Qmail: qmail-toaster-1.03-1.3.38.mr.el6.x86_64
      - with: courier-imap-toaster-4.1.2-1.3.16.mr.el6.x86_64

D. Php-type (for Httpd/proxy): php-fpm_event

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:         31989       2023      29965          0        336        690
   -/+ buffers/cache:        995      30993
   Swap:         3999         56       3943

Title: Re: All system crashed!
Post by: azzureal on 2014-08-21, 11:21:49
Here mine with fresh installed today

A. Kloxo-MR: 7.0.0.b-2014082002

B. OS: CentOS release 6.5 (Final) x86_64

C. Apps:
   1. MySQL: mysql55-5.5.39-1.ius.el6.x86_64
   2. PHP: php53u-5.3.28-5.ius.el6.x86_64
   3. Httpd: httpd-2.2.27-1.mr.e6.x86_64
   4. Lighttpd: --uninstalled--
   5. Hiawatha: hiawatha-9.7.b-1.mr.el6.x86_64
   6. Nginx: --uninstalled--
   7. Cache: --uninstalled--
   8. Dns: bind-9.8.2-0.23.rc1.el6_5.1.x86_64
   9. Qmail: qmail-toaster-1.03-1.3.38.mr.el6.x86_64
      - with: courier-imap-toaster-4.1.2-1.3.16.mr.el6.x86_64
Title: Re: All system crashed!(Solved)
Post by: azzureal on 2014-08-21, 11:43:54
I just put in 'LoadModule define_module modules/mod_define.so' in httpd.conf.

Thanks
Title: Re: All system crashed!
Post by: MRatWork on 2014-08-21, 12:04:10
It's make double declare. Move to /etc/httpd/conf.d/define.conf
Title: Re: All system crashed!
Post by: NetMajom on 2014-08-21, 12:20:46
And what about my httpd error? I dont make any change on it. I changed web proxy again, and switch back, but nothing. the error is on...
Title: Re: All system crashed!
Post by: MRatWork on 2014-08-21, 12:29:55
Try update to latest version. It's fix hiawatha-proxy.

To fix this issue (without update), change 'Include /opt/configs/hiawatha/conf/domains' to 'Include /opt/configs/hiawatha/conf/proxies' in '/etc/hiawatha/hiawatha.conf'
Title: Re: All system crashed!
Post by: NetMajom on 2014-08-21, 13:12:50
I have the latest version, so i cant update.

I made the changes what you write, after that i make 2times restart, but the error still exist in the hiawatha proxy. What now?

Code: [Select]
The httpd stop:                                     [FAILED]
The httpd start: (98)Address already in use: make_sock: could not bind to address 127.0.0.1:30080
no listening sockets available, shutting down
Unable to open logs
                                                           [FAILED]
Title: Re: All system crashed!
Post by: MRatWork on 2014-08-21, 14:26:18
Try switch to 'lighttpd' and switch back to 'hiawatha-proxy'. Better after that, run 'sh /script/fixweb' from ssh.
Title: Re: All system crashed!
Post by: NetMajom on 2014-08-21, 17:47:31
Hi

I made that 5-6 times. (i rebooted the system after the modification) but nothing. the error still exist. What is the problem?

Code: [Select]
httpd Stop:                                     [FAILED]
httpd start: (98)Address already in use: make_sock: could not bind to address 127.0.0.1:30080
no listening sockets available, shutting down
Unable to open logs
                                                           [FAILED]
Title: Re: All system crashed!
Post by: MRatWork on 2014-08-21, 18:21:53
I didn't found this issue when update VPS for this forum if using 7.0.0.b-2014082104.

Make sure your Kloxo-MR using this version with 'yum list kloxomr7'.
Title: Re: All system crashed!
Post by: NetMajom on 2014-08-21, 18:30:08
I dont have VPS, i have dedicated server. What is the problem?

here it is..

Code: [Select]
[root@b209 ~]# yum list kloxomr7
Loaded plugins: fastestmirror, priorities, protectbase, replace, security
Loading mirror speeds from cached hostfile
 * Webmin: webmin.mirror.somersettechsolutions.co.uk
 * base: mirror.de.leaseweb.net
 * extras: mirror.de.leaseweb.net
 * mratwork-epel: mirror.de.leaseweb.net
 * mratwork-ius-stable: ius.cu.be
 * updates: mirror.de.leaseweb.net
0 packages excluded due to repository protections
Installed Packages
kloxomr7.noarch      7.0.0.b-2014082104.mr      @mratwork-testing-neutral-noarch
Title: Re: All system crashed!
Post by: MRatWork on 2014-08-21, 19:55:27
It's strange because only apache (in proxy) using port 30080.

Inform here 'ps aux|grep httpd' and 'service httpd status'.
Title: Re: All system crashed!
Post by: NetMajom on 2014-08-21, 20:04:51
Yeah strange, and frustrating :)

Here:

Code: [Select]
[root@b209 ~]# ps aux|grep httpd
root     13653  0.0  0.0 105316   904 pts/0    S+   20:04   0:00 grep httpd
root     20657  0.0  0.0 229376   116 ?        Ss   Aug07   0:33 /usr/sbin/httpd.event
apache   20677  0.0  0.0 2212036 4868 ?        Sl   Aug07   1:32 /usr/sbin/httpd.event

and

Code: [Select]
[root@b209 ~]# service httpd status
The httpd stopped
Title: Re: All system crashed!
Post by: MRatWork on 2014-08-21, 21:30:24
Try 'kill -9 20657' and 'kill -9 20677'. It's make kill/shutdown application via their PID.
Title: Re: All system crashed!
Post by: fossxplorer on 2014-08-21, 22:42:00
@NetMajom, also paste here the output of 'netstat -tulpn | grep :30080'
Title: Re: All system crashed!
Post by: NetMajom on 2014-08-22, 00:28:58
The kill and after restart has solved the problem.... many Thanks :D
Title: Re: All system crashed!
Post by: nmpribeiro on 2014-08-25, 11:32:46
My Kloxo-MR 6 to 7 upgrade didn't updated my conf.d/~lxcenter.conf Include files to reflect the change from /home/apache/conf/.... to /opt/configs/apache/conf/...

Had to change those manualy... be warned you who updated to 7! or else, do a quick checkup on those lines :)
Title: Re: All system crashed!
Post by: MRatWork on 2014-08-25, 14:37:12
There something wrong with 'cp' in Centos 6, try update with 'yum clean all; yum update; sh /script/cleanup'.