FAQ  •  Register  •  Login

Problem unter Linux Ubuntu

<<

Fohnbit

Serviio newbie

Posts: 16

Joined: Sun Dec 09, 2012 9:50 am

Post Thu Sep 19, 2013 9:40 am

Problem unter Linux Ubuntu

Hello

I installed Serviio on Ubuntu Server 12.04 x64

I hope that all programms are correct installed.

When I want to configure with:
  Code:
sudo /opt/serviio/serviio-1.3.1/bin/serviio-console.sh



Then I get the error:
  Code:
Exception in thread "Thread-1" java.lang.NullPointerException
        at org.serviio.console.ServiioConsole$ShutdownHook.run(ServiioConsole.java:324)


Where is the problem?

I added at a Windows machine the:
  Code:
Edit C:\Program Files\Serviio\bin\ServiioConsole.exe.vmoptions adding:

-Dserviio.remoteHost=XXX.XXX.X.XXX


The console unter windows started.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Sep 19, 2013 4:18 pm

Re: Problem unter Linux Ubuntu

Is there more in the log before this error?
<<

Fohnbit

Serviio newbie

Posts: 16

Joined: Sun Dec 09, 2012 9:50 am

Post Thu Sep 19, 2013 5:25 pm

Re: Problem unter Linux Ubuntu

Hello

Can you tell me the path please for the log!

Thank you!
<<

Fohnbit

Serviio newbie

Posts: 16

Joined: Sun Dec 09, 2012 9:50 am

Post Fri Sep 20, 2013 4:53 am

Re: Problem unter Linux Ubuntu

I tried it to connect with my LG TV.

He play the videos ... so it seems that all is running!

Thanks
<<

mattfleming

Serviio newbie

Posts: 1

Joined: Fri Nov 29, 2013 12:16 pm

Post Fri Nov 29, 2013 12:50 pm

Re: Problem unter Linux Ubuntu

I have the same problem. I'm running ubuntu server (headless) 13.10. I tried openjdk-7 initially then tried 6 but it didn't make any difference. It also reports ffmpeg is missing, but it isn't.

