Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System freeze #691

Closed
s47 opened this issue Mar 1, 2015 · 76 comments
Closed

System freeze #691

s47 opened this issue Mar 1, 2015 · 76 comments

Comments

@s47
Copy link

s47 commented Mar 1, 2015

Please see: http://forum.xbian.org/thread-2789-post-27655.html#pid27655
I've haven't had any problems until recently updating. Seems to happen only when downloading torrents with transmission.
Dmesg log: http://pastebin.com/ZLbC9tci
Kodi log: http://pastebin.com/ggAhcfxg

Latest build. Kodi 14.2 Beta RPI B model. No overclocking. Sufficient power supply. 8 GB sandisk class 10. Wired ethernet. HDMI, 2 TB EXT4 drive connected.

@f1vefour
Copy link
Member

f1vefour commented Mar 1, 2015

If you have another power supply please try it, I reproduced the issue but while using a 500mah supply. Otherwise I can't reproduce on my normal 2A supply.

@f1vefour
Copy link
Member

f1vefour commented Mar 1, 2015

I stressed the Pi hard with 2A supply and no issue. This is just trying to stream an Internet video with 0.5A supply:

http://pastebin.com/LY2cjhma

@s47
Copy link
Author

s47 commented Mar 2, 2015

Thanks for the reply. Will check with another power supply and measure the voltage when I'm home in a couple of days.
I just don't understand how it could be a voltage issue when it's been running smooth for the past year? Nothing has changed other than regular updates.

@f1vefour
Copy link
Member

f1vefour commented Mar 2, 2015

Supplies get weaker as the capacitors age, maybe it's just a coincidence or maybe it's something else altogether.

@siklosi
Copy link

siklosi commented Mar 2, 2015

I started seeing same messages and I think it's after latest kernel upgrade, my rpi is right now offline and should not be, so i think it's 3.18.7 that is now installed. Funny thing is that sometimes xbmc works and network works (streaming etc.) but Rpi is unreachable (ping, xbmc remote, ssh, apache2) Also radio streams are not working any more for me. I have rpi B 512mb.

@s47
Copy link
Author

s47 commented Mar 2, 2015

Yes, that's the same thing happening to me siklosi.
Is there any way to revert to an earlier kernel and see if that helps?

@CurlyMoo
Copy link
Contributor

CurlyMoo commented Mar 2, 2015

@s47
Copy link
Author

s47 commented Mar 4, 2015

Turned out to be, as @f1vefour suspected, a low voltage problem. For some reason I was only getting 4.5V with my powered USB hub. Thanks again for the help and a great community.

@s47 s47 closed this as completed Mar 4, 2015
@f1vefour
Copy link
Member

f1vefour commented Mar 4, 2015

Thanks for coming back and reporting.

@s47
Copy link
Author

s47 commented Mar 5, 2015

I'm sorry but this morning I woke up to the same system freeze.
I've retested the voltage and it's steady at 4,96-5,00 V.
I've restarted the system and it's back online. But after a while it becomes extremely sluggish ad slow. CPU output (according to kodi) is consistantly at 100% and CPU-KODI is stuck around 70-80% (with only transmission running in the background). Transmssion download speed is really inconsistent and drops to 0 kb/sec when downloading popular, legal torrents. Also when scanning for new media it sticks at "Scanning movies using the movie database"
Here's an updated kodi log: http://pastebin.com/ht8n7pEa
And dmesg: http://pastebin.com/hq00gyXN

Any suggestions?

@s47 s47 reopened this Mar 5, 2015
@siklosi
Copy link

siklosi commented Mar 5, 2015

I have downgraded to 3.17.7-ck2+ and now everything works OK.

sudo apt-get install xbian-package-kernel=3.17.7-ck2+-1421550584

On Thu, Mar 5, 2015 at 8:52 AM, s47 notifications@github.com wrote:

