Upgrading in develop branch needs two keyclicks

Hey All,

I switched over to the develop branch and I’m really impressed by the quantity of the updates that are done throughout the day. I don’t know why (and maybe I’m not alone on this), but I LOVE upgrading. I think there’s some kinda endorphin release that happens when humans get the “latest” version of a given software. But I digress…

The issue is that I have my settings set to upgrade only manually (see above for my reason for setting it that way), and when it’s time to click, I always need to click twice. The first time APPEARS to be working, but never actually completes the upgrade. The 2nd one is always the charm.

Is that normal?

Thanx
Jon

One click for me here. Which OS and browser are you clicking from? If its iOS its because the first click activates the tooltip and the second activates the button, been a bug for years apparently.

I’m on a Mac, and using OSX 10.10.2. Using Safari v8.0.3.

Jon

Wouldn’t surprise me if the same bug exists there, on the main screen (the series list), does changing the filter on the right require two clicks?

Nope. One click works fine there.

Sorry, I wasn’t clear - when I click on the “Install” button, it actually starts processing the upgrade, but it doesn’t complete. Maybe it just downloads it or something but it doesn’t get installed. Only on the 2nd click does it finish.

Jon

It definitely downloads and installs, there will be a completed UI message due to how the background jobs work, but at that point the update process is started and Sonarr is stopped.

It sounds like your 2nd click doesn’t really do anything, because the process gets killed before it has a chance to spawn the update process.

Hm. Ok. I’ll have to experiment after the next upgrade.

Thanks. BTW, I REALLY appreciate all of your (and the whole team’s) efforts. Sonarr rocks, and the support is first class.

Jon

Thanks! I’m sure there will be an update later tonight/tomorrow. :smile:

I added a note to see if I can suppress that success message because its rather confusing.

Yup - two keyclicks.

It never completes on the first time for me!

Jon

Please provide trace logs so we can investigate, as well as the update logs from that time frame.

Ok, I have the logs. One click, still on the original version. Can I email them to you?

Jon

Zip them up and PM me a link to dropbox/mega/google drive/etc

Done! Thanks!

How do you have Sonarr running?

In the logs I see the the following:

15-1-23 09:36:18.9|Debug|mono|Starting mono /tmp/nzbdrone_update/NzbDrone.Update.exe 1386 /tmp/nzbdrone_update /Applications/NzbDrone/NzbDrone.exe 

15-1-23 09:36:19.3|Info|Bootstrap|Starting NzbDrone - /Applications/NzbDrone/NzbDrone.exe - Version 2.0.0.2701
15-1-23 09:36:22.6|Info|Bootstrap|Starting NzbDrone - /Applications/NzbDrone/NzbDrone.exe - Version 2.0.0.2703

The fact that 2.0.0.2701 is being restarted is very weird, especially since the update was successful and Sonarr was started up again with the new version, only to run into:

15-1-23 09:36:27.3|Fatal|ConsoleApp|Address already in use. This can happen if another instance of NzbDrone is already running or another applicaion is using the port assinged to NzbDrone (default: 8989)

Looks like something is respawning Sonarr on its own, which causes the updated version to fail to start and it gets terminated. The 2nd update would have the same problem except the auto-respawn would be triggered and start the new version (the update would still go through successfully and try to start the app, which would be terminated).

Hm. I followed the directions for installing Sonarr and created a script with a copy and paste into a terminal window. Sorry, now I can’t find the instructions I followed…

When I look in my Settings / Users and Groups / Login Items for my user, I don’t see anything in there that would kick off starting up Sonarr, so I’m not actually sure how its starting upon reboot. It is, though…

Jon

Is there a way for me to uninstall and re-install without losing all my series, configs, etc? Hoping to fix that issue…

You can back up the data to be safe, but its in a separate location (you can see the AppData path in System -> Info).

Aha! I used this guide to create the nzbdrone.plist file: http://www.htpcguides.com/install-nzbdrone-osx/

I deleted that nzbdrone.plist file, and created one by following this guide: https://github.com/Sonarr/Sonarr/wiki/Autostart-on-OS-X

The problem is now that Sonarr is starting but doesn’t know where to look for my stuff. How can I force it to look where it was before?

Jon