Startup - logs/serviio.log:
2013-11-29 20:23:59,186 INFO [MediaServer] ------------------------------------------------------------------------
2013-11-29 20:23:59,188 INFO [MediaServer] Serviio DLNA media streaming server v 1.3.1 (rev. f1fc8bc55657+)
2013-11-29 20:23:59,188 INFO [MediaServer] Petr Nejedly 2009-2013
2013-11-29 20:23:59,188 INFO [MediaServer] http://www.serviio.org
2013-11-29 20:23:59,188 INFO [MediaServer]
2013-11-29 20:23:59,188 INFO [MediaServer] Java 1.7.0_25-Oracle Corporation
2013-11-29 20:23:59,188 INFO [MediaServer] OS Linux amd64 3.11.0-13-generic
2013-11-29 20:23:59,188 INFO [MediaServer] File encoding: US-ASCII
2013-11-29 20:23:59,189 INFO [MediaServer] Headless mode enabled: true
2013-11-29 20:23:59,189 INFO [MediaServer] User: root
2013-11-29 20:23:59,189 INFO [MediaServer] User home dir: /root
2013-11-29 20:23:59,189 INFO [MediaServer] Temp dir: /tmp
2013-11-29 20:23:59,189 INFO [MediaServer] ------------------------------------------------------------------------
2013-11-29 20:23:59,381 INFO [WebServer] Socket buffer set to 65535 bytes
2013-11-29 20:23:59,384 INFO [RestletServer] Starting Restlet server (/rest) exposed on port 23423
2013-11-29 20:23:59,459 INFO [RestletServer] Starting Restlet server (/cds) exposed on port 23424
2013-11-29 20:23:59,459 INFO [RestletServer] Starting Restlet server (/mediabrowser) exposed on port 23424
2013-11-29 20:23:59,481 INFO [DBSchemaUpdateExecutor] Checking if DB schema needs to be updated
2013-11-29 20:24:00,675 INFO [MediaServer] ------------------------------------------------------------------------
2013-11-29 20:24:00,675 INFO [MediaServer] License: PRO (EVALUATION, id: 11111111-1111-1111-1111-111111111113)
2013-11-29 20:24:00,675 INFO [MediaServer] ------------------------------------------------------------------------
2013-11-29 20:24:00,684 INFO [Device] Created UPnP Device with UUID: 50339d3c-c744-3be9-9a24-dbb8871e1f05, bound address: 192.168.0.101
2013-11-29 20:24:01,254 INFO [ProfilesDefinitionParser] Parsing Profiles definition
2013-11-29 20:24:01,379 INFO [ProfilesDefinitionParser] Added profile 'Generic DLNA profile' (id=1)
2013-11-29 20:24:01,393 INFO [ProfilesDefinitionParser] Added profile 'Samsung TV (B-series)' (id=2)
2013-11-29 20:24:01,399 INFO [ProfilesDefinitionParser] Added profile 'Xbox 360' (id=3)
2013-11-29 20:24:01,402 INFO [ProfilesDefinitionParser] Added profile 'Playstation 3' (id=4)
2013-11-29 20:24:01,404 INFO [ProfilesDefinitionParser] Added profile 'Samsung TV (A-series)' (id=5)
2013-11-29 20:24:01,415 INFO [ProfilesDefinitionParser] Added profile 'DirecTV HD-DVR' (id=6)
2013-11-29 20:24:01,420 INFO [ProfilesDefinitionParser] Added profile 'Samsung TV / player (C/D/E/F-series)' (id=7)
2013-11-29 20:24:01,422 INFO [ProfilesDefinitionParser] Added profile 'LG TV / player' (id=8)
2013-11-29 20:24:01,429 INFO [ProfilesDefinitionParser] Added profile 'Sony Bravia TV (2012)' (id=sony2012)
2013-11-29 20:24:01,432 INFO [ProfilesDefinitionParser] Added profile 'Sony BDP-Sx90 (2012)' (id=bdp2012)
2013-11-29 20:24:01,438 INFO [ProfilesDefinitionParser] Added profile 'Sony BDP-Sx70/SMP-N100 (2010)' (id=bdp2010)
2013-11-29 20:24:01,439 INFO [ProfilesDefinitionParser] Added profile 'Sony BDP-Sx70/SMP-N100 (2010) - US' (id=bdp2010us)
2013-11-29 20:24:01,441 INFO [ProfilesDefinitionParser] Added profile 'Sony BDP-Sx80/SMP-N200 (2011)' (id=bdp2011)
2013-11-29 20:24:01,443 INFO [ProfilesDefinitionParser] Added profile 'Toshiba REGZA' (id=13)
2013-11-29 20:24:01,445 INFO [ProfilesDefinitionParser] Added profile 'WDTV Live' (id=14)
2013-11-29 20:24:01,447 INFO [ProfilesDefinitionParser] Added profile 'LaCie LaCinema Media Player' (id=15)
2013-11-29 20:24:01,448 INFO [ProfilesDefinitionParser] Added profile 'Manta WIFI Centre' (id=16)
2013-11-29 20:24:01,449 INFO [ProfilesDefinitionParser] Added profile 'Pure Flow' (id=17)
2013-11-29 20:24:01,451 INFO [ProfilesDefinitionParser] Added profile 'Sharp Aquos' (id=18)
2013-11-29 20:24:01,452 INFO [ProfilesDefinitionParser] Added profile 'Sony Bravia TV (2011)' (id=sony2011)
2013-11-29 20:24:01,454 INFO [ProfilesDefinitionParser] Added profile 'Sony Bravia TV (2010)' (id=sony2010)
2013-11-29 20:24:01,456 INFO [ProfilesDefinitionParser] Added profile 'Philips (2010-)' (id=plps2010)
2013-11-29 20:24:01,457 INFO [ProfilesDefinitionParser] Added profile 'Philips (2009)' (id=20)
2013-11-29 20:24:01,458 INFO [ProfilesDefinitionParser] Added profile 'Sony Bravia TV (2009)' (id=sony2009)
2013-11-29 20:24:01,460 INFO [ProfilesDefinitionParser] Added profile 'Denon AVR' (id=22)
2013-11-29 20:24:01,462 INFO [ProfilesDefinitionParser] Added profile 'Panasonic Viera G/GT/DT/UT/VT (2011/2012)' (id=viera2011a)
2013-11-29 20:24:01,463 INFO [ProfilesDefinitionParser] Added profile 'Panasonic Viera E/S/ST/VT (2011)' (id=viera2011)
2013-11-29 20:24:01,465 INFO [ProfilesDefinitionParser] Added profile 'Panasonic Viera (2010)' (id=viera2010)
2013-11-29 20:24:01,466 INFO [ProfilesDefinitionParser] Added profile 'Sony Bravia TV (2012) - US' (id=sony2012us)
2013-11-29 20:24:01,467 INFO [ProfilesDefinitionParser] Added profile 'Sony Bravia TV (2011) - US' (id=sony2011us)
2013-11-29 20:24:01,469 INFO [ProfilesDefinitionParser] Added profile 'Sony AVReceiver STR' (id=SonySTR)
2013-11-29 20:24:01,470 INFO [ProfilesDefinitionParser] Added profile 'Sony Audio CMT' (id=SonyCMT)
2013-11-29 20:24:01,471 INFO [ProfilesDefinitionParser] Added profile 'Vizio TV' (id=viziotv)
2013-11-29 20:24:01,474 INFO [ProfilesDefinitionParser] Added profile 'Windows 8/RT' (id=win8metro)
2013-11-29 20:24:01,475 INFO [ProfilesDefinitionParser] Added profile 'Panasonic BD player' (id=panasonicBDT220)
2013-11-29 20:24:01,476 INFO [ProfilesDefinitionParser] Added profile 'Philips NP Streamium' (id=philips_streamium)
2013-11-29 20:24:01,478 INFO [ProfilesDefinitionParser] Added profile 'Chaneru' (id=roku)
2013-11-29 20:24:01,479 INFO [ProfilesDefinitionParser] Added profile 'Yamaha BD-A1020/BD-A1010' (id=YamBD)
2013-11-29 20:24:01,561 INFO [ProfilesDefinitionParser] Parsing Profiles definition
2013-11-29 20:24:01,569 INFO [ProfilesDefinitionParser] Added profile 'Flash player' (id=flv_player)
2013-11-29 20:24:01,580 INFO [ProfilesDefinitionParser] Added profile 'iOS' (id=ios)
2013-11-29 20:24:01,582 INFO [ProfilesDefinitionParser] Added profile 'ServiiGo (Standard)' (id=serviigo_standard)
2013-11-29 20:24:01,584 INFO [ProfilesDefinitionParser] Added profile 'ServiiGo (Legacy Devices)' (id=serviigo)
2013-11-29 20:24:01,585 INFO [ProfilesDefinitionParser] Added profile 'ServiiGo (HLS)' (id=serviigo_hls)
2013-11-29 20:24:01,587 INFO [ProfilesDefinitionParser] Added profile 'ServiiGo (Google TV)' (id=serviigo_gtv)
2013-11-29 20:24:01,589 INFO [ProfilesDefinitionParser] Added profile 'Windows Phone 8' (id=wp8)
2013-11-29 20:24:01,646 INFO [PluginCompilerThread] Looking for plugins at /srv/serviio-1.3.1/plugins
2013-11-29 20:24:01,648 INFO [PluginCompilerThread] Started looking for plugins
2013-11-29 20:24:01,661 INFO [UpdateChecker] Checking if a new version is available
2013-11-29 20:24:01,704 ERROR [MediaServer] FFMPEG not found. Serviio will not work properly.
2013-11-29 20:24:01,732 INFO [AbstractTranscodingDeliveryEngine] Cleaning transcode engine and its data
2013-11-29 20:24:01,772 INFO [Device] Updated bound IP address of Device with UUID: 50339d3c-c744-3be9-9a24-dbb8871e1f05, bound address: 192.168.0.101
2013-11-29 20:24:01,780 INFO [WebServer] WebServer starting on port 8895
2013-11-29 20:24:01,784 INFO [DiscoverySSDPMessageListener] Starting DiscoverySSDPMessageListener using interface em1 (em1) and address 192.168.0.101, timeout = 0
2013-11-29 20:24:01,785 INFO [EventSubscriptionExpirationChecker] Starting EventSubscriptionExpirationChecker
2013-11-29 20:24:01,786 INFO [EventDispatcher] Starting EventDispatcher
2013-11-29 20:24:01,793 INFO [DiscoveryAdvertisementNotifier] Starting DiscoveryAdvertisementNotifier
2013-11-29 20:24:01,794 INFO [RendererExpirationChecker] Starting RendererExpirationChecker
2013-11-29 20:24:01,795 INFO [RendererSearchSender] Searching for Renderer devices
2013-11-29 20:24:27,834 INFO [FeedUpdaterThread] Started looking for information about online resources
2013-11-29 20:24:27,853 INFO [LibraryAdditionsCheckerThread] Started looking for newly added files
2013-11-29 20:24:27,888 INFO [LibraryUpdatesCheckerThread] Started looking for updates to currently shared files
2013-11-29 20:24:27,907 INFO [PlaylistMaintainerThread] Started looking playlist changes

