Jump to content

QNAP TS-231P does not start


LocutusDeBorg
 Share

Recommended Posts

LocutusDeBorg

Hello,

I'm trying to run Emby downloaded from the the emby.media website (QNAS/X31P version, named: embyserver*x41.qpkg).  It installs fine but does not start. When I start it from the command line, it immediately returns with a segfault. 

 

Also, I noticed that the ffmpeg binaries in the .qnap/EnbyServer/bin directory fail with: 

bin/ffmpeg: error while loading shared libraries: libavdevice.so.58: cannot open shared object file: No such file or directory
 

If I add LD_LIBRARY_PATH=<installdir>/lib:<installdir>/lib/samba to the command, ffmpeg segfaults too

 

Am I running the correct package?  If not, is there a recent version for my NAS?

 

Thanks in advance,

LDB

Link to comment
Share on other sites

LocutusDeBorg

Not sure...Here is what's reported by /proc/cpuinfo:

processor	: 0
model name	: Annapurna Labs Alpine AL212 Dual-core ARM Cortex-A15 CPU @ 1.70GHz
Speed		: 1.7GHz
Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x2
CPU part	: 0xc0f
CPU revision	: 4

 

Link to comment
Share on other sites

LocutusDeBorg

I ran it from the command line.

 

I tried to start bin/emby-server manually (it segfaulted)

 

I then noticed the other ff* files in the <install_dir>/bin directory.  So, as an experiment, I tried to run one (ffmpeg). 

 

It gave the shared library missing error.  From there, I ran ffmpeg w/ the addition of the LD_LIBRARY_PATH on the command line (instead of messing w/ my /etc/ld.so.conf file).  That's when ffmpeg segfaults.

Link to comment
Share on other sites

TheLizard

I'm having the same issue.

 

cpuinfo:

Processor name	: ARMv7 Processor rev 1 (v7l)
processor	: 0
BogoMIPS	: 2387.14

processor	: 1
BogoMIPS	: 2393.70

Features	: swp half thumb fastmult vfp edsp neon vfpv3 tls 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x2
CPU part	: 0xc09
CPU revision	: 1

Hardware	: Comcerto 2000 EVM
Revision	: 0001
Serial		: 0000000000000000

I've also installed the latest firmware:

Model:
TS-231
Current firmware version:
4.3.5.0760
Date:
11/14/2018

However, the libc version is even older:

ld-2.14.1.so
libc-2.14.1.so

Link to comment
Share on other sites

Wow, libc 2.14. Ultimately this means we are going to have to compile against older libcs, which can be a challenge. We are looking into this. Thanks.

Link to comment
Share on other sites

alucryd

Well, Qnap doesn't even provide an armv7 toolchain, only armv5... https://sourceforge.net/projects/qosgpl/files/QNAP%20NAS%20Tool%20Chains/

And good luck finding any viable toolchain with these kind of ancient versions.

 

But before we do anything, I just produced packages with our own glibc, these will hopefully work on any armv7 model.

Link to comment
Share on other sites

LocutusDeBorg

Thanks.

 

Mixed news.  I installed the package using the QNAP UI.  The emby-server didn't automatically start. 

 

I attempted to start it from the command line: Segfault.  I then used the LD_LIBRARY_PATH.  Same result.  From there, I invoked your packaged library loader directly with the following result:

# ./lib/ld-linux-armhf.so.3 --library-path ./lib:./lib/samba ./bin/emby-server       
./bin/emby-server: error while loading shared libraries: ./bin/emby-server: invalid ELF header

The good news: I was able to get your ff* binaries to run using this method.

Link to comment
Share on other sites

LocutusDeBorg

A bit more info:

 

I commented out the LD_LIBRARY_PATH variable in the bin/emby-server wrapper script (emby*.71_arm.qpkg).  I got:

FailFast:
Couldn't find a valid ICU package installed on the system. Set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support.

   at System.Environment.FailFast(System.String)
   at System.Globalization.GlobalizationMode.GetGlobalizationInvariantMode()
   at System.Globalization.GlobalizationMode..cctor()
   at System.Globalization.CultureData.CreateCultureWithInvariantData()
   at System.Globalization.CultureData.get_Invariant()
   at System.Globalization.CultureInfo..cctor()
   at System.StringComparer..cctor()
   at System.AppDomain.InitializeCompatibilityFlags()
   at System.AppDomain.CreateAppDomainManager()
   at System.AppDomain.Setup(System.Object)
Aborted

 So I added (to system/EmbyServer.runtimeconfig.json):

"configProperties": {
"System.Globalization.Invariant": true
}

It looked like the server was going to start, but ended in a stack trace too long to post (SQLitePCLRaw.provider.sqlite3 as the source).

Link to comment
Share on other sites

LocutusDeBorg

Info Main: Application path: /share/CACHEDEV1_DATA/.qpkg/EmbyServer/system/EmbyServer.dll
Info Main: Emby
Command line: /share/CACHEDEV1_DATA/.qpkg/EmbyServer/system/EmbyServer.dll -programdata /share/CACHEDEV1_DATA/.qpkg/EmbyServer/programdata -ffdetect /share/CACHEDEV1_DATA/.qpkg/EmbyServer/bin/ffdetect -ffmpeg /share/CACHEDEV1_DATA/.qpkg/EmbyServer/bin/ffmpeg -ffprobe /share/CACHEDEV1_DATA/.qpkg/EmbyServer/bin/ffprobe -defaultdirectory /share/CACHEDEV1_DATA -updatepackage emby-server-qnap_{version}_x86_64.qpkg
Operating system: Unix 4.2.8.0
64-Bit OS: False
64-Bit Process: False
User Interactive: True
Processor count: 4
Program data path: /share/CACHEDEV1_DATA/.qpkg/EmbyServer/programdata
Application directory: /share/CACHEDEV1_DATA/.qpkg/EmbyServer/system
Info App: Application version: 3.6.0.71
Info App: Loading assemblies
Info App: File /share/CACHEDEV1_DATA/.qpkg/EmbyServer/programdata/plugins/Fanart.dll has version 1.0.1.0
Info App: File /share/CACHEDEV1_DATA/.qpkg/EmbyServer/system/plugins/Fanart.dll has version 1.0.1.0
Info App: File /share/CACHEDEV1_DATA/.qpkg/EmbyServer/programdata/plugins/MovieDb.dll has version 1.0.2.0
Info App: File /share/CACHEDEV1_DATA/.qpkg/EmbyServer/system/plugins/MovieDb.dll has version 1.0.2.0
Info App: File /share/CACHEDEV1_DATA/.qpkg/EmbyServer/programdata/plugins/OpenSubtitles.dll has version 1.0.9.0
Info App: File /share/CACHEDEV1_DATA/.qpkg/EmbyServer/system/plugins/OpenSubtitles.dll has version 1.0.9.0
Info App: File /share/CACHEDEV1_DATA/.qpkg/EmbyServer/programdata/plugins/Emby.Server.CinemaMode.dll has version 1.0.6.0
Info App: File /share/CACHEDEV1_DATA/.qpkg/EmbyServer/system/plugins/Emby.Server.CinemaMode.dll has version 1.0.6.0
Info App: File /share/CACHEDEV1_DATA/.qpkg/EmbyServer/programdata/plugins/MusicBrainz.dll has version 1.0.1.0
Info App: File /share/CACHEDEV1_DATA/.qpkg/EmbyServer/system/plugins/MusicBrainz.dll has version 1.0.1.0
Info App: File /share/CACHEDEV1_DATA/.qpkg/EmbyServer/programdata/plugins/AudioDb.dll has version 1.0.3.0
Info App: File /share/CACHEDEV1_DATA/.qpkg/EmbyServer/system/plugins/AudioDb.dll has version 1.0.3.0
Info App: File /share/CACHEDEV1_DATA/.qpkg/EmbyServer/programdata/plugins/NfoMetadata.dll has version 1.0.10.0
Info App: File /share/CACHEDEV1_DATA/.qpkg/EmbyServer/system/plugins/NfoMetadata.dll has version 1.0.10.0
Info App: File /share/CACHEDEV1_DATA/.qpkg/EmbyServer/programdata/plugins/OMDb.dll has version 1.0.3.0
Info App: File /share/CACHEDEV1_DATA/.qpkg/EmbyServer/system/plugins/OMDb.dll has version 1.0.3.0
Info App: Loading Fanart, Version=1.0.1.0, Culture=neutral, PublicKeyToken=null from /share/CACHEDEV1_DATA/.qpkg/EmbyServer/programdata/plugins/Fanart.dll
Info App: Loading MovieDb, Version=1.0.2.0, Culture=neutral, PublicKeyToken=null from /share/CACHEDEV1_DATA/.qpkg/EmbyServer/programdata/plugins/MovieDb.dll
Info App: Loading OpenSubtitles, Version=1.0.9.0, Culture=neutral, PublicKeyToken=null from /share/CACHEDEV1_DATA/.qpkg/EmbyServer/programdata/plugins/OpenSubtitles.dll
Info App: Loading Emby.Server.CinemaMode, Version=1.0.6.0, Culture=neutral, PublicKeyToken=null from /share/CACHEDEV1_DATA/.qpkg/EmbyServer/programdata/plugins/Emby.Server.CinemaMode.dll
Info App: Loading MusicBrainz, Version=1.0.1.0, Culture=neutral, PublicKeyToken=null from /share/CACHEDEV1_DATA/.qpkg/EmbyServer/programdata/plugins/MusicBrainz.dll
Info App: Loading AudioDb, Version=1.0.3.0, Culture=neutral, PublicKeyToken=null from /share/CACHEDEV1_DATA/.qpkg/EmbyServer/programdata/plugins/AudioDb.dll
Info App: Loading NfoMetadata, Version=1.0.10.0, Culture=neutral, PublicKeyToken=null from /share/CACHEDEV1_DATA/.qpkg/EmbyServer/programdata/plugins/NfoMetadata.dll
Info App: Loading OMDb, Version=1.0.3.0, Culture=neutral, PublicKeyToken=null from /share/CACHEDEV1_DATA/.qpkg/EmbyServer/programdata/plugins/OMDb.dll
Info App: Loading MediaBrowser.Api, Version=3.6.0.71, Culture=neutral, PublicKeyToken=null
Info App: Loading MediaBrowser.WebDashboard, Version=3.6.0.71, Culture=neutral, PublicKeyToken=null
Info App: Loading MediaBrowser.Model, Version=3.6.0.71, Culture=neutral, PublicKeyToken=null
Info App: Loading MediaBrowser.Common, Version=3.6.0.71, Culture=neutral, PublicKeyToken=null
Info App: Loading MediaBrowser.Controller, Version=3.6.0.71, Culture=neutral, PublicKeyToken=null
Info App: Loading MediaBrowser.Providers, Version=3.6.0.71, Culture=neutral, PublicKeyToken=null
Info App: Loading Emby.Photos, Version=3.6.0.71, Culture=neutral, PublicKeyToken=null
Info App: Loading Emby.Server.Implementations, Version=3.6.0.71, Culture=neutral, PublicKeyToken=null
Info App: Loading Emby.LiveTV, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Info App: Loading Emby.Server.MediaEncoding, Version=3.6.0.71, Culture=neutral, PublicKeyToken=null
Info App: Loading Emby.Dlna, Version=3.6.0.71, Culture=neutral, PublicKeyToken=null
Info App: Loading MediaBrowser.LocalMetadata, Version=3.6.0.71, Culture=neutral, PublicKeyToken=null
Info App: Loading Emby.Notifications, Version=3.6.0.71, Culture=neutral, PublicKeyToken=null
Info App: Loading Emby.Codecs, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Info App: Loading Emby.Server.Connect, Version=3.6.0.71, Culture=neutral, PublicKeyToken=null
Info App: Loading Emby.Server.Sync, Version=3.6.0.71, Culture=neutral, PublicKeyToken=null
Info App: Loading EmbyServer, Version=3.6.0.71, Culture=neutral, PublicKeyToken=null
Error Main: Error in appHost.Init
*** Error Report ***
Version: 3.6.0.71
Command line: /share/CACHEDEV1_DATA/.qpkg/EmbyServer/system/EmbyServer.dll -programdata /share/CACHEDEV1_DATA/.qpkg/EmbyServer/programdata -ffdetect /share/CACHEDEV1_DATA/.qpkg/EmbyServer/bin/ffdetect -ffmpeg /share/CACHEDEV1_DATA/.qpkg/EmbyServer/bin/ffmpeg -ffprobe /share/CACHEDEV1_DATA/.qpkg/EmbyServer/bin/ffprobe -defaultdirectory /share/CACHEDEV1_DATA -updatepackage emby-server-qnap_{version}_x86_64.qpkg
Operating system: Unix 4.2.8.0
64-Bit OS: False
64-Bit Process: False
User Interactive: True
Processor count: 4
Program data path: /share/CACHEDEV1_DATA/.qpkg/EmbyServer/programdata
Application directory: /share/CACHEDEV1_DATA/.qpkg/EmbyServer/system
System.TypeInitializationException: System.TypeInitializationException: The type initializer for 'Emby.Sqlite.BaseSqliteRepository' threw an exception. ---> System.EntryPointNotFoundException: Unable to find an entry point named 'sqlite3_config' in shared library 'sqlite3'.
at SQLitePCL.SQLite3Provider_sqlite3.NativeMethods.sqlite3_config_int(Int32 op, Int32 val)
at SQLitePCL.SQLite3Provider_sqlite3.SQLitePCL.ISQLite3Provider.sqlite3_config(Int32 op, Int32 val)
at SQLitePCL.raw.sqlite3_config(Int32 op, Int32 val)
at Emby.Sqlite.BaseSqliteRepository..cctor()
--- End of inner exception stack trace ---
at Emby.Sqlite.BaseSqliteRepository..ctor(ILogger logger)
at Emby.Server.Implementations.Data.SqliteUserRepository..ctor(ILogger logger, IServerApplicationPaths appPaths, IJsonSerializer jsonSerializer)
at Emby.Server.Implementations.ApplicationHost.GetUserRepository()
at Emby.Server.Implementations.ApplicationHost.RegisterResources(FfmpegConfiguration ffmpegInfo)
at Emby.Server.Implementations.ApplicationHost.Init()
at EmbyServer.Program.InitAppHost(CoreAppHost appHost, ILogger logger)
Source: Emby.Sqlite
TargetSite: Void .ctor(MediaBrowser.Model.Logging.ILogger)
at Emby.Sqlite.BaseSqliteRepository..ctor(ILogger logger)
at Emby.Server.Implementations.Data.SqliteUserRepository..ctor(ILogger logger, IServerApplicationPaths appPaths, IJsonSerializer jsonSerializer)
at Emby.Server.Implementations.ApplicationHost.GetUserRepository()
at Emby.Server.Implementations.ApplicationHost.RegisterResources(FfmpegConfiguration ffmpegInfo)
at Emby.Server.Implementations.ApplicationHost.Init()
at EmbyServer.Program.InitAppHost(CoreAppHost appHost, ILogger logger)
InnerException: System.EntryPointNotFoundException: Unable to find an entry point named 'sqlite3_config' in shared library 'sqlite3'.
Source: SQLitePCLRaw.provider.sqlite3
TargetSite: Int32 sqlite3_config_int(Int32, Int32)
at SQLitePCL.SQLite3Provider_sqlite3.NativeMethods.sqlite3_config_int(Int32 op, Int32 val)
at SQLitePCL.SQLite3Provider_sqlite3.SQLitePCL.ISQLite3Provider.sqlite3_config(Int32 op, Int32 val)
at SQLitePCL.raw.sqlite3_config(Int32 op, Int32 val)
at Emby.Sqlite.BaseSqliteRepository..cctor()

