Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error performing update - Qnap #2809

Closed
Jorman opened this issue Mar 26, 2018 · 6 comments
Closed

Error performing update - Qnap #2809

Jorman opened this issue Mar 26, 2018 · 6 comments

Comments

@Jorman
Copy link
Contributor

Jorman commented Mar 26, 2018

Hi, I don't know what happen but ...

[~] # 03-26 17:30:53 Info New release found.  Current: v0.8.811 New: v0.8.815
03-26 17:30:57 Info Starting updater: mono /opt/tmp/JackettUpdate-v0.8.815-636576822564142050/Jackett/JackettUpdater.exe --Path "/share/CACHEDEV1_DATA/.qpkg/Jackett/Jackett" --Type "mono" --Args " JackettConsole.exe --IgnoreSslErrors true --UseClient libcurl" --KillPids "32377"
03-26 17:30:57 Error Error performing update. System.ComponentModel.Win32Exception (0x80004005): ApplicationName='mono', CommandLine='/opt/tmp/JackettUpdate-v0.8.815-636576822564142050/Jackett/JackettUpdater.exe --Path "/share/CACHEDEV1_DATA/.qpkg/Jackett/Jackett" --Type "mono" --Args " JackettConsole.exe --IgnoreSslErrors true --UseClient libcurl" --KillPids "32377"', CurrentDirectory='', Native error= Cannot find the specified file
  at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x002dc] in /SRC/mono-5.4.1.6/mcs/class/System/System.Diagnostics/Process.cs:767
  at System.Diagnostics.Process.Start () [0x0003a] in /SRC/mono-5.4.1.6/mcs/class/referencesource/System/services/monitoring/system/diagnosticts/Process.cs:2005
  at (wrapper remoting-invoke-with-check) System.Diagnostics.Process:Start ()
  at System.Diagnostics.Process.Start (System.Diagnostics.ProcessStartInfo startInfo) [0x0001b] in /SRC/mono-5.4.1.6/mcs/class/referencesource/System/services/monitoring/system/diagnosticts/Process.cs:2476
  at Jackett.Common.Services.UpdateService.StartUpdate (System.String updaterExePath, System.String installLocation, System.Boolean isWindows, System.Boolean NoRestart) [0x00175] in C:\projects\jackett\src\Jackett.Common\Services\UpdateService.cs:299
  at Jackett.Common.Services.UpdateService+<CheckForUpdates>d__12.MoveNext () [0x002fa] in C:\projects\jackett\src\Jackett.Common\Services\UpdateService.cs:133

Happen on my qnap, maybe I'me to only one?

I can try to reset all and redownload all, but I don't want to reconfigure all, there's a safe way to backup configuration and restore it later? My first idea is to backup the .config folder but I'm not sure so I don't want to make a big mess!

@kaso17
Copy link
Collaborator

kaso17 commented Mar 26, 2018

The mono binary must be in the PATH environment variable. This is probably not the case on QNAP.
Please report this to the QNAP jackett maintainer. He needs to adjust PATH accordingly in the init script.

The --IgnoreSslErrors true --UseClient libcurl command line flags shouldn't be needed anymore (assuming mono has been compiled with BTLS support) and will cause more trouble with newer mono versions.

@Jorman
Copy link
Contributor Author

Jorman commented Mar 26, 2018

There's a way to know if BTLS support is present? I mean with a cli command instead ask to the person who compiled mono.
I'll go through the old release of Jackett and or Mono to find one with the var in PATH, I think is a mantainer problem, but I don't know if is about Mono or Jackett

@kaso17
Copy link
Collaborator

kaso17 commented Mar 26, 2018

@Jorman csharp -e 'Console.WriteLine (new System.Net.WebClient().DownloadString("https://www.howsmyssl.com/").IndexOf ("1.2"))'
if it returns a number > 0 BTLS is available

@kaso17
Copy link
Collaborator

kaso17 commented Mar 26, 2018

Unless previous mono versions had mono in the default PATH this needs to be fixed by the jackett maintainer.

@Jorman
Copy link
Contributor Author

Jorman commented Mar 26, 2018

csharp is not present on qnap and I can't find into entware, btw the script of mono export the path but the path is not "memorized" maybe the latest version of qts have some kind of problem?
The only things that have changed in this period is the firmware, also the qpkg (that is the container of the programs) but seems ok, to me, I'm not so expert but nor too noob.

@Jorman
Copy link
Contributor Author

Jorman commented Mar 27, 2018

I confirm, qmono path is not present on jackett.sh

So, for now, must add a line
export PATH=/opt/Qmono/bin:$PATH

Is quite simple and "imprecise" solution, but works, I don't like put a path for another program inside another program, lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants