![]() |
|
|||||||
| SageTV Github Development Discussion related to SageTV Open Source Development. Use this forum for development topics about the Open Source versions of SageTV, hosted on Github. |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Placeshifter Causing Windows Server Crash
I updated the Sage.jar file on my Windows server. Since then I cannot connect with Placeshifter to the server. It causes an immediate crash. Extenders & Windows Clients work fine. Attached is the log file but I didn't see any indication of a reason. Also, no crash is logged by Windows and the service doesn't restart itself. It just stops running.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3 Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD |
|
#2
|
||||
|
||||
|
The only issues that I'm seeing is this one...
Quote:
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
|
#3
|
|||
|
|||
|
Placeshifter works fine with both my 32-bit & 64-bit Linux test boxes. Not sure why there's a difference with the Windows version? I have the comskip plugin installed on both.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3 Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD |
|
#4
|
||||
|
||||
|
Did you update the Jar on the windows placeshifter as well? You might need a new jar if you've updated the server jar.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
|
#5
|
|||
|
|||
|
Yes, I updated it also.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3 Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD |
|
#6
|
|||
|
|||
|
I just tested my windows placeshifter and noticed it seems to work fine. This is the original 7.1.9 placeshifter without any updates.
the sage.jar I'm running is the one Fuzzy posted in the thread I created looking for a new version. |
|
#7
|
|||
|
|||
|
I've now determined that something is actively calling a shutdown. As far as I can tell It's these lines in the log that seem to be calling a shutdown.
Code:
Wed 9/9 9:22:24.441 [Thread-88@e90b51] [[SageTCPServer-Player:9279]]: EXCEPTION java.net.BindException: Address already in use: JVM_Bind AT java.net.DualStackPlainSocketImpl.bind0(Native Method) Wed 9/9 9:22:24.442 [Thread-88@e90b51] java.net.DualStackPlainSocketImpl.socketBind(Unknown Source) Wed 9/9 9:22:24.442 [Thread-88@e90b51] java.net.AbstractPlainSocketImpl.bind(Unknown Source) Wed 9/9 9:22:24.444 [SageTV Shutdown@5508ab] SageTV SHUTDOWN is activating!
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3 Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD |
|
#8
|
||||
|
||||
|
Quote:
sage.AWTThreadWatcher.dumpThreadStates(); Then it'll print out the stacks of all the Java threads and you can find the one that's currently calling System.exit. I *think* that should work (because I'm pretty sure the thread that calls System.exit stays within that method until the VM has terminated so the stack trace should still show it while executing shutdown hooks).
__________________
Jeffrey Kardatzke Founder of SageTV |
|
#9
|
|||
|
|||
|
Ok, here is the log file that includes the dump. I'll look over it but posting it here for others to look at.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3 Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD |
|
#10
|
|||
|
|||
|
There are two of these:
"Starting a player on socket 9279" The second one is crashing due to "Address already in use". The first one was opened with 192.168.22.121. The second one is on 157.142.237.13 if that helps any. Is there some kind of resource conflict between local extenders and the placeshifter client? |
|
#11
|
||||
|
||||
|
Here's the offender:
Wed 9/9 14:08:29.749 [SageTV Shutdown@1c0a1ce] Thread[Thread-91,1,main] Wed 9/9 14:08:29.749 [SageTV Shutdown@1c0a1ce] java.lang.Thread.start0(Native Method) Wed 9/9 14:08:29.749 [SageTV Shutdown@1c0a1ce] java.lang.Thread.start(Unknown Source) Wed 9/9 14:08:29.749 [SageTV Shutdown@1c0a1ce] java.lang.ApplicationShutdownHooks.runHooks(Unknown Source) Wed 9/9 14:08:29.749 [SageTV Shutdown@1c0a1ce] java.lang.ApplicationShutdownHooks$1.run(Unknown Source) Wed 9/9 14:08:29.750 [SageTV Shutdown@1c0a1ce] java.lang.Shutdown.runHooks(Unknown Source) Wed 9/9 14:08:29.750 [SageTV Shutdown@1c0a1ce] java.lang.Shutdown.sequence(Unknown Source) Wed 9/9 14:08:29.750 [SageTV Shutdown@1c0a1ce] java.lang.Shutdown.exit(Unknown Source) Wed 9/9 14:08:29.750 [SageTV Shutdown@1c0a1ce] java.lang.Runtime.exit(Unknown Source) Wed 9/9 14:08:29.750 [SageTV Shutdown@1c0a1ce] java.lang.System.exit(Unknown Source) Wed 9/9 14:08:29.750 [SageTV Shutdown@1c0a1ce] sagetcpserver.TCPServerPlayer.run(TCPServerPlayer.java:91) Wed 9/9 14:08:29.750 [SageTV Shutdown@1c0a1ce] java.lang.Thread.run(Unknown Source) Error message from plugin before this: Wed 9/9 14:08:29.656 [Thread-91@6777a] [[SageTCPServer-Player:9279]]: Starting a player on socket 9279 Wed 9/9 14:08:29.657 [Thread-91@6777a] [[SageTCPServer-Player:9279]]: EXCEPTION java.net.BindException: Address already in use: JVM_Bind AT java.net.DualStackPlainSocketImpl.bind0(Native Method) So it's TCPServerPlayer's code that's doing it. Naughty plugin. It looks like it'll call System.exit() if it has a failure binding a socket to a specific port. You may have something else running on port 9279...killing that should solve the problem. Ideally though; the plugin would be fixed so that it doesn't do things like this...plugins should NEVER be calling System.exit().
__________________
Jeffrey Kardatzke Founder of SageTV |
|
#12
|
|||
|
|||
|
Yeah, we can chalk this up to a misbehaving plugin. Looks like the SageTCPServer plugin is holding open a bunch of ports. Disabling that plugin has fixed the issue. I guess I can live without the remote control app on my iDevices. I rarely use it anyway.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3 Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HD200 causing Sagetv server software to crash? | tvmaster2 | SageTV Software | 1 | 12-31-2013 08:33 AM |
| COmskip causing crash? | mephista | SageTV v7 Customizations | 10 | 01-21-2011 08:16 PM |
| HD-PVR causing SageTV to Crash or sage.playbackexception:error (-4,0x80040217) | Truxton | Hardware Support | 6 | 02-28-2010 06:33 PM |
| Imported Video causing Sage to Crash | Ron | SageTV Software | 5 | 08-15-2009 06:52 AM |
| Windows Home Server causing Sage Service to start slowly | jpaddock3000 | SageTV Software | 4 | 07-22-2009 11:14 AM |