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:31

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
Re: Issues with slave
« Reply #15 on: 2017-03-30, 14:50:20 »
Slave:
[root@odcp01 ~]# dir -l /usr/local/lxlabs/kloxo/etc/slavedb
total 12
-rw-r--r--. 1 lxlabs root  79 Mar 30 13:54 contactemail
-rw-r--r--. 1 lxlabs root  89 Mar 30 13:54 dbadmin
-rw-r--r--. 1 lxlabs root 186 Mar 30 13:54 driver

Master:
[root@mail ~]# dir -l /usr/local/lxlabs/kloxo/etc/slavedb
total 12
-rw-r--r--. 1 lxlabs root  79 Mar 29 20:16 contactemail
-rw-r--r--. 1 lxlabs root  86 Mar 29 20:16 dbadmin
-rw-r--r--. 1 lxlabs root 186 Mar 29 20:58 driver


Kloxo-MR!

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 14,490
  • Karma: +105/-8
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Issues with slave
« Reply #16 on: 2017-03-30, 15:18:27 »
inform here 'cat /usr/local/lxlabs/kloxo/etc/slavedb/driver'.
..:: 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 #17 on: 2017-03-30, 15:29:48 »
root@mail ~]#  cat /usr/local/lxlabs/kloxo/etc/slavedb/driver
O:6:"Remote":1:{s:4:"data";a:6:{s:3:"web";s:10:"nginxproxy";s:8:"webcache";s:4:"none";s:3:"dns";s:4:"bind";s:4:"spam";s:10:"bogofilter";s:4:"pop3";s:7:"courier";s:4:"smtp";s:5:"qmail";}}
Kloxo-MR!

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 14,490
  • Karma: +105/-8
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Issues with slave
« Reply #18 on: 2017-03-30, 16:21:10 »
Inform here 'cat /opt/configs/apache/conf/defaults/init.conf'.
..:: 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 #19 on: 2017-03-30, 17:02:31 »
[root@odcp01 ~]# cat /opt/configs/apache/conf/defaults/init.conf
### begin - web of initial - do not remove/modify this line


<IfVersion < 2.4>
   Define global::port 80
   Define global::portssl 443
   Define global::ip *

   Define port ${global::port}
   Define portssl ${global::portssl}
   Define ip ${global::ip}
</IfVersion>

<IfVersion >= 2.4>
   Define port 80
   Define portssl 443
   Define ip *
</IfVersion>

Listen ${ip}:${port}
Listen ${ip}:${portssl}

<IfVersion < 2.4>
   NameVirtualHost ${ip}:${port}
   NameVirtualHost ${ip}:${portssl}
</IfVersion>


### end - web of initial - do not remove/modify this line

This is wrong when in proxy mode ofc.

I've now confirmed using KVM guest, same problem here too! Master-slave has exact the same issue.

Kloxo-MR!

Offline fossxplorer

  • Master
  • **
  • Posts: 602
  • Karma: +0/-0
    • View Profile
Re: Issues with slave
« Reply #20 on: 2017-03-31, 10:34:58 »
It seems the following is not being checked somehow or not working:
https://github.com/mustafaramadhan/kloxo/blob/dev/kloxo/file/apache/tpl/defaults.conf.tpl#L173

Are you able to find out why? We really need a slave up and running.


Kloxo-MR!

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 14,490
  • Karma: +105/-8
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Issues with slave
« Reply #21 on: 2017-03-31, 10:50:50 »
Nothing wrong with defaults.conf.tpl code.

Solution for your issue is copy default.conf.tpl to custom.defaults.conf.tpl and change:
Code: [Select]
if ($reverseproxy) {
$ports[] = '30080';
$ports[] = '30443';
} else {
if (($webcache === 'none') || (!$webcache)) {
$ports[] = '80';
$ports[] = '443';
} else {
$ports[] = '8080';
$ports[] = '8443';
}
}

