Jump to content
Froxlor Forum
  • 0

Debian Jessie NSCD, MYSQL, Nginx und Php5-Fpm RC2 Bootorder


MeinerEiner

Question

Hallo,
 
ich hab doch noch ein Problem mit der Bootorder und den LSB Dependencies. Es scheint in der rc2.d alles korrekt geordnet ist, doch verstehe ich nicht das Debian Jessie sich nicht an diese Reihenfolge h?lt.
 

rc2.d
S01bootlogs
S01firewall
S01froxlor-php5-fpm
S01motd
S01rsyslog
S02dbus
S02fail2ban
S02mysql
S02ssh
S03dovecot
S03nscd
S04cron
S04php5-fpm
S04postfix
S04proftpd
S05nginx
S07rc.local
S07rmnologin

 
in den Files sind die LSB Tags eingetragen

ngingx:       # Required-Start:    $local_fs $remote_fs $network $syslog $named php5-fpm
nscd:          # Required-Start:    $remote_fs $syslog mysql
php5-fpm:  # Required-Start:    $remote_fs $network mysql nscd
proftpd:      # Required-Start:    $remote_fs $syslog $local_fs $network mysql nscd

 
Hab alles zur Sicherheit nochmal mit dem update-rc.d entfernt hinzugef?gt und mit insserv {service} bekannt gemacht, dennoch kommen folgende Fehler im syslog:
 
 