# apt-get install ffmpeg
Reading package lists... Done
Building dependency tree
Reading state information... Done
ffmpeg is already the newest version

At this point the server seems to run okay, as in it's discoverable on the network, but I guess I can't add any media to it without the console?

Then trying the console:
# bin/serviio-console.sh
Exception in thread "Thread-1" java.lang.NullPointerException
at org.serviio.console.ServiioConsole$ShutdownHook.run(ServiioConsole.java:324)

From the log:
2013-11-29 20:14:21,658 INFO [ServiioConsole] Initializing Serviio Console
2013-11-29 20:14:21,691 INFO [ServiioConsole] Starting Serviio Console
2013-11-29 20:14:21,728 WARN [SwingHelper] Can't change L&F: [GTK look and feel - com.sun.java.swing.plaf.gtk.GTKLookAndFeel] not supported on this platform
2013-11-29 20:14:21,761 INFO [ServiioConsole] Connecting to Serviio REST on localhost:23423
2013-11-29 20:14:22,431 INFO [Messages] Loaded console message bundle for locale: en
2013-11-29 20:14:22,576 ERROR [ServiioConsole] Unexpected exception occured:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:207)
at java.awt.Window.<init>(Window.java:535)
at java.awt.Frame.<init>(Frame.java:420)
at java.awt.Frame.<init>(Frame.java:385)
at javax.swing.JFrame.<init>(JFrame.java:174)
at org.serviio.ui.view.swing.JFrameView.<init>(JFrameView.java:28)
at org.serviio.ui.view.swing.ServiioFrameView.<init>(ServiioFrameView.java:61)
at org.serviio.console.ServiioConsole.main(ServiioConsole.java:116)
2013-11-29 20:14:22,579 INFO [ServiioConsole] Exitting Serviio Console

Thanks in advance for your help!
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Dec 02, 2013 9:04 pm

Re: Problem unter Linux Ubuntu

you cannot run the console on a headless server.

FFmpeg is probably not on path for the user running serviio. You can get around that by passing ffmpeg.location system variable (search the forum and check FAQ on how to set it up)
<<

grepdashv

Serviio newbie

Posts: 1

Joined: Tue Dec 03, 2013 3:33 am

Post Tue Dec 03, 2013 3:38 am

Re: Problem unter Linux Ubuntu

If it is not a headless server, try the following command as the user you are trying to start the console with;
export DISPLAY=:0.0
This will get rid of the java error.

Return to Serviio Support & Help

Who is online

Users browsing this forum: Google [Bot] and 21 guests

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