to:
Code: [Select]
/*
if ($reverseproxy) {
$ports[] = '30080';
$ports[] = '30443';
} else {
if (($webcache === 'none') || (!$webcache)) {
$ports[] = '80';
$ports[] = '443';
} else {
$ports[] = '8080';
$ports[] = '8443';
}
}
*/
$ports[] = '30080';
$ports[] = '30443';

and then run fixweb again.
..:: 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 #22 on: 2017-03-31, 14:01:18 »
Ok, i did the changes, but still init.conf is wrong! Not using 30080 and 300443!


Trying to change to PHP7 on the slave directly, i get:
[root@odcp01 defaults]# tail -f /usr/local/lxlabs/kloxo/log/php-error.log
[31-Mar-2017 12:00:31 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php56s/usr/lib/php/modules/gearman.so' - /opt/php56s/usr/lib/php/modules/gearman.so: undefined symbol: zend_objects_store_get_refcount in Unknown on line 0
[31-Mar-2017 12:00:31 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php56s/usr/lib/php/modules/geoip.so' - /opt/php56s/usr/lib/php/modules/geoip.so: undefined symbol: zval_used_for_init in Unknown on line 0
[31-Mar-2017 12:00:31 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php56s/usr/lib/php/modules/igbinary.so' - /opt/php56s/usr/lib/php/modules/igbinary.so: undefined symbol: zval_used_for_init in Unknown on line 0
[31-Mar-2017 12:00:31 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php56s/usr/lib/php/modules/json.so' - /opt/php56s/usr/lib/php/modules/json.so: undefined symbol: zend_object_store_get_object in Unknown on line 0
[31-Mar-2017 12:00:31 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php56s/usr/lib/php/modules/krb5.so' - /opt/php56s/usr/lib/php/modules/krb5.so: undefined symbol: zval_used_for_init in Unknown on line 0
[31-Mar-2017 12:00:31 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php56s/usr/lib/php/modules/oauth.so' - /opt/php56s/usr/lib/php/modules/oauth.so: undefined symbol: zval_used_for_init in Unknown on line 0
[31-Mar-2017 12:00:31 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php56s/usr/lib/php/modules/rrd.so' - /opt/php56s/usr/lib/php/modules/rrd.so: undefined symbol: zend_object_store_get_object in Unknown on line 0
[31-Mar-2017 12:00:31 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php56s/usr/lib/php/modules/ssh2.so' - /opt/php56s/usr/lib/php/modules/ssh2.so: undefined symbol: zval_used_for_init in Unknown on line 0
[31-Mar-2017 12:00:31 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php56s/usr/lib/php/modules/twig.so' - /opt/php56s/usr/lib/php/modules/twig.so: undefined symbol: zval_used_for_init in Unknown on line 0
[31-Mar-2017 12:00:31 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/php56s/usr/lib/php/modules/yaml.so' - /opt/php56s/usr/lib/php/modules/yaml.so: undefined symbol: zval_used_for_init in Unknown on line 0



Has it remove modules for php56s mistakenly?

« Last Edit: 2017-03-31, 14:21:52 by fossxplorer »
Kloxo-MR!

Offline fossxplorer

  • Master
  • **
  • Posts: 602
  • Karma: +0/-0
    • View Profile
Re: Issues with slave
« Reply #23 on: 2017-03-31, 14:33:27 »
[31-Mar-2017 13:36:52 Europe/London] PHP Fatal error:  Call to a member function fetch_array() on boolean in /usr/local/lxlabs/kloxo/bin/fix/fix-qmail-assign.php on line 31


*** Process for SPAWN-FCGI service ***
  - Process 'spawn-fcgi': restart
Stopping spawn-fcgi:                                       [FAILED]
Starting spawn-fcgi:                                       [FAILED]
-------------------------------------------------------------------

*** Process for NGINX service ***
  - Process: restart
Stopping nginx:                                            [  OK  ]
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 php]#


Kloxo-MR!

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.042 seconds with 19 queries.

web stats analysis