HTTP 500 error

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.

HTTP 500 error

Postby spacca » Sat May 11, 2013 9:24 am

Hi team

After months of smooth running with my PS3, I'm all of a sudden suffering some fairly major issues.
I can't play video files on my PS3. I can see them, but when I try to open them, I get the error "Media Server Error - An HTTP error (500) has occurred". Music files seem to work ok.
I've removed and reinstalled the program a few times, and have rebuilt the media library. Occasionally the reinstallation works for a short time, but then begin throwing the above error soon afterwards.

The only things that have happened since losing access is:
1) Kaspersky shat istelf and crashed a couple of times. I have since reinstalled and it seems to be running ok.
2) I installed Adobe Premiere Elements and had to give a directory under 'Users' read/write access to complete the install. After doing this I had a few issues with Kaspersky etc - may have also broken something else... I can't recall the name of the folder/file unfortunately.

Specs are:
Windows 7 Premium 64 bit
Intel i5 750
4gb RAM
PS3 Media Server 1.81.0, Build 5b9f782ef
Kaspersky Internet Security 2013
Connecting to PS3 through a wired connection

Debug log - http://pastebin.com/3kpVgDVU

Thanks in advance ;)
spacca
 
Posts: 5
Joined: Fri May 10, 2013 10:25 am

Re: HTTP 500 error

Postby Raptor399 » Sat May 11, 2013 9:38 am

This looks like a serious error in your log:

Code: Select all
INFO  2013-05-11 18:07:11.179 [New I/O server worker #1-8] Starting transcode/remux of 01BE_FIRST_SOUNDS.avi
DEBUG 2013-05-11 18:07:11.234 [New I/O server worker #1-8] Creating pipe \\.\pipe\mencoder1368259631232
DEBUG 2013-05-11 18:07:11.238 [New I/O server worker #1-8] Caught exception
java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native
        at net.pms.io.WindowsNamedPipe$Kernel32.<clinit>(WindowsNamedPipe.java:64) ~[pms.jar:1.81.0]
        at net.pms.io.WindowsNamedPipe.<init>(WindowsNamedPipe.java:167) ~[pms.jar:1.81.0]
        at net.pms.io.PipeProcess.<init>(PipeProcess.java:51) ~[pms.jar:1.81.0]
        at net.pms.encoders.MEncoderVideo.launchTranscode(MEncoderVideo.java:2261) ~[pms.jar:1.81.0]
        at net.pms.dlna.DLNAResource.getInputStream(DLNAResource.java:1821) ~[pms.jar:1.81.0]
        at net.pms.network.RequestV2.answer(RequestV2.java:331) ~[pms.jar:1.81.0]
        at net.pms.network.RequestHandlerV2.writeResponse(RequestHandlerV2.java:302) ~[pms.jar:1.81.0]
        at net.pms.network.RequestHandlerV2.messageReceived(RequestHandlerV2.java:257) ~[pms.jar:1.81.0]
        at org.jboss.netty.handler.stream.ChunkedWriteHandler.handleUpstream(ChunkedWriteHandler.java:149) ~[pms.jar:1.81.0]
        at org.jboss.netty.handler.codec.http.HttpChunkAggregator.messageReceived(HttpChunkAggregator.java:116) ~[pms.jar:1.81.0]
        at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:302) ~[pms.jar:1.81.0]
        at org.jboss.netty.handler.codec.replay.ReplayingDecoder.unfoldAndFireMessageReceived(ReplayingDecoder.java:527) ~[pms.jar:1.81.0]
        at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:506) ~[pms.jar:1.81.0]
        at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:443) ~[pms.jar:1.81.0]
        at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274) ~[pms.jar:1.81.0]
        at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261) ~[pms.jar:1.81.0]
        at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:351) ~[pms.jar:1.81.0]
        at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:282) ~[pms.jar:1.81.0]
        at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:202) ~[pms.jar:1.81.0]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.7.0_21]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.7.0_21]
        at java.lang.Thread.run(Unknown Source) [na:1.7.0_21]


