Solved: Media players report PS3 Media Server [unknown host]

For help and support with issues specific to Linux/Unix
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply.

Solved: Media players report PS3 Media Server [unknown host]

Postby skellert » Wed Jan 04, 2012 3:29 am

{edit] - Solved by myself finally.... problem wasn't ps3mediaplayer, but with DNS name resolution. I toyed with so many parameters, I can't say for certain what fixed this. I think it may have been incorrect config of my F15 DNS/DHCP server.... I'm running 'named' for DNS resolution, but noticed that DNSmasq was also running on same server (in failed state). Perhaps this was the root cause?

Interestingly, the PS3 Media Server identity reported by my media players is now of the form "PS3 Media Server [Dads Computer]", where as way back in the distant past before my problems appeared, it used to report "PS3 Media Server [172.16.1.2]".

In any case, you'll find my 1.50 ps3mediaserver config outlined in the posts below, and have previously worked with 1.20, 1.30 in essentially this form.
[/edit]

Hi,

I've been running various releases of Fedora (currently F15) and various releases of PS3 Media Server (currently 1.50.0) for several years.

My problem has been bugging me for a long time, and several PS3 Media Server releases.... PS3 Media Server fails to resolve the hostname of the fedora box, and because I've got TWO fedora servers on my home network, my media players each report the same thing - so I can't tell which is which.... (ie the media players all show two servers called "PS3 Media Server [unknown host]") The host names used to resolve to their IP addresses, but some time a long time ago it stopped working for me.

I've tried adding the IP address of the interface to /etc/hosts along with a name - but this doesn't change the behaviour.

I've changed the host line on /etc/nsswitch.conf to read
Code: Select all
hosts: files mdns4_minimal dns
but this doesn't change the behaviour either.

I've deleted my PMS.conf and had PS3 media server create it again. No change in behaviour.

I've tried binding to an IP address rather than to the interface (I'm using br0), but no change in behaviour either.

I'm guessing its got something to do with the way that java resolves names, but I'm no expert in this. Can anybody help point me in a new direction?

