Home of the Squeezebox™ & Transporter® network music players.
Page 5 of 12 FirstFirst ... 34567 ... LastLast
Results 41 to 50 of 120
  1. #41
    Senior Member Steevee28's Avatar
    Join Date
    Feb 2010
    Location
    Mannheim, Germany
    Posts
    103
    Quote Originally Posted by slartibartfast View Post
    Interesting. How do you query the uptime? I'll check mine.
    1. Switch on SSH Log-in at the Radio (Settings->Advanced->Remote Log-In->Activate) (the actual menu items may be different, I only know the german names of the menu items)
    2. log into your Radio via SSH (username: root, password: 1234)
    3. use 'uptime' command

    NOTE: since the Squeezeboxes use a somewhat elder cryptography, it may be required to edit your .ssh/config file in order to be able to successfully log into them via SSH. Add lines like that:
    Code:
    Host <ip-address-of-your-radio>
        KexAlgorithms +diffie-hellman-group1-sha1
        Ciphers aes128-cbc
    Last edited by Steevee28; 2020-03-03 at 01:31. Reason: added instruction about SSH cipher algorithms
    1x Squeezebox Classic, 3x Radio, 1x Touch, LMS 7.9.1 running on ODROID-U3, Ubuntu 16.04 and I'm happy with it! :)

  2. #42
    Senior Member
    Join Date
    Jan 2010
    Location
    Hertfordshire
    Posts
    6,771
    Quote Originally Posted by Steevee28 View Post
    Today, by chance, I experienced the proof:

    I logged into one of my Radios via SSH and queried the device uptime. The device uptime showed 24 days +19:15. It was 7:00pm.

    Some hours later, I noticed that the Radio was rebooted, because it showed the main menu instead of the clock.
    Again, I logged into the device and again queried the device uptime. The uptime now showed that the device must have rebooted at 8:16pm!

    This means that the reboot occured at a device uptime of 24 days +20:31. This is 24.855 days, corresponding to 2^31/1000/3600/24, thus corresponding to an overflow of a signed 32bit timer running at 1000Hz.

    So, as previously suspected, the Radios really perform 'spontaneous' reboots at a well-defined interval of 24.855 days, caused by wrapping of the jiffy timer.
    Please note that this timer is not based on a real-time clock, thus it is probably not running at precisely 1000Hz. This means that the reboot interval might be slightly different from device to device.
    Hmm the uptime of my Touch is only 3 days 16 hours 40 minutes so it must have restarted at 6.05 am on Friday 28th February. I will monitor this over the next month.

    Sent from my Pixel 3a using Tapatalk

  3. #43
    Senior Member Steevee28's Avatar
    Join Date
    Feb 2010
    Location
    Mannheim, Germany
    Posts
    103
    Quote Originally Posted by mherger View Post
    >I have a Touch connected to an amp which is always on, Radios
    which stay on for months (mostly in soft off at night), others which are
    powered off, or in paused mode. And they have been used this way for
    years. I can't remember a single spontanous playback
    Michael, can you please check the uptime of your devices?
    1x Squeezebox Classic, 3x Radio, 1x Touch, LMS 7.9.1 running on ODROID-U3, Ubuntu 16.04 and I'm happy with it! :)

  4. #44
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,536

    Spontaneous turning-on

    > I logged into one of my Radios via SSH and queried the device uptime.
    > The device uptime showed 24 days +19:15. It was 7:00pm.
    >
    > Some hours later, I noticed that the Radio was rebooted, because it
    > showed the main menu instead of the clock.
    > Again, I logged into the device and again queried the device uptime. The
    > uptime now showed that the device must have rebooted at 8:16pm!


    I find this to be an amazing finding :-). 7-8 years after the device has
    been released you find an issue which had always been around?!? My
    uptimes are much lower (or I don't have access right now as SSH is
    disabled). But even on my long running units I could imagine they would
    be rebooted once a month (power outlet required for the hover in the
    kitchen, wiggly power plug on the office Radio etc.). I'll try to keep
    at least one of them alive for a month.

    --

    Michael

  5. #45
    Senior Member KeBul's Avatar
    Join Date
    Sep 2009
    Location
    London
    Posts
    292
    Quote Originally Posted by Steevee28 View Post
    1. Switch on SSH Log-in at the Radio (Settings->Advanced->Remote Log-In->Activate) (the actual menu items may be different, I only know the german names of the menu items)
    2. log into your Radio via SSH (username: root, password: 1234)
    3. use 'uptime' command

    NOTE: since the Squeezeboxes use a somewhat elder cryptography, it may be required to edit your .ssh/config file in order to be able to successfully log into them via SSH. Add lines like that:
    Code:
    Host <ip-address-of-your-radio>
        KexAlgorithms +diffie-hellman-group1-sha1
        Ciphers aes128-cbc
    You do not need to SSH into a SB Radio or Touch to see the uptime...

    On the device/remote press the Home button then from the menus...

    Settings/Advanced/Diagnostics/General Info

    The unit uptime is listed in there.

    Longest of my three radios is 18 days, my Touch is 19 days, I'm not surprised with this, the regular crash/reboot has been mentioned/discussed quite a few times on the forum.
    I use the "pause on power off/remain paused on power on" player setting combined with the Powersave plugin to turn off any player that's paused or stopped after 15 minutes. I rarely notice if one has rebooted.

    Impressive logic/fault finding though Steevee28, well done.

    Kev

  6. #46
    Senior Member
    Join Date
    May 2010
    Location
    London, UK
    Posts
    801
    Quote Originally Posted by Steevee28 View Post
    This means that the reboot occured at a device uptime of 24 days +20:31. This is 24.855 days, corresponding to 2^31/1000/3600/24, thus corresponding to an overflow of a signed 32bit timer running at 1000Hz.
    Here may lie the source of 24.855 days as opposed to 49.710 days: https://github.com/Logitech/squeezep...amework.c#L967
    Code:
    int jiveL_get_ticks(lua_State *L) {
    	lua_pushinteger(L, jive_jiffies());
    	return 1;
    }
    Although jive_jiffies appears to be returning an unsigned 32 bit integer, lua_pushinteger expects a type of lua_Integer, which version 5.1 of the lua manual describes as:
    Code:
    typedef ptrdiff_t lua_Integer;
    The type used by the Lua API to represent integral values.
    
    By default it is a ptrdiff_t, which is usually the largest signed integral type the machine handles "comfortably".
    https://www.lua.org/manual/5.1/manual.html

  7. #47
    Senior Member Steevee28's Avatar
    Join Date
    Feb 2010
    Location
    Mannheim, Germany
    Posts
    103
    Quote Originally Posted by KeBul View Post
    (...)
    I use the "pause on power off/remain paused on power on" player setting combined with the Powersave plugin to turn off any player that's paused or stopped after 15 minutes. I rarely notice if one has rebooted.

    Impressive logic/fault finding though Steevee28, well done.
    Oh, that's a good workaround, I didn't know the PowerSave plugin.

    And THANK YOU!
    (I have to admit, though, that my primary profession is hardware development including firmware development of small embedded / peripheral devices...)


    Quote Originally Posted by mrw View Post
    Here may lie the source of 24.855 days as opposed to 49.710 days: https://github.com/Logitech/squeezep...amework.c#L967
    (...)
    Although jive_jiffies appears to be returning an unsigned 32 bit integer, lua_pushinteger expects a type of lua_Integer, which version 5.1 of the lua manual describes as (...) ptrdiff_t, which is usually the largest signed integral type the machine handles "comfortably".
    I totally agree, mrw. Good work!


    Btw. Is there today any active project based on Jive / Squeezeplay (I only know of PiCorePlayer) ? I still love my Squeezeboxes and I can't understand why Logitech discontinued this wonderful group of products!
    Last edited by Steevee28; 2020-03-05 at 12:18.
    1x Squeezebox Classic, 3x Radio, 1x Touch, LMS 7.9.1 running on ODROID-U3, Ubuntu 16.04 and I'm happy with it! :)

  8. #48
    Senior Member
    Join Date
    May 2010
    Location
    London, UK
    Posts
    801
    Quote Originally Posted by Steevee28 View Post
    Btw. Is there today any active project based on Jive / Squeezeplay (I only know of PiCorePlayer) ?
    Forum member @ralphy is very active in maintaining Squeezeplay and some of the other related software.
    His github repository is here: https://github.com/ralph-irving

    He has been turning his attention to the Radio recently. See for example, Community Build Radio Firmware:
    https://forums.slimdevices.com/showt...Radio-Firmware

    and the back end of this thread, Bass amp problem:
    https://forums.slimdevices.com/showt...ss-amp-problem

  9. #49
    Senior Member Steevee28's Avatar
    Join Date
    Feb 2010
    Location
    Mannheim, Germany
    Posts
    103
    Quote Originally Posted by mrw View Post
    (...)
    He has been turning his attention to the Radio recently. See for example, Community Build Radio Firmware:
    https://forums.slimdevices.com/showt...Radio-Firmware

    and the back end of this thread, Bass amp problem:
    https://forums.slimdevices.com/showt...ss-amp-problem
    Oh, ok, wow! I didn't know how active you all were recently. Very good to see that there is still (or now again) active development!
    1x Squeezebox Classic, 3x Radio, 1x Touch, LMS 7.9.1 running on ODROID-U3, Ubuntu 16.04 and I'm happy with it! :)

  10. #50
    Senior Member
    Join Date
    Jan 2010
    Location
    Hertfordshire
    Posts
    6,771
    Quote Originally Posted by Steevee28 View Post
    Oh, ok, wow! I didn't know how active you all were recently. Very good to see that there is still (or now again) active development!
    Is a fix for this issue possible?
    I am expecting my Controller to reboot sometime tomorrow based on the 24.8 day cycle.

    Sent from my Pixel 3a using Tapatalk
    Last edited by slartibartfast; 2020-03-05 at 16:46.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •