There seems to be a problem: A Network error occurred

Over the last week I keep getting “There seems to be a problem: A Network error occurred” on three different Samsung TVs.

From logs I get:

Sep 20, 2016 21:16:46.564 [3080] DEBUG - MyPlex: We appear to have lost Internet connectivity, resetting device URL cache.
Sep 20, 2016 21:16:46.564 [3080] ERROR - EventSource: Retrying in 15 seconds.
Sep 20, 2016 21:16:46.565 [3080] DEBUG - EventSource: Failure in IdleTimeout (0 - The operation completed successfully).
Sep 20, 2016 21:16:46.565 [3080] DEBUG - MyPlex: We appear to have lost Internet connectivity, resetting device URL cache.
Sep 20, 2016 21:16:46.565 [3080] ERROR - EventSource: Retrying in 15 seconds.
Sep 20, 2016 21:16:46.568 [3080] DEBUG - Failed to stream media, client probably disconnected: 10053 - An established connection was aborted by the software in your host machine
Sep 20, 2016 21:16:46.568 [3080] DEBUG - Completed: [192.168.0.2:52613] 200 GET /library/parts/3160473/1462720844/file.mp4 (12 live) 1685917ms 967049216 bytes
Sep 20, 2016 21:16:46.577 [2668] DEBUG - BPQ: generating queue items from 14 generator(s)

Thing is on the windows server with Plex on it there is no loss of internet/network. This has only started the last week or so. Any ideas?

Thanks

I’ve heard this is due to the new 1.1.4 update. So far I’ve read that this is an issue with the LG’s. But you can try and whitelist the IP’s to your TV’s manually. This should work until the devs have sorted it out :slight_smile:

EDIT: Apparently, they’ve revamped the security, as per this comment, which was found in this question

Thanks I have tried this I’ll update if this works.

Hi This hasn’t worked. I added 192.168.0.* to the network setting and it is still happening. Any other suggestions?

Have you looked at the edit I did on my previous post?

@antcull said:
Over the last week I keep getting “There seems to be a problem: A Network error occurred” on three different Samsung TVs.

From logs I get:

Sep 20, 2016 21:16:46.564 [3080] DEBUG - MyPlex: We appear to have lost Internet connectivity, resetting device URL cache.
Sep 20, 2016 21:16:46.564 [3080] ERROR - EventSource: Retrying in 15 seconds.
Sep 20, 2016 21:16:46.565 [3080] DEBUG - EventSource: Failure in IdleTimeout (0 - The operation completed successfully).
Sep 20, 2016 21:16:46.565 [3080] DEBUG - MyPlex: We appear to have lost Internet connectivity, resetting device URL cache.
Sep 20, 2016 21:16:46.565 [3080] ERROR - EventSource: Retrying in 15 seconds.
Sep 20, 2016 21:16:46.568 [3080] DEBUG - Failed to stream media, client probably disconnected: 10053 - An established connection was aborted by the software in your host machine
Sep 20, 2016 21:16:46.568 [3080] DEBUG - Completed: [192.168.0.2:52613] 200 GET /library/parts/3160473/1462720844/file.mp4 (12 live) 1685917ms 967049216 bytes
Sep 20, 2016 21:16:46.577 [2668] DEBUG - BPQ: generating queue items from 14 generator(s)

Thing is on the windows server with Plex on it there is no loss of internet/network. This has only started the last week or so. Any ideas?

Thanks

These errors are indicative of a network failure at 21:16:46. The EventSource messages relate to the Plex Media Server connection with the pubsub.plex.tv servers which appear to have stopped communicating with the server. Is the TV on 192.168.0.2 ? That request which terminated at the time of the network glitch was received 28 minutes earlier.

Is it using Plex for Samsung product for models up to 2015 or the official Plex for Smart TVs product for Samsung 2016 models. A full log file would help understanding more about what was going on - you could attach

Hi sorry been on holiday. Yes 192.168.0.2 is the tv that the error message appeared on. I am using the Plex app not the old built in one for prior 2015 models. Still happening on all of our TVs. I have tried adding the ips individually into the networks setting and made no difference. This is a huge issue for us as all 3 of our kids use plex in their rooms. Never had this issue until the last Month or so.

