AnthonyMusgrove / Emby-ScripterX

Run custom external application or script (batch/bash/powershell/php/python/node.js/custom) on various events within the Emby Server.
https://emby-scripterx.com
78 stars 6 forks source link

Cannot use ScripterX on Synology NAS #46

Closed PieKiu closed 3 years ago

PieKiu commented 4 years ago

Hello,

I have a working install of Emby (4.4.3.0) on a Synology NAS. I can install ScripterX without any problems. As soon as I open it, all available actions are greyed out and I get heaps of Exceptions in my log that look like this:

2020-09-03 12:25:11.802 Error App: Error in IsExportType
    *** Error Report ***
    Version: 4.4.3.0
    Command line: /var/packages/EmbyServer/target/server/EmbyServer.exe -package synology -programdata /var/packages/EmbyServer/target/var -ffmpeg /var/packages/EmbyServer/target/ffmpeg/bin/ffmpeg -ffprobe /var/packages/EmbyServer/target/ffmpeg/bin/ffprobe -ffdetect /var/packages/EmbyServer/target/ffmpeg/bin/ffdetect -restartexitcode 121 -ignore_vaapi_enabled_flag
    Operating system: Unix 3.10.105.0
    64-Bit OS: True
    64-Bit Process: True
    User Interactive: False
    Mono: 6.8.0.105 (tarball Fri Apr 10 10:40:42 UTC 2020)
    Runtime: file:///volume1/@appstore/EmbyServer/3rdparty/mono/6.8.0.105/lib/mono/4.5/mscorlib.dll
    System.Environment.Version: 4.0.30319.42000
    Processor count: 4
    Program data path: /var/packages/EmbyServer/target/var
    Application directory: /volume1/@appstore/EmbyServer/releases/4.4.3.0
    System.TypeLoadException: System.TypeLoadException: Could not load type of field 'EmbyScripterX.Packages.Package:packageEngine' (11) due to: Could not load file or assembly 'Jint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=2e92ba9c8d81157f' or one of its dependencies.
      at (wrapper managed-to-native) System.RuntimeTypeHandle.type_is_assignable_from(System.Type,System.Type)
      at System.RuntimeTypeHandle.CanCastTo (System.RuntimeType type, System.RuntimeType target) [0x00000] in <9d3f0d4bd0fb4c1e8b6c2ac1ba1303ac>:0 
      at System.RuntimeType.IsAssignableFrom (System.Type c) [0x00020] in <9d3f0d4bd0fb4c1e8b6c2ac1ba1303ac>:0 
      at Emby.Server.Implementations.ApplicationHost.IsExportType (System.Type currentType, System.Tuple`2[T1,T2] i) [0x00007] in <4b2b35e458474e708c04b3533f59ad82>:0 
    Source: 
    TargetSite: 

If needed I can provide a full log file as well.

Is there maybe something I missed during, before or after install?

Thank you

AnthonyMusgrove commented 3 years ago

Hi @PieKiu - thank you for reporting this issue - it certainly is an interesting one. My apologies for the very belated response, the project was idle for some time.

Did you end up resolving this issue? If so, could you please let me know what the issue was? I do have other synology NAS users that use the plugin with great success, so I'd like to get to the bottom of it for you!

Kindest regards, Anthony