Error Main: UnhandledException
*** Error Report ***
Version: 3.6.0.71
Command line: /share/CACHEDEV1_DATA/.qpkg/EmbyServer/system/EmbyServer.dll -programdata /share/CACHEDEV1_DATA/.qpkg/EmbyServer/programdata -ffdetect /share/CACHEDEV1_DATA/.qpkg/EmbyServer/bin/ffdetect -ffmpeg /share/CACHEDEV1_DATA/.qpkg/EmbyServer/bin/ffmpeg -ffprobe /share/CACHEDEV1_DATA/.qpkg/EmbyServer/bin/ffprobe -defaultdirectory /share/CACHEDEV1_DATA -updatepackage emby-server-qnap_{version}_x86_64.qpkg
Operating system: Unix 4.2.8.0
64-Bit OS: False
64-Bit Process: False
User Interactive: True
Processor count: 4
Program data path: /share/CACHEDEV1_DATA/.qpkg/EmbyServer/programdata
Application directory: /share/CACHEDEV1_DATA/.qpkg/EmbyServer/system
System.TypeInitializationException: System.TypeInitializationException: The type initializer for 'Emby.Sqlite.BaseSqliteRepository' threw an exception. ---> System.EntryPointNotFoundException: Unable to find an entry point named 'sqlite3_config' in shared library 'sqlite3'.
at SQLitePCL.SQLite3Provider_sqlite3.NativeMethods.sqlite3_config_int(Int32 op, Int32 val)
at SQLitePCL.SQLite3Provider_sqlite3.SQLitePCL.ISQLite3Provider.sqlite3_config(Int32 op, Int32 val)
at SQLitePCL.raw.sqlite3_config(Int32 op, Int32 val)
at Emby.Sqlite.BaseSqliteRepository..cctor()
--- End of inner exception stack trace ---
at Emby.Sqlite.BaseSqliteRepository..ctor(ILogger logger)
at Emby.Server.Implementations.Data.SqliteUserRepository..ctor(ILogger logger, IServerApplicationPaths appPaths, IJsonSerializer jsonSerializer)
at Emby.Server.Implementations.ApplicationHost.GetUserRepository()
at Emby.Server.Implementations.ApplicationHost.RegisterResources(FfmpegConfiguration ffmpegInfo)
at Emby.Server.Implementations.ApplicationHost.Init()
at EmbyServer.Program.InitAppHost(CoreAppHost appHost, ILogger logger)
at EmbyServer.Program.RunApplication(ServerApplicationPaths appPaths, ILogManager logManager, IEnvironmentInfo environmentInfo, StartupOptions options)
at EmbyServer.Program.AfterMutexCreated(ServerApplicationPaths appPaths, IEnvironmentInfo environmentInfo, ILogger logger, StartupOptions options, ILogManager logManager)
at EmbyServer.Program.Main(String[] args)
Source: Emby.Sqlite
TargetSite: Void .ctor(MediaBrowser.Model.Logging.ILogger)
at Emby.Sqlite.BaseSqliteRepository..ctor(ILogger logger)
at Emby.Server.Implementations.Data.SqliteUserRepository..ctor(ILogger logger, IServerApplicationPaths appPaths, IJsonSerializer jsonSerializer)
at Emby.Server.Implementations.ApplicationHost.GetUserRepository()
at Emby.Server.Implementations.ApplicationHost.RegisterResources(FfmpegConfiguration ffmpegInfo)
at Emby.Server.Implementations.ApplicationHost.Init()
at EmbyServer.Program.InitAppHost(CoreAppHost appHost, ILogger logger)
at EmbyServer.Program.RunApplication(ServerApplicationPaths appPaths, ILogManager logManager, IEnvironmentInfo environmentInfo, StartupOptions options)
at EmbyServer.Program.AfterMutexCreated(ServerApplicationPaths appPaths, IEnvironmentInfo environmentInfo, ILogger logger, StartupOptions options, ILogManager logManager)
at EmbyServer.Program.Main(String[] args)
InnerException: System.EntryPointNotFoundException: Unable to find an entry point named 'sqlite3_config' in shared library 'sqlite3'.
Source: SQLitePCLRaw.provider.sqlite3
TargetSite: Int32 sqlite3_config_int(Int32, Int32)
at SQLitePCL.SQLite3Provider_sqlite3.NativeMethods.sqlite3_config_int(Int32 op, Int32 val)
at SQLitePCL.SQLite3Provider_sqlite3.SQLitePCL.ISQLite3Provider.sqlite3_config(Int32 op, Int32 val)
at SQLitePCL.raw.sqlite3_config(Int32 op, Int32 val)
at Emby.Sqlite.BaseSqliteRepository..cctor()

UnhandledException
System.TypeInitializationException: System.TypeInitializationException: The type initializer for 'Emby.Sqlite.BaseSqliteRepository' threw an exception. ---> System.EntryPointNotFoundException: Unable to find an entry point named 'sqlite3_config' in shared library 'sqlite3'.
at SQLitePCL.SQLite3Provider_sqlite3.NativeMethods.sqlite3_config_int(Int32 op, Int32 val)
at SQLitePCL.SQLite3Provider_sqlite3.SQLitePCL.ISQLite3Provider.sqlite3_config(Int32 op, Int32 val)
at SQLitePCL.raw.sqlite3_config(Int32 op, Int32 val)
at Emby.Sqlite.BaseSqliteRepository..cctor()
--- End of inner exception stack trace ---
at Emby.Sqlite.BaseSqliteRepository..ctor(ILogger logger)
at Emby.Server.Implementations.Data.SqliteUserRepository..ctor(ILogger logger, IServerApplicationPaths appPaths, IJsonSerializer jsonSerializer)
at Emby.Server.Implementations.ApplicationHost.GetUserRepository()
at Emby.Server.Implementations.ApplicationHost.RegisterResources(FfmpegConfiguration ffmpegInfo)
at Emby.Server.Implementations.ApplicationHost.Init()
at EmbyServer.Program.InitAppHost(CoreAppHost appHost, ILogger logger)
at EmbyServer.Program.RunApplication(ServerApplicationPaths appPaths, ILogManager logManager, IEnvironmentInfo environmentInfo, StartupOptions options)
at EmbyServer.Program.AfterMutexCreated(ServerApplicationPaths appPaths, IEnvironmentInfo environmentInfo, ILogger logger, StartupOptions options, ILogManager logManager)
at EmbyServer.Program.Main(String[] args)
Source: Emby.Sqlite
TargetSite: Void .ctor(MediaBrowser.Model.Logging.ILogger)
at Emby.Sqlite.BaseSqliteRepository..ctor(ILogger logger)
at Emby.Server.Implementations.Data.SqliteUserRepository..ctor(ILogger logger, IServerApplicationPaths appPaths, IJsonSerializer jsonSerializer)
at Emby.Server.Implementations.ApplicationHost.GetUserRepository()
at Emby.Server.Implementations.ApplicationHost.RegisterResources(FfmpegConfiguration ffmpegInfo)
at Emby.Server.Implementations.ApplicationHost.Init()
at EmbyServer.Program.InitAppHost(CoreAppHost appHost, ILogger logger)
at EmbyServer.Program.RunApplication(ServerApplicationPaths appPaths, ILogManager logManager, IEnvironmentInfo environmentInfo, StartupOptions options)
at EmbyServer.Program.AfterMutexCreated(ServerApplicationPaths appPaths, IEnvironmentInfo environmentInfo, ILogger logger, StartupOptions options, ILogManager logManager)
at EmbyServer.Program.Main(String[] args)
InnerException: System.EntryPointNotFoundException: Unable to find an entry point named 'sqlite3_config' in shared library 'sqlite3'.
Source: SQLitePCLRaw.provider.sqlite3
TargetSite: Int32 sqlite3_config_int(Int32, Int32)
at SQLitePCL.SQLite3Provider_sqlite3.NativeMethods.sqlite3_config_int(Int32 op, Int32 val)
at SQLitePCL.SQLite3Provider_sqlite3.SQLitePCL.ISQLite3Provider.sqlite3_config(Int32 op, Int32 val)
at SQLitePCL.raw.sqlite3_config(Int32 op, Int32 val)
at Emby.Sqlite.BaseSqliteRepository..cctor()


