FAQ  •  Register  •  Login

ubuntu 16.04 lts Serviio 1.8 install java issues

<<

wildchild55719

Serviio newbie

Posts: 11

Joined: Mon Feb 10, 2014 9:19 pm

Location: Hibbing,MN

Post Tue Feb 21, 2017 3:49 am

ubuntu 16.04 lts Serviio 1.8 install java issues

Fallowed this with ubdates http://wiki.serviio.org/doku.php?id=howto:linux:install:ubuntu15-04
Ubuntu 16.04 desktop
  Code:
sudo apt-get install ffmpeg
sudo apt-get install dcraw

Install Java 9. You can tell which, if any, versions are installed via:
  Code:
java -version

  Code:
sudo apt-get install openjdk-9-jre

There are various ways to install Serviio, but this installs it in /opt and runs it as user serviio. The useradd option -r creates a system account and does not create a home directory. This will result in warnings in serviio.log, but there seems to be no ill effect. The first line logs in as root to make a few things easier
  Code:
sudo -H bash
useradd -r -s /bin/false serviio
mkdir -p /opt
cd /opt
wget http://download.serviio.org/releases/serviio-1.8-linux.tar.gz
tar zxvf serviio-1.8-linux.tar.gz
ln -s serviio-1.8 serviio
chown -R root:root serviio-1.8
cd serviio-1.8
mkdir log
chown -R serviio:serviio library log

Use your favorite text editor and create /lib/systemd/system/serviio.service with:
  Code:
[Unit]
Description=Serviio Media Server
After=syslog.target local-fs.target network.target

[Service]
Type=simple
User=serviio
Group=serviio
ExecStart=/opt/serviio/bin/serviio.sh
ExecStop=/opt/serviio/bin/serviio.sh -stop
KillMode=none
Restart=on-abort

[Install]
WantedBy=multi-user.target

Lastly, start serviio and have it run automatically at boot via:
  Code:
systemctl daemon-reload
systemctl enable serviio
systemctl start serviio


ok what did i miss to get this error
2017-02-20 20:47:38,714 ERROR [MediaServer] An unexpected error occured. Ending the application.2017-02-20 20:47:38,714 ERROR [MediaServer] An unexpected error occured. Ending the application. Message: javax.xml.soap.SOAPException
java.lang.NoClassDefFoundError: javax/xml/soap/SOAPException
at org.serviio.upnp.webserver.WebServer$RequestListenerThread.<init>(WebServer.java:122)
at org.serviio.upnp.webserver.WebServer.start(WebServer.java:76)
at org.serviio.MediaServer.startServer(MediaServer.java:204)
at org.serviio.MediaServer.main(MediaServer.java:155)
Caused by: java.lang.ClassNotFoundException: javax.xml.soap.SOAPException
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:532)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:186)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:473)
... 4 more


i really hadn't had problem with serviio for 4 years or so till i decided to update. any help would be greatly appreciated
Jeremy R.Erspamer
ubuntu desktop 16.04
serviio pro
Sony Internet tv nsxgt1
serviio GO
sony srt5800es2
samsung un55es7500f
ps3 ps4
sony vdv-n790w
PS3
4 Iphone's "vlc"
3 Ipad's "vlc"
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Feb 22, 2017 7:51 pm

Re: ubuntu 16.04 lts Serviio 1.8 install java issues

Install java 8, not java 9.
<<

xentaur

Serviio newbie

Posts: 3

Joined: Tue May 16, 2017 12:40 pm

Post Tue May 16, 2017 1:05 pm

Re: ubuntu 16.04 lts Serviio 1.8 install java issues

Hi,

Pulling out what few remaining hairs are in my head with this. I've done a fresh standalone OS install of 16.04 and followed instructions above to the letter - including using java 8 instead of 9 as instructed. Console appears in firefox and I can select folders to index but it refuses to find media. I've placed a test folder with an image, mp3 and video inside and I can select the folder for the media library but no go. Log reports for each file '<filename> cannot be read probably due to access rights.' so it can see the files are there but won't index them. I'm reasonably tech savvy but this is my first foray into linux - I presumed that following the instructions above immediately after a clean install would have resulted in success, alas no. And when I see the multitude of attributes listed under the ls -l command I find myself yearning for the good ol' days of DOS (...it was a simpler time!)

Further, I've got media on an external HDD. I've managed to successfully mount it and can see it via the desktop and command prompt but, again, cannot locate it in Serviio. I've tried creating a symlink to the external drive in a folder I can see in the serviio console but the symlink doesn't appear.

going balder by the second here.

As I'm on a windows PC at the moment I've not got access to logs but happy to post what's needed if you can give direction where to locate. Used serviio very successfully on XP for a long time so know how good it can be, really want to get this up and going on the new platform.

Thanks in advance, brilliant people!
<<

xentaur

Serviio newbie

Posts: 3

Joined: Tue May 16, 2017 12:40 pm

Post Wed May 17, 2017 11:34 am

Re: ubuntu 16.04 lts Serviio 1.8 install java issues

Permissions Permissions Permissions!

Ultimately managed to resolve this issue. Permissions wouldn't stay locked in so after much trawling I found the solution here under the post entitled "Solved!"

Get your UUID and TYPE for the drive in question from this terminal command:
  Code:
blkid

unmount your drive.

Edit fstab
  Code:
gksu gedit /etc/fstab

At the end of the file add this on a new line which will make Store the mount point for your drive
  Code:
UUID=YourDeviceUUID /media/Store YourDeviceTYPE auto,users,permissions 0 0

Save and close the file.

Create the Store directory:
  Code:
sudo mkdir /media/Store

Mounting will now load the drive at the mount point specified in fstab
  Code:
sudo mount /media/Store

And now you can set permissions you desire for the mounted drive and they will stick!
  Code:
chmod 755 -R /media/Store

Hope this helps others out of a similar hell.

I'm off to buy a wig.

g'night!

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 49 guests

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