Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 4th June 2010, 18:40
DreamK DreamK is offline
Member
 
Join Date: Aug 2008
Posts: 33
Thanks: 1
Thanked 0 Times in 0 Posts
Default Multiservers Not Updated + Remove Lock

Hi,

Sorry to mind you, I have not sleeped since 48 h for trying a solution to my problem.

My network :

2 adsl
2 router for roundrobin
2 servers
3 nic on each server (192.168.10.xxx, 192.168.20.yyy, 10.0.0.zzz)

The Master :

hostname -f = master.domain.com

Works perfectly whit ISP3 when it is alone :

When I install the slave :

hostname -F = slave.domain.com


I obtain the following message :


- master :

Quote:
04-06-2010 17:07 master.domain.com Debug Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
04-06-2010 17:07 master.domain.com. Debug No Updated records found, starting only the core.
- on slave : nothing updated and this message :

Quote:
Warning: include_once(sites/lib/module.conf.php) [function.include-once]: failed to open stream: Too many open files in /usr/local/ispconfig/interface/web/nav.php on line 49

Warning: include_once() [function.include]: Failed opening 'sites/lib/module.conf.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/local/ispconfig/interface/web/nav.php on line 49

Warning: include_once(dns/lib/module.conf.php) [function.include-once]: failed to open stream: Too many open files in /usr/local/ispconfig/interface/web/nav.php on line 49

Warning: include_once() [function.include]: Failed opening 'dns/lib/module.conf.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/local/ispconfig/interface/web/nav.php on line 49

Warning: include_once(tools/lib/module.conf.php) [function.include-once]: failed to open stream: Too many open files in /usr/local/ispconfig/interface/web/nav.php on line 49

Warning: include_once() [function.include]: Failed opening 'tools/lib/module.conf.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/local/ispconfig/interface/web/nav.php on line 49

Warning: include_once(help/lib/module.conf.php) [function.include-once]: failed to open stream: Too many open files in /usr/local/ispconfig/interface/web/nav.php on line 49

Warning: include_once() [function.include]: Failed opening 'help/lib/module.conf.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/local/ispconfig/interface/web/nav.php on line 49

Warning: fopen(/usr/local/ispconfig/interface/web/themes/default/templates/topnav.tpl.htm) [function.fopen]: failed to open stream: Too many open files in /usr/local/ispconfig/interface/lib/classes/tpl.inc.php on line 816

Warning: fread(): supplied argument is not a valid stream resource in /usr/local/ispconfig/interface/lib/classes/tpl.inc.php on line 816

Warning: fclose(): supplied argument is not a valid stream resource in /usr/local/ispconfig/interface/lib/classes/tpl.inc.php on line 817

My configuration from : nano /usr/local/ispconfig/server/lib/config.inc.php


-------------- slave ---------------------
Quote:
//** Application
define('ISPC_APP_TITLE', 'ISPConfig');
define('ISPC_APP_VERSION', '3.0.2.1');


//** Database
$conf["db_type"] = 'mysql';
$conf["db_host"] = 'localhost';
$conf["db_database"] = 'dbispconfig_slave';
$conf["db_user"] = 'ispconfig';
$conf["db_password"] = 'passwd_slave';
$conf["db_charset"] = 'utf8'; // same charset as html-charset - (HTML --> MYSQL: "utf-8" --> "utf8", "iso-8859-1" --> "latin1")

define("DB_TYPE",$conf["db_type"]);
define("DB_HOST",$conf["db_host"]);
define("DB_DATABASE",$conf["db_database"]);
define("DB_USER",$conf["db_user"]);
define("DB_PASSWORD",$conf["db_password"]);
define("DB_CHARSET",$conf["db_charset"]);


//** Database settings for the master DB. This setting is only used in multiserver setups
$conf["dbmaster_type"] = 'mysql';
$conf["dbmaster_host"] = 'master.domain.com';
$conf["dbmaster_database"] = 'dbispconfig';
$conf["dbmaster_user"] = 'ispcsrv2';
$conf["dbmaster_password"] = 'passwd_master';


