Site Tools


linux:general:troubleshooting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:general:troubleshooting [2019/10/07 18:06] lunetikklinux:general:troubleshooting [2020/12/03 15:12] (current) – [Linux starts in emergency mode - faulty logical volume (xfs)] lunetikk
Line 94: Line 94:
 Finally restart your system and pray... Finally restart your system and pray...
  
-Have a look at this website for more xfs_repair related info\\ 
-[[http://fibrevillage.com/storage/666-how-to-repair-a-xfs-filesystem|fibrevillage.com - How to repair a xfs filesystem]] 
 \\ \\
 \\ \\
Line 199: Line 197:
 </code> </code>
 \\ \\
 +\\
 +
 +
 +==== systemctl runs in timeout ====
 +
 +=== Description ===
 +
 +In this example, installation of docker-ce with the following command doesnt work
 +<code>
 +curl -sSL https://get.docker.com | sh
 +
 +# Executing docker install script, commit: f45d7c11389849ff46a6b4d94e0dd1ffebca32c1
 ++ sh -c apt-get update -qq >/dev/null
 ++ sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
 ++ sh -c curl -fsSL "https://download.docker.com/linux/ubuntu/gpg" | apt-key add -qq - >/dev/null
 ++ sh -c echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable" > /etc/apt/sources.list.d/docker.list
 ++ sh -c apt-get update -qq >/dev/null
 ++ [ -n  ]
 ++ sh -c apt-get install -y -qq --no-install-recommends docker-ce >/dev/null
 +
 +Broadcast message from systemd-journald@lunetikk (Wed 2019-10-23 00:22:12 CEST):
 +
 +systemd[1]: Caught <SEGV>, dumped core as pid 26368.
 +
 +
 +Broadcast message from systemd-journald@lunetikk (Wed 2019-10-23 00:22:12 CEST):
 +
 +systemd[1]: Freezing execution.
 +
 +E: Sub-process /usr/bin/dpkg returned an error code (1)
 +</code>
 +
 +Rerun "apt-get install docker-ce" shows the following
 +<code>
 +apt-get install docker-ce
 +Reading package lists... Done
 +Building dependency tree
 +Reading state information... Done
 +docker-ce is already the newest version (5:19.03.4~3-0~ubuntu-xenial).
 +After this operation, 0 B of additional disk space will be used.
 +Do you want to continue? [Y/n]
 +Setting up docker-ce (5:19.03.4~3-0~ubuntu-xenial) ...
 +Failed to execute operation: Connection timed out
 +Failed to execute operation: Connection timed out
 +Failed to retrieve unit state: Connection timed out
 +Failed to start docker.service: Connection timed out
 +See system logs and 'systemctl status docker.service' for details.
 +invoke-rc.d: initscript docker, action "start" failed.
 +Failed to get properties: Connection timed out
 +dpkg: error processing package docker-ce (--configure):
 + subprocess installed post-installation script returned error exit status 1
 +Errors were encountered while processing:
 + docker-ce
 +E: Sub-process /usr/bin/dpkg returned an error code (1)
 +</code>
 +
 +You cant reconfigure
 +<code>
 +dpkg-reconfigure docker-ce
 +/usr/sbin/dpkg-reconfigure: docker-ce is broken or not fully installed
 +</code>
 +
 +Listing the units for "systemctl status" runs in timeout
 +<code>
 +systemctl status docke<TAB>
 +Failed to list unit files: Connection timed out
 +Failed to list units: Connection timed out
 +Failed to list unit files: Connection timed out
 +</code>
 +
 +=== Reason ===  
 +\\
 +
 +In my case, my disk was "inconsistent". Reboot got me stuck in busybox. \\
 +
 +{{:linux:general:pasted:20191023-005512.png}}\\
 +
 +=== Fix ===  
 +\\
 +
 +I was able to run "fsck.ext4 /dev/vda2" to fix the orphaned inodes
 +
 +{{:linux:general:pasted:20191023-005629.png}}
 +
 +{{:linux:general:pasted:20191023-005648.png}}
 +
 +Reboot after this got me back onto my system and "systemctl" was working again.
 +
 \\ \\
  
linux/general/troubleshooting.1570464383.txt.gz · Last modified: 2019/10/07 18:06 by lunetikk