I'm sorry but this morning I woke up to the same system freeze.
I've retested the voltage and it's steady at 4,96-5,00 V.
I've restarted the system and it's back online. But after a while it
becomes extremely sluggish ad slow. CPU output (according to kodi) is
consistantly at 100% and CPU-KODI is stuck around 70-80% (with only
transmission running in the background). Transmssion download speed is
really inconsistent and drops to 0 kb/sec when downloading popular, legal
torrents. Also when scanning for new media it sticks at "Scanning movies
using the movie database"
Here's an updated kodi log: http://pastebin.com/ht8n7pEa
And dmesg: http://pastebin.com/hq00gyXN

Any suggestions?


Reply to this email directly or view it on GitHub
#691 (comment).

@s47
Copy link
Author

s47 commented Mar 5, 2015

Came back to this half kodi/ half terminal screen frozen:
http://imgur.com/RWKNKaG
http://imgur.com/GjisEpy

@s47 s47 changed the title System freeze due to NIC driver System freeze Mar 5, 2015
@s47
Copy link
Author

s47 commented Mar 5, 2015

A user (can't see the username in the mail) sent me a message suggesting to downgrade the kernel software to 3.17.7-ck2+ with:
sudo apt-get install xbian-package-kernel=3.17.7-ck2+-1421550584

It's working flawlessly now so guess it's a problem with the kernel update.

@f1vefour
Copy link
Member

f1vefour commented Mar 5, 2015

Well you have to give it some time to be sure.

@s47
Copy link
Author

s47 commented Mar 5, 2015

Will do but it seems to be a lot more stable and responsive already. Will report back in a day or two

@s47
Copy link
Author

s47 commented Mar 7, 2015

48 hours after the kernel downgrade and everything is still running smoothly.

@f1vefour
Copy link
Member

f1vefour commented Mar 7, 2015

Thanks for reporting, I will try to figure out what happened between the two versions....ugh.

@bellini666
Copy link
Member

I think I'm having this issue for about a week.

It works fine until (specially after being idle and ~1min after I switch from another hdmi source to xbian) it freezees everything. It freezes in a way that I can't login using ssh so I don't have logs to post here.

I thought my sdcard had some problems, so I migrated to an nfs installation. Still the same problem.

I also tried using 3.17.7-ck2+-1421550584 a suggested above, but no luck too.

I really don't now what is causing this... I never had any issue like this before (I've been using xbian for almost 2 years now)

@f1vefour
Copy link
Member

f1vefour commented Mar 8, 2015

@hackedbellini
Try adding:

echo 08 > /sys/devices/platform/bcm2708_usb/regoffset
echo 0x31 > /sys/devices/platform/bcm2708_usb/regvalue

to

/etc/rc.local

@bellini666
Copy link
Member

@f1vefour I'll try that... will give some feedback in a couple of days to say if that worked. Thanks!

@f1vefour
Copy link
Member

f1vefour commented Mar 8, 2015

You're welcome, I hope we can get your issue ironed out.

@bellini666
Copy link
Member

The workaround didn't work for me... Just experience the issue twice :(

@bellini666
Copy link
Member

Just to be sure, since @s47 's problem seems to be solved with the kernel downgrade, I'll try it again. Maybe I did something wrong on the first try.

Will give some feedback soon.

@f1vefour
Copy link
Member

f1vefour commented Mar 8, 2015

What is your exact setup, hard drive (powered or not), power supply rating, exact Pi model, wired or wireless...attached peripherals

@bellini666
Copy link
Member

  • Raspberry B (not B+)
  • Power supply: 5.0V 1.0A
  • Wired networking

I don't have anything on usb ports (my tv shows/movies are accessed via nfs).

Also, I thought my sdcard was having some problems the first time this issue happened. I tried (like I said above) to do an nfs installation (so, only /boot was being used on the sdcard). I had to go back to the sdcard since the nfs installation got messed up after I did the kernel downgrade =P.

