You are not logged in.

#1 2015-01-03 21:54:17

regder
Member
Registered: 2013-06-16
Posts: 42

[solved] unable to start Kodi after update

Updated from the official repositories today. Can't launch Kodi after update. Tried to reinstall xorg without success

Relevant entries are below.


# systemctl status kodi
● kodi.service - Starts instance of Kodi using xinit
   Loaded: loaded (/usr/lib/systemd/system/kodi.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sat 2015-01-03 16:51:11 EST; 2min 10s ago
  Process: 629 ExecStart=/usr/bin/xinit /usr/bin/dbus-launch --exit-with-session /usr/bin/kodi-standalone -- :0 -nolisten tcp vt7 (code=exited, status=216/GROUP)
Main PID: 629 (code=exited, status=216/GROUP)

Jan 03 16:51:11 bunga systemd[1]: kodi.service: main process exited, code=exited, status=216/GROUP
Jan 03 16:51:11 bunga systemd[1]: Unit kodi.service entered failed state.
Jan 03 16:51:11 bunga systemd[1]: kodi.service failed.

Jan 03 16:37:24 bunga systemd[800]: Failed at step GROUP spawning /usr/bin/xinit: No such process
Jan 03 16:37:24 bunga systemd[1]: kodi.service: main process exited, code=exited, status=216/GROUP
Jan 03 16:37:24 bunga systemd[1]: Unit kodi.service entered failed state.
Jan 03 16:37:24 bunga systemd[1]: kodi.service failed.

# startx


X.Org X Server 1.16.3
Release Date: 2014-12-20
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.18.1-1-ARCH x86_64
Current Operating System: Linux bunga 3.17.6-1-ARCH #1 SMP PREEMPT Sun Dec 7 23:43:32 UTC 2014 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=c20ca43d-7d5a-4335-bca3-a0224f2280c3 rw quiet
Build Date: 29 December 2014  01:09:58PM

Current version of pixman: 0.32.6
    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Jan  3 16:48:49 2015
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
/etc/X11/xinit/xinitrc: line 51: twm: command not found
/etc/X11/xinit/xinitrc: line 55: exec: xterm: not found
/etc/X11/xinit/xinitrc: line 52: xclock: command not found
/etc/X11/xinit/xinitrc: line 53: xterm: command not found
/etc/X11/xinit/xinitrc: line 54: xterm: command not found
xinit: connection to X server lost

waiting for X server to shut down (EE) Server terminated successfully (0). Closing log file.


Appreciate any help

Last edited by regder (2015-01-04 00:06:25)

Offline

#2 2015-01-03 22:09:58

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: [solved] unable to start Kodi after update

Are you using kodi-standalone-service from the AUR?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2015-01-03 22:10:19

regder
Member
Registered: 2013-06-16
Posts: 42

Re: [solved] unable to start Kodi after update

yes

Offline

#4 2015-01-03 23:04:33

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: [solved] unable to start Kodi after update

Guessing that you ran the update while xbmc (old version) was still running.  Try this (as root):

systemctl stop xbmc
userdel xbmc
groupdel xbmc
pacman -Rs kodi-standalone-service
pacman -S kodi-standalone-service

That should take care of it.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#5 2015-01-03 23:36:26

regder
Member
Registered: 2013-06-16
Posts: 42

Re: [solved] unable to start Kodi after update

Thank you, making progress. I removed kodi-standalone-service the former xbmc user and group and reinstalled from AUR, couldn't find it from pacman. I can now start kodi but X fails somewhere along the way.

Jan 03 18:33:53 bunga systemd[829]: pam_unix(login:session): session opened for user kodi by (uid=0)
Jan 03 18:33:53 bunga systemd[830]: pam_unix(systemd-user:session): session opened for user kodi by (uid=0)
Jan 03 18:33:53 bunga systemd-logind[220]: New session c7 of user kodi.
Jan 03 18:33:53 bunga systemd[830]: Starting Timers.
Jan 03 18:33:53 bunga systemd[830]: Reached target Timers.
Jan 03 18:33:53 bunga systemd[830]: Starting Paths.
Jan 03 18:33:53 bunga systemd[830]: Reached target Paths.
Jan 03 18:33:53 bunga systemd[830]: Starting Sockets.
Jan 03 18:33:53 bunga systemd[830]: Reached target Sockets.
Jan 03 18:33:53 bunga systemd[830]: Starting Basic System.
Jan 03 18:33:53 bunga systemd[830]: Reached target Basic System.
Jan 03 18:33:53 bunga systemd[830]: Starting Default.
Jan 03 18:33:53 bunga systemd[830]: Reached target Default.
Jan 03 18:33:53 bunga systemd[830]: Startup finished in 7ms.
Jan 03 18:33:53 bunga xinit[829]: X.Org X Server 1.16.3
Jan 03 18:33:53 bunga xinit[829]: Release Date: 2014-12-20
Jan 03 18:33:53 bunga xinit[829]: X Protocol Version 11, Revision 0
Jan 03 18:33:53 bunga xinit[829]: Build Operating System: Linux 3.18.1-1-ARCH x86_64
Jan 03 18:33:53 bunga xinit[829]: Current Operating System: Linux bunga 3.17.6-1-ARCH #1 SMP PREEMPT Sun Dec 7 23:43:32 UTC 2014 x86_64
Jan 03 18:33:53 bunga xinit[829]: Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=c20ca43d-7d5a-4335-bca3-a0224f2280c3 rw quiet
Jan 03 18:33:53 bunga xinit[829]: Build Date: 29 December 2014  01:09:58PM
Jan 03 18:33:53 bunga xinit[829]: Current version of pixman: 0.32.6
Jan 03 18:33:53 bunga xinit[829]: Before reporting problems, check http://wiki.x.org
Jan 03 18:33:53 bunga xinit[829]: to make sure that you have the latest version.
Jan 03 18:33:53 bunga xinit[829]: Markers: (--) probed, (**) from config file, (==) default setting,
Jan 03 18:33:53 bunga xinit[829]: (++) from command line, (!!) notice, (II) informational,
Jan 03 18:33:53 bunga xinit[829]: (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
Jan 03 18:33:53 bunga xinit[829]: (==) Log file: "/var/log/Xorg.0.log", Time: Sat Jan  3 18:33:53 2015
Jan 03 18:33:53 bunga xinit[829]: (==) Using config directory: "/etc/X11/xorg.conf.d"
Jan 03 18:33:53 bunga xinit[829]: (==) Using system config directory "/usr/share/X11/xorg.conf.d"
Jan 03 18:33:53 bunga xinit[829]: which: no start-pulseaudio-x11 in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin)
Jan 03 18:33:53 bunga xinit[829]: which: no pulse-session in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin)
Jan 03 18:33:53 bunga xinit[829]: sh: lsb_release: command not found
Jan 03 18:33:53 bunga xinit[829]: Could not init logging classes. Permission errors on ~/.kodi (/home/kodi/.kodi/temp/)
Jan 03 18:33:53 bunga xinit[829]: ERROR: Unable to create application. Exiting
Jan 03 18:33:53 bunga xinit[829]: sh: lsb_release: command not found
Jan 03 18:33:53 bunga xinit[829]: Could not init logging classes. Permission errors on ~/.kodi (/home/kodi/.kodi/temp/)
Jan 03 18:33:53 bunga xinit[829]: ERROR: Unable to create application. Exiting
Jan 03 18:33:53 bunga xinit[829]: sh: lsb_release: command not found
Jan 03 18:33:54 bunga xinit[829]: Could not init logging classes. Permission errors on ~/.kodi (/home/kodi/.kodi/temp/)
Jan 03 18:33:54 bunga xinit[829]: ERROR: Unable to create application. Exiting
Jan 03 18:33:54 bunga xinit[829]: /usr/bin/kodi --standalone  has exited uncleanly 3 times in the last 1 seconds.
Jan 03 18:33:54 bunga xinit[829]: Something is probably wrong
Jan 03 18:33:54 bunga xinit[829]: /usr/bin/xinit: connection to X server lost
Jan 03 18:33:54 bunga xinit[829]: waiting for X server to shut down (EE) Server terminated successfully (0). Closing log file.
Jan 03 18:33:55 bunga systemd[834]: pam_unix(login:session): session closed for user kodi
Jan 03 18:33:55 bunga dbus[228]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.19" (uid=420 pid=834 comm="(sd-pam    ") interface="org.freedesktop.login1.Manager" member="ReleaseSession" error name="(unset)" requested_reply="0" destination="org.freedesktop.login1" (uid=0 pid=220 comm="/usr/lib/systemd/systemd-logind ")
Jan 03 18:33:55 bunga systemd[834]: pam_systemd(login:session): Failed to release session: Access denied
Jan 03 18:33:57 bunga systemd-logind[220]: Removed session c7.
Jan 03 18:33:57 bunga systemd[830]: Stopping Default.
Jan 03 18:33:57 bunga systemd[830]: Stopped target Default.
Jan 03 18:33:57 bunga systemd[830]: Stopping Basic System.
Jan 03 18:33:57 bunga systemd[830]: Stopped target Basic System.
Jan 03 18:33:57 bunga systemd[830]: Stopping Timers.
Jan 03 18:33:57 bunga systemd[830]: Stopped target Timers.
Jan 03 18:33:57 bunga systemd[830]: Stopping Paths.
Jan 03 18:33:57 bunga systemd[830]: Stopped target Paths.
Jan 03 18:33:57 bunga systemd[830]: Stopping Sockets.
Jan 03 18:33:57 bunga systemd[830]: Stopped target Sockets.
Jan 03 18:33:57 bunga systemd[830]: Starting Shutdown.
Jan 03 18:33:57 bunga systemd[830]: Reached target Shutdown.
Jan 03 18:33:57 bunga systemd[830]: Starting Exit the Session...
Jan 03 18:33:57 bunga systemd[888]: Failed at step CHDIR spawning /usr/bin/kill: No such file or directory
Jan 03 18:33:57 bunga systemd[830]: systemd-exit.service: main process exited, code=exited, status=200/CHDIR
Jan 03 18:33:57 bunga systemd[830]: Failed to start Exit the Session.
Jan 03 18:33:57 bunga systemd[830]: Dependency failed for Exit the Session.
Jan 03 18:33:57 bunga systemd[830]: Job exit.target/start failed with result 'dependency'.
Jan 03 18:33:57 bunga systemd[830]: Unit systemd-exit.service entered failed state.
Jan 03 18:33:57 bunga systemd[830]: systemd-exit.service failed.

Offline

#6 2015-01-04 00:05:49

regder
Member
Registered: 2013-06-16
Posts: 42

Re: [solved] unable to start Kodi after update

Fixed it. Had to create /home/kodi/.kodi/temp/ and assign user kodi to it

Now, I just need to figure out where my xbmc settings/database went to.

Thanks for the help!

Last edited by regder (2015-01-04 00:07:03)

Offline

#7 2015-01-04 00:17:29

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: [solved] unable to start Kodi after update

You need to install the package from the AUR.  It creates that dir for you.  You will need to manually copy the old files to the new location.  The post install message from the aur package will direct you.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#8 2015-01-04 00:26:56

regder
Member
Registered: 2013-06-16
Posts: 42

Re: [solved] unable to start Kodi after update

graysky wrote:

The post install message from the aur package will direct you.

Did that, but for whatever reason, Kodi isn't reading it

Offline

#9 2015-01-04 00:32:07

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: [solved] unable to start Kodi after update

Well, /var/lib/xbmc needs to be present to see it:

  if [[ -d /var/lib/xbmc ]]; then
    echo "If you are upgrading from xbmc->kodi and wish to keep your"
    echo "settings, simply follow these steps after the install:"
    echo 
    echo "cp -a /var/lib/xbmc/.xbmc/* /var/lib/kodi/.kodi"
    echo "chown -R kodi:kodi /var/lib/kodi"
  fi

I just updated the service to stop xbmc.service if running to prevent what happened to you from happening to others.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#10 2015-01-04 00:35:46

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] unable to start Kodi after update

