xbianonpi / xbian

XBMC on Raspberry Pi, Bleeding Edge
https://xbian.org
GNU General Public License v3.0
294 stars 44 forks source link

XBMC won't start after upgrade #544

Closed chrisofthewhites closed 10 years ago

chrisofthewhites commented 10 years ago

Not sure what's going on...

It looks like it's loading, but drops out of loading sequence and I get the following on screen in text:

Xbain GNU/Linux 7 xbian tty1 [ ok login: [....] Starting Samba daemons: nmbd.

That is just at the command prompt (didn't know how to format it as code)

Thanks, Chris

mk01 commented 10 years ago

@chrisofthewhites

can you please provide output of

dpkg-query -W xbian-\*
CurlyMoo commented 10 years ago

The problem problably is this:

root@xbian:~# vcgencmd version
VCHI initialization failed
root@xbian:~# ls -Al /dev/vc*
crw------- 1 root root 251,   0 mei 26 13:41 /dev/vc-mem
crw------- 1 root root   7,   0 mei 26 13:41 /dev/vcs
crw------- 1 root root   7,   1 mei 26 13:41 /dev/vcs1
crw------- 1 root root   7,   2 mei 26 13:41 /dev/vcs2
crw------- 1 root root   7,   4 mei 26 13:41 /dev/vcs4
crw------- 1 root root   7,   7 mei 26 13:41 /dev/vcs7
crw------- 1 root root   7, 128 mei 26 13:41 /dev/vcsa
crw------- 1 root root   7, 129 mei 26 13:41 /dev/vcsa1
crw------- 1 root root   7, 130 mei 26 13:41 /dev/vcsa2
crw------- 1 root root   7, 132 mei 26 13:41 /dev/vcsa4
crw------- 1 root root   7, 135 mei 26 13:41 /dev/vcsa7

The vchiq device doesn't exists.

xbian-package-cec       1.1.6-3
xbian-package-cec-6q
xbian-package-config
xbian-package-config-shell      2.1.7-2
xbian-package-config-xbmc       1.1.8-1
xbian-package-firmware  1.4.16
xbian-package-firmware-6q
xbian-package-initramfs-tools   1.3.4-10b
xbian-package-kernel    1.3.7-3
xbian-package-kernel-6q
xbian-package-kernel-fiq        1.3.7-1
xbian-package-kernel3.6.11
xbian-package-libshairport      1.0-1
xbian-package-libtag    1.0-3
xbian-package-lirc      1.4-8.8
xbian-package-networkfs
xbian-package-samba     2.0.0-4
xbian-package-shairplay 1.0.5
xbian-package-splash    2.0.4-3
xbian-package-upstart-xbmc-bridge       1.1.1-5
xbian-package-usbmount  1.0.5-6
xbian-package-vnc-server        1.1.0
xbian-package-xbianhome 1.0.0-4
xbian-package-xbmc      3.1.0-2
xbian-package-xbmc-6q
xbian-package-xbmc-gotham-nightly       3.0.1
xbian-package-xbmc-scripts      1.0.8
xbian-package-zram-swap 1.0.5
xbian-update    1.0.2-97
mk01 commented 10 years ago

@CurlyMoo

for you it is:

apt-get install --reinstall xbian-package-kernel=1.3.7-3 xbian-package-kernel-fiq-
CurlyMoo commented 10 years ago

Yes, it fixed the vchiq issue.

chrisofthewhites commented 10 years ago

mk01, thanks for your response. I was away for the weekend but here's the output

[code] xbian-package-cec 1.1-1 xbian-package-cec-6q xbian-package-config xbian-package-config-shell 2.1.7-1 xbian-package-config-xbmc 1.1.8 xbian-package-firmware 1.4.14-0 xbian-package-firmware-6q xbian-package-initramfs-tools 1.3.4-10b xbian-package-kernel 1.3-6.10 xbian-package-kernel-6q xbian-package-kernel-headers xbian-package-kernel3.6.11 xbian-package-libshairport 1.0-1 xbian-package-libtag 1.0-3 xbian-package-lirc 1.4-8.8 xbian-package-networkfs xbian-package-samba 2.0.0-4 xbian-package-shairplay 1.0.2-1 xbian-package-splash 2.0.4-3 xbian-package-upstart-xbmc-bridge 1.1.1-5 xbian-package-usbmount 1.0.5-6 xbian-package-vnc-server 1.1.0 xbian-package-xbianhome 1.0.0-4 xbian-package-xbmc 3.0.0 xbian-package-xbmc-6q xbian-package-xbmc-gotham-nightly xbian-package-xbmc-scripts 1.0.8 xbian-package-zram-swap 1.0.5 xbian-update 1.0.2-97 [/code]

mk01 commented 10 years ago

@chrisofthewhites

update kernel package at least to 1.3-6.11b

sudo -i
apt-get clean; apt-get update
rm /boot/initramfs.gz
apt-get install xbian-package-kernel=1.3-6.11b
mk01 commented 10 years ago

do you have kernel package set on hold ? as other packages seem to be up-to-date correctly only this one lacks behind.

chrisofthewhites commented 10 years ago

I upgarded just now, yeah i think that I must have put it on hold as there was errors on it, i remember doing something that i saw suggested in a forum....can't really recall though. I've got basic knowledge of what I'm doing!

I tried the code above but it's not finding that version so I get an error

I ran apt-get upgrade and get the following error (how do i put this in a code box)?

Setting up xbian-package-xbmc (3.0.0-1) ...
rm: cannot remove `/home/xbian/.xbmc/userdata/Database.old': Directory not empty
dpkg: error processing xbian-package-xbmc (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 xbian-package-xbmc
E: Sub-process /usr/bin/dpkg returned an error code (1)

the [code] box is putting text between lines with "```" (without the quotes) like this

-```
text 
-```
mk01 commented 10 years ago

@chrisofthewhites

do

sudo mv /home/xbian/.xbmc/userdata/Database.old /home/xbian/.xbmc/userdata/Database.broken

before running apt-get update again. please report back if the directory wasn't empty or the error message was just wrong. when I reproduced the issue it was just false possitive (reason unknown).

chrisofthewhites commented 10 years ago

The error message was just wrong. That seemed to work, as the upgrade work without issues now.

The initial prompt keeps coming up though that I had before in the first post.

When i check the services gssd, idmapd, restore-home, xbian-xbmc bridge and xbmc aren't running, even though they are set to autostart.

I checked my kernal and it's still not updating only on 1.3-6.10, I tried your code above again but it's still saying

E: Version '1.3-6.11b' for 'xbian-package-kernel' was not found
mk01 commented 10 years ago

you are right, this are on staging/devel, do it like this:

sudo -i
cd /tmp
wget http://xbian.brantje.com/pool/staging/main/x/xbian-package-kernel/xbian-package-kernel_1.3-6.11b_armhf.deb
dpkg -i xbian-package-kernel_1.3-6.11b_armhf.deb
chrisofthewhites commented 10 years ago

Thanks that worked for upgrading the kernel, however I'm still having the same problem as the first post :-(


xbian-package-cec       1.1-1
xbian-package-cec-6q
xbian-package-config
xbian-package-config-shell      2.1.7-2
xbian-package-config-xbmc       1.1.8-1
xbian-package-firmware  1.4.14-0
xbian-package-firmware-6q
xbian-package-initramfs-tools   1.3.4-10b
xbian-package-kernel    1.3-6.11b
xbian-package-kernel-6q
xbian-package-kernel-headers
xbian-package-kernel3.6.11
xbian-package-libshairport      1.0-1
xbian-package-libtag    1.0-3
xbian-package-lirc      1.4-8.8
xbian-package-networkfs
xbian-package-samba     2.0.0-4
xbian-package-shairplay 1.0.2-1
xbian-package-splash    2.0.4-3
xbian-package-upstart-xbmc-bridge       1.1.1-5
xbian-package-usbmount  1.0.5-6
xbian-package-vnc-server        1.1.0
xbian-package-xbianhome 1.0.0-4
xbian-package-xbmc      3.0.0-1
xbian-package-xbmc-6q
xbian-package-xbmc-gotham-nightly
xbian-package-xbmc-scripts      1.0.8
xbian-package-zram-swap 1.0.5
xbian-update    1.0.2-97

I notice some of mine aren't as up to date as the one posted above by Curly Mpp

but maybe Curly moo is a developer or something!

mk01 commented 10 years ago

@chrisofthewhites

yes, he has staging & devel repo too. can you post:

sudo -i
lsmod
su xbian
cd
/usr/local/lib/xbmc/xbmc.bin --standalone -fs -n --debug
mk01 commented 10 years ago

it can be just the missing libnfs1 dependency as fasser reported here https://github.com/xbianonpi/xbian/issues/543. it was corrected, but you already have it installed ... in that case

apt-get install libnfs1
chrisofthewhites commented 10 years ago

When I enter su xbian the config menu comes up? (I'm using ssh), so I couldn't give an output of your request above.

I tried the libnfs1 but it just came up that it was already installed.....one other thing which may or may not be relevant is that the shairplay is being held back

The following packages have been kept back:
  xbian-package-shairplay
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

Thanks for all your help by the way!

mk01 commented 10 years ago

just close the xbian-config, you get shell

chrisofthewhites commented 10 years ago

xbmc-loaded start/running, process 3663
error reading file
  calib_x_d=1280;
  calib_x_fact=-1.000000;
  calib_y_d=720;
  calib_y_fact=-1.000000;
  swap_axes=:0;
  click_confines=7;error reading file
  calib_x_d=1280;
  calib_x_fact=-1.000000;
  calib_y_d=720;
  calib_y_fact=-1.000000;
  swap_axes=:0;
  click_confines=7;
chrisofthewhites commented 10 years ago

But it's working again! I've got XBMC on my tv again now! Thanks very much!