Serviio startup after all devices have loaded started
Hi,
I have an issue with serviio giving network error on startup:
Log:
Media: All my media is on an external drive - /media/MediaDrive
What worked:
Serviio would startup on boot, but the media would not be available after I would log in.
My /etc/init/serviio.conf was
Here is what I changed recently:
I wanted my exteral drive to mount on boot and be available to all users. So I changed the fstab file.
changed my /etc/init/serviio.conf to
when I log in and start serviio, it works fine. I need to be able to start serviio after all my media has mounted and network or what ever devices its dependant on have started/working.
your help is greatly appreciated!
Cheers,
Sameer Jaffer
I have an issue with serviio giving network error on startup:
Log:
- Code:
2013-03-14 10:26:55,563 INFO [MediaServer] ------------------------------------------------------------------------
2013-03-14 10:26:55,564 INFO [MediaServer] Serviio DLNA media streaming server v 1.2 (rev. 7f0f253cf67d+)
2013-03-14 10:26:55,564 INFO [MediaServer] Petr Nejedly 2009-2013
2013-03-14 10:26:55,564 INFO [MediaServer] http://www.serviio.org
2013-03-14 10:26:55,564 INFO [MediaServer]
2013-03-14 10:26:55,565 INFO [MediaServer] Java 1.7.0_07-Oracle Corporation
2013-03-14 10:26:55,565 INFO [MediaServer] OS Linux amd64 3.2.0-38-generic
2013-03-14 10:26:55,565 INFO [MediaServer] File encoding: US-ASCII
2013-03-14 10:26:55,565 INFO [MediaServer] Headless mode enabled: true
2013-03-14 10:26:55,565 INFO [MediaServer] User: root
2013-03-14 10:26:55,565 INFO [MediaServer] User home dir: /root
2013-03-14 10:26:55,565 INFO [MediaServer] Temp dir: /tmp
2013-03-14 10:26:55,565 INFO [MediaServer] ------------------------------------------------------------------------
2013-03-14 10:26:55,722 INFO [WebServer] Socket buffer set to 65535 bytes
2013-03-14 10:26:55,724 INFO [RestletServer] Starting Restlet server (/rest) exposed on port 23423
2013-03-14 10:26:55,762 INFO [RestletServer] Starting Restlet server (/cds) exposed on port 23424
2013-03-14 10:26:55,762 INFO [RestletServer] Starting Restlet server (/mediabrowser) exposed on port 23424
2013-03-14 10:26:55,777 INFO [DBSchemaUpdateExecutor] Checking if DB schema needs to be updated
2013-03-14 10:26:57,523 INFO [MediaServer] ------------------------------------------------------------------------
2013-03-14 10:26:57,523 INFO [MediaServer] License: PRO (EVALUATION, id: 11111111-1111-1111-1111-111111111113)
2013-03-14 10:26:57,523 INFO [MediaServer] ------------------------------------------------------------------------
2013-03-14 10:26:58,217 INFO [ProfilesDefinitionParser] Parsing Profiles definition
2013-03-14 10:26:58,335 INFO [ProfilesDefinitionParser] Added profile 'Generic DLNA profile' (id=1)
2013-03-14 10:26:58,349 INFO [ProfilesDefinitionParser] Added profile 'Samsung TV (B-series)' (id=2)
2013-03-14 10:26:58,364 INFO [ProfilesDefinitionParser] Added profile 'Xbox 360' (id=3)
2013-03-14 10:26:58,368 INFO [ProfilesDefinitionParser] Added profile 'Playstation 3' (id=4)
2013-03-14 10:26:58,371 INFO [ProfilesDefinitionParser] Added profile 'Samsung TV (A-series)' (id=5)
2013-03-14 10:26:58,382 INFO [ProfilesDefinitionParser] Added profile 'DirecTV HD-DVR' (id=6)
2013-03-14 10:26:58,388 INFO [ProfilesDefinitionParser] Added profile 'Samsung TV / player (C/D/E-series)' (id=7)
2013-03-14 10:26:58,390 INFO [ProfilesDefinitionParser] Added profile 'LG TV / player' (id=8)
2013-03-14 10:26:58,399 INFO [ProfilesDefinitionParser] Added profile 'Sony Bravia TV (2012)' (id=sony2012)
2013-03-14 10:26:58,404 INFO [ProfilesDefinitionParser] Added profile 'Sony BDP-Sx90 (2012)' (id=bdp2012)
2013-03-14 10:26:58,415 INFO [ProfilesDefinitionParser] Added profile 'Sony BDP-Sx70/SMP-N100 (2010)' (id=bdp2010)
2013-03-14 10:26:58,417 INFO [ProfilesDefinitionParser] Added profile 'Sony BDP-Sx70/SMP-N100 (2010) - US' (id=bdp2010us)
2013-03-14 10:26:58,419 INFO [ProfilesDefinitionParser] Added profile 'Sony BDP-Sx80/SMP-N200 (2011)' (id=bdp2011)
2013-03-14 10:26:58,422 INFO [ProfilesDefinitionParser] Added profile 'Toshiba REGZA' (id=13)
2013-03-14 10:26:58,425 INFO [ProfilesDefinitionParser] Added profile 'WDTV Live' (id=14)
2013-03-14 10:26:58,426 INFO [ProfilesDefinitionParser] Added profile 'LaCie LaCinema Media Player' (id=15)
2013-03-14 10:26:58,428 INFO [ProfilesDefinitionParser] Added profile 'Manta WIFI Centre' (id=16)
2013-03-14 10:26:58,430 INFO [ProfilesDefinitionParser] Added profile 'Pure Flow' (id=17)
2013-03-14 10:26:58,432 INFO [ProfilesDefinitionParser] Added profile 'Sharp Aquos' (id=18)
2013-03-14 10:26:58,434 INFO [ProfilesDefinitionParser] Added profile 'Sony Bravia TV (2011)' (id=sony2011)
2013-03-14 10:26:58,437 INFO [ProfilesDefinitionParser] Added profile 'Sony Bravia TV (2010)' (id=sony2010)
2013-03-14 10:26:58,439 INFO [ProfilesDefinitionParser] Added profile 'Philips (2010-)' (id=plps2010)
2013-03-14 10:26:58,441 INFO [ProfilesDefinitionParser] Added profile 'Philips (2009)' (id=20)
2013-03-14 10:26:58,443 INFO [ProfilesDefinitionParser] Added profile 'Sony Bravia TV (2009)' (id=sony2009)
2013-03-14 10:26:58,444 INFO [ProfilesDefinitionParser] Added profile 'Denon AVR' (id=22)
2013-03-14 10:26:58,447 INFO [ProfilesDefinitionParser] Added profile 'Panasonic Viera G/GT/DT/UT/VT (2011/2012)' (id=viera2011a)
2013-03-14 10:26:58,449 INFO [ProfilesDefinitionParser] Added profile 'Panasonic Viera E/S/ST/VT (2011)' (id=viera2011)
2013-03-14 10:26:58,451 INFO [ProfilesDefinitionParser] Added profile 'Panasonic Viera (2010)' (id=viera2010)
2013-03-14 10:26:58,452 INFO [ProfilesDefinitionParser] Added profile 'Sony Bravia TV (2012) - US' (id=sony2012us)
2013-03-14 10:26:58,454 INFO [ProfilesDefinitionParser] Added profile 'Sony Bravia TV (2011) - US' (id=sony2011us)
2013-03-14 10:26:58,456 INFO [ProfilesDefinitionParser] Added profile 'Sony AVReceiver STR' (id=SonySTR)
2013-03-14 10:26:58,458 INFO [ProfilesDefinitionParser] Added profile 'Sony Audio CMT' (id=SonyCMT)
2013-03-14 10:26:58,460 INFO [ProfilesDefinitionParser] Added profile 'Vizio TV' (id=viziotv)
2013-03-14 10:26:58,464 INFO [ProfilesDefinitionParser] Added profile 'Windows 8/RT' (id=win8metro)
2013-03-14 10:26:58,566 INFO [ProfilesDefinitionParser] Parsing Profiles definition
2013-03-14 10:26:58,569 INFO [ProfilesDefinitionParser] Added profile 'Flash player' (id=flv_player)
2013-03-14 10:26:58,572 INFO [ProfilesDefinitionParser] Added profile 'ServiiGo' (id=serviigo)
2013-03-14 10:26:58,574 INFO [ProfilesDefinitionParser] Added profile 'Windows Phone 8' (id=wp8)
2013-03-14 10:26:58,697 INFO [Device] Created UPnP Device with UUID: 17b8e9c9-6e08-3a7c-b942-6d97f100b519, bound address: 127.0.1.1
2013-03-14 10:26:58,720 INFO [PluginCompilerThread] Looking for plugins at /var/serviio/plugins
2013-03-14 10:26:58,721 INFO [PluginCompilerThread] Started looking for plugins
2013-03-14 10:26:58,721 INFO [UpdateChecker] Checking if a new version is available
2013-03-14 10:26:58,777 WARN [FFMPEGWrapper] FFmpeg is not compiled with libass support, rendering subtitles (hardsubs) will not work.
2013-03-14 10:26:58,915 INFO [AbstractTranscodingDeliveryEngine] Cleaning transcode engine and its data
2013-03-14 10:26:58,938 INFO [WebServer] WebServer starting on port 8895
2013-03-14 10:26:58,942 INFO [EventSubscriptionExpirationChecker] Starting EventSubscriptionExpirationChecker
2013-03-14 10:26:58,943 INFO [EventDispatcher] Starting EventDispatcher
2013-03-14 10:26:58,943 INFO [DiscoveryAdvertisementNotifier] Starting DiscoveryAdvertisementNotifier
2013-03-14 10:26:58,944 ERROR [DiscoverySSDPMessageListener] Cannot open multicast socket,will try again
java.net.SocketException: No such device
at java.net.PlainDatagramSocketImpl.join(Native Method)
at java.net.AbstractPlainDatagramSocketImpl.joinGroup(Unknown Source)
at java.net.MulticastSocket.joinGroup(Unknown Source)
at org.serviio.util.MultiCastUtils.startMultiCastSocketForListening(MultiCastUtils.java:45)
at org.serviio.upnp.discovery.DiscoverySSDPMessageListener.run(DiscoverySSDPMessageListener.java:86)
at java.lang.Thread.run(Unknown Source)
2013-03-14 10:26:58,947 INFO [RendererExpirationChecker] Starting RendererExpirationChecker
2013-03-14 10:26:58,947 WARN [RendererSearchSender] Cannot find a network interface for bound IP Ubuntu/127.0.1.1
2013-03-14 10:26:58,947 INFO [RendererSearchSender] Searching for Renderer devices
2013-03-14 10:26:58,968 WARN [DiscoveryAdvertisementNotifier] Cannot find a network interface for bound IP Ubuntu/127.0.1.1
2013-03-14 10:26:58,968 ERROR [DiscoveryAdvertisementNotifier] Fatal error during DiscoveryAdvertisementNotifier, thread will exit
java.lang.NullPointerException
at org.serviio.util.MultiCastUtils.findIPAddress(MultiCastUtils.java:136)
at org.serviio.upnp.discovery.DiscoveryAdvertisementNotifier.sendAliveToSingleInterface(DiscoveryAdvertisementNotifier.java:164)
at org.serviio.upnp.discovery.DiscoveryAdvertisementNotifier.sendAlive(DiscoveryAdvertisementNotifier.java:133)
at org.serviio.upnp.discovery.DiscoveryAdvertisementNotifier.run(DiscoveryAdvertisementNotifier.java:94)
at java.lang.Thread.run(Unknown Source)
2013-03-14 10:26:58,968 INFO [DiscoveryAdvertisementNotifier] Leaving DiscoveryAdvertisementNotifier
2013-03-14 10:26:59,946 ERROR [DiscoverySSDPMessageListener] Cannot open multicast socket,will try again
java.net.SocketException: No such device
at java.net.PlainDatagramSocketImpl.join(Native Method)
at java.net.AbstractPlainDatagramSocketImpl.joinGroup(Unknown Source)
at java.net.MulticastSocket.joinGroup(Unknown Source)
at org.serviio.util.MultiCastUtils.startMultiCastSocketForListening(MultiCastUtils.java:45)
at org.serviio.upnp.discovery.DiscoverySSDPMessageListener.run(DiscoverySSDPMessageListener.java:86)
at java.lang.Thread.run(Unknown Source)
2013-03-14 10:27:00,947 ERROR [DiscoverySSDPMessageListener] Cannot open multicast socket,will try again
java.net.SocketException: No such device
at java.net.PlainDatagramSocketImpl.join(Native Method)
at java.net.AbstractPlainDatagramSocketImpl.joinGroup(Unknown Source)
at java.net.MulticastSocket.joinGroup(Unknown Source)
at org.serviio.util.MultiCastUtils.startMultiCastSocketForListening(MultiCastUtils.java:45)
at org.serviio.upnp.discovery.DiscoverySSDPMessageListener.run(DiscoverySSDPMessageListener.java:86)
at java.lang.Thread.run(Unknown Source)
2013-03-14 10:27:01,947 ERROR [DiscoverySSDPMessageListener] Cannot open multicast socket,will try again
java.net.SocketException: No such device
at java.net.PlainDatagramSocketImpl.join(Native Method)
at java.net.AbstractPlainDatagramSocketImpl.joinGroup(Unknown Source)
at java.net.MulticastSocket.joinGroup(Unknown Source)
at org.serviio.util.MultiCastUtils.startMultiCastSocketForListening(MultiCastUtils.java:45)
at org.serviio.upnp.discovery.DiscoverySSDPMessageListener.run(DiscoverySSDPMessageListener.java:86)
at java.lang.Thread.run(Unknown Source)
2013-03-14 10:27:02,948 ERROR [DiscoverySSDPMessageListener] Cannot open multicast socket,will try again
java.net.SocketException: No such device
at java.net.PlainDatagramSocketImpl.join(Native Method)
at java.net.AbstractPlainDatagramSocketImpl.joinGroup(Unknown Source)
at java.net.MulticastSocket.joinGroup(Unknown Source)
at org.serviio.util.MultiCastUtils.startMultiCastSocketForListening(MultiCastUtils.java:45)
at org.serviio.upnp.discovery.DiscoverySSDPMessageListener.run(DiscoverySSDPMessageListener.java:86)
at java.lang.Thread.run(Unknown Source)
2013-03-14 10:27:03,950 INFO [DiscoverySSDPMessageListener] Starting DiscoverySSDPMessageListener using interface Unknown and address 127.0.1.1, timeout = 0
2013-03-14 10:27:18,951 INFO [FeedUpdaterThread] Started looking for information about online resources
2013-03-14 10:27:18,954 INFO [LibraryAdditionsCheckerThread] Started looking for newly added files
2013-03-14 10:27:18,961 INFO [LibraryUpdatesCheckerThread] Started looking for updates to currently shared files
2013-03-14 10:27:18,961 INFO [PlaylistMaintainerThread] Started looking playlist changes
2013-03-14 10:40:50,997 WARN [IndexedDiskCache] Region [thumbnails] Disk cache not shutdown properly, shutting down now.
2013-03-14 10:40:50,998 WARN [IndexedDiskCache] Region [online_technical_metadata] Disk cache not shutdown properly, shutting down now.
2013-03-14 10:40:50,999 INFO [LibraryAdditionsCheckerThread] Finished looking for newly added files
2013-03-14 10:40:51,100 INFO [LibraryUpdatesCheckerThread] Finished looking for updates to currently shared files
2013-03-14 10:40:51,200 INFO [FeedUpdaterThread] Finished looking for online resources information
2013-03-14 10:40:51,300 INFO [PluginCompilerThread] Finished looking for plugins
2013-03-14 10:40:51,403 INFO [WebServer] WebServer shutting down
2013-03-14 10:40:51,405 INFO [EventSubscriptionExpirationChecker] Leaving EventSubscriptionExpirationChecker, removing all event subscriptions
2013-03-14 10:40:51,405 INFO [EventDispatcher] Leaving EventDispatcher
2013-03-14 10:40:51,405 WARN [DiscoveryAdvertisementNotifier] Cannot find a network interface for bound IP Ubuntu/127.0.1.1
2013-03-14 10:40:51,405 INFO [DiscoverySSDPMessageListener] Leaving DiscoverySSDPMessageListener
2013-03-14 10:40:51,405 WARN [DiscoveryManager] Problem during sending 'byebye' message. Advertisement will expire automatically.
java.lang.NullPointerException
at org.serviio.util.MultiCastUtils.findIPAddress(MultiCastUtils.java:136)
at org.serviio.upnp.discovery.DiscoveryAdvertisementNotifier.sendByeByeToSingleInterface(DiscoveryAdvertisementNotifier.java:198)
at org.serviio.upnp.discovery.DiscoveryAdvertisementNotifier.sendByeBye(DiscoveryAdvertisementNotifier.java:151)
at org.serviio.upnp.discovery.DiscoveryManager.deviceUnavailable(DiscoveryManager.java:127)
at org.serviio.MediaServer.stopServer(MediaServer.java:219)
at org.serviio.MediaServer$ShutdownHook.run(MediaServer.java:332)
2013-03-14 10:40:51,406 INFO [DatabaseManager] Shutting down database
2013-03-14 10:40:51,655 INFO [AbstractTranscodingDeliveryEngine] Cleaning transcode engine and its data
Media: All my media is on an external drive - /media/MediaDrive
What worked:
Serviio would startup on boot, but the media would not be available after I would log in.
My /etc/init/serviio.conf was
Here is what I changed recently:
I wanted my exteral drive to mount on boot and be available to all users. So I changed the fstab file.
- Code:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation
UUID=12d10016-8f17-497b-bac1-45bdbf07ed50 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=76be899a-4255-4653-af4e-a1104125b63e none swap sw 0 0
/dev/sdb1 /media/MediaDrive ntfs defaults 0 0
changed my /etc/init/serviio.conf to
when I log in and start serviio, it works fine. I need to be able to start serviio after all my media has mounted and network or what ever devices its dependant on have started/working.
your help is greatly appreciated!
Cheers,
Sameer Jaffer