But I got the nfs installation working and the issue happened at least twice. So, it is probably not related to usb/sdcard/etc.

Please tell me if you need some more info.

@f1vefour
Copy link
Member

f1vefour commented Mar 8, 2015

Odd because my Pi 1 setup is exactly the same and I have no issue.

Do this and post the log to pastebin after you have to pull the power to reboot, make sure and let it freeze:

dmesg | tail -f /home/xbian/crash.log

@bellini666
Copy link
Member

@f1vefour dmesg unfortunately has no output, even right before the crash (as you can see here, that is the latest dmesg from before the crash, and it is the same from when xbian booted). Here is the relevant kodi log for reference.

One things I noticed in all my tests is that every time, the issue happens after a specific "trigger". If I restart xbian and let the TV on its hdmi source, I can use it for as long as I want and I will not have the issue.

Now, I change to another hdmi source for some time (e.g. 2 min) and come back, after I start using it, it will freeze in less than 1 minute.

It freezes the whole system in a way that my opened ssh sessions stop responding and I cannot open another one. The only "communication" I can do with it is send a ping.

And just to be sure that this part is clear =P, this issue started to happen about ~1 week ago. It never happened before and I didn't change anything on it other than run apt-get upgrade almost every day (yes, I'm that kind of person), so, the only variable that changed on my system when this issue started to happen was the version of the installed packages.

Btw, I'm using stable & staging repositories.

@Diak
Copy link

Diak commented Mar 11, 2015

FYI i moved .kodi directory and i reconfigured my kodi instance with add-on and libraries.
See you tomorrow for the update.

@f1vefour
Copy link
Member

@Diak thanks for keeping me updated.

@hackedbellini your issue is apparently directly related to HDMI/CEC, could you open a new issue?

@Diak
Copy link

Diak commented Mar 12, 2015

Last news : almost 24 hours since the beginning of the last test and my rpi still runs.

To complete my test, i'm going to delete theses lines from /etc/rc.local :
echo 08 > /sys/devices/platform/bcm2708_usb/regoffset
echo 0x31 > /sys/devices/platform/bcm2708_usb/regvalue

Moreover, i'm going to reinstall the last version of xbian-kernel.

We'll see in 24 hours ^^

@bellini666
Copy link
Member

@f1vefour np, I can.

Just to comment, the way I see to quickly reproduce the issue is not the only way it happens. Sometimes it will freeze a few moments after I boot.

@Diak
Copy link

Diak commented Mar 14, 2015

My RPi is still running so it seems the problem is solved with moving the .kodi directory.
If the problem finally come back i will post here but for now thanks a lot for the solution ;)

@rolftimmerman
Copy link

I've installed a fresh install of XBian on my RPi Model B and unfortunately I have the same issue. At least once a day the whole system freezes and I have to reboot to use it again. Because it happens randomly I haven't been able to save dmesg or anything.

This happens also after I've added the code below to /etc/rc.local :
echo 08 > /sys/devices/platform/bcm2708_usb/regoffset
echo 0x31 > /sys/devices/platform/bcm2708_usb/regvalue

@Fabio72
Copy link

Fabio72 commented Mar 18, 2015

Have you addedd before or after "exit 0"? Should be before
check if you have the right values with
cat /sys/devices/platform/bcm2708_usb/regoffset
cat /sys/devices/platform/bcm2708_usb/regvalue

@rolftimmerman
Copy link

Yes I've added it before the "exit 0":

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

echo 08 > /sys/devices/platform/bcm2708_usb/regoffset
echo 0x31 > /sys/devices/platform/bcm2708_usb/regvalue

exit 0

This also works correctly:

root@xbian:/home/xbian# cat /sys/devices/platform/bcm2708_usb/regoffset
0x00000008
root@xbian:/home/xbian# cat /sys/devices/platform/bcm2708_usb/regvalue
Reg@0x000008 = 0x00000031

@Diak
Copy link

