FAQ  •  Register  •  Login

How to start Serviio 2.1 on QNAP after installing

<<

MrVideo

Streaming enthusiast

Posts: 23

Joined: Thu Feb 06, 2020 11:56 am

Post Thu Sep 17, 2020 4:42 pm

How to start Serviio 2.1 on QNAP after installing

I have a TS-451A that has the media files. I was trying to use 2.1 on my Fedora Linux, but the devices can't seem to get to the server. 2.0 used to work, but now 2.1 doesn't. So, I thought I would try installing it on the QNAP, which actually has the files.

The QNAP App center was able to install it, after I install JRE-8. The Serviio button/icon shows up on the QNAP desktop. When I click on it, the tab shows up in the browser, but when I go to the tab, the server can't be found: Could not connect to remote server. I even rebooted the NAS, no diff.

I then went into the installation location and tried starting it manually: ./serviio.sh start

Even though it said it was starting: Starting Serviio ... #

It didn't. There is a PID in the pid file, but there is no serviio running. Here is the debug log:
  Code:
2020-09-17 11:34:32,126 DEBUG [ApplicationInstanceManager] Listening for application instances on socket 44331
2020-09-17 11:34:32,131 INFO  [MediaServer] ------------------------------------------------------------------------
2020-09-17 11:34:32,131 INFO  [MediaServer] Serviio DLNA media streaming server v 2.1 (rev. 64e78caaeacb5eafe11b93197db80b99f812bfb8)
2020-09-17 11:34:32,131 INFO  [MediaServer] Petr Nejedly 2009-2018
2020-09-17 11:34:32,131 INFO  [MediaServer] http://www.serviio.org
2020-09-17 11:34:32,131 INFO  [MediaServer]
2020-09-17 11:34:32,131 INFO  [MediaServer] Java 1.8.0_144-Oracle Corporation i386
2020-09-17 11:34:32,131 INFO  [MediaServer] OS Linux 3.19.8
2020-09-17 11:34:32,132 INFO  [MediaServer] File encoding: UTF-8
2020-09-17 11:34:32,309 INFO  [MediaServer] Headless mode enabled: true
2020-09-17 11:34:32,354 INFO  [MediaServer] User: admin
2020-09-17 11:34:32,354 INFO  [MediaServer] User home dir: /share/homes/admin
2020-09-17 11:34:32,354 INFO  [MediaServer] Temp dir: /share/CACHEDEV1_DATA/.qpkg/Serviio/tmp
2020-09-17 11:34:32,354 INFO  [MediaServer] ------------------------------------------------------------------------
2020-09-17 11:34:32,361 DEBUG [MediaServer] Runtime params: -Xmx512M, -Xms20M, -XX:+UseG1GC, -XX:GCTimeRatio=1, -XX:MinHeapFreeRatio=10, -XX:MaxHeapFreeRatio=20, -Djava.io.tmpdir=/share/CACHEDEV1_DATA/.qpkg/Serviio/tmp, -Djava.util.prefs.syncInterval=86400, -Djava.net.preferIPv4Stack=true, -Djava.awt.headless=true, -Dorg.restlet.engine.loggerFacadeClass=org.restlet.ext.slf4j.Slf4jLoggerFacade, -Dffmpeg.location=/share/CACHEDEV1_DATA/.qpkg/Serviio/ffmpeg, -Ddcraw.location=/share/CACHEDEV1_DATA/.qpkg/Serviio/dcraw, -Dserviio.defaultTranscodeFolder=/share/CACHEDEV1_DATA/.qpkg/Serviio/tmp, -Dderby.system.home=/share/CACHEDEV1_DATA/.qpkg/Serviio/library, -Dserviio.home=/share/CACHEDEV1_DATA/.qpkg/Serviio, -Dplugins.check=false, -Dserviio.checkForUpdates=true
2020-09-17 11:34:32,384 INFO  [DBSchemaUpdateExecutor] Checking if DB schema needs to be updated
2020-09-17 11:34:32,412 DEBUG [DBLogDAOImpl] Checking if script 'script-0.1.sql' has been run
2020-09-17 11:34:32,417 INFO  [DatabaseManager] Using DERBY database language
2020-09-17 11:34:34,545 DEBUG [DBLogDAOImpl] Checking if script 'script-0.1.1.sql' has been run
2020-09-17 11:34:34,547 DEBUG [DBLogDAOImpl] Checking if script 'script-0.2.sql' has been run
2020-09-17 11:34:34,548 DEBUG [DBLogDAOImpl] Checking if script 'script-0.3.1.sql' has been run
2020-09-17 11:34:34,550 DEBUG [DBLogDAOImpl] Checking if script 'script-0.4.sql' has been run
2020-09-17 11:34:34,552 DEBUG [DBLogDAOImpl] Checking if script 'script-0.4.1.sql' has been run
2020-09-17 11:34:34,553 DEBUG [DBLogDAOImpl] Checking if script 'script-0.4.2.sql' has been run
2020-09-17 11:34:34,555 DEBUG [DBLogDAOImpl] Checking if script 'script-0.5.sql' has been run
2020-09-17 11:34:34,556 DEBUG [DBLogDAOImpl] Checking if script 'script-0.5.1.sql' has been run
2020-09-17 11:34:34,558 DEBUG [DBLogDAOImpl] Checking if script 'script-0.6.sql' has been run
2020-09-17 11:34:34,559 DEBUG [DBLogDAOImpl] Checking if script 'script-0.6.1.sql' has been run
2020-09-17 11:34:34,561 DEBUG [DBLogDAOImpl] Checking if script 'script-0.6.2.sql' has been run
2020-09-17 11:34:34,562 DEBUG [DBLogDAOImpl] Checking if script 'script-1.0.sql' has been run
2020-09-17 11:34:34,564 DEBUG [DBLogDAOImpl] Checking if script 'script-1.1.sql' has been run
2020-09-17 11:34:34,565 DEBUG [DBLogDAOImpl] Checking if script 'script-1.2.sql' has been run
2020-09-17 11:34:34,567 DEBUG [DBLogDAOImpl] Checking if script 'script-1.2.1.sql' has been run
2020-09-17 11:34:34,574 DEBUG [DBLogDAOImpl] Checking if script 'script-1.3.sql' has been run
2020-09-17 11:34:34,576 DEBUG [DBLogDAOImpl] Checking if script 'script-1.4.sql' has been run
2020-09-17 11:34:34,577 DEBUG [DBLogDAOImpl] Checking if script 'script-1.5.sql' has been run
2020-09-17 11:34:34,579 DEBUG [DBLogDAOImpl] Checking if script 'script-1.6.sql' has been run
2020-09-17 11:34:34,580 DEBUG [DBLogDAOImpl] Checking if script 'script-1.7.sql' has been run
2020-09-17 11:34:34,582 DEBUG [DBLogDAOImpl] Checking if script 'script-1.8.sql' has been run
2020-09-17 11:34:34,583 DEBUG [DBLogDAOImpl] Checking if script 'script-1.9.sql' has been run
2020-09-17 11:34:34,585 DEBUG [DBLogDAOImpl] Checking if script 'script-2.0.sql' has been run
2020-09-17 11:34:34,833 INFO  [WebServer] Socket buffer set to 65535 bytes
2020-09-17 11:34:34,834 INFO  [RestletServer] Starting HTTP/1.1 Restlet server (/console) exposed on port 23423
2020-09-17 11:34:34,841 INFO  [RestletServer] Starting HTTP/1.1 Restlet server (/rest) exposed on port 23423
2020-09-17 11:34:34,845 INFO  [RestletServer] Starting HTTPS/1.1 Restlet server (/console) exposed on port 23523
2020-09-17 11:34:34,846 INFO  [RestletServer] Starting HTTPS/1.1 Restlet server (/rest) exposed on port 23523
2020-09-17 11:34:35,721 INFO  [RestletServer] Starting HTTP/1.1 Restlet server (/cds) exposed on port 23424
2020-09-17 11:34:35,722 INFO  [RestletServer] Starting HTTP/1.1 Restlet server (/mediabrowser) exposed on port 23424
2020-09-17 11:34:35,724 INFO  [RestletServer] Starting HTTPS/1.1 Restlet server (/cds) exposed on port 23524
2020-09-17 11:34:35,724 INFO  [RestletServer] Starting HTTPS/1.1 Restlet server (/mediabrowser) exposed on port 23524
2020-09-17 11:34:35,812 DEBUG [LicensingManager] Updating license
2020-09-17 11:34:35,823 DEBUG [ConfigEntryDAOImpl] Reading all ConfigEntries
2020-09-17 11:34:35,841 DEBUG [LicenseValidator] Validating license file (341 bytes)
2020-09-17 11:34:36,131 INFO  [MediaServer] ------------------------------------------------------------------------
2020-09-17 11:34:36,131 INFO  [MediaServer] License: PRO (EVALUATION, id: 11111111-1111-1111-1111-111111111113)
2020-09-17 11:34:36,131 INFO  [MediaServer] ------------------------------------------------------------------------
2020-09-17 11:34:36,139 DEBUG [LocalAddressResolverStrategy] Resolving host IP address automatically
2020-09-17 11:34:36,146 INFO  [Device] Created UPnP Device with UUID: b633301f-9f64-3f66-940c-e91fe7955b1e, bound address: 192.168.1.41
2020-09-17 11:34:36,369 INFO  [ProfileManager] Loading profiles from file /profiles.xml
2020-09-17 11:34:38,124 INFO  [ProfilesDefinitionParser] Parsing Profiles definition
2020-09-17 11:34:38,136 DEBUG [ProfilesDefinitionParser] Parsing profile definition for profile 1
2020-09-17 11:34:38,263 INFO  [CustomisationManager] No customisation properties found
2020-09-17 11:34:38,401 INFO  [ProfilesDefinitionParser] Added profile 'Generic DLNA profile' (id=1)
2020-09-17 11:34:38,402 DEBUG [ProfilesDefinitionParser] Parsing profile definition for profile 2
2020-09-17 11:34:38,429 INFO  [ProfilesDefinitionParser] Added profile 'Samsung TV (B-series)' (id=2)
2020-09-17 11:34:38,429 DEBUG [ProfilesDefinitionParser] Parsing profile definition for profile 3
2020-09-17 11:34:38,439 INFO  [ProfilesDefinitionParser] Added profile 'Xbox 360' (id=3)
2020-09-17 11:34:38,439 DEBUG [ProfilesDefinitionParser] Parsing profile definition for profile 4
2020-09-17 11:34:38,441 INFO  [ProfilesDefinitionParser] Added profile 'Playstation 3' (id=4)
2020-09-17 11:34:38,441 DEBUG [ProfilesDefinitionParser] Parsing profile definition for profile ps4
2020-09-17 11:34:38,445 INFO  [ProfilesDefinitionParser] Added profile 'Playstation 4' (id=ps4)
2020-09-17 11:34:38,445 DEBUG [ProfilesDefinitionParser] Parsing profile definition for profile 5
2020-09-17 11:34:38,447 INFO  [ProfilesDefinitionParser] Added profile 'Samsung TV (A-series)' (id=5)
2020-09-17 11:34:38,447 DEBUG [ProfilesDefinitionParser] Parsing profile definition for profile 6