When posting configs, code or command output, please use [ code ] tags, not [ quote ] tags https://bbs.archlinux.org/help.php#bbcode

like this

It makes the code more readable and - in case of longer listings - more convenient to scroll through.

Offline

#11 2015-01-04 00:41:48

regder
Member
Registered: 2013-06-16
Posts: 42

Re: [solved] unable to start Kodi after update

graysky wrote:

Well, /var/lib/xbmc needs to be present to see it:

  if [[ -d /var/lib/xbmc ]]; then
    echo "If you are upgrading from xbmc->kodi and wish to keep your"
    echo "settings, simply follow these steps after the install:"
    echo 
    echo "cp -a /var/lib/xbmc/.xbmc/* /var/lib/kodi/.kodi"
    echo "chown -R kodi:kodi /var/lib/kodi"
  fi

I just updated the service to stop xbmc.service if running to prevent what happened to you from happening to others.

I moved the files to /home/kodi/.kodi and my settings/plugins followed. Still had to redo my database, but that's not a big deal

Offline

#12 2015-01-04 00:42:18

regder
Member
Registered: 2013-06-16
Posts: 42

Re: [solved] unable to start Kodi after update

karol wrote:

When posting configs, code or command output, please use [ code ] tags, not [ quote ] tags https://bbs.archlinux.org/help.php#bbcode

like this

It makes the code more readable and - in case of longer listings - more convenient to scroll through.

My bad, will keep it in mind for the future

Offline

Board footer

Powered by FluxBB