Diak commented Mar 18, 2015

And my problem came back. Since Monday every day my RPi freezes....

I added again the two "echo" in /etc/rc.local but it seems hopeless...

@Diak
Copy link

Diak commented Mar 19, 2015

And I as imagined the edition of rc.local doesn't change anything. Xbian is still very very unstable...

@CurlyMoo
Copy link
Contributor

Even if you use the image we labeled stable?

@Diak
Copy link

Diak commented Mar 19, 2015

I switched to the beta image because i had a big problem with the stable image which forced me to format and reinstall all from the beginning. I thought that the beta image couldn't be more unstable and dangerous than the stable one. And in fact i had less problem with this beta image...

Hopefully i will receive soon my RPi 2 and will be able to test my Xbian on it. If it's still unstable i will switch to another distrib.

@Fabio72
Copy link

Fabio72 commented Mar 21, 2015

Today xbian freezed after many weeks. I was using youtube plugin.
I restarted and within 10 minutes it freezed again, while it was idle.
The only thing I changed was removing of "elevator=noop" from cmdline.txt.
Now I'm tring again with noop elevator and uptime is 4h

@Diak
Copy link

Diak commented Mar 21, 2015

To keep you info, since my last post the RPi hasn't freezed again.
I noticed that the last freezes happened when i was downloading a file so when there was a lot of I/O on the USB disk and ethernet.

@Diak
Copy link

Diak commented Mar 22, 2015

And a new freeze/crash when nzbget was unpacking a download...

@Diak
Copy link

Diak commented Mar 23, 2015

New behaviour, my RPi completely freezed but still respond to ping whereas before when it freezed even ping didn't work.
XBian is going to make me crazy...

@rolftimmerman
Copy link

Is there a way to go back to the stable version without installing everything again? For instance downgrading the kernel and kodi to a specific version?

@CurlyMoo
Copy link
Contributor

Standard apt functionality. A quick search on startpage or duckduckgo will give you the answer.

@rolftimmerman
Copy link

Yeah sorry wrong question, what I meant is what packages do I have to downgrade to get to the stable version again and which versions of the packages are used for the stable version?

@CurlyMoo
Copy link
Contributor

We don't keep track of that. Images are automatically generated based on the latest debs in the stable repositories. Install the latest stable on a separate SD card and save the list of package versions. That would essentially be what i would have to do myself to get the answer.

@bellini666
Copy link
Member

@rolftimmerman you probably can probably use apt preferences for that.

Take a look at this post I've made regarding something alike I did on Debian.

The theory is the same, you just need to pin the stable repository instead of snapshots.debian.org with a priority of 1001.

@CurlyMoo
Copy link
Contributor

XBian already uses these preferences for its own override packages.

@s47
Copy link
Author

s47 commented Mar 24, 2015

I'll just give you an update on my situation.
My pi started freezing again and again up until I couldn't restart it anymore. Eventually I couldn't boot and I only had one red light indicating on the pi. Tried 3 different SD cards with different versions of Xbian but I just couldn't get it to boot. I think the card reader might have gone bad. I don't know if that has had anything to do with my problems mentioned above. Either way I have ordered a new rpi 2 and can't wait to try it out with xbian.

@wlatendresse
Copy link

I have tried several power adapters, and the freeze even occurs with a 2.5A adapter. It can be easily reproduced (not every time, but nearly every time) with a "btrfs scrub start /" command. I will open an issue for this ASAP.

@f1vefour
Copy link
Member

I successfully used btrfs scrub several times in a row trying to reproduce but it completed successfully each time.

@bellini666
Copy link
Member

I have also been able to reproduce my issue with btrfs scrub start / in the first try (took ~4 sec for it to freeze).

@wlatendresse
Copy link

What are you running xbian on f1vefour?

@f1vefour
Copy link
Member

Pi 1 Model B and Pi 2

@mkreisl mkreisl closed this as completed Nov 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants