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. 2017-05-28, 03:03:41

Author Topic: Issues with slave  (Read 604 times)

0 Members and 1 Guest are viewing this topic.

Offline fossxplorer

  • Master
  • **
  • Posts: 602
  • Karma: +0/-0
    • View Profile
Issues with slave
« on: 2017-03-30, 09:38:44 »
I've now installed a new slave and while testing a around, i can see there are issues with the php56s:
 [30-Mar-2017 08:39:34 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php56s/usr/lib/php/modules/sphinx.so' - libsphinxclient-0.0.1.so: cannot open shared object file: No such file or directory in Unknown on line 0
[30-Mar-2017 08:39:36 Europe/London] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php56s/usr/lib/php/modules/sphinx.so' - libsphinxclient-0.0.1.so: cannot open shared object file: No such file or directory in Unknown on line 0
[root@odcp01 ~]# ll /opt/php56s/usr/lib/php/modules/sphinx.so
-rwxr-xr-x. 1 root root 50336 Jun 16  2016 /opt/php56s/usr/lib/php/modules/sphinx.so
[root@odcp01 ~]# php56s-cli -v
PHP 5.6.30 (cli) (built: Jan 19 2017 10:06:11)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
[root@odcp01 ~]#

The file is there, but might be compatibility issue with the running php56s version.
Btw, php56s is the "special" PHP version used by Kloxo-MR for administration with lxphp right?

This is a "slave", but i did install it as master and then added it as slave from the real master, i.e i did not run make-slave as you've recommended earlier.





Kloxo-MR!

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 14,490
  • Karma: +105/-8
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Issues with slave
« Reply #1 on: 2017-03-30, 10:25:40 »
Rename sphinx.ini to sphinx_unused.nonini inside /opt/php56s/etc/php.d.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 602
  • Karma: +0/-0
    • View Profile
Re: Issues with slave
« Reply #2 on: 2017-03-30, 11:12:17 »
Thnanks.
I have all kinds of problems. I've used 2 days to try to get this up. IIRC, it worked an year ago, but i had to take down that server => lost that config :(
This is a slave running inside an LXC container, does it matter?

It seems, something works when controlling from master, while other things don't.
E.g you can't "webserver configure" from master, nothing changes. Also, "Switch program" doesn't work well from master.
But problem is, some command like /scripts/fixweb --server slave01 must be run from master, it won't directly inside slave, since the client database is at the master.

Should i try to create a new slave with running make-slave? Will that work better from master?


Kloxo-MR!

Offline fossxplorer

  • Master
  • **
  • Posts: 602
  • Karma: +0/-0
    • View Profile
Re: Issues with slave
« Reply #3 on: 2017-03-30, 11:15:43 »
Also, often, using nginx or hiawathaproxy, Apache  is trying to listen to port 80 instead of 30080.
[root@odcp01 ~]# sh /script/restart-web

Stopping php70m-fpm (PHP Used):                            [  OK  ]
Starting php70m-fpm (PHP Used):                            [  OK  ]
-------------------------------------------------------------------

Stopping php56m-fpm (Multiple Php):                        [  OK  ]
Starting php56m-fpm (Multiple Php):                        [  OK  ]
-------------------------------------------------------------------

Stopping php70m-fpm (Multiple Php):                        [  OK  ]
Starting php70m-fpm (Multiple Php):                        [  OK  ]
-------------------------------------------------------------------

*** Process for NGINX service ***
  - Process: restart
Stopping nginx:                                            [FAILED]
Starting nginx:                                            [  OK  ]
-------------------------------------------------------------------

*** Process for HTTPD service ***
  - Process: restart
Stopping httpd:                                            [FAILED]
Starting httpd: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
                                                           [FAILED]
-------------------------------------------------------------------

- For help, type '/script/restart-web [--help|-h]'
[root@odcp01 ~]#
Kloxo-MR!

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 14,490
  • Karma: +105/-8
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Issues with slave
« Reply #4 on: 2017-03-30, 11:20:41 »
Try using 'sh /script/fixweb --server=all'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 602
  • Karma: +0/-0
    • View Profile
Re: Issues with slave
« Reply #5 on: 2017-03-30, 11:54:45 »
[root@odcp01 ~]# sh /script/fixweb --server=all

- For help, type '/script/fixweb [--help|-h]'

Fixing Web server config

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

So run from the slave, it doesn't do anything.

I can't run it on master, as it's in production, but i need a PROPER way of having and administering a slave.
Only 1 master is not enough for us anymore!

What do you suggest?



Kloxo-MR!

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 14,490
  • Karma: +105/-8
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Issues with slave
« Reply #6 on: 2017-03-30, 12:00:48 »
See 'sh /script/fixweb --help'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 602
  • Karma: +0/-0
    • View Profile
Re: Issues with slave
« Reply #7 on: 2017-03-30, 12:47:36 »
Yes, i've checked that ofc :)
So this MUST be run from master . Won't work on the slave.

Do you still recommend using the slave without running make-slave?

We really need to get this documented. Master-slave is quite an important feature for anyone looking to use the control panel for anything serious :)
I can document it, but problem is that it's quite inconsistent the way it work right now.

Kloxo-MR!

Offline fossxplorer

  • Master
  • **
  • Posts: 602
  • Karma: +0/-0
    • View Profile
Re: Issues with slave
« Reply #8 on: 2017-03-30, 12:49:27 »
I'm installing another slave to test again and i see:
iptables: Unloading modules:  iptable_filter iptable_mangle[FAILED]_raw iptable_security iptable_nat iptable_filter iptable_mangle iptable_raw iptable_security iptable_nat ip_tables
/usr/local/lxlabs/kloxo/install/step2.inc: line 24: mkpasswd: command not found
>>> Modified /etc/sysctl.conf <<<

Iptables error is expected as this in inside one LXC container. But what's mkpasswd error about?
Kloxo-MR!

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 14,490
  • Karma: +105/-8
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Issues with slave
« Reply #9 on: 2017-03-30, 13:22:23 »
mkpasswd is command for generate password. I found this command in centos 5/6/7 under OpenVZ and KVM. Don't know about LXC.

Try 'yum install expect -y'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 602
  • Karma: +0/-0
    • View Profile
Re: Issues with slave
« Reply #10 on: 2017-03-30, 13:30:30 »
Package expect-5.44.1.15-5.el6_4.x86_64 already installed and latest version
[root@odcp01 ~]# type mkpasswd 
mkpasswd is /usr/bin/mkpasswd

I think it was installed later during the installation.

But now that i've installed a new slave (without make-slave), and added to master, i still can't e.g switch program to Nginxproxy FROM the master UI. When i try, i see 2 php<defunct> processes in the slave using top. I think lxphp commands are crashing.
When i do changes from the slave's UI, i *do also see such crashes*.
I've never seen this before.

Kloxo-MR!

Offline fossxplorer

  • Master
  • **
  • Posts: 602
  • Karma: +0/-0
    • View Profile
Re: Issues with slave
« Reply #11 on: 2017-03-30, 13:48:48 »
[root@mail ~]# sh /script/fixweb --server=slave01
- For help, type '/script/fixweb [--help|-h]'

Fixing Web server config
- 'defaults' pages at 'slave01'
- remove all domains configs at 'slave01'
- 'slaveuser.no' ('slaveuser') at 'slave01'

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

[root@mail ~]# sh /script/fixphp --server=slaveo01

..
it takes ALL , incl. master's web pages!
So fixweb works with slave, but not fixphp, FROM the master!
Kloxo-MR!

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 14,490
  • Karma: +105/-8
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Issues with slave
« Reply #12 on: 2017-03-30, 13:53:35 »
Did you check 'sh /script/fixphp --help'?
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 602
  • Karma: +0/-0
    • View Profile
Re: Issues with slave
« Reply #13 on: 2017-03-30, 13:59:25 »
Yes, ofc :) It's basically the same arguments as fixweb!
Also, now that's ive manged the slave from it's own UI:
Shutting down MySQL. SUCCESS!
Starting MySQL.170330 13:55:59 mysqld_safe Logging to '/var/lib/mysql/odcp01.linuxwonders.com.err'.
170330 13:55:59 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
 SUCCESS!
-------------------------------------------------------------------

Stopping named: .                                          [  OK  ]
Starting named:                                            [  OK  ]
-------------------------------------------------------------------
Stopping PowerDNS authoritative nameserver: Scheduling exit

Stopping php-fpm (PHP Used):                               [  OK  ]
Starting php-fpm (PHP Used):                               [  OK  ]
-------------------------------------------------------------------

Stopping spawn-fcgi:                                       [FAILED]
Starting spawn-fcgi:                                       [  OK  ]
-------------------------------------------------------------------

Stopping nginx:                                            [  OK  ]
Starting nginx:                                            [  OK  ]
-------------------------------------------------------------------

Stopping httpd:                                            [FAILED]
Starting httpd: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
                                                           [FAILED]
-------------------------------------------------------------------


*** Process for QMAIL service ***
Stopping qmail-toaster: svscan qmail logging.
qmail-send: no process killed
Starting qmail-toaster: svscan.
-------------------------------------------------------------------

- For help, type '/script/restart-mail [--help|-h]'
-------------------------------------------------------------------

Stopping pure-ftpd:                                        [  OK  ]
Starting pure-ftpd:                                        [  OK  ]
-------------------------------------------------------------------
*** Restart services - END ***


*** Process Time: 00:00:01:45.105766 (dd:hh:mm:ss:xxxxxx) ***


REMARK:
 - run 'sh /script/fixdnsaddstatsrecord' to make sure dns records including
   'A record' for 'stats'
 - 'http://domain.com/stats' will be redirect to 'http://stats.domain.com'
[root@odcp01 ~]#

Apache's conf with proxy is screwed up!
I'll do tests with KVM guest rather than LXC container. Ufff, this has taken me 2 days now!





Kloxo-MR!

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 14,490
  • Karma: +105/-8
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Issues with slave
« Reply #14 on: 2017-03-30, 14:29:35 »
Inform here your 'dir -l /usr/local/lxlabs/kloxo/etc/slavedb'
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


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

Page created in 0.043 seconds with 17 queries.

web stats analysis