FAQ  •  Register  •  Login

How to config the server?

<<

veryoldgd

Serviio newbie

Posts: 4

Joined: Sun Sep 28, 2014 5:46 pm

Post Sun Sep 28, 2014 6:18 pm

How to config the server?

Hi,

I have installed Serviio 1.4.1.2 on my machine basically following this article: http://wiki.serviio.org/doku.php?id=how ... all:centos

I am running CentOS 7 and so something was different from the article, but after all the server seems to be up. I can pick it up from my Android phone(but of course no content in it yet) using Mediahouse. I cannot get access to it from my browser though, I tried "serverip:8895" it showed a blank page. F12->Elements showed this and the source was empty:
Image

Then I tried to install the WebUI, I downloaded the 1.4 version and put all the files into /var/www/html/stream directory, and tried to access "http://serverip/stream/index.php", again, blank page. The Elements and source were the same as above. I also tried to access config.php, also blank page.

The final ./configure arguments I managed to keep when installing FFmpeg are:
./configure --enable-gpl --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-librtmp

This is the output of "php -v":
  Code:
PHP 5.4.16 (cli) (built: Aug  6 2014 13:12:28)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies


My Apache version is 2.4.

The permission and ownership of my stream directory is:
  Code:
drwxr-xr-x. 1 serviio serviio 214 Sep 29 02:48 stream


This is the output of "systemctl status serviio":
  Code:
serviio.service - LSB: Start the serviio DLNA server in headless mode
   Loaded: loaded (/etc/rc.d/init.d/serviio)
   Active: active (exited) since Mon 2014-09-29 02:29:27 ACST; 1h 7min ago
  Process: 23084 ExecStop=/etc/rc.d/init.d/serviio stop (code=exited, status=0/SUCCESS)
  Process: 23094 ExecStart=/etc/rc.d/init.d/serviio start (code=exited, status=0/SUCCESS)

Sep 29 02:29:27 myserver serviio[23094]: Starting Serviio DLNA server: [  OK  ]
Sep 29 02:29:27 myserver systemd[1]: Started LSB: Start the serviio DLNA server in headless mode.
Sep 29 02:29:27 myserver su[23098]: (to serviio) root on none


Running serviio-console.sh as super user will yield:
  Code:
Exception in thread "Thread-1" java.lang.NullPointerException
        at org.serviio.console.ServiioConsole$ShutdownHook.run(ServiioConsole.java:324)


I do not have GUI so I cannot configure the server as the wiki suggests and for some obvious reasons I do not want to install GUI either. My firewall has been set to allow Port 1900 to use UDP and Port 8895 to use TCP(and of course Port 80 is open and I do not think firewall is causing any issue here).

Would anyone be able to help? Thank you very much!
<<

atc98092

User avatar

DLNA master

Posts: 5446

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Sun Sep 28, 2014 8:38 pm

Re: How to config the server?

If you enter http://serverip:23424/mediabrowser do you get the Media Browser?
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: AMD Ryzen 5 5600GT, 32 gig ram, Windows 11 Pro, 22 TB hard drive space | Test server: Intel i5-6400, 16 gig ram, Windows 10 Pro

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

veryoldgd

Serviio newbie

Posts: 4

Joined: Sun Sep 28, 2014 5:46 pm

Post Mon Sep 29, 2014 6:11 am

Re: How to config the server?

atc98092 wrote:If you enter http://serverip:23424/mediabrowser do you get the Media Browser?

Hi,

Thanks for the reply. I got the browser! There is a password field but no username field. I just randomly typed a password and it said: Please, setup MediaBrowser password in the console first.

So I went to the serviio-console.sh and still the same exception.

A little piece of advice here, I really had a hard time to find out how to access the server from web browser(i.e. what is the URL)...maybe put it somewhere everyone can see.
<<

atc98092

User avatar

DLNA master

Posts: 5446

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Mon Sep 29, 2014 12:33 pm

Re: How to config the server?

Not sure if a blank password will work, or it it requires a password configured in the console before you can access the Media Browser. Of course, you can't do any configuration in Media Browser either, I just wanted to see if Serviio was running correctly. It appears to be :)

There are other options to configure Serviio besides the console it comes with. For example, if you have a Windows computer handy, you can install just the console to it and control your Serviio installation with it. There are also phone and tablet apps that allow control if you connect to the same network. On my Windows Phone, I have two different programs that do this: ServiiMetro and ServiiWP. For Android and iOS devices, there are apps as well. This way you don't need to worry about running the console directly on your Serviio machine.

This link will show you have to run the console on a different computer: http://www.serviio.org/component/conten ... e?id=21#q2
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: AMD Ryzen 5 5600GT, 32 gig ram, Windows 11 Pro, 22 TB hard drive space | Test server: Intel i5-6400, 16 gig ram, Windows 10 Pro

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

veryoldgd

Serviio newbie

Posts: 4

Joined: Sun Sep 28, 2014 5:46 pm

Post Mon Sep 29, 2014 1:56 pm

Re: How to config the server?

atc98092 wrote:Not sure if a blank password will work, or it it requires a password configured in the console before you can access the Media Browser. Of course, you can't do any configuration in Media Browser either, I just wanted to see if Serviio was running correctly. It appears to be :)

There are other options to configure Serviio besides the console it comes with. For example, if you have a Windows computer handy, you can install just the console to it and control your Serviio installation with it. There are also phone and tablet apps that allow control if you connect to the same network. On my Windows Phone, I have two different programs that do this: ServiiMetro and ServiiWP. For Android and iOS devices, there are apps as well. This way you don't need to worry about running the console directly on your Serviio machine.

This link will show you have to run the console on a different computer: http://www.serviio.org/component/conten ... e?id=21#q2

Blank password did not work.

I installed ServiiDroid on my Android phone and it works now! I can log in to the browser and play my mp3 files and browse photos, but I cannot see my video files(I have some .rmvb .wmv .mp4 .mkv .avi files for testing), am I missing codec or what?

-------------------------------------------------------------------------------------------------------

I have fixed it! Credit goes to this post: http://forum.ivorde.ro/ffmpeg-error-whi ... -t129.html

I checked my log file and:
  Code:
2014-09-30 00:17:12,109 WARN  [LibraryManager] Skipping processing metadata for an unsupported file (/storage/ftp/140929.mp4). Message: Unknown video file type.
2014-09-30 00:17:12,112 WARN  [LibraryManager] Skipping processing metadata for an unsupported file (/storage/ftp/140929.rmvb). Message: Unknown video file type.
2014-09-30 00:17:12,114 WARN  [LibraryManager] Skipping processing metadata for an unsupported file (/storage/ftp/140929.wmv). Message: Unknown video file type.
2014-09-30 00:17:12,116 WARN  [LibraryManager] Skipping processing metadata for an unsupported file (/storage/ftp/140929.avi). Message: Unknown video file type.
2014-09-30 00:17:12,118 WARN  [LibraryManager] Skipping processing metadata for an unsupported file (/storage/ftp/140929.mkv). Message: Unknown video file type.

Those 5 video files are different files that I modified the name and put up on my server for testing purpose.

Also the ffmpeg command gave this result:
  Code:
[foo@bar /]$ ffmpeg -i /storage/ftp/140929.mkv
ffmpeg: error while loading shared libraries: librtmp.so.0: cannot open shared object file: No such file or directory
[foo@bar /]$ locate librtmp.so.0
/usr/local/lib/librtmp.so.0

There was a mistake(or maybe due to changes to Linux?), the "ldd" command should be something like this(depends on where you installed FFmpeg, check it out with "which ffmpeg"):
  Code:
ldd /usr/local/bin/ffmpeg

This should show the libraries ffmpeg is linking to(or dependencies sort to say?), install/fix everything that is missing("not found"). You might actually already have the necessary libraries on your disk so check before you install anything.

And basically all I did was to edit this file: "/etc/ld.so.conf" and put a new line "/usr/local/lib/" in the file. Then run "ldconfig". You will need super user privilege to do these.

Done! This fixed my problem and hopefully this will help somebody else:)
<<

atc98092

User avatar

DLNA master

Posts: 5446

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Tue Sep 30, 2014 1:23 am

Re: How to config the server?

Good work and excellent troubleshooting. Now enjoy your Serviio ! :D
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: AMD Ryzen 5 5600GT, 32 gig ram, Windows 11 Pro, 22 TB hard drive space | Test server: Intel i5-6400, 16 gig ram, Windows 10 Pro

HOWTO: Enable debug logging HOWTO: Identify media file contents

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 27 guests

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