No indication in the log as to why the server isn't running.

I am not having much luck getting 2.1 to run under Linux or QNAP NAS. :(
<<

atc98092

User avatar

DLNA master

Posts: 5202

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Thu Sep 17, 2020 6:20 pm

Re: How to start Serviio 2.1 on QNAP after installing

According to that log, Serviio is running. At least based on the portion of the log you posted. There's no error showing in the startup, and everything shows normal. Try accessing the console from a computer on your network, but clear your browser cache before you do. Sometimes the cache has old, bad data that messes up the connection.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 16 gig ram, Windows 10 Pro, 22 TB hard drive space | Test server Windows 10 Pro, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

MrVideo

Streaming enthusiast

Posts: 23

Joined: Thu Feb 06, 2020 11:56 am

Post Fri Sep 18, 2020 12:33 am

Re: How to start Serviio 2.1 on QNAP after installing

That is what I thought too, except that the process is not running. I would have expected to see something like this when ps is run (example output from Linux box):
  Code:
root     29624 12180 10 11:47 pts/24   00:00:20 java -Xmx512M -Xms20M -XX:+UseG1GC -XX:GCTimeRatio=1 -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Dorg.restlet.engine.loggerFacadeClass=org.restlet.ext.slf4j.Slf4jLoggerFacade -Dderby.system.home=/usr/local/bin/serviio/library -Dserviio.home=/usr/local/bin/serviio -Dffmpeg.location=ffmpeg -Ddcraw.location=dcraw -classpath /usr/local/bin/serviio/lib/*:/usr/local/bin/serviio/config org.serviio.MediaServer

But, looking for serviio, or java, or the PID (from serviio.pid) yields nothing from ps. Hard to have the console attach to something that isn't running.

If the program crashed, it wouldn't be able to write to the log. And yes, I tried from two different browsers on the Linux box.

As noted above, when starting serviio, without placing it into the background, I get "Starting Serviio ... #" and after a few seconds I get the prompt back. I should not get the prompt back. The # shows up immediately before the prompt returns.
<<

MrVideo

Streaming enthusiast

Posts: 23

Joined: Thu Feb 06, 2020 11:56 am

Post Fri Sep 18, 2020 2:10 am

Re: How to start Serviio 2.1 on QNAP after installing

No big hurry to get this working, as serviio under Fedora linux is not up and running. But, since the files are actually on this NAS, it would be nice to serve from here instead of the linux server.
<<

MrVideo

Streaming enthusiast

Posts: 23

Joined: Thu Feb 06, 2020 11:56 am

Post Fri Sep 18, 2020 2:33 pm

Re: How to start Serviio 2.1 on QNAP after installing

I updated the OS firmware on the NAS and now when I try and start, I get this: "Starting Serviio ... Serviio startup command failed"

It wasn't immediate. It took a few seconds. But, I can't attach the log because the log file is no longer written to.

Return to NAS installation

Who is online

Users browsing this forum: No registered users and 9 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.