@yows said:
Have you looked at the edit I did on my previous post?

yes. Added both 192.168.0.* and when that didnt work added IPs individually still didnt fix the issue.

So these are new 2016 Samsung TVs then - as you indicated you are using the official Plex for Smart TVs app ?

Get more logs to see if there is any pattern to the problem
You could also select the Plex app setting on the smart tv to send logs to the server

https://support.plex.tv/hc/en-us/articles/216955788-Logging-for-Smart-TVs-TiVo
https://support.plex.tv/hc/en-us/articles/200250417-Plex-Media-Server-Log-Files

Authentication should not come into it - so having IP Addresses within List of IP addresses and networks that are allowed without auth should not affect whether the network dies or not.

Is the number of TVs streaming a factor?
Does it happen after a while ?
Does restarting the router delay when it happens again?

No they arent 2016. They are a couple of years old

Is the number of TVs streaming a factor?
Never been an issue until this issue started
Does it happen after a while ?
Yes not immediate. Doesnt seem to be a set amount of time into viewing either.
Does restarting the router delay when it happens again?
Restarted the router and got the same message within a few minutes on my kids tv

There is no Settings as suggested under
https://support.plex.tv/hc/en-us/articles/216955788-Logging-for-Smart-TVs-TiVo
on the app. There is a “Send DEbug to PMS” under General

Is there anyway to roll back the version of the server side? Pretty sure this started after I went to the last version.

@antcull said:
There is no Settings as suggested under
https://support.plex.tv/hc/en-us/articles/216955788-Logging-for-Smart-TVs-TiVo
on the app. There is a “Send DEbug to PMS” under General

Ok so you are using the Plex for Samsung pre 2016 models app rather than the official Plex for Smart TV 2016 onwards app.

The forum for the Plex for Samsung app is
Samsung Smart Hub (2010-2015 models)

In any case - what is needed would be full log files and please do use the Send Debug to PMS option and get the server log file after reproducing the problem

So sequence

  1. Ensure Server logging is enabled and set to Debug Level - see https://support.plex.tv/hc/en-us/articles/201643703-Reporting-issues-with-Plex-Media-Server
  2. Enable Logging to PMS on the Samsung app (Preferences / Send Debug to PMS)
  3. Restart the server and wait 5 minutes for it to establish itself
  4. Reproduce the problem and note down the time of the erorr
  5. Get the Plex Media Server Log files and upload here with indication of when the error was - see https://support.plex.tv/hc/en-us/articles/200250417-Plex-Media-Server-Log-Files
  6. Please confirm if the TV and server connections to the network are WIFI or Wired.

Error happened again 10:34 am. I am using wired network. TVs upstairs are connected via livewire 200mb/s. I have also turned off and reconnected all of these devices. The error at 10:34 happened on the TV connected directly to the router. The Plex server is also connected directly to the server so the livewire can be discounted in this instance. I do get the same issue on the TVs connected by the livewire but in this instance they are not involved.

@antcull said:
Error happened again 10:34 am. I am using wired network. TVs upstairs are connected via livewire 200mb/s. I have also turned off and reconnected all of these devices. The error at 10:34 happened on the TV connected directly to the router. The Plex server is also connected directly to the server so the livewire can be discounted in this instance. I do get the same issue on the TVs connected by the livewire but in this instance they are not involved.

I thought you were going to enable Plex for Samsung app logging Send Debug to PMS ?

Can you tell me if this drive is local HDD or network drive ? G:\Plex Local Data\
Just to want to make sure the Plex Media Server SQLite3 database is on a local HDD and not on a network drive

At around 10:34 database optimization was taking place and it completed at 10:33:58 - so may have been a factor - if the database traffic is going through the network rather than local

Just at that time we had network outage - router gave up?

