Refresh scheduling on specific days of the month

As recommended by @Ads20000 (topic to be moved from original thread)

Sorry for a second reply but I didn’t have time until recently to review proffered information.

“You’ll want sudo snap set core refresh.timer= as documented here.” (here is a hot link)

memyself@debianserver:~$ sudo snap get core refresh.timer
[sudo] password for memyself:
error: snap “core” has no “refresh” configuration option
memyself@debianserver:~$ snap get refresh.timer
error: access denied (try with sudo)
memyself@debianserver:~$ sudo snap get refresh.timer
error: snap “refresh.timer” has no configuration

Last command - - - I am trying to use commands as set out in the referred to document - - please note the result.

memyself@debianserver:~$ snap refresh --time
timer: 00:00~24:00/4
last: today at 08:22 CDT
next: today at 14:34 CDT
You have new mail in /var/mail/memyself
memyself@debianserver:~$ snap set core refresh.timer=fri5,23:00-01.00
error: access denied (try with sudo)
memyself@debianserver:~$ sudo snap set core refresh.timer=fri5,23:00-01.00
error: cannot perform the following tasks:

Run configure hook of “core” snap (run hook “configure”: cannot parse “23:00-01.00”: not a valid time)
memyself@debianserver:~$ snap configure
error: unknown command “configure”, see ‘snap help’

(Didn’t copy the complete ‘help’ list but here is the attempt to configure the timer given the ‘only’ option given for configuration termed ‘set’)

memyself@debianserver:~$ sudo snap set refresh.timer
error: the required argument (at least 1 argument) was not provided

so I try again using the syntax as delineated in one of the examples in the directed to document:

memyself@debianserver:~$ sudo snap set refresh.timer=fri5,23:00-01:00
[sudo] password for memyself:
error: the required argument (at least 1 argument) was not provided

So - - - to me - - - this looks like something that I’m locked into with no possibility for my input

please advise as to the actual process to affect the requested change.
Sorry for a second reply but I didn’t have time until recently to review proffered information.

“You’ll want sudo snap set core refresh.timer= as documented here.” (here is a hot link)

memyself@debianserver:~$ sudo snap get core refresh.timer
[sudo] password for memyself:
error: snap “core” has no “refresh” configuration option
memyself@debianserver:~$ snap get refresh.timer
error: access denied (try with sudo)
memyself@debianserver:~$ sudo snap get refresh.timer
error: snap “refresh.timer” has no configuration

Last command - - - I am trying to use commands as set out in the referred to document - - please note the result.

memyself@debianserver:~$ snap refresh --time
timer: 00:00~24:00/4
last: today at 08:22 CDT
next: today at 14:34 CDT
You have new mail in /var/mail/memyself
memyself@debianserver:~$ snap set core refresh.timer=fri5,23:00-01.00
error: access denied (try with sudo)
memyself@debianserver:~$ sudo snap set core refresh.timer=fri5,23:00-01.00
error: cannot perform the following tasks:

Run configure hook of “core” snap (run hook “configure”: cannot parse “23:00-01.00”: not a valid time)
memyself@debianserver:~$ snap configure
error: unknown command “configure”, see ‘snap help’

(Didn’t copy the complete ‘help’ list but here is the attempt to configure the timer given the ‘only’ option given for configuration termed ‘set’)

memyself@debianserver:~$ sudo snap set refresh.timer
error: the required argument (at least 1 argument) was not provided

so I try again using the syntax as delineated in one of the examples in the directed to document:

memyself@debianserver:~$ sudo snap set refresh.timer=fri5,23:00-01:00
[sudo] password for memyself:
error: the required argument (at least 1 argument) was not provided

So - - - to me - - - this looks like something that I’m locked into with no possibility for my input

please advise as to the actual process to affect the requested change.

He (@Ads20000)
requested the following information.

$ snap version
snap 2.32~pre4+git612.2003af8~ubuntu16.04.1
snapd 2.32~pre4+git612.2003af8~ubuntu16.04.1
series 16
debian 9
kernel 4.9.0-6-amd64

Is there a bug that is affecting my ability to set the refresh timing?

1 Like

This string broken. Note the “.” instead of “:” on the second time. If you fix that, it should work (it does for me).

@mborzecki Related question: why is “next” showing an incorrect time for this schedule after it is accepted? Perhaps it’s waiting until the next ensure? If so, we should schedule an ensure (EnsureSoon) when we accept a new value.

OK - - - entered as requested. Checked for the result - - - it does not look like the command ‘worked’.

$ sudo snap set core refresh.timer=fri5,23:00-01:00
[sudo] password for memyself:
memyself@debianserver:~$ snap refresh --time
timer: fri5,23:00-01:00
last: 2018-03-25T09:19:00-05:00
next: 2018-03-25T14:27:00-05:00

The last line suggest thats the requested change (done with set ‘core refresh.timer’) wasn’t incorporated.

Please advise on how to achieve the requested change.

https://snapdocs.labix.org/configuration-options/87
Above page is what I’m trying to use as a guide (its not very easy to follow!!).

If it doesn’t error, it did work. About the output of the --time option, please see the point I made in my previous message.

Fascinating - - - background controls give 2 different answers purely based on time. (Re-did the last command and now the resultant is different but giving the response programmed in.)

IMO the dev team’s iron fisted control on updates is producing a seriously convoluted product.

@dabeegmon There’s a delay in the logic that reschedules the next window of updates. That’s a bug.

It’s pretty unfortunate to receive such backhanded comments when we go over the trouble we do to be helpful. But you’re welcome, @dabeegmon.

1 Like