Bugzilla – Bug 675870
Cannot enable mysql service because it needs $network in run level 2
Last modified: 2013-11-06 08:31:23 UTC
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0b12) Gecko/20110222 Firefox/4.0b12 chkconfig --add mysql insserv: FATAL: service network is missed in the runlevels 2 to use service mysql insserv: exiting now! /sbin/insserv failed, exit code 1 mysql 0:off 1:off 2:off 3:off 4:off 5:off 6:off Reproducible: Always Steps to Reproduce: 1. chkconfig --add mysql 2. error 3. edit /etc/init.d/mysql 4. remove run level 2 from "Default-Start:" 5. chkconfig --add mysql 6. ok Actual Results: In default configuration, mysql cannot be enabled as a service to start at boot Expected Results: Should be able to enable mysql service
I am getting a similar (interestingly not exactly the same) error: chkconfig --add mysql insserv: FATAL: service xdm is missed in the runlevels 3 to use service atieventsd insserv: FATAL: service network is missed in the runlevels 2 to use service mysql insserv: exiting now! /sbin/insserv failed, exit code 1 mysql 0:off 1:off 2:off 3:off 4:off 5:off 6:off
The xdm error is unrelated to mysql. That has something to do with "atieventsd".
/etc/init.d/mysql (on 11.3 and 11.4) ### BEGIN INIT INFO # Provides: mysql # Required-Start: $network $remote_fs # Required-Stop: $network $remote_fs # Default-Start: 2 3 5 # Default-Stop: # Short-Description: Start the MySQL database server # Description: Start the MySQL database server ### END INIT INFO However (11.3) : # lsb_release -r && grep 'Default-Start' /etc/init.d/network Release: 11.3 # Default-Start: 2 3 5 but (11.4) : # lsb_release -r && grep 'Default-Start' /etc/init.d/network Release: 11.4 # Default-Start: 3 5
11.4, not 11.3. New install. test1:~ # chkconfig open-iscsi open-iscsi off test1:~ # chkconfig open-iscsi on insserv: FATAL: service network is missed in the runlevels 2 4 to use service ha_logd insserv: FATAL: service syslog is missed in the runlevels 4 to use service ha_logd insserv: exiting now! /sbin/insserv failed, exit code 1 test1:~ # uname -a Linux test1 2.6.37.1-1.2-xen #1 SMP 2011-02-21 10:34:10 +0100 x86_64 x86_64 x86_64 GNU/Linux
This appears to be the same as Bug 681340 in my case: test1:~ # chkconfig open-iscsi on insserv: FATAL: service network is missed in the runlevels 2 4 to use service ha_logd insserv: FATAL: service syslog is missed in the runlevels 4 to use service ha_logd insserv: exiting now! /sbin/insserv failed, exit code 1 test1:~ # chkconfig logd off test1:~ # chkconfig open-iscsi on test1:~ # chkconfig logd on insserv: FATAL: service network is missed in the runlevels 2 4 to use service ha_logd insserv: FATAL: service syslog is missed in the runlevels 4 to use service ha_logd insserv: exiting now! /sbin/insserv failed, exit code 1
I'm not maintainer of mariadb nor mysql-cluster nor mysql-community-server even if insserv tells that there are misconfigurations the packages mariadb and mysql-cluster them self should be fixed (mysql-community-server does it correct).
Another related entered: chkconfig mysql on insserv: Service network is missed in the runlevels 2 to use mysql rcmysql start works but requires manual intervention after every power loss or restart.
To fix, edit /etc/init.d/mysql Remove "2" from line 19 -- that is: Change # Default-Start: 2 3 5 To # Default-Start: 3 5
openSUSE-SU-2012:0617-1: An update that fixes 7 vulnerabilities is now available. Category: security (moderate) Bug References: 675870,734436,742272,758460 CVE References: CVE-2009-5026,CVE-2012-0583,CVE-2012-1688,CVE-2012-1690,CVE-2012-1696,CVE-2012-1697,CVE-2012-1703 Sources used: openSUSE 12.1 (src): mysql-cluster-7.1.21-2.4.1 openSUSE 11.4 (src): mysql-cluster-7.1.21-52.1
openSUSE-SU-2012:0618-1: An update that fixes 21 vulnerabilities is now available. Category: security (moderate) Bug References: 675870,734436,742272,758460 CVE References: CVE-2011-2262,CVE-2012-0075,CVE-2012-0087,CVE-2012-0101,CVE-2012-0102,CVE-2012-0112,CVE-2012-0113,CVE-2012-0114,CVE-2012-0115,CVE-2012-0116,CVE-2012-0118,CVE-2012-0119,CVE-2012-0120,CVE-2012-0484,CVE-2012-0485,CVE-2012-0490,CVE-2012-0492,CVE-2012-0583,CVE-2012-1688,CVE-2012-1690,CVE-2012-1703 Sources used: openSUSE 11.4 (src): mysql-community-server-5.1.62-52.1
openSUSE-SU-2012:0619-1: An update that fixes 21 vulnerabilities is now available. Category: security (moderate) Bug References: 675870,734436,742272,758460 CVE References: CVE-2011-2262,CVE-2012-0075,CVE-2012-0087,CVE-2012-0101,CVE-2012-0102,CVE-2012-0112,CVE-2012-0113,CVE-2012-0114,CVE-2012-0115,CVE-2012-0116,CVE-2012-0118,CVE-2012-0119,CVE-2012-0120,CVE-2012-0484,CVE-2012-0485,CVE-2012-0490,CVE-2012-0492,CVE-2012-0583,CVE-2012-1688,CVE-2012-1690,CVE-2012-1703 Sources used: openSUSE 11.4 (src): mariadb-5.1.62-39.1
This is an autogenerated message for OBS integration: This bug (675870) was mentioned in https://build.opensuse.org/request/show/121573 Evergreen:11.2 / mysql
This is an autogenerated message for OBS integration: This bug (675870) was mentioned in https://build.opensuse.org/request/show/122094 Evergreen:11.2 / mysql
Somebody fixed it in evergreen, rest of distributions should have been fixed with some of the past updates.