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
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