Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#896878: Failed to execute /init (error -2) Kernel panic

474 views
Skip to first unread message

Андрей Василишин

unread,
Apr 25, 2018, 5:10:04 AM4/25/18
to
Package: sysvinit-core
Version: 2.88dsf-59.9

Hello!
New linux-image-4.9.0-6-amd64 4.9.82-1+deb9u3 and old
linux-image-3.2.0-4-amd64 3.2.96-2 does not want boot with
sysvinit-core. After installation systemd-sysv 232-25+deb9u2 all working
fine.

[ 0.228833] DMAR-IR: Failed to copy IR table for dmar1 from previous kernel
[ 2.4575631 Failed to execute /init (error -2)
[ 2.4573031 Kernel panic - not syncing: No working init found. Try passing i
nit= option to kernel. See Linux Documentation/init.txt for guidance.
[ 2.4580131 CPU: 25 PID: 1 Comm: swapper/0 Mot tainted 4.3.0-6-amd64 #1
Debia
n 4.9.82-l+deb9u3
[ 2.458113] Hardware name: Dell Inc. PowerEdge R730xd/0UCJNT, BIOS 2.4.3
01/1
7/2017
[ 2.4582051 0000000000000000 ffffffffa352e074 ffffffffa3803eO0 ffffa9478000f
f 40
[ 2.4585951 ffffffffa337cfbd O0O0000O00000O08 ffffa9478O0Off50 ffffa9478000f
ee8
[ 2.4589841 5080bfd4a466255c 5080bfd4a466255c OOOOOOOOOOOOOOOO ffff96ccc26cl
000
[ 2.4593711 Call Trace:
[ 2.4594601 Kffffffffa352e0?4>1 ? dump_stack+0x5c/0x78
[ 2.4595521 1<ffffffffa3803e00>1 ? rest_init+0x4O/Ox80
[ 2.4596431 Kffffffffa337cfbd> 1 ? panic+0xe4/0x23f
[ 2.4597321 Kffffffffa3803e4O>1 ? rest_init+0x80/0x80
[ 2.4598211 Kffffffffa3803f21>1 ? kernel_init+0xel/OxlO0
[ 2.4599101 Kffffffffa3811537> 1 ? ret_from_fork+Ox57/Ox70
[ 2.4601031 Kernel Offset: 0x22200000 from Oxffffffff81000000
(relocation ran
ge: Oxffffffff80000O0O-0xffffffffbfffffff)
[ 2.4682561 Rebooting in 1 seconds..

Adam Borowski

unread,
Apr 25, 2018, 8:00:02 PM4/25/18
to
On Wed, Apr 25, 2018 at 11:56:09AM +0300, Андрей Василишин wrote:
> Package: sysvinit-core
> Version: 2.88dsf-59.9
>
> Hello!
> New linux-image-4.9.0-6-amd64 4.9.82-1+deb9u3 and old
> linux-image-3.2.0-4-amd64 3.2.96-2 does not want boot with sysvinit-core.
> After installation systemd-sysv 232-25+deb9u2 all working fine.
>
> [ 0.228833] DMAR-IR: Failed to copy IR table for dmar1 from previous kernel
> [ 2.4575631 Failed to execute /init (error -2)
> [ 2.4573031 Kernel panic - not syncing: No working init found. Try passing i
> nit= option to kernel. See Linux Documentation/init.txt for guidance.

Are you sure there isn't something wrong with your hardware or perhaps your
filesystem? These versions are old enough that such a regression would have
been reported long time ago: 4.9.82-1+deb9u3 is stable-sec (and stable point
release) from 2018-03-03, 3.2.96-2 is oldoldstable-sec from 2017-12-10.

What happens if you reinstall sysvinit-core (in case its files were
corrupted on the disk)? What if you boot with init=/bin/bash ?

Also, mixing packages from two releases apart is not supported, at least
officially (usually still works) -- for example, systemd in Stretch has a
hard requirement of kernel >= 3.13 which that 3.2 you mention is obviously
older than.


Meow!
--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢰⠒⠀⣿⡁
⢿⡄⠘⠷⠚⠋⠀ Certified airhead; got the CT scan to prove that!
⠈⠳⣄⠀⠀⠀⠀

Ian Jackson

unread,
Apr 25, 2018, 8:50:03 PM4/25/18
to
Control: tag -1 moreinfo

Adam Borowski writes ("Bug#896878: Failed to execute /init (error -2) Kernel panic"):
> On Wed, Apr 25, 2018 at 11:56:09AM +0300, Андрей Василишин wrote:
> > [ 2.4575631 Failed to execute /init (error -2)

I think error -2 means ENOENT.

> Are you sure there isn't something wrong with your hardware or perhaps your
> filesystem? These versions are old enough that such a regression would have
> been reported long time ago: 4.9.82-1+deb9u3 is stable-sec (and stable point
> release) from 2018-03-03, 3.2.96-2 is oldoldstable-sec from 2017-12-10.

I run sysvinit everywhere and I looked through a number of my systems.
I wasn't able to find any that had exactly these kernels, but I can
say that I have some systems with newer kernels as well as ones with
older ones (although none that I could fine as old as 3.2). I have
not seen any regressions that look like this.

These kernels are all very different. I think as Adam suggests the
most likely common factor and the most likely cause is indeed
something wrong with your filesystem or its contents.

Ian.

Андрей Василишин

unread,
Apr 27, 2018, 4:40:03 AM4/27/18
to
26.04.2018 3:39, Ian Jackson пишет:
Ok, I have 13 same servers Dell PowerEdge R730xd . They worked well with
wheezy but we need google/bbr future. I started updating all the
servers. Part update (update only kernel) not working, all time kernel
panic. Now I'm doing an almost complete update. On the next server with
a full update I got the same kernel panic. An old 3.2.96-2 x86_64
kernel loaded normally.

# LANG=C apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer
required:
gamin git git-man liberror-perl libexiv2-12 libgamin0 libilmbase6
liblcms1 liblensfun-data liblensfun0 libmagickcore5 libmagickcore5-extra
libmagickwand5 libopenexr6 libuuid-perl python-central
python-gamin
Use 'apt autoremove' to remove them.
The following packages have been kept back:
apache2 apache2-mpm-prefork apache2-utils apache2.2-bin
apache2.2-common db5.1-util libapache2-mod-php5 libapache2-mod-rpaf
libaprutil1 libaprutil1-dbd-mysql libaprutil1-ldap libcups2
libcupsimage2 libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa
libgtk2.0-0 libgtk2.0-bin libldap-2.4-2 libpcre3 libpcre3-dev
libpcrecpp0 libsasl2-2 libva1 mutt php5 php5-cli php5-common php5-curl
php5-gd
0 upgraded, 0 newly installed, 0 to remove and 30 not upgraded.


# cat /etc/debian_version
9.4


# LANG=C apt-cache policy sysvinit-core
sysvinit-core:
Installed: 2.88dsf-59.9
Candidate: 2.88dsf-59.9
Version table:
*** 2.88dsf-59.9 500
500 http://mirror.nl.leaseweb.net/debian stretch/main amd64
Packages
100 /var/lib/dpkg/status
2.88dsf-59 500
500 http://mirror.nl.leaseweb.net/debian jessie/main amd64 Packages



# LANG=C apt-cache policy sysvinit
sysvinit:
Installed: 2.88dsf-59
Candidate: 2.88dsf-59
Version table:
*** 2.88dsf-59 500
500 http://mirror.nl.leaseweb.net/debian jessie/main amd64 Packages
100 /var/lib/dpkg/status
2.88dsf-41+deb7u1 500
500 http://mirror.nl.leaseweb.net/debian wheezy/main amd64 Packages



[ 2.461289] Failed to execute /init (error -2)
[ 2.461590] Kernel panic - not syncing: No working init found. Try passing i
nit= option to kernel. See Linux Documentation/in it.txt for guidance.
[ 2.461700] CPU: 25 PID: 1 Comm: suapper/0 Not tainted 4.9.0-6-amd64 ttl
Debia
n 4.9.82-l+deb9u3
[ 2.4617941 Hardware name: Dell Inc. PouerEdge R730xd/0WCJNT, BIOS 2.3.4
11/0
8/2016
[ 2.4618871 0000000000000000 ffffffffb552e074 ffffffffb5803e00 ffffa?a6c000b
f 40
[ 2.4622791 ffffffffb537cfbd 0000000000000008 ffffa7a6c00Obf50 ffffa?a6c000b
ee8
[ 2.462670] c229f0c80792470d c229f0c80792470d 0000000000000000 ffff90968575e
000
[ 2.463060] Call Trace:
[ 2.4631501 [<ffffffffb552e074>] ? dump_stack+0x5c/0x78
[ 2.4632441 [<ffffffffb5803eOO>] ? rest.init+0x40/0x80
[ 2.463336] [<ffffffffb537cfbd>] ? panic+0xe4/0x23f
[ 2.463425] [<ffffffffb5803e40>] ? rest.init+0x80/0x80
[ 2.463515] [<ffffffffb5803f21>] ? kernel_init+0xel/0xl00
[ 2.463604] Kffffffffb5811537>] ? ret_from_fork+0x57/0x70
[ 2.463790] Kernel Offset: 0x34200O0O from Oxffffffff81000000
(relocation ran
ge: Oxffffffff8O00OOO0-0xffffffffbfffffff)
[ 2.492759] ---[ end Kernel panic - not syncing: No working init found. Try
passing init= option to kernel. See Linux Documentation/init.txt for
guidance.

Андрей Василишин

unread,
Apr 27, 2018, 6:30:02 AM4/27/18
to
I don't know what helped out of this.

# apt-get install --reinstall linux-image-4.9.0-6-amd64
linux-image-amd64 sysvinit-core

# upgrade-from-grub-legacy

But now kernel 4.9.82-1+deb9u3 loading normally
0 new messages