{"action":"created","issue":{"url":"https://api.github.com/repos/learningequality/ka-lite/issues/3704","labels_url":"https://api.github.com/repos/learningequality/ka-lite/issues/3704/labels{/name}","comments_url":"https://api.github.com/repos/learningequality/ka-lite/issues/3704/comments","events_url":"https://api.github.com/repos/learningequality/ka-lite/issues/3704/events","html_url":"https://github.com/learningequality/ka-lite/issues/3704","id":79631392,"number":3704,"title":"Cannot connect to server for downloading video files from current development installs","user":{"login":"EdDixon","id":4349806,"avatar_url":"https://avatars.githubusercontent.com/u/4349806?v=3","gravatar_id":"","url":"https://api.github.com/users/EdDixon","html_url":"https://github.com/EdDixon","followers_url":"https://api.github.com/users/EdDixon/followers","following_url":"https://api.github.com/users/EdDixon/following{/other_user}","gists_url":"https://api.github.com/users/EdDixon/gists{/gist_id}","starred_url":"https://api.github.com/users/EdDixon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EdDixon/subscriptions","organizations_url":"https://api.github.com/users/EdDixon/orgs","repos_url":"https://api.github.com/users/EdDixon/repos","events_url":"https://api.github.com/users/EdDixon/events{/privacy}","received_events_url":"https://api.github.com/users/EdDixon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/learningequality/ka-lite/labels/Mac","name":"Mac","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"MCGallaspy","id":8888020,"avatar_url":"https://avatars.githubusercontent.com/u/8888020?v=3","gravatar_id":"","url":"https://api.github.com/users/MCGallaspy","html_url":"https://github.com/MCGallaspy","followers_url":"https://api.github.com/users/MCGallaspy/followers","following_url":"https://api.github.com/users/MCGallaspy/following{/other_user}","gists_url":"https://api.github.com/users/MCGallaspy/gists{/gist_id}","starred_url":"https://api.github.com/users/MCGallaspy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MCGallaspy/subscriptions","organizations_url":"https://api.github.com/users/MCGallaspy/orgs","repos_url":"https://api.github.com/users/MCGallaspy/repos","events_url":"https://api.github.com/users/MCGallaspy/events{/privacy}","received_events_url":"https://api.github.com/users/MCGallaspy/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/learningequality/ka-lite/milestones/41","html_url":"https://github.com/learningequality/ka-lite/milestones/0.14.0","labels_url":"https://api.github.com/repos/learningequality/ka-lite/milestones/41/labels","id":795036,"number":41,"title":"0.14.0","description":"","creator":{"login":"aronasorman","id":191955,"avatar_url":"https://avatars.githubusercontent.com/u/191955?v=3","gravatar_id":"","url":"https://api.github.com/users/aronasorman","html_url":"https://github.com/aronasorman","followers_url":"https://api.github.com/users/aronasorman/followers","following_url":"https://api.github.com/users/aronasorman/following{/other_user}","gists_url":"https://api.github.com/users/aronasorman/gists{/gist_id}","starred_url":"https://api.github.com/users/aronasorman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aronasorman/subscriptions","organizations_url":"https://api.github.com/users/aronasorman/orgs","repos_url":"https://api.github.com/users/aronasorman/repos","events_url":"https://api.github.com/users/aronasorman/events{/privacy}","received_events_url":"https://api.github.com/users/aronasorman/received_events","type":"User","site_admin":false},"open_issues":59,"closed_issues":221,"state":"open","created_at":"2014-09-18T21:53:07Z","updated_at":"2015-06-03T12:20:42Z","due_on":"2015-07-01T07:00:00Z","closed_at":null},"comments":9,"created_at":"2015-05-22T22:14:10Z","updated_at":"2015-06-03T13:49:40Z","closed_at":null,"body":"While downloading videos from the current development installations we are not able to connect with the server in order to do so? The screen shot provided is from a MAC current in development installer installation but with no modification to the local_settings.py which was double checked to ensure there was no redirection to the video resources\r\n![2015-05-22_15-17-46](https://cloud.githubusercontent.com/assets/4349806/7780563/92601d16-009d-11e5-8801-2ee741bf62e3.png)\r\n. "},"comment":{"url":"https://api.github.com/repos/learningequality/ka-lite/issues/comments/108427444","html_url":"https://github.com/learningequality/ka-lite/issues/3704#issuecomment-108427444","issue_url":"https://api.github.com/repos/learningequality/ka-lite/issues/3704","id":108427444,"user":{"login":"cpauya","id":175580,"avatar_url":"https://avatars.githubusercontent.com/u/175580?v=3","gravatar_id":"","url":"https://api.github.com/users/cpauya","html_url":"https://github.com/cpauya","followers_url":"https://api.github.com/users/cpauya/followers","following_url":"https://api.github.com/users/cpauya/following{/other_user}","gists_url":"https://api.github.com/users/cpauya/gists{/gist_id}","starred_url":"https://api.github.com/users/cpauya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpauya/subscriptions","organizations_url":"https://api.github.com/users/cpauya/orgs","repos_url":"https://api.github.com/users/cpauya/repos","events_url":"https://api.github.com/users/cpauya/events{/privacy}","received_events_url":"https://api.github.com/users/cpauya/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T13:49:40Z","updated_at":"2015-06-03T13:49:40Z","body":"Hi @benjaoming, I noticed that any first attempt to download a video will crash the server.  The succeeding attempts to download the same video will not.  After the second attempt, it generates a Download Videos log at chronograph like this:\r\n\r\n![screenshot 2015-06-03 21 49 01](https://cloud.githubusercontent.com/assets/175580/7961475/681c5e42-0a3a-11e5-881e-17529a7ccdf7.png)\r\n\r\nPlease note that there's no log or any sort for the first attempt which crashes the server.\r\n\r\n\r\nOn the other hand, I'm not sure if this is related because this is about Secure Sync log but here's the last entry about it from Chronograph log:\r\n\r\n**Stdout:**\r\n\r\nChecking purgatory for unsaved models...\r\nPurgatory is model-free! Congrats!\r\nInitiating SyncSession...\r\nSyncing models...\r\n\r\n\r\n**Stderr:**\r\n\r\n```python\r\n'int' object is not callable\r\n\r\nTraceback (most recent call last):\r\n\r\nFile \"/Applications/KA-Lite Monitor.app/Contents/Resources/ka-lite/python-packages/fle_utils/chronograph/models.py\", line 209, in run_management_command\r\ncall_command(self.command, *args, **options)\r\n\r\nFile \"/Applications/KA-Lite Monitor.app/Contents/Resources/ka-lite/python-packages/django/core/management/__init__.py\", line 161, in call_command\r\nreturn klass.execute(*args, **defaults)\r\n\r\nFile \"/Applications/KA-Lite Monitor.app/Contents/Resources/ka-lite/python-packages/django/core/management/base.py\", line 263, in execute\r\noutput = self.handle(*args, **options)\r\n\r\nFile \"/Applications/KA-Lite Monitor.app/Contents/Resources/ka-lite/python-packages/securesync/management/commands/syncmodels.py\", line 62, in handle\r\nresults = client.sync_models()\r\n\r\nFile \"/Applications/KA-Lite Monitor.app/Contents/Resources/ka-lite/python-packages/securesync/engine/api_client.py\", line 251, in sync_models\r\ncounters_to_download, counters_to_upload = self.sync_device_records()\r\n\r\nFile \"/Applications/KA-Lite Monitor.app/Contents/Resources/ka-lite/python-packages/securesync/engine/api_client.py\", line 162, in sync_device_records\r\nclient_counters = self.get_client_device_counters()\r\n\r\nFile \"/Applications/KA-Lite Monitor.app/Contents/Resources/ka-lite/python-packages/securesync/engine/api_client.py\", line 154, in get_client_device_counters\r\nreturn get_device_counters(zone=self.session.client_device.get_zone())\r\n\r\nFile \"/Applications/KA-Lite Monitor.app/Contents/Resources/ka-lite/python-packages/securesync/engine/utils.py\", line 71, in get_device_counters\r\ndevice_counters[device.id] += cnt()\r\n\r\nTypeError: 'int' object is not callable\r\n```"}}