--------- master ----------------------------
Quote:
//** Database
$conf["db_type"] = 'mysql';
$conf["db_host"] = 'localhost';
$conf["db_database"] = 'dbispconfig';
$conf["db_user"] = 'ispconfig';
$conf["db_password"] = 'psswd_xx';
$conf["db_charset"] = 'utf8'; // same charset as html-charset - (HTML --> MYSQL: "utf-8" --> "utf8", "iso-8859-1" --> "latin1")

define("DB_TYPE",$conf["db_type"]);
define("DB_HOST",$conf["db_host"]);
define("DB_DATABASE",$conf["db_database"]);
define("DB_USER",$conf["db_user"]);
define("DB_PASSWORD",$conf["db_password"]);
define("DB_CHARSET",$conf["db_charset"]);


//** Database settings for the master DB. This setting is only used in multiserver setups
$conf["dbmaster_type"] = 'mysql';
$conf["dbmaster_host"] = '';
$conf["dbmaster_database"] = 'dbispconfig';
$conf["dbmaster_user"] = '';
$conf["dbmaster_password"] = 'psswd_yy';

mySQL Grant
Quote:

User Hosts Encrypted password Permissions
debian-sys-maint localhost aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa Select | Insert | Update | Delete | Create | Drop | Reload | Shutdown | Process | File | Grant | References | Index | Alter | Show DB | Super | Create temp | Lock | Execute | Slave | Client
ispconfig localhost bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb None
ispcsrv2 slave.domain.com ccccccccccccccccccccccccccccccccccccccccc None
ispcsrv2 Any ccccccccccccccccccccccccccccccccccccccccc
root localhost ddddddddddddddddddddddddddddddddddddddddd All
root master.domain.com ddddddddddddddddddddddddddddddddddddddddd All

I really thank you in advance for sharing your experience.

Last edited by DreamK; 4th June 2010 at 19:32.
Reply With Quote
Sponsored Links
  #2  
Old 4th June 2010, 22:33
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: LŁneburg, Germany
Posts: 36,733
Thanks: 840
Thanked 5,597 Times in 4,407 Posts
Default

Your problem is the max files setting in Linux. Currently, trhe kernel does not allow to open any new files and this causes ispconfig to fail. See here on how to increase the number of open files in Linux:

http://www.cyberciti.biz/faq/linux-i...of-open-files/

As a sidenote, you posted errors from the interface on the slaves. Slaves may not run a interface. If you would login to the interface on the slave and add or change something, it will corrupt the database. So never enable the interface on a slave server, a interface shall be installed only on the master.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 5th June 2010, 02:43
DreamK DreamK is offline
Member
 
Join Date: Aug 2008
Posts: 33
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thanks Till, your reply really helps me.

I give you some information cause i don t manage to obtain a slave synchro


Quote:
slave-machine:~# df -h
Sys. de fich. Tail. Occ. Disp. %Occ. Monté sur
/dev/sda1 28G 290M 26G 2% /
tmpfs 2,0G 0 2,0G 0% /lib/init/rw
udev 10M 724K 9,3M 8% /dev
tmpfs 2,0G 0 2,0G 0% /dev/shm
/dev/sda2 942M 34M 861M 4% /boot
/dev/sdc2 899G 8,3G 845G 1% /home
/dev/sdc3 9,4G 150M 8,8G 2% /tmp
/dev/sdb1 17G 2,7G 14G 17% /usr
/dev/sdb2 17G 998M 16G 7% /var
Quote:
slave-machine:~# cat /proc/sys/fs/file-max
378812


Quote:
slave-machine:~# lsof | wc -l
9961

Quote:
slave-machine:~# ulimit -aS
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 37376
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 37376
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited

Quote:
slave-machine:~# ulimit -aH
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 37376
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) unlimited
cpu time (seconds, -t) unlimited
max user processes (-u) 37376
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited


Quote:
slave-machine:~# less /etc/security/limits.conf
# - maxlogins - max number of logins for this user
# - maxsyslogins - max number of logins on the system
# - priority - the priority to run user process with
# - locks - max number of file locks the user can hold
# - sigpending - max number of pending signals
# - msgqueue - max memory used by POSIX message queues (bytes)
# - nice - max nice priority allowed to raise to values: [-20, 19]
# - rtprio - max realtime priority
# - chroot - change root to directory (Debian-specific)
#
#<domain> <type> <item> <value>
#

#* soft core 0
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#ftp - chroot /ftp
#@student - maxlogins 4

# End of file

Quote:
slave-machine:~# netstat
Connexions Internet actives (sans serveurs)
Proto Recv-Q Send-Q Adresse locale Adresse distante Etat
tcp 0 0 slave-machine0:57367 discus0:mysql TIME_WAIT
tcp 0 132 slave-machine0:ssh TYAN-WS-PC.local:49380 ESTABLISHED
Sockets du domaine UNIX actives(sans serveurs)
Proto RefCnt Flags Type State I-Node Chemin
unix 2 [ ] DGRAM 3425 @/org/kernel/udev/ude vd
unix 2 [ ] DGRAM 9445 @/org/freedesktop/hal /udev_event
unix 2 [ ] DGRAM 7383 /var/spool/postfix/de v/log
unix 25 [ ] DGRAM 7381 /dev/log
unix 2 [ ] DGRAM 290048
unix 2 [ ] DGRAM 253195
unix 3 [ ] STREAM CONNECTE 10740 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTE 10739
unix 2 [ ] DGRAM 10558
unix 3 [ ] STREAM CONNECTE 10498 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTE 10497
unix 3 [ ] STREAM CONNECTE 10383 /var/run/dbus/system_ bus_socket
unix 3 [ ] STREAM CONNECTE 10382
unix 3 [ ] STREAM CONNECTE 10157 /var/run/acpid.socket
unix 3 [ ] STREAM CONNECTE 10156
unix 3 [ ] STREAM CONNECTE 10386 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTE 10114
unix 3 [ ] STREAM CONNECTE 10017 /var/run/dbus/system_ bus_socket
unix 3 [ ] STREAM CONNECTE 10016
unix 3 [ ] STREAM CONNECTE 9926 /var/run/dbus/system_ bus_socket
unix 3 [ ] STREAM CONNECTE 9925
unix 3 [ ] STREAM CONNECTE 9865 /var/run/dbus/system_ bus_socket
unix 3 [ ] STREAM CONNECTE 9864
unix 2 [ ] DGRAM 9860
unix 3 [ ] STREAM CONNECTE 9846 @/var/run/hald/dbus-I Tn0Gz7EO9
unix 3 [ ] STREAM CONNECTE 9845
unix 3 [ ] STREAM CONNECTE 9843 /var/run/dbus/system_ bus_socket
unix 3 [ ] STREAM CONNECTE 9842
unix 3 [ ] STREAM CONNECTE 9832 @/var/run/hald/dbus-I Tn0Gz7EO9
unix 3 [ ] STREAM CONNECTE 9831
unix 3 [ ] STREAM CONNECTE 9827 /var/run/dbus/system_ bus_socket
unix 3 [ ] STREAM CONNECTE 9826
unix 3 [ ] STREAM CONNECTE 9623 /var/run/acpid.socket
unix 3 [ ] STREAM CONNECTE 9622
unix 3 [ ] STREAM CONNECTE 9619 /var/run/dbus/system_ bus_socket
unix 3 [ ] STREAM CONNECTE 9618
unix 3 [ ] STREAM CONNECTE 9615 @/var/run/hald/dbus-I Tn0Gz7EO9
unix 3 [ ] STREAM CONNECTE 9614
unix 3 [ ] STREAM CONNECTE 9613 @/var/run/hald/dbus-I Tn0Gz7EO9
unix 3 [ ] STREAM CONNECTE 9612
unix 3 [ ] STREAM CONNECTE 9540 @/var/run/hald/dbus-I Tn0Gz7EO9
unix 3 [ ] STREAM CONNECTE 9526
unix 3 [ ] STREAM CONNECTE 9440 @/var/run/hald/dbus-R AX1v7PRCj
unix 3 [ ] STREAM CONNECTE 9439
unix 3 [ ] STREAM CONNECTE 9420 /var/run/dbus/system_ bus_socket
unix 3 [ ] STREAM CONNECTE 9419
unix 3 [ ] STREAM CONNECTE 9395 /var/run/dbus/system_ bus_socket
unix 3 [ ] STREAM CONNECTE 9394
unix 2 [ ] DGRAM 9393
unix 2 [ ] DGRAM 9361
unix 2 [ ] DGRAM 9291
unix 2 [ ] DGRAM 9260
unix 2 [ ] DGRAM 9254
unix 3 [ ] STREAM CONNECTE 9243
unix 3 [ ] STREAM CONNECTE 9242
unix 3 [ ] STREAM CONNECTE 9236
unix 3 [ ] STREAM CONNECTE 9235
unix 3 [ ] STREAM CONNECTE 9232
unix 3 [ ] STREAM CONNECTE 9231
unix 3 [ ] STREAM CONNECTE 9228
unix 3 [ ] STREAM CONNECTE 9227
unix 3 [ ] STREAM CONNECTE 9224
unix 3 [ ] STREAM CONNECTE 9223
unix 3 [ ] STREAM CONNECTE 9220
unix 3 [ ] STREAM CONNECTE 9219
unix 3 [ ] STREAM CONNECTE 9216
unix 3 [ ] STREAM CONNECTE 9215
unix 3 [ ] STREAM CONNECTE 9212
unix 3 [ ] STREAM CONNECTE 9211
unix 3 [ ] STREAM CONNECTE 9208
unix 3 [ ] STREAM CONNECTE 9207
unix 3 [ ] STREAM CONNECTE 9204
unix 3 [ ] STREAM CONNECTE 9203
unix 3 [ ] STREAM CONNECTE 9200
unix 3 [ ] STREAM CONNECTE 9199
unix 3 [ ] STREAM CONNECTE 9196
unix 3 [ ] STREAM CONNECTE 9195
unix 3 [ ] STREAM CONNECTE 9192
unix 3 [ ] STREAM CONNECTE 9191
unix 3 [ ] STREAM CONNECTE 9188
unix 3 [ ] STREAM CONNECTE 9187
unix 3 [ ] STREAM CONNECTE 9184
unix 3 [ ] STREAM CONNECTE 9183
unix 3 [ ] STREAM CONNECTE 9180
unix 3 [ ] STREAM CONNECTE 9179
unix 3 [ ] STREAM CONNECTE 9176
unix 3 [ ] STREAM CONNECTE 9175
unix 3 [ ] STREAM CONNECTE 9172
unix 3 [ ] STREAM CONNECTE 9171
unix 3 [ ] STREAM CONNECTE 9168
unix 3 [ ] STREAM CONNECTE 9167
unix 3 [ ] STREAM CONNECTE 9164
unix 3 [ ] STREAM CONNECTE 9163
unix 3 [ ] STREAM CONNECTE 9160
unix 3 [ ] STREAM CONNECTE 9159
unix 3 [ ] STREAM CONNECTE 9156
unix 3 [ ] STREAM CONNECTE 9155
unix 3 [ ] STREAM CONNECTE 9152
unix 3 [ ] STREAM CONNECTE 9151
unix 3 [ ] STREAM CONNECTE 9148
unix 3 [ ] STREAM CONNECTE 9147
unix 3 [ ] STREAM CONNECTE 9144
unix 3 [ ] STREAM CONNECTE 9143
unix 3 [ ] STREAM CONNECTE 9140
unix 3 [ ] STREAM CONNECTE 9139
unix 3 [ ] STREAM CONNECTE 9136
unix 3 [ ] STREAM CONNECTE 9135
unix 3 [ ] STREAM CONNECTE 9132
unix 3 [ ] STREAM CONNECTE 9131
unix 3 [ ] STREAM CONNECTE 9128
unix 3 [ ] STREAM CONNECTE 9127
unix 3 [ ] STREAM CONNECTE 9125
unix 3 [ ] STREAM CONNECTE 9124
unix 3 [ ] STREAM CONNECTE 9121
unix 3 [ ] STREAM CONNECTE 9120
unix 3 [ ] STREAM CONNECTE 9116
unix 3 [ ] STREAM CONNECTE 9115
unix 2 [ ] DGRAM 9094
unix 3 [ ] STREAM CONNECTE 8965 /var/run/mysqld/mysql d.sock
unix 3 [ ] STREAM CONNECTE 8964
unix 3 [ ] DGRAM 8963
unix 3 [ ] DGRAM 8962
unix 2 [ ] STREAM CONNECTE 8941
unix 2 [ ] DGRAM 8940
unix 3 [ ] STREAM CONNECTE 8790 /var/run/dbus/system_ bus_socket
unix 3 [ ] STREAM CONNECTE 8789
unix 2 [ ] DGRAM 8684
unix 2 [ ] DGRAM 8663
unix 2 [ ] DGRAM 8644
unix 2 [ ] DGRAM 8621
unix 2 [ ] DGRAM 8600
unix 3 [ ] STREAM CONNECTE 8432
unix 3 [ ] STREAM CONNECTE 8431
unix 3 [ ] STREAM CONNECTE 8430
unix 3 [ ] STREAM CONNECTE 8429
unix 2 [ ] DGRAM 8013
unix 2 [ ] DGRAM 8012
unix 2 [ ] DGRAM 7977
unix 2 [ ] DGRAM 7648
unix 2 [ ] DGRAM 7560
unix 3 [ ] STREAM CONNECTE 7465 /var/run/dbus/system_ bus_socket
unix 3 [ ] STREAM CONNECTE 7464
unix 3 [ ] STREAM CONNECTE 7459
unix 3 [ ] STREAM CONNECTE 7458
unix 2 [ ] DGRAM 7455
unix 3 [ ] STREAM CONNECTE 7432
unix 3 [ ] STREAM CONNECTE 7431
unix 2 [ ] DGRAM 7410
slave-machine:~#



slave-machine:~# find /proc/sys/fs -name max_user_instances
/proc/sys/fs/inotify/max_user_instances
slave-machine:~# find /proc/sys/fs -name max_user_instances | xargs cat
128
slave-machine:~# apt-get install procps
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
procps est déjà la plus récente version disponible.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.


Quote:
slave-machine:~# echo "
> fs.epoll.max_user_instances = 1024
> fs.inotify.max_user_instances = 1024" >> /etc/sysctl.conf
slave-machine:~# sysctl -p
error: "fs.epoll.max_user_instances" is an unknown key
fs.inotify.max_user_instances = 1024
slave-machine:~#



Quote:
nano /var/log/syslog

Jun 5 00:44:02 slave-machine kernel: [21970.884296] php[29487]: segfault at 7fffff7fee40 ip 625cba sp 7fffff7fee20 error 6 in php5[400000+514000]
Jun 5 00:45:01 slave-machine /USR/SBIN/CRON[29554]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Jun 5 00:45:01 slave-machine /USR/SBIN/CRON[29555]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Jun 5 00:45:02 slave-machine kernel: [22031.677025] php[29561]: segfault at 7fffff7fd960 ip 625cba sp 7fffff7fd940 error 6 in php5[400000+514000]
Jun 5 00:46:01 slave-machine /USR/SBIN/CRON[29629]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Jun 5 00:46:01 slave-machine kernel: [22092.397464] php[29633]: segfault at 7fffff7fdfe0 ip 7f69ab674bb5 sp 7fffff7fdfc0 error 6 in libc-2.7.so[7f69ab5ff000+14a000]
Jun 5 00:47:01 slave-machine /USR/SBIN/CRON[29702]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Jun 5 00:47:02 slave-machine kernel: [22154.488836] php[29706]: segfault at 7fffff7fdfb0 ip 625cba sp 7fffff7fdf90 error 6 in php5[400000+514000]
Jun 5 00:48:01 slave-machine /USR/SBIN/CRON[29772]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Jun 5 00:48:02 slave-machine kernel: [22215.308481] php[29776]: segfault at 7fffff7fcb30 ip 625cba sp 7fffff7fcb10 error 6 in php5[400000+514000]
Jun 5 00:49:01 slave-machine /USR/SBIN/CRON[29843]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Jun 5 00:49:01 slave-machine kernel: [22277.117801] php[29847]: segfault at 7fffff7fed30 ip 625cba sp 7fffff7fed10 error 6 in php5[400000+514000]
Jun 5 00:50:01 slave-machine /USR/SBIN/CRON[29919]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Jun 5 00:50:01 slave-machine /USR/SBIN/CRON[29920]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Jun 5 00:50:02 slave-machine kernel: [22340.295015] php[29927]: segfault at 7fffff7fddd0 ip 625cba sp 7fffff7fddb0 error 6 in php5[400000+514000]
Jun 5 00:51:01 slave-machine /USR/SBIN/CRON[29996]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Jun 5 00:51:02 slave-machine kernel: [22401.440197] php[30000]: segfault at 7fffff7fddf0 ip 625cba sp 7fffff7fddd0 error 6 in php5[400000+514000]
Jun 5 00:52:01 slave-machine /USR/SBIN/CRON[30066]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Jun 5 00:52:02 slave-machine kernel: [22462.284065] php[30070]: segfault at 7fffff7fe150 ip 625cba sp 7fffff7fe130 error 6 in php5[400000+514000]
Jun 5 00:53:01 slave-machine /USR/SBIN/CRON[30140]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Jun 5 00:53:01 slave-machine kernel: [22523.099477] php[30144]: segfault at 7fffff7fe8d0 ip 625cba sp 7fffff7fe8b0 error 6 in php5[400000+514000]
Jun 5 00:54:01 slave-machine /USR/SBIN/CRON[30213]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Jun 5 00:54:02 slave-machine kernel: [22584.766162] php[30217]: segfault at 7fffff7fd060 ip 625cba sp 7fffff7fd040 error 6 in php5[400000+514000]
Jun 5 00:55:01 slave-machine /USR/SBIN/CRON[30287]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Jun 5 00:55:01 slave-machine /USR/SBIN/CRON[30286]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Jun 5 00:55:02 slave-machine kernel: [22645.617262] php[30294]: segfault at 7fffff7fcc50 ip 625cba sp 7fffff7fcc30 error 6 in php5[400000+514000]
Jun 5 00:56:01 slave-machine /USR/SBIN/CRON[30360]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Jun 5 00:56:01 slave-machine kernel: [22707.472633] php[30364]: segfault at 7fffff7fe170 ip 625cba sp 7fffff7fe150 error 6 in php5[400000+514000]
Jun 5 00:57:01 slave-machine /USR/SBIN/CRON[30434]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Jun 5 00:57:02 slave-machine kernel: [22769.126814] php[30438]: segfault at 7fffff7fcf80 ip 625cba sp 7fffff7fcf60 error 6 in php5[400000+514000]
Jun 5 00:58:01 slave-machine /USR/SBIN/CRON[30508]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Jun 5 00:58:02 slave-machine kernel: [22830.247351] php[30512]: segfault at 7fffff7fddf0 ip 625cba sp 7fffff7fddd0 error 6 in php5[400000+514000]
Jun 5 00:59:01 slave-machine /USR/SBIN/CRON[30580]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Jun 5 00:59:01 slave-machine kernel: [22891.483772] php[30584]: segfault at 7fffff7fcf30 ip 625cba sp 7fffff7fcf10 error 6 in php5[400000+514000]
Jun 5 01:00:01 slave-machine /USR/SBIN/CRON[30654]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Jun 5 01:00:01 slave-machine /USR/SBIN/CRON[30655]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Jun 5 01:00:02 slave-machine kernel: [22953.284128] php[30661]: segfault at 7fffff7fd9b0 ip 625cba sp 7fffff7fd990 error 6 in php5[400000+514000]
Jun 5 01:01:01 slave-machine /USR/SBIN/CRON[30730]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Jun 5 01:01:02 slave-machine kernel: [23014.254584] php[30735]: segfault at 7fffff7fdd30 ip 625cba sp 7fffff7fdd10 error 6 in php5[400000+514000]
Jun 5 01:02:01 slave-machine /USR/SBIN/CRON[30806]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Jun 5 01:02:01 slave-machine kernel: [23075.073520] php[30810]: segfault at 7fffff7fcfc0 ip 625cba sp 7fffff7fcfa0 error 6 in php5[400000+514000]
Jun 5 01:03:01 slave-machine /USR/SBIN/CRON[30879]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Jun 5 01:03:02 slave-machine kernel: [23136.955131] php[30883]: segfault at 7fffff7fdcd0 ip 625cba sp 7fffff7fdcb0 error 6 in php5[400000+514000]
Jun 5 01:04:01 slave-machine /USR/SBIN/CRON[31003]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Jun 5 01:04:02 slave-machine kernel: [23197.574680] php[31007]: segfault at 7fffff7fde30 ip 625cba sp 7fffff7fde10 error 6 in php5[400000+514000]




nano /var/log/ispconfig/cron.log

/usr/local/ispconfig/server/server.sh: line 7: 30294 Segmentation fault /usr/bin/php -q /usr/local/ispconfig/server/server.php
/usr/local/ispconfig/server/server.sh: line 7: 30364 Segmentation fault /usr/bin/php -q /usr/local/ispconfig/server/server.php
/usr/local/ispconfig/server/server.sh: line 7: 30438 Segmentation fault /usr/bin/php -q /usr/local/ispconfig/server/server.php
/usr/local/ispconfig/server/server.sh: line 7: 30512 Segmentation fault /usr/bin/php -q /usr/local/ispconfig/server/server.php
/usr/local/ispconfig/server/server.sh: line 7: 30584 Segmentation fault /usr/bin/php -q /usr/local/ispconfig/server/server.php
/usr/local/ispconfig/server/server.sh: line 7: 30661 Segmentation fault /usr/bin/php -q /usr/local/ispconfig/server/server.php
/usr/local/ispconfig/server/server.sh: line 7: 30735 Segmentation fault /usr/bin/php -q /usr/local/ispconfig/server/server.php
/usr/local/ispconfig/server/server.sh: line 7: 30810 Segmentation fault /usr/bin/php -q /usr/local/ispconfig/server/server.php
/usr/local/ispconfig/server/server.sh: line 7: 30883 Segmentation fault /usr/bin/php -q /usr/local/ispconfig/server/server.php
/usr/local/ispconfig/server/server.sh: line 7: 31007 Segmentation fault /usr/bin/php -q /usr/local/ispconfig/server/server.php
/usr/local/ispconfig/server/server.sh: line 7: 31082 Segmentation fault /usr/bin/php -q /usr/local/ispconfig/server/server.php
/usr/local/ispconfig/server/server.sh: line 7: 4051 Segmentation fault /usr/bin/php -q /usr/local/ispconfig/server/server.php


Quote:
slave-machine:~# cat /proc/sys/fs/file-max
378812


Quote:
slave-machine:~# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 37376
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 37376
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited

Quote:
slave-machine:~# ulimit -n 10000
Quote:
slave-machine:~# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 37376
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 10000
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 37376
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited

slave-machine:~# /etc/init.d/apache2 restart
Restarting web server: apache2 ... waiting .


I check, and i come back
Reply With Quote
  #4  
Old 5th June 2010, 04:08
DreamK DreamK is offline
Member
 
Join Date: Aug 2008
Posts: 33
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi

I have have solved the trouble following the apache-error.log

1/ the slave have not enought right to the master dbispconfig database
2/ I have changed the default directory location of /var/www -> /home/xxx and /var/vmail -> hard another drive


Evrything seems to work fine

To understand the right permissions for each database and user :

Master -> Slave full acces @ slave.domain.com
Slave -> Master reade insert @ master.domain.com

Thanks a lot for this great script, I will be happy to show you my new servers

A donation would be possible for helping the script to be developped ?



For information : When there is a cron request there is no more access to the CP, it s a correct processus ? (ie8 : AJAX ERROR and in fact I have made an php -q update.php for not doing a reboot)

Quote:
Jun 5 03:13:01 master-machine /USR/SBIN/CRON[6104]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Jun 5 03:14:01 master-machine /USR/SBIN/CRON[6111]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Jun 5 03:15:01 master-machine /USR/SBIN/CRON[6119]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Jun 5 03:15:01 master-machine /USR/SBIN/CRON[6120]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Jun 5 03:15:02 master-machine pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jun 5 03:15:02 master-machine pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jun 5 03:15:02 master-machine imapd: Connection, ip=[::ffff:127.0.0.1]
Jun 5 03:15:02 master-machine imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
Jun 5 03:15:02 master-machine pop3d: Connection, ip=[::ffff:127.0.0.1]
Jun 5 03:15:02 master-machine pop3d: Disconnected, ip=[::ffff:127.0.0.1]
Jun 5 03:15:02 master-machine postfix/smtpd[6140]: connect from localhost[127.0.0.1]
Jun 5 03:15:02 master-machine postfix/smtpd[6140]: lost connection after CONNECT from localhost[127.0.0.1]
Jun 5 03:15:02 master-machine postfix/smtpd[6140]: disconnect from localhost[127.0.0.1]
Jun 5 03:16:01 master-machine /USR/SBIN/CRON[6158]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Jun 5 03:17:01 master-machine /USR/SBIN/CRON[6182]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Jun 5 03:17:01 master-machine /USR/SBIN/CRON[6183]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jun 5 03:18:01 master-machine /USR/SBIN/CRON[6209]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Jun 5 03:18:01 master-machine /USR/SBIN/CRON[6210]: (amavis) CMD (test -e /usr/sbin/amavisd-new-cronjob && /usr/sbin/amavisd-new-cronjob sa-sync)
Jun 5 03:19:01 master-machine /USR/SBIN/CRON[6218]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)

