Hi,
I’ve done many updates successfully, however 2.0.0.3212 will not install, I get the following exception:
System.ComponentModel.Win32Exception: ApplicationName='mono', CommandLine='--debug /tmp/nzbdrone_update/NzbDrone.Update.exe 2354 /tmp/nzbdrone_update /root/nzbdrone/NzbDrone.exe ', CurrentDirectory='', Native error= Cannot find the specified file
I have googled this issue and people have fixed it by adding mono to the path, however I can I can run mono --version from the command prompt without a problem.
Any help appreciated.
Autocorrected title?
As the same user that runs Sonarr?
Which OS and mono version?
Yes
Sonarr is running as root, so I have tested with that user.
OS: Debian GNU/Linux 7
Mono: 3.10.0
Thanks,
Jack
Just want to make sure that /tmp/nzbdrone_update/NzbDrone.Update.exe
exists, though I expect a different error if it didn’t.
Could you enable trace logging , clear your log files then run an update, then hastebin the logs so we can take a look.
Sorry for the delay, here is the link to the logs:
http://hastebin.com/mopeqageku.coffee
chenks
June 23, 2015, 1:22pm
6
is this the same as what i posted yesterday?
i’m using the mac version, but the in-built client updater doesn’t seem to work.
i see the prompt saying new version available.
i click "install update"
it’ downloads, verifies, and unpacks.
it says it will restart, it does.
once restarted i am still on the same version and the update is still showing as available.
when checking the logs i see
Starting update client /var/folders/j1/ddm_lc6j45v13l38hch21mtm0000gn/T/nzbdrone_update/NzbDrone.Update.exe
however, and EXE file is for windows, …
Are you able to run:
mono --debug /tmp/nzbdrone_update/NzbDrone.Update.exe 2354 /tmp/nzbdrone_update /root/nzbdrone/NzbDrone.exe
as the user that runs Sonarr? It looks like mono isn’t on the path so Sonarr can’t run the updater.
Doesn’t look like it.
Yep I ran that successfully and Sonarr has updated to the latest version, I’ve no idea why it can’t run it from the application itself.
Looks like a PATH issue to me, either something is altering the PATH when starting Sonarr or mono isn’t on the PATH. which mono
should give you the path and you should be able to verify its part of the PATH.
which mono
Gives me:
/usr/local/bin/mono
This is the output of my path:
root@cubox:/etc/init.d# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Here is my init.d script, I can’t see anywhere where it would be changing the path?
http://hastebin.com/gilugifoxa.bash
DAEMON=/usr/local/bin/mono
If you change that to DAEMON=mono
does Sonarr start via your init script?