You are not logged in.

#1 2014-03-05 04:39:38

hippieben
Member
Registered: 2013-10-27
Posts: 218

PS3 Media server not starting properly on boot

I have PS3 Media Server installed and set up with systemd to automatically start up with my computer, however for some reason it's not working as expected.  The service is listed as started after boot, but my server doesn't show up on the network, and I need to restart it manually.  Once I restart the service everything works as expected.  I believe this is most likely due to a malformed .service file. 

When I execute

systemctl status pms@ben

(after restarting the service) I get this:

pms@ben.service - PS3 Media Server
   Loaded: loaded (/usr/lib/systemd/system/pms@.service; enabled)
   Active: active (running) since Fri 2014-02-28 23:57:08 EST; 3 days ago
 Main PID: 32672 (java)
   CGroup: /system.slice/system-pms.slice/pms@ben.service
           └─32672 java -Xmx768M -Xss1024k -Dfile.encoding=UTF-8 -Djava.net.preferIPv4...

Mar 04 18:13:18 arch-desktop PMS.sh[32672]: INFO  2014-03-04 18:13:18.376 [pool-4-th...29
Mar 04 18:13:20 arch-desktop PMS.sh[32672]: INFO  2014-03-04 18:13:20.378 [pool-4-th.../s
Mar 04 18:14:11 arch-desktop PMS.sh[32672]: INFO  2014-03-04 18:14:11.279 [StartPlay...29
Mar 04 18:15:45 arch-desktop PMS.sh[32672]: INFO  2014-03-04 18:15:45.349 [StopPlayi...29
Mar 04 18:15:47 arch-desktop PMS.sh[32672]: INFO  2014-03-04 18:15:47.921 [StartPlay...29
Mar 04 18:17:15 arch-desktop PMS.sh[32672]: INFO  2014-03-04 18:17:15.991 [StopPlayi...29
Mar 04 18:17:19 arch-desktop PMS.sh[32672]: INFO  2014-03-04 18:17:19.778 [StartPlay...29
Mar 04 18:57:37 arch-desktop PMS.sh[32672]: INFO  2014-03-04 18:57:37.997 [StopPlayi...29
Mar 04 18:58:20 arch-desktop PMS.sh[32672]: INFO  2014-03-04 18:58:20.731 [StartPlay...29
Mar 04 19:40:18 arch-desktop PMS.sh[32672]: INFO  2014-03-04 19:40:18.206 [StopPlayi...29
Hint: Some lines were ellipsized, use -l to show in full.

Here is the .service file:

[Unit]
Description=PS3 Media Server
After=syslog.target network.target rpcbind.service

[Service]
User=%i
Group=users
WorkingDirectory=/opt/pms/
Type=simple
ExecStart=/opt/pms/PMS.sh

[Install]
WantedBy=multi-user.target

Nothing jumps out at me as being the cause, but I'm sure someone here is much better versed in systemd than myself.  Anyone have any ideas as to why this needs manual restarting?  Thanks a lot!

Offline

#2 2014-03-05 05:43:09

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: PS3 Media server not starting properly on boot

What does the status report before the restart (when it has failed)?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-03-05 05:44:37

hippieben
Member
Registered: 2013-10-27
Posts: 218

Re: PS3 Media server not starting properly on boot

jasonwryan wrote:

What does the status report before the restart (when it has failed)?

Yeah, I realize that would probably be the useful information to post haha.  I'll update the thread next time the computer gets restarted.

Offline

#4 2014-03-05 07:46:13

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: PS3 Media server not starting properly on boot

When you do that, post the complete output - truncated lines as above are not much use.

Offline

#5 2014-03-06 03:25:56

hippieben
Member
Registered: 2013-10-27
Posts: 218

Re: PS3 Media server not starting properly on boot

Ok here's the output after a fresh boot.

ben@arch-desktop:~$ systemctl status pms@ben.service -l
pms@ben.service - PS3 Media Server
   Loaded: loaded (/usr/lib/systemd/system/pms@.service; enabled)
   Active: active (running) since Wed 2014-03-05 22:20:11 EST; 1min 8s ago
 Main PID: 601 (java)
   CGroup: /system.slice/system-pms.slice/pms@ben.service
           └─601 java -Xmx768M -Xss1024k -Dfile.encoding=UTF-8 -Djava.net.preferIPv4Stack=true -Djna.nosys=true -classpath update.jar:pms.jar net.pms.PMS

Mar 05 22:20:20 arch-desktop PMS.sh[601]: at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51]
Mar 05 22:20:21 arch-desktop PMS.sh[601]: ERROR 2014-03-05 22:20:21.264 [UPNPHelper] UPNP network exception
Mar 05 22:20:21 arch-desktop PMS.sh[601]: java.net.SocketException: No such device
Mar 05 22:20:21 arch-desktop PMS.sh[601]: at java.net.PlainDatagramSocketImpl.join(Native Method) ~[na:1.7.0_51]
Mar 05 22:20:21 arch-desktop PMS.sh[601]: at java.net.AbstractPlainDatagramSocketImpl.join(AbstractPlainDatagramSocketImpl.java:178) ~[na:1.7.0_51]
Mar 05 22:20:21 arch-desktop PMS.sh[601]: at java.net.MulticastSocket.joinGroup(MulticastSocket.java:319) ~[na:1.7.0_51]
Mar 05 22:20:21 arch-desktop PMS.sh[601]: at net.pms.network.UPNPHelper$2.run(UPNPHelper.java:384) ~[pms.jar:1.90.1]
Mar 05 22:20:21 arch-desktop PMS.sh[601]: at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51]
Mar 05 22:21:05 arch-desktop PMS.sh[601]: INFO  2014-03-05 22:21:05.376 [UPNPHelper] No IP filter specified, access granted to /192.168.1.42
Mar 05 22:21:05 arch-desktop PMS.sh[601]: INFO  2014-03-05 22:21:05.377 [UPNPHelper] Using the following UUID configured in PMS.conf: 6ed45cde-e5fa-4e6b-a419-306a122aba82

Offline

Board footer

Powered by FluxBB