Run As A Service (Windows 7 x64)

For help and support with PS3 Media Server in general
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply.

Run As A Service (Windows 7 x64)

Postby Kamika007z » Sun Jul 31, 2011 6:26 pm

Hi All,

First off, I absolutely LOVE this application and I want to say THANK YOU to everyone who has contributed to it. :)

Secondly, before you all say "this has been discussed all over the place - just read", I want to say that I have tried every single thing I have read and still have not been able to get it to run as a service.

Either it be from Windows Firewall being disabled, ports have been forwarded, rules have been added if needed for wrapper, and etc... There is just so many things that I have tried and I still have not been able to get this to work as a service rule... :(

I'm at a total loss, so I wanted to ask you all here.

Has anyone had any definitive success on getting this work for them? Currently, I am using the latest build (v 1.30.1), is there a beta or anything that has this working properly?

And another quick question, I see that another piece of software, namely serviio, can "Retrieve DVD cover image or poster if available" for local videos from an online metadata sources. Is it possible for PMS to do this as well?

Thank you very much in advance for any help that anyone could provide me for this.

Warm regards,
Kamika007z
Kamika007z
 
Posts: 1
Joined: Sun Jul 31, 2011 6:16 pm

Re: Run As A Service (Windows 7 x64)

Postby jahrasta » Thu Aug 04, 2011 4:01 pm

I have with little issue. I installed it as a service from the configuration tab. Went into services and had to manually start the service. It should auto-start from that point on. I actually had PS3MS running as an app at the time so when I tested it it was runningfrom the app...as I was playing the movie I shut down the app, in which killed the movie. After a minute or two, the service running kicked in, and PS3MS was re-registered on my PS3 and has been working fine ever since. Make sure you are sintalling all this through an account with admin privaleges, but otherwise seemed to be plug and play. I am running Windows 7 Ultimate x64 fwiw.
jahrasta
 
Posts: 1
Joined: Thu Aug 04, 2011 2:05 pm

Re: Run As A Service (Windows 7 x64)

Postby bluefrog10 » Mon Aug 15, 2011 9:52 pm

I struggled with this for a long time and finally found a solution.

Steps:
1) Install the latest version of PMS
2) Run wrapper.exe in ..\PS3 Media Server\win32\service and allow it access in the Windows Firewall (or if you use another fw, create an allow rule manually for your local network)
3) Create the service within PMS by pushing the button

... and that should do it, I didn't have the fw-rule for the wrapper created and that's what caused all my problems!

3) If those steps didn't help, try also running the service with your own account (that's what I did before realising the fw problem and just left it like that)

Works like a charm. Although in your case you say you have disabled Windows Firewall entirely, but hey, try step 3 in case you haven't yet...
bluefrog10
 
Posts: 1
Joined: Mon Aug 15, 2011 9:38 pm

Re: Run As A Service (Windows 7 x64)

Postby skrisna » Wed Sep 28, 2011 1:18 am

I found the solution to this problem-

When you are having problems with the service starting, check the log file-
..\PS3 Media Server\win32\service\wrapper.log

Mine contained something like this-
STATUS | wrapper | 2011/09/27 20:11:13 | --> Wrapper Started as Service
STATUS | wrapper | 2011/09/27 20:11:13 | Java Service Wrapper Community Edition 32-bit 3.5.9
STATUS | wrapper | 2011/09/27 20:11:13 | Copyright (C) 1999-2011 Tanuki Software, Ltd. All Rights Reserved.
STATUS | wrapper | 2011/09/27 20:11:13 | http://wrapper.tanukisoftware.com
STATUS | wrapper | 2011/09/27 20:11:13 |
STATUS | wrapper | 2011/09/27 20:11:13 | Launching a JVM...
FATAL | wrapper | 2011/09/27 20:11:13 | Unable to execute Java command. The system cannot find the file specified. (0x2)
FATAL | wrapper | 2011/09/27 20:11:13 | "java" -Djava.encoding=UTF-8 -Djava.net.preferIPv4Stack=true -Dstart.service=true -Xmx768m -Djava.library.path="win32/service/" -classpath "win32/service/wrapper.jar;pms.jar" -Dwrapper.key="RlhImrb0NTC-myot" -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=2496 -Dwrapper.version="3.5.9" -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperSimpleApp net.pms.PMS
ADVICE | wrapper | 2011/09/27 20:11:13 |
ADVICE | wrapper | 2011/09/27 20:11:13 | --------------------------------------------------------------------
ADVICE | wrapper | 2011/09/27 20:11:13 | Advice:
ADVICE | wrapper | 2011/09/27 20:11:13 | Usually when the Wrapper fails to start the JVM process, it is
ADVICE | wrapper | 2011/09/27 20:11:13 | because of a problem with the value of the configured Java command.
ADVICE | wrapper | 2011/09/27 20:11:13 | Currently:
ADVICE | wrapper | 2011/09/27 20:11:13 | wrapper.java.command=java
ADVICE | wrapper | 2011/09/27 20:11:13 | Please make sure that the PATH or any other referenced environment
ADVICE | wrapper | 2011/09/27 20:11:13 | variables are correctly defined for the current environment.
ADVICE | wrapper | 2011/09/27 20:11:13 | --------------------------------------------------------------------
ADVICE | wrapper | 2011/09/27 20:11:13 |
FATAL | wrapper | 2011/09/27 20:11:14 | Critical error: wait for JVM process failed

