You are not logged in.

#1 2013-09-12 00:15:28

markbrazil
Member
Registered: 2011-06-21
Posts: 21

kernel update & reboot - systemctl not starting services

ran the following

pacman -Syu

which updated kernel to 3.10.10 and did a reboot

now certain services won't start, no error messages, they just hang.

# systemctl | grep dead
dhcpcd@en01.service       loaded inactive dead      start dhcpcd on en01
dhcpcd@eth1.service       loaded inactive dead      start dhcpcd on eth1
httpd.service             loaded inactive dead      start Apache Web Server
ntpd.service              loaded inactive dead      start Network Time Service
postgresql.service        loaded inactive dead      start PostgreSQL database server
multi-user.target         loaded inactive dead      start Multi-User System
network.target            loaded inactive dead      start Network

I start dhcpcd, httpd, postgresql manually

Any ideas?

thanks.

Offline

#2 2013-09-12 00:17:22

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: kernel update & reboot - systemctl not starting services

What was updated? Were there any errors? Did you follow the post-install scripts from pacman (if any)? Did you merge any .pacnew/.pacsave files?

EDIT: Also, any clues in the log files or journal?

Last edited by cfr (2013-09-12 00:18:26)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2013-09-12 00:30:06

markbrazil
Member
Registered: 2011-06-21
Posts: 21

Re: kernel update & reboot - systemctl not starting services

cfr wrote:

What was updated? Were there any errors? Did you follow the post-install scripts from pacman (if any)? Did you merge any .pacnew/.pacsave files?

EDIT: Also, any clues in the log files or journal?


The following was updated

/var/cache/pacman/pkg/
[mark@avatar pkg]$ ls -l
total 86932
-rw-r--r-- 1 root root   330676 Sep  7 07:45 btrfs-progs-0.20rc1.2-2-x86_64.pkg.tar.xz
-rw-r--r-- 1 root root   536420 Aug 30 12:01 curl-7.32.0-2-x86_64.pkg.tar.xz
-rw-r--r-- 1 root root   816152 Aug 31 16:43 fontconfig-2.10.95-1-x86_64.pkg.tar.xz
-rw-r--r-- 1 root root  8594032 Aug 25 13:53 glibc-2.18-3-x86_64.pkg.tar.xz
-rw-r--r-- 1 root root  1955608 Sep  1 19:23 gnutls-3.2.4-1-x86_64.pkg.tar.xz
-rw-r--r-- 1 root root  7626112 Aug 31 00:35 gtk3-3.8.4-1-x86_64.pkg.tar.xz
-rw-r--r-- 1 root root    27772 Aug 28 19:06 iftop-1.0pre2-1-x86_64.pkg.tar.xz
-rw-r--r-- 1 root root   403160 Aug 22 15:26 libldap-2.4.36-1-x86_64.pkg.tar.xz
-rw-r--r-- 1 root root 48566544 Aug 30 21:25 linux-3.10.10-1-x86_64.pkg.tar.xz
-rw-r--r-- 1 root root  5976976 Aug 30 21:28 linux-headers-3.10.10-1-x86_64.pkg.tar.xz
-rw-r--r-- 1 root root   372292 Sep  5 00:55 mdadm-3.3-1-x86_64.pkg.tar.xz
-rw-r--r-- 1 root root     2832 Aug 31 01:45 pacman-mirrorlist-20130830-1-any.pkg.tar.xz
-rw-r--r-- 1 root root  9083552 Sep  6 18:08 python2-2.7.5-2-x86_64.pkg.tar.xz
-rw-r--r-- 1 root root  3879728 Sep 11 23:34 python2-django-1.5.3-1-any.pkg.tar.xz
-rw-r--r-- 1 root root   174952 Sep  7 21:16 python2-pytz-2013d-1-any.pkg.tar.xz
-rw-r--r-- 1 root root   208576 Aug 27 16:28 reiserfsprogs-3.6.24-1-x86_64.pkg.tar.xz
-rw-r--r-- 1 root root   433320 Aug 30 18:53 sqlite-3.8.0.1-1-x86_64.pkg.tar.xz

I honestly didn't notice an pacnew/pacsav files.    The same update was run on another machine without any issue.


Only thing I can see in journalctl is the following

Sep 12 09:02:40 avatar kernel: IPv6: ADDRCONF(NETDEV_CHANGE): eno1: link becomes ready
Sep 12 09:02:40 avatar kernel: e1000e: eno1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None
Sep 12 09:02:40 avatar systemd-logind[295]: Watching system buttons on /dev/input/event4 (Sleep Button)
Sep 12 09:02:40 avatar systemd-logind[295]: Watching system buttons on /dev/input/event5 (Power Button)
Sep 12 09:02:40 avatar kernel: IPv6: ADDRCONF(NETDEV_UP): eno1: link is not ready
Sep 12 09:02:40 avatar kernel: e1000e 0000:00:19.0: irq 45 for MSI/MSI-X
Sep 12 09:02:40 avatar kernel: e1000e 0000:00:19.0: irq 45 for MSI/MSI-X
Sep 12 09:02:39 avatar systemd-logind[295]: New session 1 of user mark.
Sep 12 09:02:39 avatar systemd[1]: Unit dhcpcd@eno1.service entered failed state.
Sep 12 09:02:39 avatar systemd[1]: Failed to start dhcpcd on eno1.
Sep 12 09:02:39 avatar systemd[1]: dhcpcd@eno1.service: control process exited, code=exited status=1

showing the interface en01 not starting.   

After boot i started with dhcpcd   (its a 1gig ethernet card) 

It started fine, but cannot use systemctl to start services.   I was able to start postgresql with pg_ctl and apache with apachectl.

Offline

#4 2013-09-12 00:38:53

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: kernel update & reboot - systemctl not starting services

/var/log/pacman.log will tell you if there were any instructions or .pacnew/.pacsave files to deal with.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#5 2013-09-12 01:02:02

markbrazil
Member
Registered: 2011-06-21
Posts: 21

Re: kernel update & reboot - systemctl not starting services

cfr wrote:

/var/log/pacman.log will tell you if there were any instructions or .pacnew/.pacsave files to deal with.


thanks for that.  The only pacnew/pacsav is the mirrorlist. 

[2013-09-12 08:52] [ALPM] warning: /etc/pacman.d/mirrorlist installed as /etc/pacman.d/mirrorlist.pacnew
[2013-09-12 08:52] [PACMAN] upgraded pacman-mirrorlist (20130626-1 -> 20130830-1)

Found this in journalctl ... but, the system isn't running a display manager. Its used as a server, so no gnome/kde etc.

Sep 12 09:01:57 avatar systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory. 
Sep 12 09:01:57 avatar systemd[1]: Set hostname to <avatar>.

Offline

#6 2013-09-12 01:06:47

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: kernel update & reboot - systemctl not starting services

You need to set the default target to multi-user if you don't want it to try to boot into a GUI. But I doubt that has anything to do with the problems you're having starting services.

You could try copying the service file for dhcpcd and adding a sleep command in just to see if it is trying to do stuff too soon. I think there have been some posts about this but I am not sure of the details or if it might be the cause of what you are seeing.

(I imagine the later services are failing because of the earlier failure.)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB