Installing PMS on NAS (Synology DS-207+)

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.

Re: Installing PMS on NAS (Synology DS-207+)

Postby TheNymf » Fri Jun 24, 2011 12:07 pm

Okay, I've changed the source of the latest PMS and build it using the automatic ant script provider somewhere on this forums. I havent had the time to test it, but i hope this will resolve the bind interface like error.
will report when i've got it working ^^
TheNymf
 
Posts: 11
Joined: Wed Jun 22, 2011 4:41 pm

Re: Installing PMS on NAS (Synology DS-207+)

Postby TheNymf » Sat Jun 25, 2011 8:16 pm

crap

Code: Select all

[Thread-5] INFO  21:11:49.564 java.io.IOException: file descriptor already initialized
[Thread-5] INFO  21:11:49.565    at gnu.java.net.VMPlainSocketImpl$State.setChannelFD(VMPlainSocketIm
[Thread-5] INFO  21:11:49.566    at gnu.java.net.PlainSocketImpl.accept(PlainSocketImpl.java:342)
[Thread-5] INFO  21:11:49.566    at java.net.ServerSocket.implAccept(ServerSocket.java:387)
[Thread-5] INFO  21:11:49.567    at gnu.java.nio.NIOServerSocket.accept(NIOServerSocket.java:103)
[Thread-5] INFO  21:11:49.568    at net.pms.network.HTTPServer.run(HTTPServer.java:193)
[Thread-5] INFO  21:11:49.569    at java.lang.Thread.run(Thread.java:745)
[main] TRACE 21:11:53.189 Waiting 250 milliseconds...
[Thread-5] INFO  21:11:53.218 java.io.IOException: file descriptor already initialized
[Thread-5] INFO  21:11:53.219    at gnu.java.net.VMPlainSocketImpl$State.setChannelFD(VMPlainSocketIm
[Thread-5] INFO  21:11:53.220    at gnu.java.net.PlainSocketImpl.accept(PlainSocketImpl.java:342)
[Thread-5] INFO  21:11:53.221    at java.net.ServerSocket.implAccept(ServerSocket.java:387)
[Thread-5] INFO  21:11:53.222    at gnu.java.nio.NIOServerSocket.accept(NIOServerSocket.java:103)
[Thread-5] INFO  21:11:53.223    at net.pms.network.HTTPServer.run(HTTPServer.java:193)
[Thread-5] INFO  21:11:53.224    at java.lang.Thread.run(Thread.java:745)
[main] INFO  21:11:53.451 The server should now appear on your renderer
[Thread-9] TRACE 21:11:53.452 Searching network interface for 192.168.1.100
[Thread-9] TRACE 21:11:54.598 Receiving a M-SEARCH from [192.168.1.74:58446]
[Thread-5] INFO  21:11:57.118 java.io.IOException: file descriptor already initialized
[Thread-5] INFO  21:11:57.119    at gnu.java.net.VMPlainSocketImpl$State.setChannelFD(VMPlainSocketIm
[Thread-5] INFO  21:11:57.120    at gnu.java.net.PlainSocketImpl.accept(PlainSocketImpl.java:342)
[Thread-5] INFO  21:11:57.121    at java.net.ServerSocket.implAccept(ServerSocket.java:387)
[Thread-5] INFO  21:11:57.122    at gnu.java.nio.NIOServerSocket.accept(NIOServerSocket.java:103)
[Thread-5] INFO  21:11:57.123    at net.pms.network.HTTPServer.run(HTTPServer.java:193)
[Thread-5] INFO  21:11:57.124    at java.lang.Thread.run(Thread.java:745)
[Thread-9] TRACE 21:11:57.599 Receiving a M-SEARCH from [192.168.1.74:58446]
[Thread-9] TRACE 21:12:00.599 Receiving a M-SEARCH from [192.168.1.74:58446]
[Thread-8] DEBUG 21:12:03.459 Sending ALIVE...
[Thread-8] TRACE 21:12:03.460 Searching network interface for 192.168.1.100
[Thread-8] TRACE 21:12:03.462 Sending message from multicast socket on network interface: null



edit: i can force bind to 0.0.0.0 in PMS.conf and the error disappears. Will go on tomorrow because its saturday night
TheNymf
 
Posts: 11
Joined: Wed Jun 22, 2011 4:41 pm

Re: Installing PMS on NAS (Synology DS-207+)

Postby TheNymf » Sun Jun 26, 2011 12:36 pm

So i can now see the pms server in upnp explorer software.
However, it does not offer any content. The debig.log shows my MDA trying to scan PMS.
So im really close!!!

I used the default folder /volume1/video in PMS.conf

Im hoping someone will join me in this topic soon

edit:

this is the debug.log:
Code: Select all
[main] INFO  08:43:42.563 The server should now appear on your renderer
[Thread-9] TRACE 08:43:42.564 Searching network interface for localhost
[Thread-8] DEBUG 08:43:52.571 Sending ALIVE...
[Thread-8] TRACE 08:43:52.572 Searching network interface for localhost
[Thread-8] TRACE 08:43:52.573 Sending message from multicast socket on network interface: null
[Thread-8] TRACE 08:43:52.574 Multicast socket is on interface: /2.0.0.0
[Thread-8] TRACE 08:43:52.575 Socket Timeout: 0
[Thread-8] TRACE 08:43:52.575 Socket TTL: 32
[Thread-9] TRACE 08:44:16.331 Receiving a NOTIFY from [192.168.1.86:1900]
[Thread-9] TRACE 08:44:16.332 Receiving a NOTIFY from [192.168.1.86:1900]
[Thread-9] TRACE 08:44:16.334 Receiving a NOTIFY from [192.168.1.86:1900]
[Thread-9] TRACE 08:44:16.335 Receiving a NOTIFY from [192.168.1.86:1900]
[Thread-8] DEBUG 08:44:16.891 Sending ALIVE...
[Thread-8] TRACE 08:44:16.892 Searching network interface for localhost
[Thread-8] TRACE 08:44:16.894 Sending message from multicast socket on network interface: name: lo (lo) addresses:
/127.0.0.1;
/0:0:0:0:0:0:0:1;

[Thread-8] TRACE 08:44:16.894 Multicast socket is on interface: /97.110.103.47
[Thread-8] TRACE 08:44:16.895 Socket Timeout: 0
[Thread-8] TRACE 08:44:16.895 Socket TTL: 32
[Thread-9] TRACE 08:44:17.476 Receiving a M-SEARCH from [192.168.1.86:55503]
[Thread-9] TRACE 08:44:17.478 Sending this reply [192.168.1.86:55503]: HTTP/1.1 200 OK<CRLF>CACHE-CONTROL: max-age=1200<CRLF>DATE: Mon, 27 Jun 2011 06:44:17 GMT<CRLF>LOCATION: http://localhost:5001/description/fetch<CRLF>SERVER: Linux-arm-2.6.32.12, UPnP/1.0, PMS/1.30.0<CRLF>ST: urn:schemas-upnp-org:service:ContentDirectory:1<CRLF>EXT: <CRLF>USN: uuid:7ce8636c-076f-3f42-b166-76f7ca5ccfbe::urn:schemas-upnp-org:service:ContentDirectory:1<CRLF>Content-Length: 0<CRLF><CRLF>
[Thread-9] TRACE 08:44:19.335 Receiving a NOTIFY from [192.168.1.86:1900]


im thinking its wrong to make hostname 'localhost' because it will reply the scans over the lo interface
TheNymf
 
Posts: 11
Joined: Wed Jun 22, 2011 4:41 pm

Re: Installing PMS on NAS (Synology DS-207+)

Postby TheNymf » Mon Jun 27, 2011 9:19 am

finally, i got it working!
As stated in this forum, it PMS does NEED 1.6 java. So i followed this guide (from another site) and adjusted PMS.sh to use /opt/java/jre_folder/bin/java




JamVM is a JVM that gets mentioned a lot in connection with NAS systems, but it’s only Java 1.5, and Serviio needs version 1.6. Download the Java SE Embedded Runtime from Oracle, selecting the ARM v5 Linux version (note that there is a PowerPC e500v2 version – the CPU core in Synology products which use the Freescale mpc85x3). Unfortunately for PowerPC Synology owners, this depends on a higher version of glibc than the Synology DSM provides for this architecture. Until JamVM supports Java 1.6, or Synology update to glibc 2.4 you won’t be able to follow this guide on PowerPC models. This may have changed since DSM 3.1 was released.
You will need to sign up to receive the download link by email. It’s free to use for non-commercial self-educational use. Use your computer to save it into the top level shared folder of your NAS, which will probably be /volume1/public on the NAS filesystem. Then:
cd /volume1/public
mv ejre-1_6_0_21-fcs-b09-linux-arm-sflt-eabi-headless-27_sep_2010.tar.gz /volume1/@tmp
cd /volume1/@tmp
tar xvzf ejre-1_6_0_21-fcs-b09-linux-arm-sflt-eabi-headless-27_sep_2010.tar.gz
mkdir /opt/java
mv ejre1.6.0_21 /opt/java

Now use nano to edit some configuration files (Ctrl-o saves, and Ctrl-x exits).
First edit the profile for all bash shell users:
nano /opt/etc/profile

Make the changes shown in bold:
#
# Bash initialization script
#
PS1=”[\u@\h \W]$ “
PATH=/opt/sbin:/opt/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/java/ejre1.6.0_21/bin
LD_LIBRARY_PATH=/opt/lib:${LD_LIBRARY_PATH}
JAVA_HOME=/opt/java/ejre1.6.0_21
export PS1 PATH LD_LIBRARY_PATH JAVA_HOME

Save and exit. Next edit the profile for all ash shell users (root):
nano /etc/profile

At the last line make the changes in bold:
PATH=/opt/java/ejre1.6.0_21/bin:/opt/bin:/opt/sbin:$PATH
JAVA_HOME=/opt/java/ejre1.6.0_21
export JAVA_HOME

TheNymf
 
Posts: 11
Joined: Wed Jun 22, 2011 4:41 pm

Re: Installing PMS on NAS (Synology DS-207+)

Postby TheNymf » Tue Jun 28, 2011 6:39 pm

After this 'achievement' i've stopped the project for now and switched to Serviio. I wanted to get this up and running to hardcode subs into (transcoded) streams using the only tool that can do this: Mplayer / Menplayer however i cannot seem to get it working properly!

I've got PMS working, however, my xbox360 and sony Bravia 32w5500 cannot see any content. The folders are set up right in the PMS.conf file and im kinda sure all the other needed files are correct, so, well, i didnt know either....

ill await the next version and see if i can get it up and running then. For now, i will have to use the FFMPEG transcoder from Serviio which unfortunately wont hardsub
TheNymf
 
Posts: 11
Joined: Wed Jun 22, 2011 4:41 pm


Re: Installing PMS on NAS (Synology DS-207+)

Postby romeop » Sun Sep 11, 2011 10:14 pm

New Synology transcoding works very well but i'd still like to run PMS, i'm unable to stream mkv, installed mencoder in this way:

//Get package
wget http://downloads.lacie.nas-central.org/ ... -1_arm.ipk
//Install package
ipkg install mencoder_1.1.0-1_arm.ipk
cp -Rrp /opt/QtPalmtop/* /opt/
//Remove not needed files
rm -rf /opt/QtPalmtop/
rm mencoder_1.1.0-1_arm.ipk
//Test mencoder
mencoder -ovc help

but i got corrupted data on mkv.... someone had success in mkv?
romeop
 
Posts: 3
Joined: Sun Nov 15, 2009 9:19 pm

Re: Installing PMS on NAS (Synology DS-207+)

Postby TheNymf » Fri Sep 23, 2011 9:14 am

the synology mkv support is nice, but it (my tv, sony bravia) does not play all .mkv files. Im figuring out what the difference is between the .mkv files but i can see any xD
Also, i want to stream with subtitles, which synology DSM will never be able
TheNymf
 
Posts: 11
Joined: Wed Jun 22, 2011 4:41 pm

Re: Installing PMS on NAS (Synology DS-207+)

Postby markdark » Wed Nov 16, 2011 5:13 pm

Hello,

After reading this thread and several other threads I have been able to install and run PMS on a Synology NAS. Also many thanks to synops from this forum. I created a install guide here:
http://www.markinthedark.nl/news/ubuntu ... y-nas.html

Hope this helps!

Mark
markdark
 
Posts: 13
Joined: Wed Nov 16, 2011 5:07 pm

Previous

Return to Linux/Unix Support

Who is online

Users browsing this forum: No registered users and 3 guests