Error: Inconsistency detected by ld.so: dl-close.c

I ran the following commands on the production server:

# git clone https://github.com/letsencrypt/letsencrypt
# cd letsencrypt
# ./letsencrypt-auto certonly --webroot -w /www/mydomain.tld -d mydomain.tld -d www.mydomain.tld
...
Setting up libssl1.0.0:i386 (1.0.1-4ubuntu5.31) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Inconsistency detected by ld.so: dl-close.c: 759: _dl_close: Assertion `map->l_init_called' failed!
E: Sub-process /usr/bin/dpkg returned an error code (127)
Failed to install a working "virtualenv" command, exiting

If I trying to run any command I get the error:
Inconsistency detected by ld.so: dl-close.c: 759: _dl_close: Assertion `map->l_init_calledā€™ failed!

# ls
Inconsistency detected by ld.so: dl-close.c: 759: _dl_close: Assertion `map->l_init_called' failed!
# reboot
Inconsistency detected by ld.so: dl-close.c: 759: _dl_close: Assertion `map->l_init_called' failed!
# apt-get install something
Inconsistency detected by ld.so: dl-close.c: 759: _dl_close: Assertion `map->l_init_called' failed!

I canā€™t run any command, I canā€™t create second connection to the host, so if I lose this connection, I can not connect the server and solve this.
What should I do to get the server working?

This looks like an old linux bug - letsencrypt usually updates your system first. Personally Iā€™d power cycle the server to get it back up, then update the system and apply all patches

Unfortunately I donā€™t have any image of the server, and I canā€™t run any command on the server except ā€˜pwdā€™ and ā€˜cdā€™.
But ā€˜/bin/pwdā€™ is causing the same error:

# pwd
/www/
# /bin/pwd
Inconsistency detected by ld.so: dl-close.c: 759: _dl_close: Assertion `map->l_init_called' failed!

Can you physically get to the server though, to power cycle it ?

Alternatively you could try the Magic SysRq key ā€¦ Used in sequence, some of these actions can be used to cleanly end processes, flush data to disk, unmount all file systems, and restart your computer. To perform this process, press and hold the Alt + SysRq key combination and ā€“ while holding the Alt and SysRq keys down ā€” type the following keys in order, pausing for several seconds in between each key: reisub

See https://en.wikipedia.org/wiki/Magic_SysRq_key

Just make sure you are roing it on the server, not your linux pc ( if connected that way ) ā€¦ otherwise it will boot your linux pc :wink:

I was trying to connect to the server (to make second SSH connection) but get the error: ā€œConnection closed.ā€, so the current connection is my last chance to solve this issue, I donā€™t want to loose it.

Iā€™m able to reboot the VPS through the Control Panel. But will it be working after that?

I donā€™t know the exact details of your VPS system, so canā€™t say 100%, however 99% of the time, yes it will come back up perfectly OK. On the other hand, you havenā€™t got a whole lot to lose, as itā€™s not working or doing anything at the moment unfortunately.

Right now all the websites are running well, the only problem is that no one command is running.
Iā€™ll try to reboot.

Nope, the server does not start.

VPSā€™s VNC shows the same error and additional: ā€œKernel panic - not syncing: Attempted to kill init!ā€

How could this small script kills whole serverā€¦

It isnā€™t the script ( and in many ways has nothing do to with the LE script). It is an old linux bug that was not patched on your server, and needs patching. If you can access the main terminal via VNC then you can reboot in a recovery mode and patch it. exactly how depends on the OS you are using, Iā€™m assuming ubuntu of some version, if so then you can enter recovery mode at the GRUB boot time.

Yes, this is Ubuntu. Iā€™m very appreciated for your help. Unfortunately I have neither the ability to run VNC in recovery mode, nor to get access to a GRUB. VNC on the start shows the error about kernel panic.

What version of Ubuntu ? and what is the setup ? Iā€™m guessing a VPS hosted somewhere ā€œin the cloudā€ and you have a ā€œcontrol panelā€ which provides a certain amount of ā€œconsole / KVM / VNCā€ access to the virtual machine ? Can you use the ā€œconsole / VNCā€ to add any key strokes at boot time ?

Ubuntu-14.04-amd64
The control panel is VM Manager, by ISPsystem. It gives the only ability to run VNC in new browser window. When the VNC is started the kernel panic error is occurs immediately.

Screenshot https://www.dropbox.com/s/tzekpq7kymqrlx7/2015-12-07%2020_26_37-VNC-vm3875093.png?dl=0

That does appear to be a limited VNC, looking to see if I can see a way around it for you

does http://doc.ispsystem.com/index.php/Recovery_mode help ?

Thank you for your help! I donā€™t have access to DCImanager. I asked my hosting support to help with the issue.

good luck, it should be recoverable easily enough once someone can get to the boot / grub prompt

The server has started just now. Thank you!

1 Like

Great :smiley: worth doing an apt-get update and upgrade to ensure all packages are patched ( which LE should have done befpre it started trying to do anything else)

1 Like