Link to comment
Share on other sites

LocutusDeBorg

Good news! 

 

The latest build runs (with a couple of minor changes).

 

I had to change the wrapper script ($APP_DIR/bin/emby-server) to first cd to the $APP_DIR/bin directory and then exec the system/EmbyServer from there.  So the exec line looks like this:

cd $APP_DIR/bin && exec ../system/EmbyServer \
  -programdata $APP_DIR/programdata \
  -ffdetect $APP_DIR/bin/ffdetect \
  -ffmpeg $APP_DIR/bin/ffmpeg \
  -ffprobe $APP_DIR/bin/ffprobe \
  -defaultdirectory /share/CACHEDEV1_DATA \
  -updatepackage 'emby-server-qnap_{version}_x86_64.qpkg'

Without changing to the bin directory, none of the binaries work (including the ff* ones).  The error message is:

[/share/CACHEDEV1_DATA/.qpkg/EmbyServer] # bin/ffmpeg 
-sh: bin/ffmpeg: No such file or directory
 

I also changed the system/EmbyServer.runtimeconfig.json as described in my previous post.

Link to comment
Share on other sites

TheLizard

I tried the same thing, since I was getting "No such file or directory" for EmbyServer itself. I also had to set the System.Globalization.Invariant setting to true.

 

But I still can't get it to start, I'm now getting:

Info Main: Application path: /share/CACHEDEV1_DATA/.qpkg/EmbyServer/system/EmbyServer.dll
Cannot get required symbol EC_KEY_set_public_key_affine_coordinates from libssl
Aborted

libssl is libssl.so.1.0.0

Link to comment
Share on other sites

alucryd

Good news! 

 

The latest build runs (with a couple of minor changes).

 

I had to change the wrapper script ($APP_DIR/bin/emby-server) to first cd to the $APP_DIR/bin directory and then exec the system/EmbyServer from there.  So the exec line looks like this:

cd $APP_DIR/bin && exec ../system/EmbyServer \
  -programdata $APP_DIR/programdata \
  -ffdetect $APP_DIR/bin/ffdetect \
  -ffmpeg $APP_DIR/bin/ffmpeg \
  -ffprobe $APP_DIR/bin/ffprobe \
  -defaultdirectory /share/CACHEDEV1_DATA \
  -updatepackage 'emby-server-qnap_{version}_x86_64.qpkg'

Without changing to the bin directory, none of the binaries work (including the ff* ones).  The error message is:

[/share/CACHEDEV1_DATA/.qpkg/EmbyServer] # bin/ffmpeg 
-sh: bin/ffmpeg: No such file or directory
 

I also changed the system/EmbyServer.runtimeconfig.json as described in my previous post.

 

OMG, all this time I thought the dynamic loader path was resolved relative to the binary, not to the current directory. Thank you so much for pointing this out!

 

We will have new betas shortly which will take this into account (cding in the parent directory instead, changed the loader path to just lib/ld-blah.so). Also you won't need to disable globalization anymore, and libssl should work fine as well.

Link to comment
Share on other sites

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
 Share

×
×
  • Create New...