These are chat archives for WildGums/Orc.Squirrel

5th
Jun 2017
samirem
@samirem
Jun 05 2017 14:18

My app has recently stopped updating automatically. I've been debugging a lot to try to find the problem. After enabling file logging and running the released exe, I found this line:

16:09:07:784 => [INFO] [Orc.Squirrel.UpdateService] [1] Automatic updates are disabled

Which must come from this:
https://github.com/WildGums/Orc.Squirrel/blob/develop/src/Orc.Squirrel/Orc.Squirrel.Shared/Services/UpdateService.cs#L157

Now, the strange thing is that I've not changed anything in my code.. can it possibly be some change in the ConfigurationService that breaks the behaviour?
My code for calling HandleUpdatesAsync() is as follows:

var updateService = serviceLocator.ResolveType<IUpdateService>();
var updateChannel = new UpdateChannel("Stable", "https://...");
updateService.Initialize(new[] {updateChannel}, updateChannel, true);
updateService.HandleUpdatesAsync(DateTime.MaxValue);
samirem
@samirem
Jun 05 2017 14:44
I managed to solve it now by setting
configurationService.SetRoamingValue("AutomaticUpdates.CheckForUpdates", true);
but the "updateService.Initialize()"-method should already do this as far as I can tell
Geert van Horrik
@GeertvanHorrik
Jun 05 2017 16:32
@samirem Did you recently update any packages (e.g. Catel or Orchestra)?
samirem
@samirem
Jun 05 2017 18:20

I updated the following:

Catel.Fody from 2.14 to 2.16.2,
Fody from 1.29.4 to 2.0.2,
LoadAssembliesOnStartup.Fody from 1.7.0 to 1.8.1,
MethodTimer.Fody from 1.16.0 to 1.19.0,
ModuleInit.Fody from 1.5.9.0 to 1.6.0,
Mono.Cecil from 0.9.6.1 to 0.10.0-beta6

I do believe that my automatic updates stopped working before this though, but I am not 100% sure.

I do remember that my automatic updates broke from version 0.0.9 to 0.0.10, and at first I believed that it was a bug with squirrel.windows (not accepting number higher than 9). But I found that it stopped working when I tried updating from 0.1.0 to 0.1.1 as well.

Geert van Horrik
@GeertvanHorrik
Jun 05 2017 18:30
we recommend using GitVersion for versioning, but that's another story
you are sure the end-user didn't disable the automatic updates?
samirem
@samirem
Jun 05 2017 18:32
I'll look into GitVersion, thx!
Yes I'm sure, at this point the app is still in testing stage, so I'm the end-user at the moment
samirem
@samirem
Jun 05 2017 19:10
Actually, now I found this in my logs:
[WARNING] [Catel.Data.ModelBase] [1] Property 'AutomaticUpdates.CheckForUpdates' is registered after construction of type 'Catel.Configuration.DynamicConfiguration', but could not be found using reflection
Geert van Horrik
@GeertvanHorrik
Jun 05 2017 19:10
that's ok, it's a dynamic configuration (hence dynamic properties, and thus not found v ia reflection)