Packages

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category Any
  • Assigned To
    Emulatorman
  • Operating System Hyperbola GNU/Linux-libre
  • Severity High
  • Priority High
  • Reported Version Milky Way v0.2
  • Due in Version Starfix
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Packages
Opened by fablamar78 - 10/02/2018
Last edited by Emulatorman - 12/02/2018

FS#656 - [lightdm] is running under foreground mode and causing service failure in another services

Since latest update, many of my service do not start automatically. (I can start them manually though)
This cause multiple errors at shutdown as well.

 udev                                                                                          [  started  ]
 localmount                                                                                    [  started  ]
 dbus                                                                                          [  started  ]
 elogind                                                                                       [  started  ]
 NetworkManager                                                                                [  started  ]
 syslog-ng                                                                                     [  started  ]
 acpid                                                                                         [  started  ]
 dhcpcd                                                                                        [  started  ]
 avahi-daemon                                                                                  [  started  ]
 netmount                                                                                      [  started  ]
 lightdm                                                                                       [ starting  ]
 alsasound                                                                                     [  stopped  ]
 avahi-dnsconfd                                                                                [  stopped  ]
 cronie                                                                                        [  stopped  ]
 cupsd                                                                                         [  stopped  ]
 fuse                                                                                          [  stopped  ]
 ntpd                                                                                          [  stopped  ]
 libvirtd                                                                                      [  stopped  ]
 openrc-settingsd                                                                              [  stopped  ]
 sshd                                                                                          [  stopped  ]
 thinkfan                                                                                      [  stopped  ]
 local                                                                                         [  stopped  ]
 agetty.tty5                                                                                   [  stopped  ]
 agetty.tty3                                                                                   [  stopped  ]
 agetty.tty6                                                                                   [  stopped  ]
 agetty.tty4                                                                                   [  stopped  ]
 agetty.tty2                                                                                   [  stopped  ]
 agetty.tty1                                                                                   [  stopped  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed/wanted
 modules-load                                                                                  [  started  ]
 lvmetad                                                                                       [  started  ]

Before dbus update, everything was working fine.

Thanks for your help

Closed by  Emulatorman
12.02.2018 06:39
Reason for closing:  Fixed

OpenRC shutdown log :

rc shutdown logging started
 * Saving random seed ...
 [ ok ]
 * Call to flock failed: Resource temporarily unavailable
 * Unmounting network filesystems ...
 [ ok ]
 * Stopping avahi-daemon ...
 [ ok ]
 * Stopping DHCP Client Daemon ...
 [ ok ]
 * Stopping syslog-ng ...
 [ ok ]
 * Stopping NetworkManager ...
 [ ok ]
 * elogind: waiting for lightdm (50 seconds)
 * elogind: waiting for lightdm (41 seconds)

(lightdm:2138): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
 * elogind: waiting for lightdm (32 seconds)
 * elogind: waiting for lightdm (23 seconds)
 * elogind: waiting for lightdm (14 seconds)
 * elogind: waiting for lightdm (5 seconds)
 * Stopping elogind ...
 [ ok ]
 * dbus: waiting for lightdm (50 seconds)
 * dbus: waiting for lightdm (41 seconds)
 * dbus: waiting for lightdm (32 seconds)
 * dbus: waiting for lightdm (23 seconds)
 * dbus: waiting for lightdm (14 seconds)
 * dbus: waiting for lightdm (5 seconds)
 * Stopping dbus ...
Failed to get D-Bus connection
 * start-stop-daemon: failed to start `/usr/bin/lightdm'
 * Failed to start lightdm
 [ !! ]
 * ERROR: lightdm failed to start
Error writing to daemon: Broken pipe
Error writing to daemon:  [B rookk e]n 
pipe
Error writing to daemon: Broken pipe
Error writing to daemon: Broken pipe
Error writing to daemon: Broken pipe
Error writing to daemon: Broken pipe
 * Restoring Mixer Levels ...
 [ ok ]
 * ERROR: cannot start avahi-dnsconfd as dbus would not start
 * Storing ALSA Mixer Levels ...
 [ ok ]
 * procfs: waiting for localmount (50 seconds)
 * localmount: waiting for procfs (50 seconds)
 * procfs: waiting for localmount (41 seconds)
 * localmount: waiting for procfs (41 seconds)
 * procfs: waiting for localmount (32 seconds)
 * localmount: waiting for procfs (32 seconds)
 * procfs: waiting for localmount (23 seconds)
 * localmount: waiting for procfs (23 seconds)
 * procfs: waiting for localmount (14 seconds)
 * localmount: waiting for procfs (14 seconds)
 * procfs: waiting for localmount (5 seconds)
 * localmount: waiting for procfs (5 seconds)
 * procfs: timed out waiting for localmount
 * ERROR: cannot start procfs as localmount would not start
 * Unmounting loop devices
 * Unmounting filesystems
 *   Unmounting /home ...
[ ok ]
 *   Unmounting /boot ...
 [ ok ]
 * Deactivating swap devices ...
 * Loading custom binary format handlers ...
 [ ok ]
/usr/lib/rc/sh/binfmt.sh: line 32: echo: write error: File exists
binfmt: invalid entry on line 1 of `/usr/lib/binfmt.d//mono.conf'
 [ !! ]
 * mtab: waiting for cronie (50 seconds)
 * cronie: waiting for mtab (50 seconds)
 * cronie: waiting for mtab (41 seconds)
 * mtab: waiting for cronie (41 seconds)
 * cronie: waiting for mtab (32 seconds)
 * mtab: waiting for cronie (32 seconds)
 * cronie: waiting for mtab (23 seconds)
 * mtab: waiting for cronie (23 seconds)
 * cronie: waiting for mtab (14 seconds)
 * mtab: waiting for cronie (14 seconds)
 * cronie: waiting for mtab (5 seconds)
 * mtab: waiting for cronie (5 seconds)
 * cronie: timed out waiting for mtab
 * ERROR: cannot start cronie as localmount would not start
 * cupsd: waiting for mtab (50 seconds)
 * mtab: waiting for cupsd (50 seconds)
 * cupsd: waiting for mtab (41 seconds)
 * mtab: waiting for cupsd (41 seconds)
 * cupsd: waiting for mtab (32 seconds)
 * mtab: waiting for cupsd (32 seconds)
 * cupsd: waiting for mtab (23 seconds)
 * mtab: waiting for cupsd (23 seconds)
 * cupsd: waiting for mtab (14 seconds)
 * mtab: waiting for cupsd (14 seconds)
 * cupsd: waiting for mtab (5 seconds)
 * mtab: waiting for cupsd (5 seconds)
 * cupsd: timed out waiting for mtab
 * ERROR: cannot start cupsd as localmount would not start
 * fuse: waiting for mtab (50 seconds)
 * mtab: waiting for fuse (50 seconds)
 * fuse: waiting for mtab (41 seconds)
 * mtab: waiting for fuse (41 seconds)
 * fuse: waiting for mtab (32 seconds)
 * mtab: waiting for fuse (32 seconds)
 * fuse: waiting for mtab (23 seconds)
 * mtab: waiting for fuse (23 seconds)
 * fuse: waiting for mtab (14 seconds)
 * mtab: waiting for fuse (14 seconds)
 * fuse: waiting for mtab (5 seconds)
 * mtab: waiting for fuse (5 seconds)
 * fuse: timed out waiting for mtab
 * ERROR: cannot start fuse as localmount would not start
 * keymaps: waiting for mtab (50 seconds)
 * mtab: waiting for keymaps (50 seconds)
 * keymaps: waiting for mtab (41 seconds)
 * mtab: waiting for keymaps (41 seconds)
 * keymaps: waiting for mtab (32 seconds)
 * mtab: waiting for keymaps (32 seconds)
 * keymaps: waiting for mtab (23 seconds)
 * mtab: waiting for keymaps (23 seconds)
 * keymaps: waiting for mtab (14 seconds)
 * mtab: waiting for keymaps (14 seconds)
 * keymaps: waiting for mtab (5 seconds)
 * mtab: waiting for keymaps (5 seconds)
 * keymaps: timed out waiting for mtab
 * ERROR: cannot start keymaps as localmount would not start
 * Starting ntpd ...
 [ ok ]
 * Starting virtlogd ...
 [ ok ]
 * Stopping lvmetad ...
 [ ok ]
 * ERROR: cannot start libvirtd as fsck would not start
 * Bringing up network interface lo ...
RTNETLINK answers: File exists
 [ ok ]
 * Setting hardware clock using the system clock [UTC] ...
 [ ok ]
 * Starting mdadm monitor ...
 [ ok ]
 * Bringing up interface lo
 * Stopping udev ...
 [ ok ]

rc shutdown logging stopped
Admin

I've just removed the systemd-sysusers file in the latest revision [0] , so i suppose you are using systemd-sysusers support since it generates a temporary dbus user in memory under systemd way.

Some distros such as Parabola and Artix are supporting systemd-sysusers through opensysusers and systemd-tmpfiles through opentmpfiles for their OpenRC version, however Hyperbola hasn't plans to support them since we are using from install files or from our filesystem package that contains dbus user added in passwd by default [1] or through OpenRC init scripts. The main reason about it is that Hyperbola Project follows the Unix way like the old times, not the systemd one.

If you come from Artix or Parabola, then you are using opensysusers/opentmpfiles package. Currently, i'm removing all systemd-sysusers and systemd-tmpfiles from all packages distributed by Hyperbola in the v0.2 version and re-adapting like the old times.

BTW, did you run pacdiff to compare changes between your passwd file and our one distributed through filesystem package? I mean it because all Arch-based distros migrated their users and groups under the systemd way. [2]

Perhaps you have remaining packages and configurations adapted from the previous distro yet. To check orphan packages, run:

# pacman -Qqm

Thanks for your answer. I installed Hyperbola straight from the official iso (Milky Way v0.2.2) Unfortunately, it doesn't solve the issue.
No orphans as well.

Is there additional logs I can provide ?
For now, I reverted back to previous dbus version and it works fine.

Admin

It's a strange bug, since i can't replicate that (i've upgraded all machines and it works well) please, paste here your runlevels configuration.

To do it, run:

# rc-update --all -v

Then, paste your pacman.conf here to confirm if signature verification is working well and a checksum about your dbus package downloaded in /var/pacman/cache, eg:

$ sha512sum /var/cache/pacman/pkg/dbus-1.10.18-1.hyperbola4-x86_64.pkg.tar.xz

It should be the result:

x86_64:

2be0d5cdf7e044c55a4bec56c289cfbc96d6b5ed6c3752b3473b458a54294e69a83058ba41bcca276545d076f733155af9147606bc9c558d4518f4c28001cf69  /var/cache/pacman/pkg/dbus-1.10.18-1.hyperbola4-x86_64.pkg.tar.xz

i686:

e8203c2ba43fda80246313661e16adbd15952754bf883226972965fc32cc0453ef284adbe88ea40f8ca8da7a6a00a702e15843ee62705070622ba4f42ebb7c42   /var/cache/pacman/pkg/dbus-1.10.18-1.hyperbola4-i686.pkg.tar.xz

Thanks.
As requested, with dbus-1.10.18-1.hyperbola4-x86_64 :
rc-update –all -v

       NetworkManager |      default                           
                acpid |      default                           
               agetty |                                        
          agetty.tty1 |      default                           
          agetty.tty2 |      default                           
          agetty.tty3 |      default                           
          agetty.tty4 |      default                           
          agetty.tty5 |      default                           
          agetty.tty6 |      default                           
            alsasound |      default                           
                  atd |                                        
               auditd |                                        
         avahi-daemon |      default                           
       avahi-dnsconfd |      default                           
               binfmt | boot                                   
             bootmisc | boot                                   
               brltty |                                        
                 ceph |                                        
          consolefont | boot                                   
             cpupower |                                        
               cronie |      default                           
         cups-browsed |                                        
                cupsd |      default                           
                 dbus |      default                           
                devfs |                                 sysinit
        device-mapper |                                        
               dhcpcd |      default                           
              dmcrypt | boot                                   
                dmesg |                                 sysinit
             dmeventd |                                        
              dnsmasq |                                        
              elogind |      default                           
           fancontrol |                                        
                 fsck | boot                                   
                 ftpd |                                        
                 fuse |      default                           
           git-daemon |                                        
                  gpm |                                        
             gssproxy |                                        
              haveged |                                        
              hddtemp |                                        
               hdparm |                                        
              hostapd |                                        
             hostname | boot                                   
                httpd |                                        
              hwclock | boot                                   
            ip6tables |                                        
             iptables |                                        
               irexec |                                        
              keymaps | boot                                   
            killprocs |                        shutdown        
          krb5kadmind |                                        
              krb5kdc |                                        
           krb5kpropd |                                        
       libvirt-guests |                                        
             libvirtd |      default                           
              lightdm |      default                           
                lircd |                                        
               lircmd |                                        
           lm_sensors |                                 sysinit
                local |      default nonetwork                 
           localmount | boot default                           
             loopback | boot                                   
                  lvm | boot                                   
       lvm-monitoring |                                        
              lvmetad |                                        
             lvmlockd |                                        
                mdadm |                                        
               mdraid |                                        
              modules | boot                                   
         modules-load |                                        
             mount-ro |                        shutdown        
                  mpd |                                        
                 mtab | boot                                   
           net-online |                                        
               net.lo | boot                                   
             netmount |      default                           
                  nfs |                                        
            nfsclient |                                        
                 nscd |                                        
           ntp-client |                                        
                 ntpd |      default                           
              numlock |                                        
     openrc-settingsd |      default                           
       openvpn-client |                                        
       openvpn-server |                                        
              osclock |                                        
              php-fpm |                                        
               procfs | boot                                   
              qemu-ga |                                        
               rbdmap |                                        
                 root | boot                                   
             rpc.gssd |                                        
           rpc.idmapd |                                        
           rpc.pipefs |                                        
            rpc.statd |                                        
          rpc.svcgssd |                                        
              rpcbind |                                        
               rsyncd |                                        
             runsvdir |                                        
            s6-svscan |                                        
                saned |                                        
            savecache |                        shutdown        
              sensord |                                        
                 sntp |                                        
        spice-vdagent |                                        
                 sshd |      default                           
              stunnel |                                        
                  svn |                                        
                 swap | boot                                   
              swclock |                                        
               sysctl | boot                                   
                sysfs |                                 sysinit
            syslog-ng |      default                           
              sysstat |                                        
         termencoding | boot                                   
             thinkfan |      default                           
       tox-bootstrapd |                                        
                 udev |      default                    sysinit
          udev-settle |                                        
         udev-trigger |                                 sysinit
              urandom | boot                                   
            virtlockd |                                        
             virtlogd |                                        
              vnstatd |                                        
       wpa_supplicant |                                        
                  xdm |                                        
            xdm-setup | 

pacman.conf

#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
#GPGDir      = /etc/pacman.d/gnupg/
#HookDir     = /etc/pacman.d/hooks/
HoldPkg     = pacman glibc
#XferCommand = /usr/bin/curl -C - -f %u > %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
#UseDelta    = 0.7
Architecture = auto

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg   =
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
Color
#TotalDownload
CheckSpace
#VerbosePkgLists

# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel    = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required

# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all Arch/Hyperbola packagers
# with `pacman-key --populate arch` and `pacman-key --populate hyperbola`.

#
# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here
#   - local/custom mirrors can be added here or in separate files
#   - repositories listed first will take precedence when packages
#     have identical names, regardless of version number
#   - URLs will have $repo replaced by the name of the current repo
#   - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
#       [repo-name]
#       Server = ServerName
#       Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

[core]
Include = /etc/pacman.d/mirrorlist

[extra]
Include = /etc/pacman.d/mirrorlist

[community]
Include = /etc/pacman.d/mirrorlist

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repository as required here.

[multilib]
Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs

dbus-1.10.18-1.hyperbola4-x86_64.pkg.tar.xz checksum is correct btw

rc-status -a

Runlevel: default
 udev                                                              [  started  ]
 localmount                                                        [  started  ]
 dbus                                                              [  started  ]
 elogind                                                           [  started  ]
 NetworkManager                                                    [  started  ]
 syslog-ng                                                         [  started  ]
 acpid                                                             [  started  ]
 dhcpcd                                                            [  started  ]
 avahi-daemon                                                      [  started  ]
 netmount                                                          [  started  ]
 lightdm                                                           [ starting  ]
** alsasound                                                         [  stopped  ]
 avahi-dnsconfd                                                    [  stopped  ]
 cronie                                                            [  stopped  ]
 cupsd                                                             [  stopped  ]
 fuse                                                              [  stopped  ]
 ntpd                                                              [  stopped  ]
 libvirtd                                                          [  stopped  ]
 openrc-settingsd                                                  [  stopped  ]
 sshd                                                              [  stopped  ]
 thinkfan                                                          [  stopped  ]
 local                                                             [  stopped  ]
 agetty.tty5                                                       [  stopped  ]
 agetty.tty3                                                       [  stopped  ]
 agetty.tty6                                                       [  stopped  ]
 agetty.tty4                                                       [  stopped  ]
 agetty.tty2                                                       [  stopped  ]
 agetty.tty1                                                       [  stopped  ]**
Runlevel: nonetwork
 local                                                             [  stopped  ]
Runlevel: shutdown
 killprocs                                                         [  stopped  ]
 savecache                                                         [  stopped  ]
 mount-ro                                                          [  stopped  ]
Runlevel: sysinit
 sysfs                                                             [  started  ]
 devfs                                                             [  started  ]
 udev                                                              [  started  ]
 dmesg                                                             [  started  ]
 udev-trigger                                                      [  started  ]
 lm_sensors                                                        [  started  ]
Runlevel: boot
 hwclock                                                           [  started  ]
 modules                                                           [  started  ]
 dmcrypt                                                           [  started  ]
 lvm                                                               [  started  ]
 fsck                                                              [  started  ]
 root                                                              [  started  ]
 mtab                                                              [  started  ]
 swap                                                              [  started  ]
 localmount                                                        [  started  ]
 urandom                                                           [  started  ]
 sysctl                                                            [  started  ]
 bootmisc                                                          [  started  ]
 termencoding                                                      [  started  ]
 keymaps                                                           [  started  ]
 hostname                                                          [  started  ]
 consolefont                                                       [  started  ]
 procfs                                                            [  started  ]
 binfmt                                                            [  started  ]
 loopback                                                          [  started  ]
 net.lo                                                            [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed/wanted
 modules-load                                                      [  started  ]
 lvmetad                                                           [  started  ]
Dynamic Runlevel: manual

Affected services are in bold, they were working fine before upgrading dbus. (Automatically started with runlevel default)

Admin

Remove dbus from default runlevel since it is a needed/wanted service:

# rc-update del dbus default

Then, reboot again:

# shutdown -r now

No change unfortunately.

Admin

I've got replicate the issue adding LightDM service in default runlevel and i've paid attention that LightDM is starting under foreground mode:

 lightdm                                                           [ starting  ]

... and causing the issue in the shutdown process:

Failed to get D-Bus connection
 * start-stop-daemon: failed to start `/usr/bin/lightdm'
 * Failed to start lightdm                                                                                                        [ !! ]
 * ERROR: lightdm failed to start

The reason is related about my latest change in LightDM init script [0] because i thought LightDM could run in background mode by default, so i'm going to fixing it to push a new revision.

Confirmed 100% working on my 2 machines running Hyperbola, thank you !

Date User Effort (H:M)
watch my effort tracking timers

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing