Jump to content

QNAP Latest Server Installation Issue


Go to solution Solved by Luke,

Recommended Posts

Posted (edited)

@alucryd, I tried your solution but no luck there.

Edited by maxleonca
Posted

What exactly happened?

Posted

The log below:

2019-10-12 14:05:30.782 Info App: Loading Tvdb, Version=1.0.17.0, Culture=neutral, PublicKeyToken=null from /share/MD0_DATA/.qpkg/EmbyServer/programdata/plugins/Tvdb.dll
2019-10-12 14:05:30.782 Info App: Loading MediaBrowser.Api, Version=4.2.1.0, Culture=neutral, PublicKeyToken=null
2019-10-12 14:05:30.783 Info App: Loading MediaBrowser.WebDashboard, Version=4.2.1.0, Culture=neutral, PublicKeyToken=null
2019-10-12 14:05:30.783 Info App: Loading MediaBrowser.Model, Version=4.2.1.0, Culture=neutral, PublicKeyToken=null
2019-10-12 14:05:30.783 Info App: Loading MediaBrowser.Common, Version=4.2.1.0, Culture=neutral, PublicKeyToken=null
2019-10-12 14:05:30.783 Info App: Loading MediaBrowser.Controller, Version=4.2.1.0, Culture=neutral, PublicKeyToken=null
2019-10-12 14:05:30.783 Info App: Loading MediaBrowser.Providers, Version=4.2.1.0, Culture=neutral, PublicKeyToken=null
2019-10-12 14:05:30.783 Info App: Loading Emby.Photos, Version=4.2.1.0, Culture=neutral, PublicKeyToken=null
2019-10-12 14:05:30.783 Info App: Loading Emby.Server.Implementations, Version=4.2.1.0, Culture=neutral, PublicKeyToken=null
2019-10-12 14:05:30.784 Info App: Loading Emby.LiveTV, Version=4.2.1.0, Culture=neutral, PublicKeyToken=null
[admin@NASWW logs]# catl embyserver-63706485934.txt
-bash: catl: command not found
[admin@NASWW logs]# cat embyserver-63706485934.txt
2019-10-12 14:05:24.633 Info Main: Application path: /share/MD0_DATA/.qpkg/EmbyServer/system/EmbyServer.exe
2019-10-12 14:05:30.146 Info Main: Emby
        Command line: /share/MD0_DATA/.qpkg/EmbyServer/system/EmbyServer.exe -programdata /share/MD0_DATA/.qpkg/EmbyServer/programdata -ffdetect /share/MD0_DATA/.qpkg/EmbyServer/bin/ffdetect -ffmpeg /share/MD0_DATA/.qpkg/EmbyServer/bin/ffmpeg -ffprobe /share/MD0_DATA/.qpkg/EmbyServer/bin/ffprobe -defaultdirectory /share/CACHEDEV1_DATA -updatepackage emby-server-qnap-mono_{version}_arm-x19.qpkg
        Operating system: Unix 3.4.6.0
        64-Bit OS: False
        64-Bit Process: False
        User Interactive: False
        Mono: 5.12.0.226 (tarball Tue May 22 08:53:42 UTC 2018)
        Runtime: file:///share/MD0_DATA/.qpkg/Qmono/lib/mono/4.5/mscorlib.dll
        Processor count: 1
        Program data path: /share/MD0_DATA/.qpkg/EmbyServer/programdata
        Application directory: /share/MD0_DATA/.qpkg/EmbyServer/system
2019-10-12 14:05:30.602 Info App: Application version: 4.2.1.0
2019-10-12 14:05:30.617 Info App: Loading assemblies
2019-10-12 14:05:30.667 Info App: File /share/MD0_DATA/.qpkg/EmbyServer/programdata/plugins/AudioDb.dll has version 1.0.6.0
2019-10-12 14:05:30.668 Info App: File /share/MD0_DATA/.qpkg/EmbyServer/system/plugins/AudioDb.dll has version 1.0.6.0
2019-10-12 14:05:30.669 Info App: File /share/MD0_DATA/.qpkg/EmbyServer/programdata/plugins/DvdMounter.dll has version 1.0.0.0
2019-10-12 14:05:30.670 Info App: File /share/MD0_DATA/.qpkg/EmbyServer/system/plugins/DvdMounter.dll has version 1.0.0.0
2019-10-12 14:05:30.671 Info App: File /share/MD0_DATA/.qpkg/EmbyServer/programdata/plugins/Emby.Dlna.dll has version 1.0.23.0
2019-10-12 14:05:30.672 Info App: File /share/MD0_DATA/.qpkg/EmbyServer/system/plugins/Emby.Dlna.dll has version 1.0.23.0
2019-10-12 14:05:30.672 Info App: File /share/MD0_DATA/.qpkg/EmbyServer/programdata/plugins/Emby.PortMapper.dll has version 1.0.2.0
2019-10-12 14:05:30.673 Info App: File /share/MD0_DATA/.qpkg/EmbyServer/system/plugins/Emby.PortMapper.dll has version 1.0.2.0
2019-10-12 14:05:30.674 Info App: File /share/MD0_DATA/.qpkg/EmbyServer/programdata/plugins/Emby.Server.CinemaMode.dll has version 1.0.22.0
2019-10-12 14:05:30.674 Info App: File /share/MD0_DATA/.qpkg/EmbyServer/system/plugins/Emby.Server.CinemaMode.dll has version 1.0.22.0
2019-10-12 14:05:30.675 Info App: File /share/MD0_DATA/.qpkg/EmbyServer/programdata/plugins/Fanart.dll has version 1.0.3.0
2019-10-12 14:05:30.676 Info App: File /share/MD0_DATA/.qpkg/EmbyServer/system/plugins/Fanart.dll has version 1.0.3.0
2019-10-12 14:05:30.677 Info App: File /share/MD0_DATA/.qpkg/EmbyServer/programdata/plugins/MovieDb.dll has version 1.1.9.0
2019-10-12 14:05:30.677 Info App: File /share/MD0_DATA/.qpkg/EmbyServer/system/plugins/MovieDb.dll has version 1.1.9.0
2019-10-12 14:05:30.678 Info App: File /share/MD0_DATA/.qpkg/EmbyServer/programdata/plugins/MusicBrainz.dll has version 1.0.9.0
2019-10-12 14:05:30.679 Info App: File /share/MD0_DATA/.qpkg/EmbyServer/system/plugins/MusicBrainz.dll has version 1.0.9.0
2019-10-12 14:05:30.679 Info App: File /share/MD0_DATA/.qpkg/EmbyServer/programdata/plugins/NfoMetadata.dll has version 1.0.18.0
2019-10-12 14:05:30.680 Info App: File /share/MD0_DATA/.qpkg/EmbyServer/system/plugins/NfoMetadata.dll has version 1.0.18.0
2019-10-12 14:05:30.681 Info App: File /share/MD0_DATA/.qpkg/EmbyServer/programdata/plugins/OMDb.dll has version 1.0.6.0
2019-10-12 14:05:30.682 Info App: File /share/MD0_DATA/.qpkg/EmbyServer/system/plugins/OMDb.dll has version 1.0.6.0
2019-10-12 14:05:30.683 Info App: File /share/MD0_DATA/.qpkg/EmbyServer/programdata/plugins/OpenSubtitles.dll has version 1.0.18.0
2019-10-12 14:05:30.683 Info App: File /share/MD0_DATA/.qpkg/EmbyServer/system/plugins/OpenSubtitles.dll has version 1.0.18.0
2019-10-12 14:05:30.684 Info App: File /share/MD0_DATA/.qpkg/EmbyServer/programdata/plugins/StudioImages.dll has version 1.0.1.0
2019-10-12 14:05:30.685 Info App: File /share/MD0_DATA/.qpkg/EmbyServer/system/plugins/StudioImages.dll has version 1.0.1.0
2019-10-12 14:05:30.686 Info App: File /share/MD0_DATA/.qpkg/EmbyServer/programdata/plugins/Tvdb.dll has version 1.0.17.0
2019-10-12 14:05:30.686 Info App: File /share/MD0_DATA/.qpkg/EmbyServer/system/plugins/Tvdb.dll has version 1.0.17.0
2019-10-12 14:05:30.777 Info App: Loading AudioDb, Version=1.0.6.0, Culture=neutral, PublicKeyToken=null from /share/MD0_DATA/.qpkg/EmbyServer/programdata/plugins/AudioDb.dll
2019-10-12 14:05:30.777 Info App: Loading DvdMounter, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null from /share/MD0_DATA/.qpkg/EmbyServer/programdata/plugins/DvdMounter.dll
2019-10-12 14:05:30.777 Info App: Loading Emby.Dlna, Version=1.0.23.0, Culture=neutral, PublicKeyToken=null from /share/MD0_DATA/.qpkg/EmbyServer/programdata/plugins/Emby.Dlna.dll
2019-10-12 14:05:30.777 Info App: Loading Emby.PortMapper, Version=1.0.2.0, Culture=neutral, PublicKeyToken=null from /share/MD0_DATA/.qpkg/EmbyServer/programdata/plugins/Emby.PortMapper.dll
2019-10-12 14:05:30.777 Info App: Loading Emby.Server.CinemaMode, Version=1.0.22.0, Culture=neutral, PublicKeyToken=null from /share/MD0_DATA/.qpkg/EmbyServer/programdata/plugins/Emby.Server.CinemaMode.dll
2019-10-12 14:05:30.777 Info App: Loading Fanart, Version=1.0.3.0, Culture=neutral, PublicKeyToken=null from /share/MD0_DATA/.qpkg/EmbyServer/programdata/plugins/Fanart.dll
2019-10-12 14:05:30.778 Info App: Loading MovieDb, Version=1.1.9.0, Culture=neutral, PublicKeyToken=null from /share/MD0_DATA/.qpkg/EmbyServer/programdata/plugins/MovieDb.dll
2019-10-12 14:05:30.781 Info App: Loading MusicBrainz, Version=1.0.9.0, Culture=neutral, PublicKeyToken=null from /share/MD0_DATA/.qpkg/EmbyServer/programdata/plugins/MusicBrainz.dll
2019-10-12 14:05:30.782 Info App: Loading NfoMetadata, Version=1.0.18.0, Culture=neutral, PublicKeyToken=null from /share/MD0_DATA/.qpkg/EmbyServer/programdata/plugins/NfoMetadata.dll
2019-10-12 14:05:30.782 Info App: Loading OMDb, Version=1.0.6.0, Culture=neutral, PublicKeyToken=null from /share/MD0_DATA/.qpkg/EmbyServer/programdata/plugins/OMDb.dll
2019-10-12 14:05:30.782 Info App: Loading OpenSubtitles, Version=1.0.18.0, Culture=neutral, PublicKeyToken=null from /share/MD0_DATA/.qpkg/EmbyServer/programdata/plugins/OpenSubtitles.dll
2019-10-12 14:05:30.782 Info App: Loading StudioImages, Version=1.0.1.0, Culture=neutral, PublicKeyToken=null from /share/MD0_DATA/.qpkg/EmbyServer/programdata/plugins/StudioImages.dll
2019-10-12 14:05:30.782 Info App: Loading Tvdb, Version=1.0.17.0, Culture=neutral, PublicKeyToken=null from /share/MD0_DATA/.qpkg/EmbyServer/programdata/plugins/Tvdb.dll
2019-10-12 14:05:30.782 Info App: Loading MediaBrowser.Api, Version=4.2.1.0, Culture=neutral, PublicKeyToken=null
2019-10-12 14:05:30.783 Info App: Loading MediaBrowser.WebDashboard, Version=4.2.1.0, Culture=neutral, PublicKeyToken=null
2019-10-12 14:05:30.783 Info App: Loading MediaBrowser.Model, Version=4.2.1.0, Culture=neutral, PublicKeyToken=null
2019-10-12 14:05:30.783 Info App: Loading MediaBrowser.Common, Version=4.2.1.0, Culture=neutral, PublicKeyToken=null
2019-10-12 14:05:30.783 Info App: Loading MediaBrowser.Controller, Version=4.2.1.0, Culture=neutral, PublicKeyToken=null
2019-10-12 14:05:30.783 Info App: Loading MediaBrowser.Providers, Version=4.2.1.0, Culture=neutral, PublicKeyToken=null
2019-10-12 14:05:30.783 Info App: Loading Emby.Photos, Version=4.2.1.0, Culture=neutral, PublicKeyToken=null
2019-10-12 14:05:30.783 Info App: Loading Emby.Server.Implementations, Version=4.2.1.0, Culture=neutral, PublicKeyToken=null
2019-10-12 14:05:30.784 Info App: Loading Emby.LiveTV, Version=4.2.1.0, Culture=neutral, PublicKeyToken=null
Posted

Can you attach the whole file? Thanks !

Posted

Both logs are still reporting the old sqlite built into the qnap firmware being used, ours is 3.29.0. Did you also try deleting the config file above? Other platforms seem to be fine without it, but armv5 firmwares are a bit funky.

 

Could you send the firmware sqlite to me so I can compare it to ours? It will probably be in /usr/lib or /lib, there should be a symlink named libsqlite3.so pointing to the actual file.

 

One last thing you could try is replacing the system library with ours, please make sure to create a backup before you attempt to do that, in theory sqlite has been backwards compatible for years, but you never know.

Posted

Still using the system lib without the config file.

 

I don't see any obvious difference between the system lib and ours, except the version, so they should be compatible. Our lib is located in:

/share/MD0_DATA/.qpkg/EmbyServer/lib/

The same 3 files can just be copied over the ones on the system.

peppeantonini
Posted (edited)
I tried to overwrite the files and now I can't access the nas: fantastic.

Before restarting it I have to save everything for security: I will keep you updated.

post-522473-0-66148300-1571036922_thumb.jpg

Edited by peppeantonini
Posted

Apologies for the inconvenience. The web interface may not like the newer sqlite (php probably relies on sqlite), but SSH shouldn't be affected. Did it also break?

 

Unfortunately I don't have much to go on, and only have an x86_64 qnap model that works just fine. I'm just going blindly with the arm-x19 models.

 