Oct 15, 2016 10:33:58.120 [4348] VERBOSE - We didn't receive any data from 192.168.0.2:52761 in time, dropping connection.
Oct 15, 2016 10:33:58.120 [4348] DEBUG - EventSource: Failure in IdleTimeout (0 - The operation completed successfully).
Oct 15, 2016 10:33:58.120 [4348] DEBUG - MyPlex: We appear to have lost Internet connectivity, resetting device URL cache.
Oct 15, 2016 10:33:58.120 [4348] ERROR - EventSource: Retrying in 15 seconds.
Oct 15, 2016 10:33:58.120 [4348] DEBUG - Failed to stream media, client probably disconnected: 10053 - An established connection was aborted by the software in your host machine

Oct 15, 2016 10:33:58.120 [4348] DEBUG - Completed: [192.168.0.2:52766] 200 GET /library/parts/2542175/1456302077/file.mp4 (10 live) 77527ms 38862848 bytes

which was after this

Oct 15, 2016 10:33:30.658 [7808] DEBUG - Database optimization: starting.
Oct 15, 2016 10:33:58.073 [7808] DEBUG - Database optimization: complete.

Your media is on the G:\ as well which was being scanned.
So if G:\ is network drive then it could be the amount of traffic for the database accesses

The scanner jobs that ran around that time were

Oct 15, 2016 10:33:19.222 [3056] INFO - Notification: Scanning the "Mobile Photos" section - 
Oct 15, 2016 10:33:58.448 [3056] INFO - Notification: Scanning the "Movies" section - 
Oct 15, 2016 10:34:13.313 [3056] INFO - Notification: Scanning the "Movies 3D" section - 
Oct 15, 2016 10:34:16.769 [3056] INFO - Notification: Scanning the "Music" section - 
Oct 15, 2016 10:34:37.221 [3056] INFO - Notification: Scanning the "Performances" section - 
Oct 15, 2016 10:34:39.383 [3056] INFO - Notification: Scanning the "Photos" section - 
Oct 15, 2016 10:35:53.786 [3056] INFO - Notification: Scanning the "Standup DVDs" section - 

No G: is a local drive. I did the debug thing but this is the only logs I could find to download.

@antcull said:
No G: is a local drive. I did the debug thing but this is the only logs I could find to download.

I could not any logged entries in the Plex Media Server log files with this text DEBUG - [PlexforSamsung] - these would be the entries that get logged by the server when the Plex for Samsung app Preferences / General / Send debug to PMS is selected (orange colour filled circle)

I do not actually need it.

There is a possibility that the database optimization which took a number of seconds to complete and kicked in at 10:33:19 caused the timeouts at 10:33:58

Could you as an experiment change the frequency of Library updates to be every 6 hours or more and see what happens. Just want to make sure the library updates do not coincide with the time you are streaming

You were streaming to 3 Samsungs at the time
The samsungs update the server every 5 seconds but I can see delayed handling of these playtime updates till after the database optimization completed

Please let me know the outcome with fresh logs if same still happens

Also please check your Desktop PC spec is within the system requirements recommendations outlined here
https://support.plex.tv/hc/en-us/articles/200375666-Plex-Media-Server-Requirements
which equivalent to intel core i-3 or faster

Adding to my earlier feedback, the Database gets optimized if there are significant additions to libraries. There were 4 database optimizations scheduled on the day at 08:58 and lat 09:04 and at 09:32 and again at 10:33

Do you recall what the volume of additions was ?

Also what do you have set the frequency of scheduled updates ?

I’ll try the above. Although I have changed the Library updates to Daily.

@antcull said:
I’ll try the above. Although I have changed the Library updates to Daily.

I was looking into why we were doing so many database optimizations and why we were re-scanning the libraries every hour - it appears that the Plex Media Server is failing to mark the scans as having been done and so it thinks they still need to be done. Looking into that I can see lots of timeouts in the agents and system.bundle logs. So we need to look into why these internal requests are timing out

Examples of these errors in one of the com.plexapp.system.log files

2016-10-15 08:47:10,841 (2448) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/metadata/processing?id=4039765'
2016-10-15 08:47:10,871 (8e0) :  ERROR (model:205) - Cannot read model from G:\Plex Local Data\Plex Media Server\Metadata\TV Shows\5\48e5035a83f067a08f0a765a40f6bbaa149c947.bundle\Contents\com.plexapp.agents.thetvdb
2016-10-15 08:47:30,846 (2448) :  CRITICAL (core:574) - Exception notifying the media server (most recent call last):
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-24ffd60\System.bundle\Contents\Code\agentservice.py", line 388, in notify_processing
    HTTP.Request(url, cacheTime=0, immediate=True)
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-24ffd60\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api
etworkkit.py", line 194, in Request
    method=method,
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-24ffd60\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api
etworkkit.py", line 67, in _http_request
    req = self._core.networking.http_request(url, *args, **kwargs)
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-24ffd60\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components
etworking.py", line 370, in http_request
    return HTTPRequest(self._core, url, data, h, url_cache, encoding, errors, timeout, immediate, sleep, opener, follow_redirects, method)
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-24ffd60\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components
etworking.py", line 141, in __init__
    self.load()
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-24ffd60\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components
etworking.py", line 181, in load
    f = self._opener.open(req, timeout=self._timeout)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 404, in open
    response = self._open(req, data)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 422, in _open
    '_open', req)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 1214, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 1187, in do_open
    r = h.getresponse(buffering=True)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\httplib.py", line 1045, in getresponse
    response.begin()
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\httplib.py", line 409, in begin
    version, status, reason = self._read_status()
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\httplib.py", line 365, in _read_status
    line = self.fp.readline(_MAXLINE + 1)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\socket.py", line 476, in readline
    data = self._sock.recv(self._rbufsize)
timeout: timed out

and

2016-10-15 08:49:10,321 (1764) :  ERROR (networking:219) - Error opening URL 'http://127.0.0.1:32400/:/plugins/com.plexapp.agents.localmedia/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCmVuczQKbGFuZ2IwczYKbWFudWFsYjBzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M3ClRWX1■■■3dzMTAKbWVkaWFfdHlwZTUKczcKMTQzNTI1M3M4CnBhcmVudElEczQ3CmNvbS5wbGV4YXBwLmFnZW50cy50aGV0dmRiOi8vMjUxMDg1LzIvOT9sYW5nPWVuczQKZ3VpZGIxczUKZm9yY2VzMjYKY29tLnBsZXhhcHAuYWdlbnRzLnRoZXR2ZGJzMTMKcHJpbWFyeV9hZ2VudHM3CjI0NTk2MjJzMgppZHIwCg__'
2016-10-15 08:49:10,325 (1764) :  CRITICAL (core:574) - Exception performing search in com.plexapp.agents.localmedia (most recent call last):
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-24ffd60\System.bundle\Contents\Code\agentservice.py", line 463, in update_task
    results = self.agent_search(agent_identifier, media_type, lang, False, kwargs, version, primary=False)
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-24ffd60\System.bundle\Contents\Code\agentservice.py", line 1201, in agent_search
    kwargs=kwargs
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-24ffd60\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\messaging.py", line 86, in call_external_function
    packed_result = self._core.networking.http_request(url, cacheTime=0, timeout=None, immediate=True).content
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-24ffd60\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components
etworking.py", line 370, in http_request
    return HTTPRequest(self._core, url, data, h, url_cache, encoding, errors, timeout, immediate, sleep, opener, follow_redirects, method)
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-24ffd60\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components
etworking.py", line 141, in __init__
    self.load()
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-24ffd60\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components
etworking.py", line 181, in load
    f = self._opener.open(req, timeout=self._timeout)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 410, in open
    response = meth(req, response)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 523, in http_response
    'http', request, response, code, msg, hdrs)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 448, in error
    return self._call_chain(*args)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 531, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 500: Internal Server Error

and localmedia log

2016-10-15 08:49:44,075 (2610) :  WARNING (core:541) - Unable to retrieve the machine identifier or server version.

Could you tell me if you are using a proxy ? vpn software?
what security software do you use ? for firewall ? and for anti virus ? and internet security ?
what firewall rules do you have for Plex ?