Not sure what causes the NoClassDefFoundError all of a sudden, though.

Have you perhaps updated to Java 1.7.0_21 recently?
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

Re: HTTP 500 error

Postby spacca » Sat May 11, 2013 10:16 am

According to Uninstall application, Java 1.7.0_210 was installed a couple of days ago. Though I'm sure I updated Java at roughly the same time this issues started. I've been having this issue now for a week or two.

I'm also running an application "Media Player Codec Pack 4.2.6". Not sure if that's contributing to the issue somehow? PMS was working fine for a few weeks after I initially installed this so I don't think it's an issue.
spacca
 
Posts: 5
Joined: Fri May 10, 2013 10:25 am

Re: HTTP 500 error

Postby spacca » Sun May 12, 2013 7:30 am

Any other ideas/suggestions guys?
spacca
 
Posts: 5
Joined: Fri May 10, 2013 10:25 am

Re: HTTP 500 error

Postby ExSport » Mon May 13, 2013 1:36 pm

As Raptor pointed out, revert Java version to 1.7.17 or something like that. In forum you will find same complains that new JAVA introduced similar bug.
ExSport
 
Posts: 2167
Joined: Mon Jan 19, 2009 5:40 pm

Re: HTTP 500 error

Postby technomage » Tue May 14, 2013 2:02 am

Make sure java.io.tmpdir exists and is writable (java -Djava.io.tmpdir=... if you need to set the directory to a different one).

JNA attempts to unpack its own shared library if it's not found on the system in the shared library load path, and it puts it into java.io.tmpdir. Given that some have success running as admin but not as a regular user, it sounds likely that non-writability of java.io.tmpdir is the cause.
technomage
 
Posts: 2
Joined: Mon May 13, 2013 10:35 pm

Re: HTTP 500 error

Postby Raptor399 » Tue May 14, 2013 8:34 pm

technomage wrote:Make sure java.io.tmpdir exists and is writable (java -Djava.io.tmpdir=... if you need to set the directory to a different one).

JNA attempts to unpack its own shared library if it's not found on the system in the shared library load path, and it puts it into java.io.tmpdir. Given that some have success running as admin but not as a regular user, it sounds likely that non-writability of java.io.tmpdir is the cause.


Though this sounds plausible, the code ought to not allow you to start up PMS with your temp directory not writable.
If the checks [1, 2] fail, an exception is thrown and PMS will not continue.

Then again... A possible escape scenario might be when the user specified his own temp directory (different from the one specified by "java.io.tmpdir"), which could be writable (causing PMS to start), while the "java.io.tmpdir" is not writable. That would probably pass undetected.

Sounds like a scenario that can be plugged, thanks for the info, technomage!
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

Re: HTTP 500 error

Postby Raptor399 » Tue May 14, 2013 9:13 pm

Escape scenario should be plugged with this commit.
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

Re: HTTP 500 error

Postby spacca » Thu May 16, 2013 12:59 pm

Thanks guys - I think.

You've completely lost me. Assume I'm a 78 year old - I have no idea what you're on about.
A quick step-by-step guide would be appreciated :)
spacca
 
Posts: 5
Joined: Fri May 10, 2013 10:25 am

Re: HTTP 500 error

Postby meskibob » Thu May 16, 2013 1:39 pm

You'll need to wait for the next release of PMS.
Or you can try the snapshot - viewtopic.php?f=14&t=14753
Or you can try to build the latest for yourself - https://github.com/ps3mediaserver/ps3me ... r/BUILD.md
I provide NO application support via PM or email, so please post your question to the forum per the Forum Rules.
meskibob
Moderator
 
Posts: 4763
Joined: Mon Jan 19, 2009 4:11 pm

Next

Return to General Help and Support

Who is online

Users browsing this forum: No registered users and 17 guests