MePo Backend: Winsock error=10060

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
erichzann Offline
Junior Member
Posts: 22
Joined: May 2012
Reputation: 0
Post: #1
HI,

Firstly I would like to say thank you for the fantastic work that has been done on both the PVR integration and the MediaPortal plugin.

I am a long time user of Mediaportal + XBMC and am considering moving my main HTPC (currently running MP) over to XBMC-PVR.

I have been running the PVR builds with no problems for ages. The other day I upgraded to the latest Margro build + TV Server Plugin.

Half way through the sync of the PVR database, XBMC crashed and ever since I have been getting the following error in the log files:


19:27:04 T:5000 NOTICE: PVRManager - PVR::CPVRManager::ResetDatabase - clearing the PVR database
19:27:04 T:5000 NOTICE: PVRManager - stopping
19:27:04 T:4180 ERROR: PVRManager - PVR::CPVRManager::Process - failed to load PVR data
19:27:05 T:5000 NOTICE: PVRManager - PVR::CPVRManager::ResetDatabase - PVR database cleared
19:27:05 T:5000 NOTICE: EPG::CEpgContainer::Start - EPG thread started
19:27:05 T:5000 NOTICE: PVRManager - PVR::CPVRManager::ResetDatabase - restarting the PVRManager
19:27:05 T:5000 NOTICE: PVRManager - starting up
19:27:10 T:5000 ERROR: Control 1 in window 10099 has been asked to focus, but it can't
19:27:26 T:2100 ERROR: Previous line repeats 1 times.
19:27:26 T:2100 ERROR: AddOnLog: MediaPortal PVR Client (TSReader): Socket::connect mediacentre:9596
19:27:26 T:2100 ERROR: AddOnLog: MediaPortal PVR Client (TSReader): Socket::connect: (Winsock error=10060) Connection timed out
19:27:26 T:2100 ERROR: AddOnLog: MediaPortal PVR Client (TSReader): Could not connect to MPTV backend
19:27:26 T:2100 ERROR: ADDON: Dll MediaPortal PVR Client (TSReader) - Client returned bad status (1) from Create and is not usable
19:27:26 T:2100 ERROR: PVR - PVR::CPVRClients::InitialiseClient - can't initialise add-on 'MediaPortal PVR Client (TSReader)'

I tried making some registry changes to the Server based on a suggestion in another thread but this had no effect.

I also tried rolling back to a build + plugin that was working but this throws the same error.

I'd love to get this up and running again so any help would be much appreciated.

Thanks
find quote
ixian Offline
Donor
Posts: 129
Joined: May 2008
Reputation: 2
Post: #2
Did you uninstall the previous XBMC first (you can leave your profile folder intact so you don't have to re-do all your addons, library, etc)?

The reason I ask is because I had almost identical errors when I upgraded to the latest Margro build using the FTR addon. I had to uninstall, then install the new build, then reset the PVR and EPG db inside XBMC. Once I did that it worked fine.

Installing/upgrading over an existing install is generally a bad idea, I've found - your profile folder will maintain all your skins/preferences/libraries so there's no worry there.
(This post was last modified: 2012-05-10 23:48 by ixian.)
find quote
erichzann Offline
Junior Member
Posts: 22
Joined: May 2012
Reputation: 0
Post: #3
Hi,

Thanks for the reply.

I have tried this and it doesn't help. In fact I get the error message on all client machines, so I am pretty sure that it is a problem with the TV Server side of the setup.

Does anyone have any ideas?

Thanks
find quote
KRA77 Offline
Senior Member
Posts: 290
Joined: Jul 2010
Reputation: 0
Post: #4
delete the tv*.db files from your profile forlder ?
find quote
erichzann Offline
Junior Member
Posts: 22
Joined: May 2012
Reputation: 0
Post: #5
There is no profile folder on the tv server just the xbmc mp plugin. I have tried deleting the profile folder on the client but this didn't work.
find quote
erichzann Offline
Junior Member
Posts: 22
Joined: May 2012
Reputation: 0
Post: #6
A quick update on this situation. I've disabled the firewall on the TV Server and the original Winsock 10060 error has now been replaced with a Winsock 10061 error:

08:55:05 T:2712 NOTICE: PVRManager - starting up
08:55:06 T:2580 ERROR: AddOnLog: MediaPortal PVR Client (TSReader): Socket::connect 192.168.1.148:9596
08:55:06 T:2580 ERROR: AddOnLog: MediaPortal PVR Client (TSReader): Socket::connect: (Winsock error=10061) Connection refused
08:55:06 T:2580 ERROR: AddOnLog: MediaPortal PVR Client (TSReader): Could not connect to MPTV backend
08:55:06 T:2580 ERROR: ADDON: Dll MediaPortal PVR Client (TSReader) - Client returned bad status (1) from Create and is not usable
08:55:06 T:2580 ERROR: PVR - PVR::CPVRClients::InitialiseClient - can't initialise add-on 'MediaPortal PVR Client (TSReader)'

Has anyone had this problem in the past?
find quote
Fry7 Offline
Donor
Posts: 167
Joined: Mar 2011
Reputation: 3
Location: Ruhrpott, Germany
Post: #7
Winsock Error 10060 (Connection timed out) and 10061 (Connection refused) both can be caused by several issues, mostly because of networking problems.

As can be seen in your first log, there seems to be a DNS-issue so that XBMC couldn't resolve "mediacentre" to its IP 192.168.1.148 that you are using in your second log.
Now that you are getting a 10061-error, one would think that something blocks network-traffic to the mepo-port (9596).

Please make sure your local firewalls (which exact OS are you running btw?) are configured to allow all (!) traffic that is generated inside your LAN or at least specify the mepo-port and the standard smb-ports.
If you should be running a third party firewall on a windows-system: get rid of it and use the built-in ones...

Bye,
Fry
_____________
XBMC v13.2 beta 3
MediaPortal TV-Server v1.8
OrigenAE S16V | Soundgraph VFD | Montellese's/cdenfert's XBMC on iMon Display
Core i3-2100T/HD2000 | Win7 x64
find quote
erichzann Offline
Junior Member
Posts: 22
Joined: May 2012
Reputation: 0
Post: #8
Hi Fry7

Thanks for your reply,

I am running win 7 32bit on the TV Server machine.

I have disabled the windows native fire wall and that changed it from a 10060 to a 10061 error.

I am going to try and install XBMC-pvr on the TV Server just to check that that can connect locally and then I am going to assign a new IP to the TV Server to see if that helps.

Thanks
find quote
margro Offline
Fan
Posts: 654
Joined: Oct 2009
Reputation: 21
Location: The Netherlands
Post: #9
Double check in the TVServer Configuration tool that you actually did enable the plugin. Check also that the version number is recent, e.g. 1.2.x.112 or higher
Check also the log file from the TVServer for "TVServerXBMC" entries to make sure that it is running.
You can use telnet or PuTTY on your backend machine to test whether the plugin is running on port 9596. See TVServerXBMC readme.txt for the details.

Developer of the MediaPortal PVR addon and the Argus-TV PVR-addon. Unofficial XBMC Windows builds with PVR.
http://www.scintilla.utwente.nl/~marcelg/xbmc
find quote
erichzann Offline
Junior Member
Posts: 22
Joined: May 2012
Reputation: 0
Post: #10
Just checked in the error log for the tv server and saw the following:

Quote:012-05-14 21:00:10.994455 [TVService(6)]: TvService OnStart failed : System.Threading.ThreadAbortException: Thread was being aborted.
at System.Threading.Thread.SleepInternal(Int32 millisecondsTimeout)
at TvService.TvServiceThread.OnStart()
2012-05-14 21:00:17.655667 [TVService(6)]: TVServerXBMC: TVServerConnection.Init failed!

However, in the tv log, everything looked fine.

Quote:2012-05-14 21:00:17.343666 [TVService(6)]: TV Service: Load plugins
2012-05-14 21:00:17.359266 [TVService(6)]: PluginManager: Loaded ComSkipLauncher version:1.0.2.0 author:and-81
2012-05-14 21:00:17.374866 [TVService(6)]: PluginManager: Loaded ConflictsManager version:1.0.0.1 author:Broceliande
2012-05-14 21:00:17.374866 [TVService(6)]: PluginManager: Loaded iPiMPTranscodeToMP4 version:5.2.0.804 author:Cheezey
2012-05-14 21:00:17.390466 [TVService(6)]: PluginManager: Loaded Power Scheduler version:0.1.0.0 author:micheloe
2012-05-14 21:00:17.406066 [TVService(6)]: PluginManager: Loaded ServerBlaster version:1.1.1.0 author:joboehl with ralphy mods
2012-05-14 21:00:17.406066 [TVService(6)]: PluginManager: Loaded TV Movie EPG import version:1.0.3.0 author:rtv
2012-05-14 21:00:17.421666 [TVService(6)]: PluginManager: Loaded TVServerXBMC version:1.2.3.114 author:margro, Prashant V
2012-05-14 21:00:17.421666 [TVService(6)]: PluginManager: Loaded TvWishList version:1.2.0.17 author:huha
2012-05-14 21:00:17.437266 [TVService(6)]: PluginManager: Loaded WebEPG version:1.0.0.0 author:Arion_p - James
2012-05-14 21:00:17.437266 [TVService(6)]: PluginManager: Loaded XmlTv version:1.0.0.0 author:Frodo
2012-05-14 21:00:17.437266 [TVService(6)]: TV Service: Plugins loaded
2012-05-14 21:00:17.452866 [TVService(6)]: TV Service: Plugin: ComSkipLauncher disabled
2012-05-14 21:00:17.452866 [TVService(6)]: TV Service: Plugin: ConflictsManager disabled
2012-05-14 21:00:17.452866 [TVService(6)]: TV Service: Plugin: iPiMPTranscodeToMP4 disabled
2012-05-14 21:00:17.452866 [TVService(6)]: TV Service: Plugin: Power Scheduler started
2012-05-14 21:00:17.468466 [TVService(6)]: PowerScheduler: Registered PowerScheduler service to GlobalServiceProvider
2012-05-14 21:00:17.468466 [TVService(6)]: PowerScheduler: Registered PowerScheduler as PowerEventHandler to tvservice
2012-05-14 21:00:17.468466 [TVService(6)]: PowerScheduler: Registered default set of standby/resume handlers to PowerScheduler
2012-05-14 21:00:17.468466 [TVService(6)]: PowerScheduler: Registered PowerScheduler as "PowerControl" remoting service
2012-05-14 21:00:17.484066 [TVService(6)]: PowerSchedulerFactory CTOR
2012-05-14 21:00:17.577667 [TVService(6)]: PowerScheduler: preventing standby for process: SetupTv
2012-05-14 21:00:17.577667 [TVService(6)]: PowerScheduler: preventing standby for process: Configuration
2012-05-14 21:00:17.577667 [TVService(6)]: PowerScheduler: preventing standby for process: chrome
2012-05-14 21:00:17.593267 [TVService(6)]: PowerScheduler: preventing standby for process: xbmc
2012-05-14 21:00:17.593267 [TVService(6)]: PowerScheduler: preventing standby for process: StereoPlayer
2012-05-14 21:00:17.593267 [TVService(6)]: ActiveSharesHandler: Share monitoring is disabled.
2012-05-14 21:00:17.608867 [TVService(6)]: PowerScheduler: wakeup system for EPG at time: 0:0
2012-05-14 21:00:17.608867 [TVService(6)]: PowerScheduler: EPG last run: 01/01/0001 00:00:00
2012-05-14 21:00:17.608867 [DVB EPG timer(14)]: RemoteControl: RegisterChannel first called in Domain TVService.exe for thread DVB EPG timer with id 14
2012-05-14 21:00:17.624467 [TVService(6)]: PowerScheduler: Starting poll thread
2012-05-14 21:00:17.624467 [TVService(6)]: Powerscheduler: started
2012-05-14 21:00:17.624467 [TVService(6)]: TV Service: Plugin: ServerBlaster disabled
2012-05-14 21:00:17.624467 [TVService(6)]: TV Service: Plugin: TV Movie EPG import disabled
2012-05-14 21:00:17.624467 [TVService(6)]: TV Service: Plugin: TVServerXBMC started
2012-05-14 21:00:17.640067 [TVService(6)]: plugin: TVServerXBMC started
2012-05-14 21:00:17.655667 [TVService(6)]: TV Service: Plugin: TvWishList disabled
2012-05-14 21:00:17.671267 [TVService(6)]: TV Service: Plugin: WebEPG disabled
2012-05-14 21:00:17.671267 [TVService(6)]: TV Service: Plugin: XmlTv disabled
2012-05-14 21:00:17.671267 [TVService(6)]: TV Service: Plugins started
2012-05-14 21:00:17.671267 [TVService(6)]: TV service: Started
find quote
erichzann Offline
Junior Member
Posts: 22
Joined: May 2012
Reputation: 0
Post: #11
Just a quick post to say that I have solved this issue.

I tried a combination of things e.g. resetting the winsock catalog, tcp/ip stack, renewing IPs etc.

Not quite sure which one fixed it but it is fine now. I suspect the following commands may have fixed it:

netsh winsock reset

ipconfig/release

ipconfig/renew
find quote