Last edited by DreamK; 5th June 2010 at 04:24.
Reply With Quote
  #5  
Old 7th June 2010, 13:53
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: LŁneburg, Germany
Posts: 36,733
Thanks: 840
Thanked 5,597 Times in 4,407 Posts
 
Default

The ISPConfig installer sets all permissions correctly on the master server. So just use the ispconfig installer in expert mode to install the slave and never edit any permissions manually as this may cause severe security problems. Before you install the slave, make sure that you create a root user on the master that allows access from the IP AND hostanme of the slave. This root account is just used during install and the password is not stored anywhere on the slave server.

Quote:
A donation would be possible for helping the script to be developped ?
If you like to help the ispconfig project, please order a howtoforge subscription:

http://www.howtoforge.com/subscription
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
yum issues el-sid Installation/Configuration 4 10th August 2011 12:01
Mac4Lin ver.0.2 - Mac OS X Leopard Transformation pack infra_red_dude Desktop Operation 77 12th September 2010 23:21
mirroring issue lifeisboost Installation/Configuration 10 18th May 2010 18:43
Postfix problem vaio1 General 4 17th October 2007 11:27
Transaction error Perfect FC6 setup ACDII HOWTO-Related Questions 1 6th July 2007 15:56


All times are GMT +2. The time now is 05:29.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.