hi,
I’ve been trying to solve the following problem for several days but haven’t found any solution yet. So I posted a similar thread on the official kodi forum. Unfortunately nobody has answered so far. So you are my last hope
I have a windows server with a mediaportal tv server and a raspberry pi3 running the latest osmc version as client. As long as the server is running everything works fine. It’s configured to turn off if kodi doesn’t need it.
So usually when I go to bed I watch some tv and have kodi to turn streaming tv off after some time. Then the server turns off. The pi is running 24/7 which means that the pvr addon can’t connect to server from that moment on.
Then the MP pvr client writes some errors to the log which imo is ok because the server is off. But after some hours it produces a ‘process file table overflow’. From that moment on I can’t use kodi anymore. Windows won’t open (even the screensaver), I can’t access any menus and so on. For hours it produces the error 113, then once 110 and from that moment on 24.
Then a reboot is neccessary.
As far as I know error 24 means ‘too many open files’. But why is this happening and what can I do?
The following snippet is from my log file (with debug on) when the error occurs.
03:41:07 56385.398438 T:1587540976 DEBUG: EPG - UpdateFromScraper - updating EPG for channel 'münchen 2' from client '898'
03:41:07 56385.398438 T:1587540976 ERROR: AddOnLog: MediaPortal PVR Client: Socket::send - failed to send data
03:41:07 56385.398438 T:1587540976 INFO: AddOnLog: MediaPortal PVR Client: Mediaportal pvr addon 1.13.7 connecting to htpc:9596
03:41:10 56388.398438 T:1587540976 ERROR: AddOnLog: MediaPortal PVR Client: Socket::connect htpc:9596
03:41:10 56388.402344 T:1587540976 ERROR: AddOnLog: MediaPortal PVR Client: Socket::connect: (errno=113) (null)
03:41:10 56388.402344 T:1587540976 ERROR: AddOnLog: MediaPortal PVR Client: Could not connect to MediaPortal TV Server backend
03:41:10 56388.402344 T:1587540976 ERROR: AddOnLog: MediaPortal PVR Client: SendCommand2: reconnect failed.
03:41:10 56388.402344 T:1587540976 DEBUG: AddOnLog: MediaPortal PVR Client: No EPG items found for channel 4
03:41:10 56388.402344 T:1587540976 DEBUG: EPGContainer - UpdateEpgEvents
03:41:10 56388.402344 T:1587540976 DEBUG: EPGContainer - UpdateEpgEvents - 0 item(s) updated
03:41:10 56388.402344 T:1587540976 DEBUG: EPG - UpdateFromScraper - updating EPG for channel 'Channel21' from client '898'
03:41:10 56388.402344 T:1587540976 ERROR: AddOnLog: MediaPortal PVR Client: Socket::send - failed to send data
03:41:10 56388.402344 T:1587540976 INFO: AddOnLog: MediaPortal PVR Client: Mediaportal pvr addon 1.13.7 connecting to htpc:9596
03:41:11 56388.953125 T:1956381616 DEBUG: CGUIEPGGridContainer - SetStartEnd - start=19.05.2016 01:30:00 end=26.05.2016 22:00:00
03:41:11 56389.296875 T:1956381616 DEBUG: CGUIEPGGridContainer - UpdateItems completed successfully in 98 ms
03:41:13 56391.398438 T:1587540976 ERROR: AddOnLog: MediaPortal PVR Client: Socket::connect htpc:9596
03:41:13 56391.402344 T:1587540976 ERROR: AddOnLog: MediaPortal PVR Client: Socket::connect: (errno=113) (null)
03:41:13 56391.402344 T:1587540976 ERROR: AddOnLog: MediaPortal PVR Client: Could not connect to MediaPortal TV Server backend
03:41:13 56391.402344 T:1587540976 ERROR: AddOnLog: MediaPortal PVR Client: SendCommand2: reconnect failed.
03:41:13 56391.402344 T:1587540976 DEBUG: AddOnLog: MediaPortal PVR Client: No EPG items found for channel 130
03:41:13 56391.402344 T:1587540976 DEBUG: EPGContainer - UpdateEpgEvents
03:41:13 56391.402344 T:1587540976 DEBUG: EPGContainer - UpdateEpgEvents - 0 item(s) updated
03:41:13 56391.402344 T:1587540976 DEBUG: EPG - UpdateFromScraper - updating EPG for channel 'Juwelo TV' from client '898'
03:41:13 56391.402344 T:1587540976 ERROR: AddOnLog: MediaPortal PVR Client: Socket::send - failed to send data
03:41:13 56391.402344 T:1587540976 INFO: AddOnLog: MediaPortal PVR Client: Mediaportal pvr addon 1.13.7 connecting to htpc:9596
03:41:16 56394.398438 T:1587540976 ERROR: AddOnLog: MediaPortal PVR Client: Socket::connect htpc:9596
03:41:16 56394.402344 T:1587540976 ERROR: AddOnLog: MediaPortal PVR Client: Socket::connect: (errno=113) (null)
03:41:16 56394.402344 T:1587540976 ERROR: AddOnLog: MediaPortal PVR Client: Could not connect to MediaPortal TV Server backend
03:41:16 56394.402344 T:1587540976 ERROR: AddOnLog: MediaPortal PVR Client: SendCommand2: reconnect failed.
03:41:16 56394.402344 T:1587540976 DEBUG: AddOnLog: MediaPortal PVR Client: No EPG items found for channel 131
03:41:16 56394.402344 T:1587540976 DEBUG: EPGContainer - UpdateEpgEvents
03:41:16 56394.402344 T:1587540976 DEBUG: EPGContainer - UpdateEpgEvents - 0 item(s) updated
03:41:16 56394.402344 T:1587540976 DEBUG: EPG - UpdateFromScraper - updating EPG for channel 'Kabel Digital Info' from client '898'
03:41:16 56394.402344 T:1587540976 ERROR: AddOnLog: MediaPortal PVR Client: Socket::send - failed to send data
03:41:16 56394.402344 T:1587540976 INFO: AddOnLog: MediaPortal PVR Client: Mediaportal pvr addon 1.13.7 connecting to htpc:9596
03:41:16 56394.402344 T:1587540976 ERROR: AddOnLog: MediaPortal PVR Client: Socket::setHostname: (errno=110) (null)
03:41:16 56394.402344 T:1587540976 ERROR: AddOnLog: MediaPortal PVR Client: Socket::setHostname(htpc) failed.
03:41:16 56394.402344 T:1587540976 ERROR: AddOnLog: MediaPortal PVR Client: Could not connect to MediaPortal TV Server backend
03:41:16 56394.402344 T:1587540976 ERROR: AddOnLog: MediaPortal PVR Client: SendCommand2: reconnect failed.
03:41:16 56394.402344 T:1587540976 DEBUG: AddOnLog: MediaPortal PVR Client: No EPG items found for channel 254
03:41:16 56394.402344 T:1587540976 DEBUG: EPGContainer - UpdateEpgEvents
03:41:16 56394.402344 T:1587540976 DEBUG: EPGContainer - UpdateEpgEvents - 0 item(s) updated
03:41:16 56394.406250 T:1587540976 DEBUG: EPG - UpdateFromScraper - updating EPG for channel 'BodyBal/TVRecord' from client '898'
03:41:16 56394.406250 T:1587540976 ERROR: AddOnLog: MediaPortal PVR Client: Socket::send - failed to send data
03:41:16 56394.406250 T:1587540976 INFO: AddOnLog: MediaPortal PVR Client: Mediaportal pvr addon 1.13.7 connecting to htpc:9596
03:41:16 56394.406250 T:1587540976 ERROR: AddOnLog: MediaPortal PVR Client: Socket::create: (errno=24) EMFILE: Process file table overflow
03:41:16 56394.406250 T:1587540976 ERROR: AddOnLog: MediaPortal PVR Client: Could not connect create socket
03:41:16 56394.406250 T:1587540976 ERROR: AddOnLog: MediaPortal PVR Client: SendCommand2: reconnect failed.
03:41:16 56394.406250 T:1587540976 DEBUG: AddOnLog: MediaPortal PVR Client: No EPG items found for channel 277
03:41:16 56394.406250 T:1587540976 DEBUG: EPGContainer - UpdateEpgEvents
03:41:16 56394.406250 T:1587540976 DEBUG: EPGContainer - UpdateEpgEvents - 0 item(s) updated
03:41:16 56394.406250 T:1587540976 DEBUG: EPG - UpdateFromScraper - updating EPG for channel 'Deutsches Musikfernsehen' from client '898'
03:41:16 56394.406250 T:1587540976 INFO: AddOnLog: MediaPortal PVR Client: Mediaportal pvr addon 1.13.7 connecting to htpc:9596
03:41:16 56394.406250 T:1587540976 ERROR: AddOnLog: MediaPortal PVR Client: Socket::create: (errno=24) EMFILE: Process file table overflow
03:41:16 56394.406250 T:1587540976 ERROR: AddOnLog: MediaPortal PVR Client: Could not connect create socket
03:41:16 56394.406250 T:1587540976 DEBUG: AddOnLog: MediaPortal PVR Client: Backend not connected!
03:41:16 56394.406250 T:1587540976 ERROR: PVR - GetEPGForChannel - addon 'MediaPortal TV-server (htpc):htpc:9596' returned an error: server error
03:41:16 56394.406250 T:1587540976 ERROR: PVR - GetEPGForChannel - cannot get EPG for channel 'Deutsches Musikfernsehen' from client '898': server error
03:41:16 56394.406250 T:1587540976 ERROR: EPG - Update - failed to update table 'Deutsches Musikfernsehen'
03:41:16 56394.406250 T:1587540976 DEBUG: EPG - UpdateFromScraper - updating EPG for channel 'SONLife (eng)' from client '898'
03:41:16 56394.406250 T:1587540976 INFO: AddOnLog: MediaPortal PVR Client: Mediaportal pvr addon 1.13.7 connecting to htpc:9596
03:41:16 56394.406250 T:1587540976 ERROR: AddOnLog: MediaPortal PVR Client: Socket::create: (errno=24) EMFILE: Process file table overflow
03:41:16 56394.406250 T:1587540976 ERROR: AddOnLog: MediaPortal PVR Client: Could not connect create socket
03:41:16 56394.406250 T:1587540976 DEBUG: AddOnLog: MediaPortal PVR Client: Backend not connected!
03:41:16 56394.406250 T:1587540976 ERROR: PVR - GetEPGForChannel - addon 'MediaPortal TV-server (htpc):htpc:9596' returned an error: server error
03:41:16 56394.406250 T:1587540976 ERROR: PVR - GetEPGForChannel - cannot get EPG for channel 'SONLife (eng)' from client '898': server error
03:41:16 56394.406250 T:1587540976 ERROR: EPG - Update - failed to update table 'SONLife (eng)'
03:41:16 56394.410156 T:1587540976 DEBUG: EPG - UpdateFromScraper - updating EPG for channel 'SR Fernsehen' from client '898'
03:41:16 56394.410156 T:1587540976 INFO: AddOnLog: MediaPortal PVR Client: Mediaportal pvr addon 1.13.7 connecting to htpc:9596
03:41:16 56394.410156 T:1587540976 ERROR: AddOnLog: MediaPortal PVR Client: Socket::create: (errno=24) EMFILE: Process file table overflow
03:41:16 56394.410156 T:1587540976 ERROR: AddOnLog: MediaPortal PVR Client: Could not connect create socket
03:41:16 56394.410156 T:1587540976 DEBUG: AddOnLog: MediaPortal PVR Client: Backend not connected!
03:41:16 56394.410156 T:1587540976 ERROR: PVR - GetEPGForChannel - addon 'MediaPortal TV-server (htpc):htpc:9596' returned an error: server error
03:41:16 56394.410156 T:1587540976 ERROR: PVR - GetEPGForChannel - cannot get EPG for channel 'SR Fernsehen' from client '898': server error
03:41:16 56394.410156 T:1587540976 ERROR: EPG - Update - failed to update table 'SR Fernsehen'
03:41:16 56394.410156 T:1587540976 DEBUG: EPG - UpdateFromScraper - updating EPG for channel 'münchen.tv HD' from client '898'
03:41:16 56394.410156 T:1587540976 INFO: AddOnLog: MediaPortal PVR Client: Mediaportal pvr addon 1.13.7 connecting to htpc:9596
03:41:16 56394.410156 T:1587540976 ERROR: AddOnLog: MediaPortal PVR Client: Socket::create: (errno=24) EMFILE: Process file table overflow
03:41:16 56394.410156 T:1587540976 ERROR: AddOnLog: MediaPortal PVR Client: Could not connect create socket
03:41:16 56394.410156 T:1587540976 DEBUG: AddOnLog: MediaPortal PVR Client: Backend not connected!
03:41:16 56394.410156 T:1587540976 ERROR: PVR - GetEPGForChannel - addon 'MediaPortal TV-server (htpc):htpc:9596' returned an error: server error
03:41:16 56394.410156 T:1587540976 ERROR: PVR - GetEPGForChannel - cannot get EPG for channel 'münchen.tv HD' from client '898': server error
03:41:16 56394.410156 T:1587540976 ERROR: EPG - Update - failed to update table 'münchen.tv HD'[code]
Those errors then repeat until I try to use Kodi. A simple moving in the menu or trying to access the movies creates the following:
15:34:25 56898.386719 T:1484592112 ERROR: COMXImageFile::ReadFile special://masterprofile/Thumbnails/c/c1255588.jpg not found
15:34:25 56898.390625 T:1484592112 NOTICE: LoadJpeg: unable to load special://masterprofile/Thumbnails/c/c1255588.jpg
15:34:25 56898.390625 T:1484592112 ERROR: DoWork - Direct texture file loading failed for special://masterprofile/Thumbnails/c/c1255588.jpg
15:34:25 56898.398438 T:1484592112 NOTICE: WakeOnAccess [HTPC] trigged by accessing : smb://HTPC/Filme3/HD/The Revenant (2015)/The Revenant-poster.jpg
15:34:26 56898.660156 T:1392317424 ERROR: COMXImageFile::ReadFile special://masterprofile/Thumbnails/7/76cb143f.jpg not found
15:34:26 56898.660156 T:1392317424 NOTICE: LoadJpeg: unable to load special://masterprofile/Thumbnails/7/76cb143f.jpg
15:34:26 56898.660156 T:1392317424 ERROR: DoWork - Direct texture file loading failed for special://masterprofile/Thumbnails/7/76cb143f.jpg
15:34:26 56898.660156 T:1392317424 NOTICE: WakeOnAccess [HTPC] trigged by accessing : smb://HTPC/Filme3/HD/Star Wars - Episode VII - Das Erwachen der Macht (2015)/Star Wars - Episode VII - Das Erwachen der Macht-poster.jpg
I then have to restart Kodi because it won’t do anything anymore.
Does nobody have a clue? Am I the only one using this addon with a tv-server that’s not on 24/7 or does nobody else have this problem? I’m no crack in this but for me it sounds like the pvr plugin tries to connect to the server every 5 minutes. And for every attempt it opens one connection (without closing it?). After some maximum the error occurs.
Could one make those connections to close after the attempt? Or am I completly wrong?
Thanks a lot for any help.