Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 360929 - net-misc/ps3mediaserver ignores pms.conf
Summary: net-misc/ps3mediaserver ignores pms.conf
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-28 14:59 UTC by Kyle Sanderson
Modified: 2011-03-28 20:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kyle Sanderson 2011-03-28 14:59:43 UTC
net-misc/ps3mediaserver-1.20.412-r1: Ignores reading pms.conf which makes the application useless if your user doesn't have proper access to /

Reproducible: Always

Steps to Reproduce:
1. Install the official PMS ebuild (net-misc/ps3mediaserver-1.20.412-r1)
2. Set a unique configuration option in pms.conf
3. Run PS3MediaServer
Actual Results:  
Doesn't read the configuration file.

Expected Results:  
Read the configuration file, mount folders, watch media.

Tried various Kernels, it's a no go. At the moment I'm running on 2.6.38-r1.

Portage 2.1.9.42 (default/linux/amd64/10.0/server, gcc-4.4.5, glibc-2.11.3-r0, 2.6.38-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.38-gentoo-r1-x86_64-Intel-R-_Pentium-R-_D_CPU_3.00GHz-with-gentoo-1.12.14
Timestamp of tree: Mon, 28 Mar 2011 13:15:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r2, 2.7.1-r1, 3.1.3-r1
dev-util/ccache:     2.4-r9
dev-util/cmake:      2.8.4
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache collision-protect distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cups cxx daemon dri fortran gd gdbm gpm iconv ipv6 mmx modules mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline session snmp sockets sse sse2 ssl sysfs tcpd transcode truetype unicode xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 SpanKY gentoo-dev 2011-03-28 15:39:43 UTC
*what* pms.conf file exactly are you talking about ?
Comment 2 Kyle Sanderson 2011-03-28 16:39:01 UTC
pms.conf is the file that is shipped by the vendor ( http://code.google.com/p/ps3mediaserver/source/browse/trunk/ps3mediaserver/PMS.conf ). There's also a sh to start the server that is missing from the ebuild as well ( http://code.google.com/p/ps3mediaserver/source/browse/trunk/ps3mediaserver/PMS.sh ).

My pms.conf file looks like this:

thumbnails = false
folders = /Samba/Television
mencoder_ass = true
mencoder_mt = true
hide_extensions = true
usecache = yes
hide_transcode_folder = true
mencoder_yadif = false
tsmuxer_mux_all_audiotracks = false
network_interface = eth0
Comment 3 SpanKY gentoo-dev 2011-03-28 17:14:26 UTC
there is no missing shell script, nor did you answer my question (although i guess it could be interpreted differently).  *where* is that pms.conf stored ?
Comment 4 Kyle Sanderson 2011-03-28 17:38:33 UTC
Oh, sorry!

pms.conf is stored with the base installation (/usr/share/ps3mediaserver/).
Comment 5 SpanKY gentoo-dev 2011-03-28 18:38:11 UTC
that is not where things go.  use ~/.ps3mediaserver/.  this is created automatically for you when you run `ps3mediaserver`.
Comment 6 Kyle Sanderson 2011-03-28 18:50:19 UTC
Issue is still present with running 'ps3mediaserver'. It seems the "Setting up" message is present on every initialization regardless of its existence.

ps3mediaserver
Setting up ~/.ps3mediaserver based on /usr/share/ps3mediaserver/
GUI environment no available
Switching to console mode
[main] TRACE 11:43:44.401 Starting Java PS3 Media Server v1.20.412
[main] TRACE 11:43:44.403 by shagrath / 2008-2010
[main] TRACE 11:43:44.403 http://ps3mediaserver.blogspot.com
[main] TRACE 11:43:44.403 http://code.google.com/p/ps3mediaserver
[main] TRACE 11:43:44.403
[main] TRACE 11:43:44.411 Java 1.6.0_20-Sun Microsystems Inc.
[main] TRACE 11:43:44.411 OS Linux amd64 2.6.38-gentoo-r1
[main] TRACE 11:43:44.412 Encoding: UTF-8
[main] TRACE 11:43:44.417 Temp folder: /tmp/javaps3media
[main] TRACE 11:43:44.524 Loading configuration file: Kuro.conf
[main] TRACE 11:43:44.549 Loading configuration file: FreeboxHD.conf
[main] TRACE 11:43:44.556 Loading configuration file: Samsung.conf
[main] TRACE 11:43:44.559 Loading configuration file: WDTVLive.conf
[main] TRACE 11:43:44.562 Loading configuration file: Realtek.conf
[main] TRACE 11:43:44.567 Loading configuration file: FreecomMusicPal.conf
[main] TRACE 11:43:44.571 Loading configuration file: Philips.conf
[main] TRACE 11:43:44.581 Loading configuration file: Streamium.conf
[main] TRACE 11:43:44.585 Loading configuration file: PS3.conf
[main] TRACE 11:43:44.596 Loading configuration file: PopcornHour.conf
[main] TRACE 11:43:44.598 Loading configuration file: Bravia5500.conf
[main] TRACE 11:43:44.603 Loading configuration file: XBOX360.conf
[main] TRACE 11:43:44.608 Loading configuration file: Bravia4500.conf
[main] TRACE 11:43:44.612 Loading configuration file: XBMC.conf
[main] TRACE 11:43:44.614 Loading configuration file: BraviaEX.conf
[main] TRACE 11:43:44.620 Checking font cache... launching simple instance of MPlayer... You may have to wait 60 seconds !
[main] TRACE 11:43:44.692 Done!
[main] TRACE 11:43:44.712 Registering transcoding engine FFmpeg Audio
[main] TRACE 11:43:44.722 Registering transcoding engine MEncoder
[main] TRACE 11:43:44.723 Registering transcoding engine MPlayer Audio
[main] TRACE 11:43:44.723 Registering transcoding engine MEncoder Web
[main] TRACE 11:43:44.723 Registering transcoding engine MPlayer Video Dump
[main] TRACE 11:43:44.724 Registering transcoding engine MPlayer Web
[main] TRACE 11:43:44.726 Registering transcoding engine TsMuxer
[main] TRACE 11:43:44.727 Registering transcoding engine Audio High Fidelity
[main] TRACE 11:43:44.727 Registering transcoding engine VideoLan Audio Streaming
[main] TRACE 11:43:44.727 Registering transcoding engine VideoLan Video Streaming
[main] TRACE 11:43:44.728 Registering transcoding engine Raws Thumbnailer
[main] TRACE 11:43:44.859 Scanning network interface eth0 / eth0
[main] TRACE 11:43:44.861 Using address /192.168.0.250 found on network interface: name:eth0 (eth0) index: 2 addresses: /192.168.0.250;
[main] TRACE 11:43:44.861 Created socket: /192.168.0.250:5001
[main] TRACE 11:43:44.964 Using following UUID: Removed.
[New I/O server worker #1-1] TRACE 11:43:46.738 Renderer WD TV Live found on this address: /192.168.0.242
[New I/O server worker #1-2] TRACE 11:43:46.741 Renderer Sony Bravia EX Series found on this address: /192.168.0.243
[New I/O server worker #1-2] TRACE 11:43:48.772 Renderer Sony Bravia EX Series have an estimated network speed of: 78 Mb/s
[New I/O server worker #1-1] TRACE 11:43:48.773 Renderer WD TV Live have an estimated network speed of: 78 Mb/s
[main] TRACE 11:43:49.126 It's ready! You should see the server appears on XMB
^C[Thread-8] TRACE 11:44:02.893 Sending BYEBYE...
Comment 7 SpanKY gentoo-dev 2011-03-28 19:18:15 UTC
the message is always shown on purpose.  it doesnt mean files are being overwritten there.
Comment 8 Kyle Sanderson 2011-03-28 19:59:20 UTC
The Configuration File is still not executed/used when running the 'ps3mediaserver' command. Do you not have this issue?!
Comment 9 SpanKY gentoo-dev 2011-03-28 20:05:19 UTC
seems to be read fine for me:
$ touch ~/.ps3mediaserver/PMS.conf
$ strace -f -eopen -o log ps3mediaserver 
...
$ grep PMS.conf log
23468 open("/home/vapier/.ps3mediaserver/PMS.conf", O_RDONLY) = 7
Comment 10 Kyle Sanderson 2011-03-28 20:13:55 UTC
Case Sensitivity at its worst. Sorry!