When I installed jre-6u27, it does not add itself to the System Path. This is the path that is used by the service at run time. In order to add java to the System Path-

Computer -> Properties -> Advanced System Settings -> Environment Variables -> System Variables -> Path

Add C:\Program Files\Java\jre6\bin (or whereever you installed java) to this variable.

After that, you should retry running the service.

Hope this helps.
skrisna
 
Posts: 2
Joined: Thu Dec 10, 2009 5:53 am

Re: Run As A Service (Windows 7 x64)

Postby RonKruyt » Mon Jan 07, 2013 12:09 am

In case the above options don't work, or just want to try something quick...Even if you have administrator rights.. This works also for windows 8

Make sure you installed the last version of java. Download it run/install it as administator!!!

1. go to C:\Program Files\Java\jre7\bin (or whereever you installed java) right click on javaw.exe, go to compatibility and check the box with runs as administrator
2. go to c:\Program Files\PS3 Media Server\win32\service\ (or whereever you installed PMS) right click on wrapper.exe, go to compatibility and check the box with runs as administrator
3. go to c:\Program Files\PS3 Media Server\ (or whereever you installed PMS) right click on pms.exe, go to compatibility and check the box with runs as administrator

go to run,type services, find pas media server and start the service...

This trick worked for me...Have fun!
RonKruyt
 
Posts: 3
Joined: Fri Oct 14, 2011 11:40 am

Re: Run As A Service (Windows 7 x64)

Postby starterz » Mon Jan 07, 2013 8:04 pm

bluefrog10 wrote:I struggled with this for a long time and finally found a solution.

Steps:
1) Install the latest version of PMS
2) Run wrapper.exe in ..\PS3 Media Server\win32\service and allow it access in the Windows Firewall (or if you use another fw, create an allow rule manually for your local network)
3) Create the service within PMS by pushing the button

... and that should do it, I didn't have the fw-rule for the wrapper created and that's what caused all my problems!

3) If those steps didn't help, try also running the service with your own account (that's what I did before realising the fw problem and just left it like that)

Works like a charm. Although in your case you say you have disabled Windows Firewall entirely, but hey, try step 3 in case you haven't yet...


This solved the same prolem for me too. Thank you :-)
starterz
 
Posts: 9
Joined: Sun Jan 06, 2013 10:41 pm

Re: Run As A Service (Windows 7 x64)

Postby naks » Sat Mar 02, 2013 2:03 pm

Hi guys,

I've followed all the steps and still the service will not start.

"Windows could not start the PS3 Media Server.. .for more information review the system Event log... refer to service-specific error code 1'

In the System Event log:

"The PS3 Media Server service terminated with service-specific error Incorrect function."



what now?
naks
 
Posts: 15
Joined: Sat Apr 16, 2011 7:27 pm

Re: Run As A Service (Windows 7 x64)

Postby naks » Sat Mar 02, 2013 2:19 pm

Found a solution thanks to this thread: viewtopic.php?f=6&t=13431&p=64523&hilit=refer+to+service+specific#p64523


I edited WRAPPER.CONF and reduced the wrapper.java.maxmemory value to 768 (it was set to 1200)
naks
 
Posts: 15
Joined: Sat Apr 16, 2011 7:27 pm

Re: Run As A Service (Windows 7 x64)

Postby naks » Sat Mar 02, 2013 2:22 pm

after fiddling around, the max I can set it to for the service to start is 1024
naks
 
Posts: 15
Joined: Sat Apr 16, 2011 7:27 pm

Re: Run As A Service (Windows 7 x64)

Postby naks » Sat Mar 02, 2013 2:30 pm

but now the PS3 does not detect it when it is running as a service, only when the service is stopped?
naks
 
Posts: 15
Joined: Sat Apr 16, 2011 7:27 pm

Next

Return to General Help and Support

Who is online

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