{"action":"created","issue":{"url":"https://api.github.com/repos/pliablepixels/zmNinja/issues/126","repository_url":"https://api.github.com/repos/pliablepixels/zmNinja","labels_url":"https://api.github.com/repos/pliablepixels/zmNinja/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/pliablepixels/zmNinja/issues/126/comments","events_url":"https://api.github.com/repos/pliablepixels/zmNinja/issues/126/events","html_url":"https://github.com/pliablepixels/zmNinja/issues/126","id":124430181,"number":126,"title":"zmNinja fails to log in over open internet","user":{"login":"alager","id":14002638,"avatar_url":"https://avatars.githubusercontent.com/u/14002638?v=3","gravatar_id":"","url":"https://api.github.com/users/alager","html_url":"https://github.com/alager","followers_url":"https://api.github.com/users/alager/followers","following_url":"https://api.github.com/users/alager/following{/other_user}","gists_url":"https://api.github.com/users/alager/gists{/gist_id}","starred_url":"https://api.github.com/users/alager/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alager/subscriptions","organizations_url":"https://api.github.com/users/alager/orgs","repos_url":"https://api.github.com/users/alager/repos","events_url":"https://api.github.com/users/alager/events{/privacy}","received_events_url":"https://api.github.com/users/alager/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-12-31T04:09:26Z","updated_at":"2016-02-09T01:42:34Z","closed_at":null,"body":"I've added authentication since I'm now forwarding a port from my home network.  It seems that something is failing the first one or two times, and prevents zmN from accessing ZM.\r\nI don't recall this happening when everything was on the same LAN, I'm wondering if there is some sort of latency issue.\r\nI emailed the zmN logs, here are the apache logs:\r\n```\r\n192.168.2.1 - - [30/Dec/2015:19:55:10 -0800] \"POST /zm/index.php HTTP/1.1\" 200 3037 \"-\" \"Mozilla/5.0 (Linux; Android 5.0.1; HTC One_M8 Build/LRX22C) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Crosswalk/14.43.343.25 Mobile Safari/537.36\"\r\n192.168.2.1 - - [30/Dec/2015:19:55:10 -0800] \"GET /zm/ HTTP/1.1\" 200 3037 \"-\" \"Mozilla/5.0 (Linux; Android 5.0.1; HTC One_M8 Build/LRX22C) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Crosswalk/14.43.343.25 Mobile Safari/537.36\"\r\n192.168.2.1 - - [30/Dec/2015:19:55:12 -0800] \"GET /zm/api/host/getVersion.json HTTP/1.1\" 404 2823 \"-\" \"Mozilla/5.0 (Linux; Android 5.0.1; HTC One_M8 Build/LRX22C) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Crosswalk/14.43.343.25 Mobile Safari/537.36\"\r\n192.168.2.1 - - [30/Dec/2015:19:55:12 -0800] \"GET /zm/api/configs/viewByName/ZM_EVENT_IMAGE_DIGITS.json HTTP/1.1\" 404 2851 \"-\" \"Mozilla/5.0 (Linux; Android 5.0.1; HTC One_M8 Build/LRX22C) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Crosswalk/14.43.343.25 Mobile Safari/537.36\"\r\n192.168.2.1 - - [30/Dec/2015:19:55:12 -0800] \"GET /zm/api/monitors.json HTTP/1.1\" 404 2819 \"-\" \"Mozilla/5.0 (Linux; Android 5.0.1; HTC One_M8 Build/LRX22C) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Crosswalk/14.43.343.25 Mobile Safari/537.36\"\r\n::1 - - [30/Dec/2015:19:55:19 -0800] \"OPTIONS * HTTP/1.0\" 200 125 \"-\" \"Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.14 OpenSSL/1.0.1f (internal dummy connection)\"\r\n::1 - - [30/Dec/2015:19:55:20 -0800] \"OPTIONS * HTTP/1.0\" 200 125 \"-\" \"Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.14 OpenSSL/1.0.1f (internal dummy connection)\"\r\n::1 - - [30/Dec/2015:19:55:21 -0800] \"OPTIONS * HTTP/1.0\" 200 125 \"-\" \"Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.14 OpenSSL/1.0.1f (internal dummy connection)\"\r\n192.168.2.1 - - [30/Dec/2015:19:55:23 -0800] \"GET /zm/api/monitors.json HTTP/1.1\" 404 2819 \"-\" \"Mozilla/5.0 (Linux; Android 5.0.1; HTC One_M8 Build/LRX22C) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Crosswalk/14.43.343.25 Mobile Safari/537.36\"\r\n192.168.2.1 - - [30/Dec/2015:19:56:00 -0800] \"POST /zm/index.php HTTP/1.1\" 200 3202 \"-\" \"Mozilla/5.0 (Linux; Android 5.0.1; HTC One_M8 Build/LRX22C) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Crosswalk/14.43.343.25 Mobile Safari/537.36\"\r\n192.168.2.1 - - [30/Dec/2015:19:56:00 -0800] \"GET /zm/ HTTP/1.1\" 200 3034 \"-\" \"Mozilla/5.0 (Linux; Android 5.0.1; HTC One_M8 Build/LRX22C) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Crosswalk/14.43.343.25 Mobile Safari/537.36\"\r\n192.168.2.1 - - [30/Dec/2015:19:56:00 -0800] \"GET /zm/api/host/getVersion.json HTTP/1.1\" 200 308 \"-\" \"Mozilla/5.0 (Linux; Android 5.0.1; HTC One_M8 Build/LRX22C) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Crosswalk/14.43.343.25 Mobile Safari/537.36\"\r\n192.168.2.1 - - [30/Dec/2015:19:56:00 -0800] \"GET /zm/api/configs/viewByName/ZM_PATH_ZMS.json HTTP/1.1\" 200 313 \"-\" \"Mozilla/5.0 (Linux; Android 5.0.1; HTC One_M8 Build/LRX22C) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Crosswalk/14.43.343.25 Mobile Safari/537.36\"\r\n192.168.2.1 - - [30/Dec/2015:19:56:00 -0800] \"GET /zm/cgi-bin/zms HTTP/1.1\" 500 804 \"-\" \"Mozilla/5.0 (Linux; Android 5.0.1; HTC One_M8 Build/LRX22C) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Crosswalk/14.43.343.25 Mobile Safari/537.36\"\r\n192.168.2.1 - - [30/Dec/2015:19:56:02 -0800] \"GET /zm/api/monitors.json HTTP/1.1\" 200 10849 \"-\" \"Mozilla/5.0 (Linux; Android 5.0.1; HTC One_M8 Build/LRX22C) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Crosswalk/14.43.343.25 Mobile Safari/537.36\"\r\n::1 - - [30/Dec/2015:19:56:10 -0800] \"OPTIONS * HTTP/1.0\" 200 125 \"-\" \"Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.14 OpenSSL/1.0.1f (internal dummy connection)\"\r\n192.168.2.167 - - [30/Dec/2015:19:59:43 -0800] \"GET /zm/ HTTP/1.1\" 200 1508 \"-\" \"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36\"\r\n192.168.2.167 - - [30/Dec/2015:19:59:43 -0800] \"GET /zm/skins/classic/js/skin.js HTTP/1.1\" 200 2529 \"http://192.168.2.200/zm/\" \"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36\"\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/29497777-zmninja-fails-to-log-in-over-open-internet?utm_campaign=plugin&utm_content=tracker%2F15704696&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F15704696&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/pliablepixels/zmNinja/issues/comments/181663541","html_url":"https://github.com/pliablepixels/zmNinja/issues/126#issuecomment-181663541","issue_url":"https://api.github.com/repos/pliablepixels/zmNinja/issues/126","id":181663541,"user":{"login":"alager","id":14002638,"avatar_url":"https://avatars.githubusercontent.com/u/14002638?v=3","gravatar_id":"","url":"https://api.github.com/users/alager","html_url":"https://github.com/alager","followers_url":"https://api.github.com/users/alager/followers","following_url":"https://api.github.com/users/alager/following{/other_user}","gists_url":"https://api.github.com/users/alager/gists{/gist_id}","starred_url":"https://api.github.com/users/alager/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alager/subscriptions","organizations_url":"https://api.github.com/users/alager/orgs","repos_url":"https://api.github.com/users/alager/repos","events_url":"https://api.github.com/users/alager/events{/privacy}","received_events_url":"https://api.github.com/users/alager/received_events","type":"User","site_admin":false},"created_at":"2016-02-09T01:42:33Z","updated_at":"2016-02-09T01:42:33Z","body":"a) correct\nb) not sure.  I don't think so.  Whenever it happens, it seems to be when I\nstart the app for the first time.\nc) no, it only happens on the first invocation, after I haven't run the app\nfor a while.  If I run the app, get it working, then exit and start again,\nit'll load right up.\n\n\nOn Mon, Feb 8, 2016 at 12:53 PM, Pliable Pixels <notifications@github.com>\nwrote:\n\n> I do feel its something with your setup. What, I don't know\n>\n> If I summarize:\n> a) If you are in LAN, you don't have this problem\n> b) If you are in WAN, this problem of failing the first time happens EVERY\n> time - irrespective of whether you are resuming the app or starting fresh\n> c) When in WAN, this happens on EVERY invocation of the app -> *not just\n> the first time you are in WAN and you launch the app*\n>\n> Is this correct? point c) is important. If its only happening the very\n> first time you move to a WAN or LAN from coming from another network, I may\n> have a theory\n>\n> I am regularly using my android phone in WAN all the time and I just can't\n> replicate this.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/pliablepixels/zmNinja/issues/126#issuecomment-181532846>\n> .\n>\n"}}