@@Luke Is this config file still even used by sqlitepcl? I can't seem to find any documentation about it anymore :/

peppeantonini
Posted
Probably a reboot will solve everything (I replaced the files with those previously saved), but for security I'm doing the backup.

However I am thinking about changing the NAS, can you suggest a 4-bay model with which you tested EmbyServer? I was thinking about the TS-431P2, but it has an ARM processor (I prefer it because of consumption) and I wouldn't want to run into the same problems ...

Posted

Apologies for the inconvenience. The web interface may not like the newer sqlite (php probably relies on sqlite), but SSH shouldn't be affected. Did it also break?

 

Unfortunately I don't have much to go on, and only have an x86_64 qnap model that works just fine. I'm just going blindly with the arm-x19 models.

 

@@Luke Is this config file still even used by sqlitepcl? I can't seem to find any documentation about it anymore :/

 

@@alucryd, Yes the mono runtime will use it to reroute the assembly lookup.

Posted

Ah wait, the answer might be that this file needs to be renamed to:

EmbyServer.dll.config

@@peppeantonini can you please try that, making sure to revert any other changes you've tested. Thanks !

Posted

If that doesn't work, then please open this file:

EmbyServer.exe.config

and add this after the configuration node:

<dllmap dll="sqlite3" target="lib/libsqlite3.so" os="linux"/>
peppeantonini
Posted
I'm still backing up :)

In any case, which file should I rename to "EmbyServer.dll.config"?

 

Thanks

Posted

SQLitePCLRaw.provider.sqlite3.dll.config
peppeantonini
Posted
1. I restarted the nas and now everything seems ok, the WebUI works.

2. I removed and reinstalled Emby 4.2.1.0

3. I renamed EmbyServer.exe.config to SQLitePCLRaw.provider.sqlite3.dll.config

 

Emby started up, I immediately set up the library, but after a while it crashed.

The log I attach is after restarting the QPKG.

embyserver.txt

hardware_detection-63706899138.txt

Posted

The sqlite library is picked up, is that with the system library replaced?

peppeantonini
Posted

Do I try to override the sqlite dlls in Emby (in /share/MD0_DATA/.qpkg/EmbyServer/lib/) with the system ones?

Posted

No, this will definitely not work. What I need to know is if this current test was made with our own lib copied over the system lib (I assume it is). This tells us that our lib actually does work, and it's the config file that is at fault. Of course that is the wrong way to go about it, but I needed to ensure our lib worked fine.

 

Now, could you restore the system libs and then try both of Luke's suggestions, that is renaming the config file to either EmbyServer.exe.config or EmbyServer.dll.config?

 

If one of them works I'll make the corresponding change in our build system.

peppeantonini
Posted
Absolutely no. When I copied your libraries, the web server crashed and I could not access the web interface.

I had to copy the system dlls and restart the device.

 

Using the device's libraries and renaming the EmbyServer.exe.config file in SQLitePCLRaw.provider.sqlite3.dll.config, the application started, and then crashed immediately afterwards (see log attached in the previous post).

Posted

Something's not right. SQLitePCLRaw.provider.sqlite3.dll.config is how the file was called in the first place, and your initial report showed it didn't use our 3.29.0 library, but rather the 3.21.0 from the system which is too outdated for us to use.

 

Now your log clearly shows 3.29.0 so something must have changed. The crash you're getting seems to be from a network error and completely unrelated to sqlite.

Posted

 

 I renamed EmbyServer.exe.config to SQLitePCLRaw.provider.sqlite3.dll.config

 

 

Well you certainly can't do this. Why would you do that?

peppeantonini
Posted (edited)

I apologize, I wrote the opposite

 

I renamed SQLitePCLRaw.provider.sqlite3.dll.config in EmbyServer.dll.config

Edited by peppeantonini
Posted

But you shouldn't be renaming EmbyServer.exe.config, or completely overwriting it. That was never part of the instructions.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...