Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

Auto updates
Thank you for your donation

Pages (2): 1 2 Next »
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Auto updates
20th Dec, 2016, 12:52 AM
Post: #1
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
Auto updates
In the past we were advised to turn off auto updating as it was causing issues. What is the consensus of opinion now? Is it safe to turn it back on or is it still advisable to leave it turned off?
Find all posts by this user
Quote this message in a reply
20th Dec, 2016, 01:51 AM
Post: #2
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: Auto updates
Good question Tongue

I'm leaving it off, because I want to control updates myself
Find all posts by this user
Quote this message in a reply
20th Dec, 2016, 09:27 PM
Post: #3
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
RE: Auto updates
Yesterday I put one Xbian pi on auto update.
It seems to be working, although the required reboot to fix the upgrades was not done and no message appeared to prompt the user until I went xbian-config->updates->check for upgrade. After that check it said all was up-to-date but that a reboot was needed. I don't know if this is expected behaviour or not, but just thought I'd let you know! Tongue
Find all posts by this user
Quote this message in a reply
20th Dec, 2016, 09:37 PM (This post was last modified: 20th Dec, 2016 09:38 PM by rikardo1979.)
Post: #4
rikardo1979 Offline
Management
******
Posts: 3,545
Joined: Dec 2012
Reputation: 190
RE: Auto updates
(20th Dec, 2016 09:27 PM)Skywatch Wrote:  Yesterday I put one Xbian pi on auto update.
It seems to be working, although the required reboot to fix the upgrades was not done and no message appeared to prompt the user until I went xbian-config->updates->check for upgrade. After that check it said all was up-to-date but that a reboot was needed. I don't know if this is expected behaviour or not, but just thought I'd let you know! Tongue

I believe is an intention, at least thats how I would imagine it. If the auto-update would happen during movie/music playback and would reboot itself I would smash it to pieces Big Grin Big Grin

~~~~>>>Please always follow rules and read before you post<<<~~~~
Find all posts by this user
Quote this message in a reply
21st Dec, 2016, 12:52 AM (This post was last modified: 21st Dec, 2016 02:13 AM by Nachteule.)
Post: #5
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: Auto updates
AFAIR there is no autoreboot after (auto) updates if required. But a popup message should appear. I can check this

And you can check if file [/var]/run/reboot-required exists. If it is there, a popup message should appear.

Oh, now I remember: autoreboot (if necessary) will be done only by xbian-update if Kodi is NOT running Smile and if not disabled in file /etc/default/xbian-update

And useful article can be found here
Find all posts by this user
Quote this message in a reply
21st Dec, 2016, 05:56 AM
Post: #6
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
RE: Auto updates
Just to be clear, I was upgrading a headless pi and all messages were via ssh.

I will check those files though as one day it might be possible to have all Xbian pi on auto-update. Tongue
Find all posts by this user
Quote this message in a reply
21st Dec, 2016, 06:04 AM
Post: #7
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: Auto updates
(20th Dec, 2016 09:27 PM)Skywatch Wrote:  After that check it said all was up-to-date but that a reboot was needed. I don't know if this is expected behaviour or not, but just thought I'd let you know! Tongue

Yes, it is. This file (see above) is checked when finishing xbian-config gui.
Find all posts by this user
Quote this message in a reply
21st Dec, 2016, 08:04 AM
Post: #8
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
RE: Auto updates
Would it be too difficult to say add a check that if Kodi was not actively playing media to reboot? Or maybe have a reboot window that is user selectable so reboots only happen when kodi is not playing media (say 4-6AM)?

Just wondering out loud on this..... Undecided
Find all posts by this user
Quote this message in a reply
21st Dec, 2016, 02:45 PM
Post: #9
rikardo1979 Offline
Management
******
Posts: 3,545
Joined: Dec 2012
Reputation: 190
RE: Auto updates
(21st Dec, 2016 08:04 AM)Skywatch Wrote:  Would it be too difficult to say add a check that if Kodi was not actively playing media to reboot? Or maybe have a reboot window that is user selectable so reboots only happen when kodi is not playing media (say 4-6AM)?

Just wondering out loud on this..... Undecided

or just use RSS scrolling line on home screen to place message when update was done and needs reboot

~~~~>>>Please always follow rules and read before you post<<<~~~~
Find all posts by this user
Quote this message in a reply
21st Dec, 2016, 11:47 PM
Post: #10
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
RE: Auto updates
@rikadro - That would not help with headless access via ssh.

What I was thinking was that whereas now we get 'xx updates available' message when we log in via ssh, would it be possible to say 'upgrades automatically installed - a reboot is required' instead?

This is not urgent and certainly could wait until we have a reliable auto upgrade system that could be recommended to all users. But it would be nice Smile
Find all posts by this user
Quote this message in a reply
22nd Dec, 2016, 01:31 AM
Post: #11
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: Auto updates
(21st Dec, 2016 11:47 PM)Skywatch Wrote:  @rikadro - That would not help with headless access via ssh.

What I was thinking was that whereas now we get 'xx updates available' message when we log in via ssh, would it be possible to say 'upgrades automatically installed - a reboot is required' instead?

What message do you exactly want to have. I investigated the logic behind and found place to add this function.

Terminal

ssh kmxbilr
Linux kmxbilr 4.8.10+ #1 PREEMPT Thu Nov 24 00:15:31 CET 2016

A reboot is required due to automatic upgrade has been done

-------------------------------------------------------------------
Y88b d88P 888888b. 8888888 d8888 888b 888
Y88o88P 888 .88P 888 d88P888 88888b 888

Quote:This is not urgent and certainly could wait until we have a reliable auto upgrade system that could be recommended to all users. But it would be nice Smile

We use standard mechanism for automatic update, so it is not in our hand, we only use this functionality as it is.
And btw, automatic updates will be always a little bit critical Smile
Find all posts by this user
Quote this message in a reply
22nd Dec, 2016, 03:16 AM
Post: #12
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
RE: Auto updates
My opnion is that at the moment when you log in via ssh you sometimes get the message in the putty terminal...

"xx updates available"

I think it would be good that *if* auto updates is selected then instead of that message we get...

"Updates Installed - Reboot Required" or similar (but only when a reboot is really needed).

But it is not an urgent issue if you have better things to do on Xbian right now. Maybe one for a rainy day in the winter months? Wink
Find all posts by this user
Quote this message in a reply
22nd Dec, 2016, 03:51 AM
Post: #13
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: Auto updates
(22nd Dec, 2016 03:16 AM)Skywatch Wrote:  "Updates Installed - Reboot Required" or similar (but only when a reboot is really needed).

Hrmpf, that's what I was asking - what is the best message to display in that case. Coding has already be done, just waiting for suitable message Tongue
Find all posts by this user
Quote this message in a reply
22nd Dec, 2016, 04:17 AM
Post: #14
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
RE: Auto updates
Well why didn't you just say so? Tongue

I would go with "Upgrades have been installed - Please reboot to complete upgrade"

Anyone else with ideas on wording? I have given a few different examples on this thread. Which would you prefer?
Find all posts by this user
Quote this message in a reply
22nd Dec, 2016, 05:16 AM
Post: #15
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: Auto updates
(22nd Dec, 2016 04:17 AM)Skywatch Wrote:  I would go with "Upgrades have been installed - Please reboot to complete upgrade"

I've taken this one. If anyone have better message, please let me know. Deadline is 23:45 today Tongue. Then I'm pushing commit
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Pages (2): 1 2 Next »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 11th May, 2025, 04:44 AM Powered By MyBB, © 2002-2025 MyBB Group.