For what its worth, here's my log output (scroll down to see error at 13:09:39.195)
Code: Select all
[main] INFO  13:09:39.113 Starting PS3 Media Server 1.50.0
[main] INFO  13:09:39.132 by shagrath / 2008-2011
[main] INFO  13:09:39.144 http://ps3mediaserver.org
[main] INFO  13:09:39.145 http://code.google.com/p/ps3mediaserver
[main] INFO  13:09:39.145 http://ps3mediaserver.blogspot.com
[main] INFO  13:09:39.146
[main] INFO  13:09:39.146 Java: 1.6.0_22-Sun Microsystems Inc.
[main] INFO  13:09:39.147 OS: Linux amd64 2.6.41.4-1.fc15.x86_64
[main] INFO  13:09:39.147 Encoding: UTF-8
[main] INFO  13:09:39.160 Working directory: /usr/local/bin/ps3mediaserver
[main] INFO  13:09:39.176 Temp folder: /tmp/ps3mediaserver
[main] INFO  13:09:39.177 Logging config file: /usr/local/bin/ps3mediaserver/logback.xml
[main] INFO  13:09:39.185 debug.log: /usr/local/bin/ps3mediaserver/debug.log
[main] INFO  13:09:39.187
[main] INFO  13:09:39.188 Profile directory: /etc
[main] INFO  13:09:39.189 Profile path: /etc/PMS.conf
[main] INFO  13:09:39.191 Profile status: rw
[main] INFO  13:09:39.195 Can't determine hostname
[main] INFO  13:09:39.195 Profile name: unknown host
[main] INFO  13:09:39.196
[main] WARN  13:09:39.435 Error loading libzen: Unable to load library 'zen': libzen.so: cannot open shared object file: No such file or directory
[main] INFO  13:09:39.443 Loading MediaInfo library
[main] INFO  13:09:39.560 Error loading MediaInfo library: Unable to load library 'mediainfo': libmediainfo.so: cannot open shared object file: No such file or directory
[main] INFO  13:09:39.563 Make sure you have libmediainfo and libzen installed
[main] INFO  13:09:39.563 The server will now use the less accurate ffmpeg parsing method
[main] INFO  13:09:39.577 Loading renderer configurations from /usr/local/bin/ps3mediaserver/renderers
[main] INFO  13:09:39.578 Loading configuration file: BraviaEX.conf
[main] INFO  13:09:39.602 Loading configuration file: Android.conf
[main] INFO  13:09:39.607 Loading configuration file: PS3.conf
[main] INFO  13:09:39.646 Loading configuration file: WDTVLive.conf
[main] INFO  13:09:39.655 Loading configuration file: SamsungWiseLink.conf
[main] INFO  13:09:39.665 Loading configuration file: Philips.conf
[main] INFO  13:09:39.674 Loading configuration file: FreecomMusicPal.conf
[main] INFO  13:09:39.689 Loading configuration file: N900.conf
[main] INFO  13:09:39.691 Loading configuration file: SamsungAllShare.conf
[main] INFO  13:09:39.713 Loading configuration file: WMP.conf
[main] INFO  13:09:39.735 Loading configuration file: Showtime3.conf
[main] INFO  13:09:39.761 Loading configuration file: Kuro.conf
[main] INFO  13:09:39.780 Loading configuration file: XBOX360.conf
[main] INFO  13:09:39.807 Loading configuration file: AirPlayer.conf
[main] INFO  13:09:39.837 Loading configuration file: FreeboxHD.conf
[main] INFO  13:09:39.847 Loading configuration file: Panasonic.conf
[main] INFO  13:09:39.863 Loading configuration file: XBMC.conf
[main] INFO  13:09:39.888 Loading configuration file: SonyBluray.conf
[main] INFO  13:09:39.912 Loading configuration file: Realtek.conf
[main] INFO  13:09:39.930 Loading configuration file: Streamium.conf
[main] INFO  13:09:39.950 Loading configuration file: Bravia5500.conf
[main] INFO  13:09:39.957 Loading configuration file: Bravia4500.conf
[main] INFO  13:09:39.981 Loading configuration file: iPad-iPhone.conf
[main] INFO  13:09:39.993 Loading configuration file: PopcornHour.conf
[main] INFO  13:09:40.020 Checking MPlayer font cache. It can take a minute or so.
[main] INFO  13:09:40.217 Done!
[main] INFO  13:09:40.255 Searching for plugins in /usr/local/bin/ps3mediaserver/plugins
[main] INFO  13:09:40.258 No plugins found
[main] INFO  13:09:40.277 Registering transcoding engine: FFmpeg Audio
[main] INFO  13:09:40.306 Registering transcoding engine: MEncoder
[main] INFO  13:09:40.307 Registering transcoding engine: MPlayer Audio
[main] INFO  13:09:40.316 Registering transcoding engine: MEncoder Web
[main] INFO  13:09:40.322 Registering transcoding engine: MPlayer Video Dump
[main] INFO  13:09:40.323 Registering transcoding engine: MPlayer Web
[main] INFO  13:09:40.331 Registering transcoding engine: tsMuxeR
[main] INFO  13:09:40.336 Registering transcoding engine: Audio High Fidelity
[main] INFO  13:09:40.337 Registering transcoding engine: VLC Audio Streaming
[main] INFO  13:09:40.338 Registering transcoding engine: VLC Video Streaming
[main] INFO  13:09:40.339 Registering transcoding engine: Raws Thumbnailer
[main] INFO  13:09:40.594 Scanning network interface br0 (br0)
[main] INFO  13:09:40.595 Using address /172.16.1.2 found on network interface: name:br0 (br0)
[main] INFO  13:09:40.596 Created socket: /172.16.1.2:5001
[main] INFO  13:09:40.869 Using database located at: /usr/local/bin/ps3mediaserver/database
[main] INFO  13:09:41.357 A tiny cache admin interface is available at: http://172.16.1.2:5001/console/home
[main] INFO  13:09:41.383 Using the following UUID configured in PMS.conf: 6ac5e29d-2956-3d0d-b70e-40671eaf45c3
[main] INFO  13:09:46.906 The server should now appear on your renderer
[New I/O server worker #1-2] INFO  13:09:48.190 No IP filter specified, access granted to /172.16.1.17
[New I/O server worker #1-1] INFO  13:09:48.209 No IP filter specified, access granted to /172.16.1.16
[New I/O server worker #1-2] INFO  13:09:48.250 Another renderer like Philips Aurea was found!
[pool-3-thread-2] INFO  13:09:48.265 Checking ip:172.16.1.17 for Philips Aurea
[pool-3-thread-1] INFO  13:09:48.267 Checking ip:172.16.1.16 for Philips Aurea
[pool-3-thread-2] INFO  13:09:48.382 Renderer Philips Aurea found on this address: 172.16.1.17
[pool-3-thread-1] INFO  13:09:48.486 Renderer Philips Aurea found on this address: 172.16.1.16
[New I/O server worker #1-3] INFO  13:10:32.964 No IP filter specified, access granted to /172.16.1.13
[pool-3-thread-1] INFO  13:10:32.976 Checking ip:172.16.1.13 for Xbox 360
[pool-3-thread-1] INFO  13:10:33.081 Renderer Xbox 360 found on this address: 172.16.1.13
[New I/O server worker #1-3] INFO  13:10:33.093 Checking shared folder: /var3/SciFi_and_fantasy
[New I/O server worker #1-3] INFO  13:10:33.103 Checking shared folder: /var3/Drama
[New I/O server worker #1-3] INFO  13:10:33.141 Checking shared folder: /var3/Adventure
[New I/O server worker #1-3] INFO  13:10:33.142 Checking shared folder: /var3/Childrens
[New I/O server worker #1-3] INFO  13:10:33.142 Checking shared folder: /var2/Comedy
[New I/O server worker #1-3] INFO  13:10:33.142 Checking shared folder: /var2/Horror
[New I/O server worker #1-3] INFO  13:10:33.142 Checking shared folder: /var2/Documentary
[New I/O server worker #1-3] INFO  13:10:33.143 Checking shared folder: /var2/Unsorted
[New I/O server worker #1-3] INFO  13:10:33.143 Checking shared folder: /home
[New I/O server worker #1-3] INFO  13:10:33.143 Checking shared folder: /var2/music
[New I/O server worker #1-3] INFO  13:10:33.144 Checking shared folder: /var2/photos


and for grins, here's my /etc/PMS.conf

Code: Select all
thumbnails = true
mencoder_ass = false
nbcores = 2
enable_archive_browsing = true
usecache = true
folders = /var3/SciFi_and_fantasy,/var3/Drama,/var3/Adventure,/var3/Childrens,/var2/Comedy,/var2/Horror,/var2/Documentary,/var2/Unsorted,/home,/var2/music,/var2/photos
mencoder_fontconfig = true
codec_spec_script =
mencoder_intelligent_sync = true
mencoder_nooutofsync = true
mencoder_encode = keyint=1:vqscale=1:vqmin=2
maximumbitrate = 0
language = en
network_interface = br0
hostname =
notranscode =
avisynth_script = #AviSynth script is now fully customisable !\u0001#You must use the following variables (\"clip\" being the avisynth variable of the movie):\u0001#<movie>: insert the complete DirectShowSource instruction [ clip=DirectShowSource(movie, convertfps) ]\u0001#<sub>: insert the complete TextSub/VobSub instruction if there's any detected srt/sub/idx/ass subtitle file\u0001#<moviefilename>: variable of the movie filename, if you want to do all this by yourself\u0001#Be careful, the custom script MUST return the clip object\u0001<movie>\u0001<sub>\u0001return clip
mencoder_mt = true
mencoder_yadif = false
mencoder_scaler = false
mencoder_scalex = 900
mencoder_scaley = 700
mencoder_remux_ac3 = true
mencoder_forcefps = false
port = 5001
ffmpeg = -g 1 -qscale 1 -qmin 2
engines = mencoder,avsmencoder,tsmuxer,mplayeraudio,ffmpegaudio,tsmuxeraudio,vlcvideo,mencoderwebvideo,mplayervideodump,mplayerwebaudio,vlcaudio,ffmpegdvrmsremux,rawthumbs
thumbnail_seek_pos = 100
mencoder_decode = -nofontconfig -mc 0
alternativeffmpegpath = D:\\eclipse3.4\\workspace\\ps3mediaserver\\win32\\dvrms\\ffmpeg_MPGMUX.exe
audiobitrate = 640
mencoder_usepcm = false
mencoder_ass_defaultstyle = false
tsmuxer_preremix_ac3 = true
key_sort_method = 0
audio_thumbnails_method = 0
alternate_thumb_folder =
embed_dts_in_pcm = false
mencoder_mux_compatible = true
disable_fakesize = false
alternate_subs_folder = ..\\subs
mencoder_sublangs = eng
audiochannels = 6
use_mplayer_for_video_thumbs = true
mencoder_audiosublangs = fr,off
ip_filter =
maxvideobuffer = 600
mencoder_audiolangs = eng
hide_empty_folders = false
hide_media_library_folder = false
http_engine_v2 = true
lastfm.scrobbler.user = shagrath78
lastfm.scrobbler.password = dolamroth
chapter_interval = 2
chapter_support = true
subs_color = -52
hide_extensions = true
hidevideosettings = true
hide_enginenames = true
prevents_sleep_mode = true
forcetranscode = avib
image_thumbnails = true
uuid = 6ac5e29d-295b-3d0e-b70e-40671eaf45c3
minimized = true


Thanks!
Last edited by skellert on Thu Jan 05, 2012 10:15 pm, edited 3 times in total.
skellert
 
Posts: 4
Joined: Wed Jan 04, 2012 2:47 am

Re: Media players report "PS3 Media Server [unknown host]"

Postby skellert » Wed Jan 04, 2012 4:52 am

I can add a little more information to the post above....

When running PMS.sh from the command line, the following error indicates that its found the hostname, just not the IP address....

Code: Select all
ERROR in ch.qos.logback.core.util.ContextUtil@1d3c468a - Failed to get local hostname java.net.UnknownHostException: DadsComputer: DadsComputer
        at java.net.UnknownHostException: DadsComputer: DadsComputer
        at      at java.net.InetAddress.getLocalHost(InetAddress.java:1426)
        at      at ch.qos.logback.core.util.ContextUtil.getLocalHostName(ContextUtil.java:30)
        at      at ch.qos.logback.core.util.ContextUtil.addHostNameAsProperty(ContextUtil.java:39)
        at      at ch.qos.logback.classic.joran.action.ConfigurationAction.begin(ConfigurationAction.java:47)
        at      at ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:273)
        at      at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:145)
        at      at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:127)
        at      at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:40)
        at      at ch.qos.logback.core.joran.spi.Interpreter.play(Interpreter.java:332)
        at      at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:132)
        at      at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:93)
        at      at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:52)
        at      at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:77)
        at      at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:150)
        at      at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85)
        at      at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
        at      at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128)
        at      at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:108)
        at      at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:279)
        at      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:252)
        at      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:265)
        at      at net.pms.PMS.<clinit>(PMS.java:132)


and I can confirm that the error is of the same form on the other server (with different hostname) too. The hostname is the one specified in /etc/sysconfig/network or assigned via dhcpd's 'get-lease-hostnames' option.
skellert
 
Posts: 4
Joined: Wed Jan 04, 2012 2:47 am

Re: Media players report "PS3 Media Server [unknown host]"

Postby meskibob » Wed Jan 04, 2012 4:54 am

I don't know linux well, but I believe the hostname needs to be configured in "/etc/hosts" and it should be the FQDN.
I provide NO application support via PM or email, so please post your question to the forum per the Forum Rules.
meskibob
Moderator
 
Posts: 4739
Joined: Mon Jan 19, 2009 4:11 pm

Re: Media players report "PS3 Media Server [unknown host]"

Postby skellert » Wed Jan 04, 2012 7:41 am

Thanks for the suggestion.... I've tried this avenue and it doesn't work.

In the interests of full disclosure, here's my /etc/hosts

Code: Select all
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       localhost.localdomain   localhost
172.16.1.2      DadsServer.MY.DOMAIN.PATH DadsServer
::1     localhost6.localdomain6 localhost6


I've also got a working named on one of my servers, that correctly serves the IP addresses of all local host names, with and without my domain. (ie I can ping DadsServer from any machine on my home network, and the local DNS will resolve that name correctly to its local IP of 172.16.1.2)
skellert
 
Posts: 4
Joined: Wed Jan 04, 2012 2:47 am


Return to Linux/Unix Support

Who is online

Users browsing this forum: No registered users and 5 guests