FAQ  •  Register  •  Login

Startup failure on FreeBSD 12.2

<<

eewiz

User avatar

Streaming enthusiast

Posts: 22

Joined: Sat Mar 05, 2016 8:59 am

Post Tue Nov 23, 2021 5:01 am

Startup failure on FreeBSD 12.2

I installed Serviio on a Truenas server using the BSD Ports Collection.
I followed instructions on this Serviio Wiki page: https://wiki.serviio.org/doku.php?id=ho ... ll:freebsd
Here quickly, is what I did.

create an iocage jail (DHCP) (BSD 12.2 Release)
Configure Router - Give jail a DHCP Reservation of 192.168.2.18
pkg update
pkg upgrade
portsnap fetch
portsnap extract
portsnap fetch update
cd /usr/ports/ports-mgmt/portmaster
make install clean
portmaster /usr/ports/java
portmaster /usr/ports/multimedia/ffmpeg
portmaster /usr/ports/graphics/dcraw
portmaster /usr/ports/net/serviio
pw usermod dlna -m -d /var/dlna
echo serviio_args=\'-Dserviio.advertisementDuration=\"45\" -Dserviio.remoteHost=\"192.168.2.5\"\' >> /etc/rc.conf
sysrc serviio_enable="YES"
service serviio start
Starting serviio.

Here is the bad result.
root@serviioj-shed:~ # An unexpected error occurred. Ending the application. Message: java.net.BindException: Can't assign requested address. Check serviio.log for more details.

Here is the Serviio.log
2021-11-22 20:02:17,425 ERROR [ApplicationInstanceManager] serviioj-shed: servii
java.net.UnknownHostException: serviioj-shed: serviioj-shed: Name does not resol
at java.net.InetAddress.getLocalHost(InetAddress.java:1506)
at org.serviio.ApplicationInstanceManager.registerInstance(ApplicationIn
at org.serviio.MediaServer.checkForRunningInstances(MediaServer.java:305
at org.serviio.MediaServer.main(MediaServer.java:120)
Caused by: java.net.UnknownHostException: serviioj-shed: Name does not resolve
at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:929)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:132
at java.net.InetAddress.getLocalHost(InetAddress.java:1501)
... 3 more

The error appears to be related to this section of the above linked wiki page.
Activate Serviio
* If you wish to use the web interface, you may leave the remoteHost variable set to your local IP.
* If you decide to remotely manage this Serviio instance via a PC on your network, you can set that address as needed to a PC on your LAN.

The remote PC that I want to use to manage the headless Serviio server is a windows box at 192.168.2.5.
That is why I did [-Dserviio.remoteHost=\"192.168.2.5\"\] in the [echo serviio_args=] command outlined above.
I followed the second starred item under "Activate Serviio" to "remotely manage this Serviio instance" from the Windows box at 192.168.2.5.

The instructions given under "Activate Serviio" appear to be straight forward yet, the error.
Also, I do not understand why I would have to tell the Serviio server anything about the host that will be accessing it remotely.
What If I want to access it from multiple hosts?
According to instructions, I should be able to access the server from any web browser by going to "http://192.168.2.18:23423/console".

Please help me understand what went wrong.

Thank You
<<

eewiz

User avatar

Streaming enthusiast

Posts: 22

Joined: Sat Mar 05, 2016 8:59 am

Post Sat Dec 04, 2021 4:51 pm

Re: Startup failure on FreeBSD 12.2

I found the answer.
The pool that held the IOCage dataset was key-file-encrypted.
This pooched the JAVA install.
I started over from scratch with an unencrypted pool.
I installed the first jail in that unencrypted pool and everything worked.

So, I guess that the lesson here is:
Do not create the IOCage on an encrypted dataset.

All for now.
<<

eewiz

User avatar

Streaming enthusiast

Posts: 22

Joined: Sat Mar 05, 2016 8:59 am

Post Sat Dec 04, 2021 5:07 pm

Re: Startup failure on FreeBSD 12.2

Also, contrary to the confusing instructions, the -Dserviio.remoteHost= value should be set to the IP address of the jail that is hosting the Serviio server.
I use DHCP in my jails so each jail gets its own IP address.
This permits multiple instances of the Serviio server, each in its own jail with its own IP address, to operate on the same Truenas box.
Without DHCP, all jails would have the same IP address (the boxes IP address) permitting only one instance of Serviio on the Treunas box.
Since Serviio's 22423 port assignment can't be changed, each Serviio server must have a unique IP address.
DHCP jails solve the problem of running multiple Serviio servers on the same box.

All for now

Return to NAS installation

Who is online

Users browsing this forum: No registered users and 13 guests

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