Feb 20 10:05:56 isp-01 systemd[1]: Starting Slices.
Feb 20 10:05:56 isp-01 systemd[1]: Reached target Slices.
Feb 20 10:05:56 isp-01 systemd[1]: Mounted Huge Pages File System.
Feb 20 10:05:56 isp-01 systemd[1]: Mounted POSIX Message Queue File System.
Feb 20 10:05:56 isp-01 systemd[1]: Mounted Debug File System.
Feb 20 10:05:56 isp-01 systemd[1]: Started File System Check on Root Device.
Feb 20 10:05:56 isp-01 systemd[1]: Started Create list of required static device nodes for the current kernel.
Feb 20 10:05:56 isp-01 systemd[1]: Started Load Kernel Modules.
Feb 20 10:05:56 isp-01 systemd-fsck[105]: /dev/xvda1: clean, 33373/2621440 files, 463082/10485760 blocks
Feb 20 10:05:56 isp-01 systemd[1]: Started udev Coldplug all Devices.
Feb 20 10:05:56 isp-01 systemd[1]: Mounted FUSE Control File System.
Feb 20 10:05:56 isp-01 systemd[1]: Started Login Service.
Feb 20 10:05:56 isp-01 systemd[1]: Starting Getty on tty1...
Feb 20 10:05:56 isp-01 systemd[1]: Started Getty on tty1.
Feb 20 10:05:56 isp-01 systemd[1]: Starting Serial Getty on hvc0...
Feb 20 10:05:56 isp-01 systemd[1]: Started Serial Getty on hvc0.
Feb 20 10:05:56 isp-01 systemd[1]: Starting Login Prompts.
Feb 20 10:05:56 isp-01 systemd[1]: Reached target Login Prompts.
Feb 20 10:05:57 isp-01 systemd[1]: Failed to read PID from file /run/nginx.pid: Invalid argument
Feb 20 10:05:57 isp-01 systemd[1]: Started A high performance web server and a reverse proxy server.
Feb 20 10:05:57 isp-01 kernel: [    2.775256] nf_conntrack version 0.5.0 (7977 buckets, 31908 max)
Feb 20 10:05:57 isp-01 ter process /usr/sbin/nginx -g daemon on; master_process on;: libnss-mysql: Connection to server '127.0.0.1' failed: Can't connect to MySQL server on '127.0.0.1' (111)
Feb 20 10:05:57 isp-01 ter process /usr/sbin/nginx -g daemon on; master_process on;: libnss-mysql: Connection to server '127.0.0.1' failed: Can't connect to MySQL server on '127.0.0.1' (111)
Feb 20 10:05:57 isp-01 ter process /usr/sbin/nginx -g daemon on; master_process on;: libnss-mysql: Connection to server '127.0.0.1' failed: Can't connect to MySQL server on '127.0.0.1' (111)
Feb 20 10:05:57 isp-01 ter process /usr/sbin/nginx -g daemon on; master_process on;: libnss-mysql: Connection to server '127.0.0.1' failed: Can't connect to MySQL server on '127.0.0.1' (111)
Feb 20 10:05:57 isp-01 kernel: [    3.156534] Netfilter messages via NETLINK v0.30.
Feb 20 10:05:57 isp-01 kernel: [    3.158027] ctnetlink v0.93: registering with nfnetlink.
Feb 20 10:05:57 isp-01 php5-fpm: libnss-mysql: Connection to server '127.0.0.1' failed: Can't connect to MySQL server on '127.0.0.1' (111)
Feb 20 10:05:57 isp-01 php5-fpm[410]: [20-Feb-2015 10:05:57] ERROR: [pool xxxxxxxxx.xx] cannot get uid for user 'xxxx'
Feb 20 10:05:57 isp-01 php5-fpm[410]: [20-Feb-2015 10:05:57] ERROR: FPM initialization failed
Feb 20 10:05:57 isp-01 systemd[1]: php5-fpm.service: main process exited, code=exited, status=78/n/a
Feb 20 10:05:57 isp-01 systemd[1]: Failed to start The PHP FastCGI Process Manager.
Feb 20 10:05:57 isp-01 systemd[1]: Unit php5-fpm.service entered failed state.
Feb 20 10:05:57 isp-01 firewall[291]: Verifying interfaces: eth0 lo
Feb 20 10:05:57 isp-01 kernel: [    3.714320] ip_tables: (C) 2000-2006 Netfilter Core Team
Feb 20 10:05:58 isp-01 firewall[291]: Another app is currently holding the xtables lock. Perhaps you want to use the -w option?
Feb 20 10:05:58 isp-01 firewall[291]: Rule 0 (eth0)
Feb 20 10:05:58 isp-01 firewall[291]: Rule 1 (eth0)
Feb 20 10:05:58 isp-01 firewall[291]: Rule 2 (eth0)
Feb 20 10:05:58 isp-01 firewall[291]: Rule 3 (lo)
Feb 20 10:05:58 isp-01 firewall[291]: Running epilog script
Feb 20 10:05:58 isp-01 systemd[1]: Started LSB: Protect isp machine..
Feb 20 10:05:58 isp-01 systemd[1]: Starting user-0.slice.
Feb 20 10:05:58 isp-01 systemd[1]: Created slice user-0.slice.
Feb 20 10:05:58 isp-01 systemd[1]: Starting Session 1 of user root.
Feb 20 10:05:58 isp-01 systemd[1]: Started Session 1 of user root.
Feb 20 10:05:58 isp-01 systemd[1]: Starting User Manager for UID 0...
Feb 20 10:05:58 isp-01 systemd[726]: Failed to make us a subreaper: Invalid argument
Feb 20 10:05:58 isp-01 systemd[726]: Perhaps the kernel version is too old (< 3.4?)
Feb 20 10:05:58 isp-01 systemd[726]: Starting Paths.
Feb 20 10:05:58 isp-01 systemd[726]: Reached target Paths.
Feb 20 10:05:58 isp-01 systemd[726]: Starting Timers.
Feb 20 10:05:58 isp-01 systemd[726]: Reached target Timers.
Feb 20 10:05:58 isp-01 systemd[726]: Starting Sockets.
Feb 20 10:05:58 isp-01 systemd[726]: Reached target Sockets.
Feb 20 10:05:58 isp-01 systemd[726]: Starting Basic System.
Feb 20 10:05:58 isp-01 systemd[726]: Reached target Basic System.
Feb 20 10:05:58 isp-01 systemd[726]: Starting Default.
Feb 20 10:05:58 isp-01 systemd[726]: Reached target Default.
Feb 20 10:05:58 isp-01 systemd[726]: Startup finished in 32ms.
Feb 20 10:05:58 isp-01 systemd[1]: Started User Manager for UID 0.
Feb 20 10:05:59 isp-01 fail2ban[289]: Starting authentication failure monitor: fail2ban.
Feb 20 10:05:59 isp-01 systemd[1]: Started LSB: Start/stop fail2ban.
Feb 20 10:06:00 isp-01 mysql[285]: Starting MySQL database server: mysqld . ..
Feb 20 10:06:00 isp-01 mysql[285]: Checking for tables which need an upgrade, are corrupt or were
Feb 20 10:06:00 isp-01 mysql[285]: not closed cleanly..
Feb 20 10:06:00 isp-01 systemd[1]: Started LSB: Start and stop the mysql database server daemon.
Feb 20 10:06:00 isp-01 systemd[1]: Starting LSB: Dovecot init script...
Feb 20 10:06:00 isp-01 systemd[1]: Starting LSB: Starts the Name Service Cache Daemon...
Feb 20 10:06:00 isp-01 /etc/mysql/debian-start[969]: Upgrading MySQL tables if necessary.
Feb 20 10:06:00 isp-01 nscd: 983 cannot stat() file `/etc/netgroup': No such file or directory
Feb 20 10:06:00 isp-01 nscd[968]: Starting Name Service Cache Daemon: nscd.
Feb 20 10:06:00 isp-01 systemd[1]: Started LSB: Starts the Name Service Cache Daemon.
Feb 20 10:06:00 isp-01 systemd[1]: Starting LSB: Starts ProFTPD daemon...
Feb 20 10:06:00 isp-01 /etc/mysql/debian-start[974]: /usr/bin/mysql_upgrade: the '--basedir' option is always ignored
Feb 20 10:06:00 isp-01 /etc/mysql/debian-start[974]: Looking for 'mysql' as: /usr/bin/mysql
Feb 20 10:06:00 isp-01 /etc/mysql/debian-start[974]: Looking for 'mysqlcheck' as: /usr/bin/mysqlcheck
Feb 20 10:06:00 isp-01 /etc/mysql/debian-start[974]: This installation of MySQL is already upgraded to 5.5.40, use --force if you still need to run mysql_upgrade
Feb 20 10:06:00 isp-01 /etc/mysql/debian-start[1014]: Checking for insecure root accounts.
Feb 20 10:06:01 isp-01 /etc/mysql/debian-start[1023]: Triggering myisam-recover for all MyISAM tables
Feb 20 10:06:01 isp-01 dovecot[967]: Starting IMAP/POP3 mail server: dovecot.
Feb 20 10:06:01 isp-01 systemd[1]: Started LSB: Dovecot init script.
Feb 20 10:06:01 isp-01 systemd[1]: Starting LSB: Postfix Mail Transport Agent...
Feb 20 10:06:01 isp-01 dovecot: master: Dovecot v2.2.13 starting up for imap, sieve, pop3 (core dumps disabled)
Feb 20 10:06:01 isp-01 proftpd[1000]: Starting ftp server: proftpd.
Feb 20 10:06:01 isp-01 systemd[1]: Started LSB: Starts ProFTPD daemon.
Feb 20 10:06:01 isp-01 CRON[1071]: (root) CMD (/usr/bin/nice -n 5 /usr/bin/php5 -q /var/www/htdocs/froxlor/scripts/froxlor_master_cronjob.php --tasks 1> /dev/null)
Feb 20 10:06:03 isp-01 postfix[1029]: Starting Postfix Mail Transport Agent: postfix.
Feb 20 10:06:03 isp-01 systemd[1]: Started LSB: Postfix Mail Transport Agent.
Feb 20 10:06:03 isp-01 systemd[1]: Starting Mail Transport Agent.
Feb 20 10:06:03 isp-01 systemd[1]: Reached target Mail Transport Agent.
Feb 20 10:06:03 isp-01 systemd[1]: Starting Multi-User System.
Feb 20 10:06:03 isp-01 systemd[1]: Reached target Multi-User System.
Feb 20 10:06:03 isp-01 systemd[1]: Starting Graphical Interface.
Feb 20 10:06:03 isp-01 systemd[1]: Reached target Graphical Interface.
Feb 20 10:06:03 isp-01 systemd[1]: Starting Update UTMP about System Runlevel Changes...
Feb 20 10:06:03 isp-01 systemd[1]: Started Update UTMP about System Runlevel Changes.
Feb 20 10:06:03 isp-01 systemd[1]: Startup finished in 1.487s (kernel) + 7.649s (userspace) = 9.136s.
Feb 20 10:06:03 isp-01 postfix/master[1262]: daemon started -- version 2.11.3, configuration /etc/postfix
Feb 20 10:05:50 isp-01 ntpdate[243]: step time server 213.198.55.2 offset -14.936813 sec
Feb 20 10:05:50 isp-01 systemd[726]: Time has been changed
Feb 20 10:05:50 isp-01 systemd[1]: Time has been changed
Feb 20 10:05:52 isp-01 kernel: [   12.928066] eth0: no IPv6 routers present
Feb 20 10:06:05 isp-01 ntpdate[1293]: adjust time server 213.198.55.2 offset -0.000290 sec

Starte ich nach einem Reboot die Services nginx und php5-fpm neu dann geht es. M?chte aber einen automatischen Weg. Nutze ich ein zust?tzliches Script das in rc2.d eingetragen ist und als letztes ausgef?hrt wird und mir die beiden Services startet, dann l?sst sich nginx im nachgang nicht mehr restarten und meldet es l?uft bereits ein Prozess.

 

Hat jemand ne Idee oder kann mir einen Schubs geben das ich vom Schlauch falle :-)?

Link to post
Share on other sites

2 answers to this question

Recommended Posts

Ich habe mit Jessie noch nichts gemacht. Aber hier wird anscheinend systemd verwendet. Dann kannst Du deine SysV-Links eigentlich vergessen.

 

Vermutlich wirst Du die Dependency dort eintragen m?ssen. Gleiches gilt nat?rlich f?r den nginx.

 

Auf meinem CentOS 7 sieht das so aus:

# cat /etc/systemd/system/multi-user.target.wants/php-fpm.service
[Unit]
Description=The PHP FastCGI Process Manager
After=syslog.target network.target mariadb.service
[...]
Link to post
Share on other sites

Hallo,

 

du hast meinen Tag gerettet :) ... das ist des R?tsels L?sung!

 

Da h?tte ich es nicht vermutet. dachte es l?sst sich ?ber die LSB-Tags l?sen, das die rc-Geschichte nutzlos ist dachte ich mir schon.

 

H?tte ich mal was von der hitzigen Diskussion um Debian Jessie mit Systemd mitbekommen...

 

Also heute wieder was gelernt, danke  :)...

 

Viele Gr??e,

Daniel

Link to post
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...