{"action":"created","issue":{"url":"https://api.github.com/repos/srazer/FindMissing.bundle/issues/4","labels_url":"https://api.github.com/repos/srazer/FindMissing.bundle/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/srazer/FindMissing.bundle/issues/4/comments","events_url":"https://api.github.com/repos/srazer/FindMissing.bundle/issues/4/events","html_url":"https://github.com/srazer/FindMissing.bundle/issues/4","id":55290162,"number":4,"title":"BUG: urllib2 error","user":{"login":"kossboss","id":2777198,"avatar_url":"https://avatars.githubusercontent.com/u/2777198?v=3","gravatar_id":"","url":"https://api.github.com/users/kossboss","html_url":"https://github.com/kossboss","followers_url":"https://api.github.com/users/kossboss/followers","following_url":"https://api.github.com/users/kossboss/following{/other_user}","gists_url":"https://api.github.com/users/kossboss/gists{/gist_id}","starred_url":"https://api.github.com/users/kossboss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kossboss/subscriptions","organizations_url":"https://api.github.com/users/kossboss/orgs","repos_url":"https://api.github.com/users/kossboss/repos","events_url":"https://api.github.com/users/kossboss/events{/privacy}","received_events_url":"https://api.github.com/users/kossboss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-23T14:57:35Z","updated_at":"2015-02-23T22:18:48Z","closed_at":null,"body":"urllib2 error (i get this with plex2csv as well - im on latest server and client - using chrome)\r\n\r\nError looks like this in findmissing (grabbed from Plex Media Server\\Logs\\PMS Plugin Logs\\com.plexapp.plugin.finMissing.Log):\r\n\r\n2015-01-23 06:54:24,500 (2340) :  DEBUG (logkit:13) - Media from database: 'Hannibal/Kō No Mono' exists with a path of: S:\\Videos\\TvShows\\Hannibal\\Season 2\\Hannibal.S02E11.720p.HDTV.X264-DIMENSION.mkv\r\n2015-01-23 06:54:24,525 (2340) :  DEBUG (logkit:13) - Media from database: 'Hannibal/Tome-wan' exists with a path of: S:\\Videos\\TvShows\\Hannibal\\Season 2\\Hannibal.S02E12.Tome.Wan.1080p.WEB-DL.DD5.1.H.264-NTb.mkv\r\n2015-01-23 06:54:24,589 (2340) :  DEBUG (logkit:13) - Media from database: 'Hannibal/Mizumono' exists with a path of: S:\\Videos\\TvShows\\Hannibal\\Season 2\\Hannibal.S02E13.720p.HDTV.X264-DIMENSION.mkv\r\n2015-01-23 06:54:24,589 (2340) :  DEBUG (logkit:13) - Show 27 of 62 with a RatingKey of 86685 at myURL: http://localhost:32400/library/metadata/86685/allLeaves\r\n2015-01-23 06:54:24,589 (2340) :  DEBUG (networking:172) - Requesting 'http://localhost:32400/library/metadata/86685/allLeaves'\r\n2015-01-23 06:54:25,611 (2340) :  CRITICAL (logkit:25) - Detected an exception in scanShowDB\r\n2015-01-23 06:54:25,611 (2340) :  CRITICAL (logkit:25) - Exception happened in backgroundScanThread\r\n2015-01-23 06:54:25,611 (2340) :  CRITICAL (core:572) - Exception in thread named 'backgroundScanThread' (most recent call last):\r\n  File \"D:\\0Programs\\PlexData\\Plex Media Server\\Plug-ins\\Framework.bundle\\Contents\\Resources\\Versions\\2\\Python\\Framework\\components\\runtime.py\", line 1120, in _start_thread\r\n    f(*args, **kwargs)\r\n  File \"D:\\0Programs\\PlexData\\Plex Media Server\\Plug-ins\\FindMissing.bundle\\Contents\\Code\\__init__.py\", line 402, in backgroundScanThread\r\n    scanShowDB(myMediaURL)\r\n  File \"D:\\0Programs\\PlexData\\Plex Media Server\\Plug-ins\\FindMissing.bundle\\Contents\\Code\\__init__.py\", line 257, in scanShowDB\r\n    myMedias2 = XML.ElementFromURL(myURL).xpath('//Video')\r\n  File \"D:\\0Programs\\PlexData\\Plex Media Server\\Plug-ins\\Framework.bundle\\Contents\\Resources\\Versions\\2\\Python\\Framework\\api\\parsekit.py\", line 344, in ElementFromURL\r\n    method=method,\r\n  File \"D:\\0Programs\\PlexData\\Plex Media Server\\Plug-ins\\Framework.bundle\\Contents\\Resources\\Versions\\2\\Python\\Framework\\api\\networkkit.py\", line 67, in _http_request\r\n    req = self._core.networking.http_request(url, *args, **kwargs)\r\n  File \"D:\\0Programs\\PlexData\\Plex Media Server\\Plug-ins\\Framework.bundle\\Contents\\Resources\\Versions\\2\\Python\\Framework\\components\\networking.py\", line 376, in http_request\r\n    return HTTPRequest(self._core, url, data, h, url_cache, encoding, errors, timeout, immediate, sleep, opener, follow_redirects, method)\r\n  File \"D:\\0Programs\\PlexData\\Plex Media Server\\Plug-ins\\Framework.bundle\\Contents\\Resources\\Versions\\2\\Python\\Framework\\components\\networking.py\", line 147, in __init__\r\n    self.load()\r\n  File \"D:\\0Programs\\PlexData\\Plex Media Server\\Plug-ins\\Framework.bundle\\Contents\\Resources\\Versions\\2\\Python\\Framework\\components\\networking.py\", line 187, in load\r\n    f = self._opener.open(req, timeout=self._timeout)\r\n  File \"C:\\Program Files (x86)\\Plex\\Plex Media Server\\python27.zip\\urllib2.py\", line 404, in open\r\n    response = self._open(req, data)\r\n  File \"C:\\Program Files (x86)\\Plex\\Plex Media Server\\python27.zip\\urllib2.py\", line 422, in _open\r\n    '_open', req)\r\n  File \"C:\\Program Files (x86)\\Plex\\Plex Media Server\\python27.zip\\urllib2.py\", line 382, in _call_chain\r\n    result = func(*args)\r\n  File \"C:\\Program Files (x86)\\Plex\\Plex Media Server\\python27.zip\\urllib2.py\", line 1214, in http_open\r\n    return self.do_open(httplib.HTTPConnection, req)\r\n  File \"C:\\Program Files (x86)\\Plex\\Plex Media Server\\python27.zip\\urllib2.py\", line 1184, in do_open\r\n    raise URLError(err)\r\nURLError: <urlopen error [Errno 10048] Only one usage of each socket address (protocol/network address/port) is normally permitted>"},"comment":{"url":"https://api.github.com/repos/srazer/FindMissing.bundle/issues/comments/75649676","html_url":"https://github.com/srazer/FindMissing.bundle/issues/4#issuecomment-75649676","issue_url":"https://api.github.com/repos/srazer/FindMissing.bundle/issues/4","id":75649676,"user":{"login":"kossboss","id":2777198,"avatar_url":"https://avatars.githubusercontent.com/u/2777198?v=3","gravatar_id":"","url":"https://api.github.com/users/kossboss","html_url":"https://github.com/kossboss","followers_url":"https://api.github.com/users/kossboss/followers","following_url":"https://api.github.com/users/kossboss/following{/other_user}","gists_url":"https://api.github.com/users/kossboss/gists{/gist_id}","starred_url":"https://api.github.com/users/kossboss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kossboss/subscriptions","organizations_url":"https://api.github.com/users/kossboss/orgs","repos_url":"https://api.github.com/users/kossboss/repos","events_url":"https://api.github.com/users/kossboss/events{/privacy}","received_events_url":"https://api.github.com/users/kossboss/received_events","type":"User","site_admin":false},"created_at":"2015-02-23T22:18:48Z","updated_at":"2015-02-23T22:18:48Z","body":"My Plex library is not curropt, I know this because sometimes those scans would go through without issue.\r\n\r\nWell the catch is that sometimes it goes thru the whole library scan without failing. Its only sometimes that it fails. The URL LIB error online mentioned that too many ports where opened. I monitored with cygwin and a netstat grepping for 32400, and I saw that the number of connections sky rocketed while it was doing that scan, and it just kept rising and rising and rising. I assume it should make a connection, grab an xml page, close the page, continue with the next page.. Or if its threaded maybe it can do 8 at a time. Im not sure if your threading it. But according to netstat output it was like there were 1000s at a time.\r\n\r\nI did have \"netbalancer\" installed on my PC at the time of issue, but it was giving most priority to plex, so it should affect it, but it was affecting other communications like samba from pc to the NAS samba server. Now Plex used the mapped drive to communicate to all of my videos which are all o the NAS which also used samba. I assumed since Plex was the sourcing application, the \"netbalancer\" would give it higher speed.\r\n\r\nI uninstalled \"netbalancer\" after it gave me issues elsewhere, Im going to rerun these apps and see if I get these same issues.\r\n\r\nBut like I said my plex library is not curropt as far as I know because the 3 mentioned apps (Find-Unmatched, FindMissing and Plex2CSV finish sometimes but not always). It was like a 30% chance for it to be successful with Plex2CSV on the intense scan. If I newely rebooted my Windows PC then it was quicker. My assumption is that its just those URLLIB closed connections. But I guess the connections could of been built up because of \"netbalancer\" slowing things down.\r\n\r\nI will test the 3 now without \"netbalancer\" and let you all know."}}