Bug 14945 - SBC is rebooting (unknown cause)
: SBC is rebooting (unknown cause)
Status: CLOSED FIXED
Product: SB Controller
Classification: Unclassified
Component: SqueezeOS
: unspecified
: PC Other
: P3 normal with 6 votes (vote)
: 7.5.0
Assigned To: Felix Mueller
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-10-26 20:30 UTC by Mikael Nyberg
Modified: 2010-04-08 17:27 UTC (History)
8 users (show)

See Also:
Category: Bug


Attachments
messages file of sbc (24.07 KB, application/octet-stream)
2009-10-29 23:31 UTC, Mikael Nyberg
Details
cat-messages (24.57 KB, application/octet-stream)
2009-12-04 20:43 UTC, Mikael Nyberg
Details
messages again (24.23 KB, text/octet-stream)
2009-12-06 11:26 UTC, Mikael Nyberg
Details
mesages.0 (1000.05 KB, text/octet-stream)
2009-12-07 08:49 UTC, Mikael Nyberg
Details
messages again (584.47 KB, text/octet-stream)
2009-12-07 08:49 UTC, Mikael Nyberg
Details
zip with the latest log files (104.50 KB, application/zip)
2009-12-12 01:53 UTC, Mikael Nyberg
Details
messages 7.5.0 after reboot (13.79 KB, application/x-gzip)
2010-01-04 22:25 UTC, Lars Heer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mikael Nyberg 2009-10-26 20:30:32 UTC
Se further comments in https://bugs-archive.lyrion.org/show_bug.cgi?id=13693
Theres been new development nobody will reopen that bug ?
Comment 1 Jim Zachary 2009-10-27 03:16:18 UTC
My two controllers reboot frequently when coming out a sleep.
Comment 2 James Richardson 2009-10-27 14:11:57 UTC
Do either of you have an SD card in the Controller?  IF so, when you remove the card do your controllers reboot when comming out of sleep?
Comment 3 Mikael Nyberg 2009-10-27 15:36:49 UTC
No SD card in the controller .
Comment 4 Jim Zachary 2009-10-27 16:39:31 UTC
(In reply to comment #2)
> Do either of you have an SD card in the Controller?  IF so, when you remove the
> card do your controllers reboot when comming out of sleep?

No SD card here.  I didn't know it accepted SD cards.
Comment 5 James Richardson 2009-10-27 16:53:53 UTC
Can you both please do a Factory Reset on your controllers, then email me your MAC address as well as the PID from the sticker in the battery compartment.
Comment 6 James Richardson 2009-10-27 17:38:07 UTC
Do any of you have the Controller enabled as a Play Back device?

Settings > Advanced > Beta Features > Audio Playback >Enable Playback (BETA)
Comment 7 Mikael Nyberg 2009-10-27 22:25:56 UTC
No audio playback is turned off .

I try it from time to time (the playback bug ) , I might also have tied to conect that player to SN /msb.com sometimes.
Comment 8 Jim Zachary 2009-10-28 17:12:34 UTC
(In reply to comment #6)
> Do any of you have the Controller enabled as a Play Back device?
> 
> Settings > Advanced > Beta Features > Audio Playback >Enable Playback (BETA)

No.  I do not have remote playback activated.
Comment 9 James Richardson 2009-10-29 06:04:11 UTC
Everyone having this issue, we need to get a Log of what's happening.  Please insert an SD card into your device, make sure there is a LOG folder at the root of the SD card.

Once you have replicated the error, upload the resulting file(s) from the log folder to this bug
Comment 10 Mikael Nyberg 2009-10-29 23:31:10 UTC
Created attachment 6242 [details]
messages file of sbc

I scp to controller and took the messages file, my SD card log directory is always empty for some reason . How to fix that.

However the log is after the restart ? and sbc sedoes not keep the previus log files ? as messages1 and so forth ?
Comment 11 Jim Zachary 2009-11-03 04:36:40 UTC
(In reply to comment #9)
> Everyone having this issue, we need to get a Log of what's happening.  Please
> insert an SD card into your device, make sure there is a LOG folder at the root
> of the SD card.
> 
> Once you have replicated the error, upload the resulting file(s) from the log
> folder to this bug

I have placed the card in the slot and created the LOG directory.  As soon as I get a chance, I'll send some data.
Comment 12 Jim Zachary 2009-11-19 06:17:43 UTC
My controller rebooted on awakening from sleep twice yesterday.

I had taken the SD card out due to unrelated problems.

I will put the SD card back in.

Is this still recommended?
Comment 13 James Richardson 2009-11-19 09:09:08 UTC
Jim: Yes, I still need to get a log of the error from your controller
Comment 14 Jim Zachary 2009-11-21 05:47:03 UTC
I experienced a reboot while the SD card was in the remote.

However, when I read the card, there was no data in the Log folder.

What do you suggest?
Comment 15 Mikael Nyberg 2009-11-21 07:35:12 UTC
Maybe you can ssh to the controller and use  cat on the messages file and copy and past3e to a txt document.
Or use scp to copy the messagesit ?

I have no controller anymore so I cant try right now.
from memory the file would reside somewhere var/log

I also had this problem no log on the SD card ( I think there is forums posts about it maybe a new bug )

Q: does the controller use log rotation of some kind ? i'm only finding 1 messages file ?

Q2: with a log directory on an SD card will there be older logs to ?

Q3: Is the folder name case sensitive ? log vs LOG ? on my ubuntu machine it is var/log likevise on my CC4.2 server
Comment 16 Jim Zachary 2009-11-21 11:53:01 UTC
I'm not technically adept enough to ssh or "use cat".

Sorry.

(In reply to comment #15)
> Maybe you can ssh to the controller and use  cat on the messages file and copy
> and past3e to a txt document.
> Or use scp to copy the messagesit ?
> 
> I have no controller anymore so I cant try right now.
> from memory the file would reside somewhere var/log
> 
> I also had this problem no log on the SD card ( I think there is forums posts
> about it maybe a new bug )
> 
> Q: does the controller use log rotation of some kind ? i'm only finding 1
> messages file ?
> 
> Q2: with a log directory on an SD card will there be older logs to ?
> 
> Q3: Is the folder name case sensitive ? log vs LOG ? on my ubuntu machine it is
> var/log likevise on my CC4.2 server
Comment 17 Mikael Nyberg 2009-11-30 01:40:30 UTC
I have used my *new* controller (old one exchanged with logitech for examination) a little bit for a week and noticed one reboot and several cracks from the speaker.

I have reformatted my SD card on a PC and put it in hopefully it catches some files.

My exchange controller came in a box marked C/NO:32-0516 DATE1:10-OCT-08
Controller itself is marked PM/N C-RL65 P/N:830-000019 PID: LZ841S2
Comment 18 James Richardson 2009-11-30 08:29:37 UTC
Your right, I forgot about that one.  7.4.x has an issue writing Log files.  It was fixed in 7.5.x

Q: does the controller use log rotation of some kind ? I'm only finding 1
messages file ?
A: The internal log is wiped each reboot.  So there is only 1 log

Q2: with a log directory on an SD card will there be older logs to ?
A2: yes, the SD card log folder (when its working) will continue writing to the same log file till XX size then start a new log file

Q3: Is the folder name case sensitive ? log vs LOG ? on my ubuntu machine it is
var/log likevise on my CC4.2 server
A3: NO

If you guys want, you can upgrade your controllers with the 7.5 firmware, then retest.  

1) you could write log files 
2) you can verify that the reboot is fixed/broken in the 7.5 firmware.

Simply download the .BIN file from here: http://update.slimdevices.com/update/firmware/7.5.0/
You would want to download 2 files and place them on the SD card
  jive_7.5.0_r8162.bin  (rxxx will changed each day)
  jive.version

Once you have both of those on the SD card, put it in your Controller.  Boot, go to Settings > advanced > software update
You should see the number of the firmware you downloaded (r8162 in this example)
Select that version to load it onto your controller.

Let me know if that doesn't work, or you still don't get a log file
Comment 19 Mikael Nyberg 2009-11-30 09:14:45 UTC
I'm on 7.5 the latest reboot was with a late 7.5
But now the SD card is in hopefully I get something

Btw I use and old 16mb card for this is it big enough for the log files ?
Comment 20 Mikael Nyberg 2009-12-04 20:43:02 UTC
Created attachment 6358 [details]
cat-messages

Now it rebooted again, but SD card write is still not working on 7.5

I did a cat

Odd circumstance the server was off i'd except sbc to wol.
It rebooted then wol

Next I'll connect directly to mysbs.com with one of my players with help of sbc, to see if this in the end will provoke reboot more often.

Reboot have only occured 2 times afiak since i got my new controller.
It might have rebooted more unoticed by me.
Comment 21 Mikael Nyberg 2009-12-04 21:07:57 UTC
Oopps note in that messages file it boots with the wrong date JAN 1 and then switches to DEC 5
Comment 22 Mikael Nyberg 2009-12-06 11:26:36 UTC
Created attachment 6361 [details]
messages again

Ooops, it did it again.
Another rebbot another log.

Can you see anything from these ? is there something else that can be done ?
Comment 23 James Richardson 2009-12-07 08:28:06 UTC
Was that log from the SD card or did you get it from the controller AFTER the device reset?

Firmware r7.5 should re-enable logging to SD card, that is the best way to capture this error, as the logs are wiped when the device reboots.
Comment 24 Mikael Nyberg 2009-12-07 08:49:05 UTC
Created attachment 6364 [details]
mesages.0

Yes I spc'd this log :-/ but now the SD card do work ?

I've found the 6september logs there.

Attaches messages.0 and messages again with more info in them
Comment 25 Mikael Nyberg 2009-12-07 08:49:37 UTC
Created attachment 6365 [details]
messages again
Comment 26 Mikael Nyberg 2009-12-07 08:51:00 UTC
Btw the SD card just started to work again I have removed the card and checked it was empty until now ?
Comment 27 James Richardson 2009-12-07 09:13:48 UTC
Yes, those are the right ones, looking into it now
Comment 28 Mikael Nyberg 2009-12-12 01:53:40 UTC
Created attachment 6380 [details]
zip with the latest log files

More logs after todays crash for some odd reson the files are created 10 september even if it's 12 now ?

A look in these log files confirm that it is nothing in them from the last 2 days ? I have used the controller and it rebooted just now ?
Comment 29 Jim Zachary 2009-12-13 05:59:26 UTC
Ok.

I finally got around to installing 7.5.0 in the controller.

My controller rebooted twice yesterday before the installation.

I should have some log files for you too.
Comment 30 Jim Zachary 2009-12-13 06:05:31 UTC
Uh oh.

Looks like I'm hung in a software install cycle.

When the controller rebooted, it just came right back to the screen asking if I wanted to install the 7.5.0 software.

So I took the SD card out and now it wants to upgrade to 7.4.1 r7915

I'm going to do that since I cannot do anything else.
Comment 31 Jim Zachary 2009-12-13 10:11:44 UTC
Now I'm getting odd behavior.

The controller will make a little crackling sound when it goes to sleep.

Dang.
Comment 32 Mikael Nyberg 2009-12-13 12:30:37 UTC
That crackling noise is nothing new numerous reports about it in the forum.

I had it on two different controllers, so it should be a software issue unless an alarmingly large amount of controllers have hardware issues :-/

But i don't think there is a bug report on this yet ? or is it .

One wonders if it is some kind of power save that turns of the audio circuits or something ?
Comment 33 Chris Owens 2009-12-14 09:06:16 UTC
Felix says he will look at the logs
Comment 34 Felix Mueller 2009-12-16 08:08:35 UTC
Hmm, the latest log file (12/12/09) stops when Controller went to sleep. I don't know how we can capture a log onto SD card when Controller wakes up.

But here is something I would like you guys to try and see if that makes a difference:

When you wake your Controller keep turning the wheel until it has fully resumed, i.e. shows the menu again.

Thanks
Felix
Comment 35 Mark Browell 2009-12-24 06:41:51 UTC
I don't know if this will help with the troubleshooting, but when I used to use the release version of 7.4.1 on my standard Windows box, I NEVER had this problem with my Controller.

Since moving to the release version of SBS for WHS, I am getting the reboot bug regularly.
Comment 36 Mark Browell 2009-12-29 14:24:48 UTC
I also changed my router before the reboots started happening.  This probably has more relevance than the change to WHS, since there may be a specific control packet which is causing the the Controller to restart itself.  The router is a D-Link DIR-615
Comment 37 Lars Heer 2010-01-03 03:42:16 UTC
I've got the same problem. 

Installed the 7.5.0 firmware -> You don't have do downgrade after that - just press help -> then HOME-Button and you can use the controller with 7.5.0

Maybe someone can tell us how to get arround that message ;-)

I will report if this firmware will cause reboots again.

Lars
Comment 38 Chris Owens 2010-01-04 16:00:47 UTC
Changing priorities due to management guidance.
Comment 39 Lars Heer 2010-01-04 19:26:26 UTC
(In reply to comment #38)
> Changing priorities due to management guidance.

Reboots still appears with 7.5.0 firmware. I've found the following WARNING in dmesg:
Unbalanced enable for IRQ 52
WARNING: at kernel/irq/manage.c:158 enable_irq()
[<c0033bcc>] (dump_stack+0x0/0x14) from [<c0068798>] (enable_irq+0x68/0xb0)
[<c0068730>] (enable_irq+0x0/0xb0) from [<bf01c79c>] (sbi_get_int_status+0x4c/0x244 [gspi8xxx])
 r5:c3c723a0 r4:00000005
[<bf01c750>] (sbi_get_int_status+0x0/0x244 [gspi8xxx]) from [<bf005f2c>] (wlan_service_main_thread+0x1b4/0x548 [gspi8xxx])
 r8:c3c72d70 r7:c38fc000 r6:c3c723a0 r5:c3a90000 r4:00000000
[<bf005d78>] (wlan_service_main_thread+0x0/0x548 [gspi8xxx]) from [<c005ac90>] (kthread+0x54/0x80)
[<c005ac3c>] (kthread+0x0/0x80) from [<c004a800>] (do_exit+0x0/0x7dc)
 r5:00000000 r4:00000000
NETDEV WATCHDOG: eth0: transmit timed out

I will add the log soon.
Comment 40 Lars Heer 2010-01-04 20:03:29 UTC
Inserted sd card for logs... but no logs will created inside...

Maybe sd-card is not mounted at check in rcS.

So I did the steps manually:
# ps ax|grep syslog[d]
  435 ?        Ss     0:00 /sbin/syslogd -S
# if [ -e /media/*/log ]; then echo yep; fi
yep
# killall syslogd
# ps ax|grep syslog[d]
# LOG_DIR=`echo /media/*/log`; /sbin/syslogd -S -s1000 -O $LOG_DIR/messages
# ps ax|grep syslog[d]
  777 ?        Ss     0:00 /sbin/syslogd -S -s1000 -O /media/mmcblk0p1/log/messages
# ulimit -c unlimited
# echo "$LOG_DIR/core-%e" > /proc/sys/kernel/core_pattern

I will send the content after next reboot.

By the way... Has there already been a bug created for the sd-log problem?

Lars
Comment 41 Lars Heer 2010-01-04 20:08:57 UTC
On my Ubuntu squeezebox Server I could get around the initial downgrade request of the controller using the 7.5.0 firmware:

Put the updated 7.5.0 firmware file and the corresponding version file into /var/lib/squeezeboxserver/cache/updates:

cd /var/lib/squeezeboxserver/cache/updates
mv jive.version jive.version.old
wget http://update.slimdevices.com/update/firmware/7.5.0/jive.version
wget http://update.slimdevices.com/update/firmware/7.5.0/jive_7.5.0_r8272.bin
Comment 42 Lars Heer 2010-01-04 22:25:57 UTC
Created attachment 6419 [details]
messages 7.5.0 after reboot

/media/mmcblk0p1/log/messages after reboot / 7.5.0 system

Curious is that last entry in this log is at 6:23:41
and next entry in /var/log/messages is 7:16:59
Comment 43 Lars Heer 2010-01-04 22:34:49 UTC
(In reply to comment #38)
> Changing priorities due to management guidance.

Hi Chris,

due to still appearing reboots with 7.5 firmware I suggest to set it to critical.

Lars
Comment 44 SVN Bot 2010-01-06 02:40:12 UTC
 == Auto-comment from SVN commit #8283 to the jive repo by felix ==
 == https://svn.slimdevices.com/jive?view=revision&revision=8283 ==

Bug: 14945 
Description: Possible fix for SBC is rebooting (unknown cause) 
- Test w/ patch: 50 times ok out of 50 suspend resume cycles
- Test w/o patch: 37 times not ok out of 67 suspend resume cycles
Comment 45 Felix Mueller 2010-01-06 02:41:53 UTC
Update hours worked.
Comment 46 Felix Mueller 2010-01-06 02:43:35 UTC
Assuming there isn't another cause forcing SBC to reset while resuming from suspend I think this should be fixed.

Fix is in r8283.
Comment 47 Lars Heer 2010-01-06 03:02:45 UTC
(In reply to comment #46)
> Assuming there isn't another cause forcing SBC to reset while resuming from
> suspend I think this should be fixed.
> 
> Fix is in r8283.

Nice but...

latest fw on server http://update.slimdevices.com/update/firmware/7.5.0/jive_7.5.0_r8280.bin

Please build ;-)
Comment 48 Neil 2010-02-14 10:05:39 UTC
This happens quite frequently to my controller since the 7.4.1 software.  Also boot up time longer since 7.4.0, so quite a pain!
Comment 49 Felix Mueller 2010-03-19 06:39:59 UTC
*** Bug 15791 has been marked as a duplicate of this bug. ***
Comment 50 Chris Owens 2010-04-08 17:27:00 UTC
This bug has been marked fixed in a released version of Squeezebox Server or the accompanying firmware or mysqueezebox.com release.

If you are still seeing this issue, please let us know!