{"action":"created","issue":{"url":"https://api.github.com/repos/opencor/opencor/issues/1571","repository_url":"https://api.github.com/repos/opencor/opencor","labels_url":"https://api.github.com/repos/opencor/opencor/issues/1571/labels{/name}","comments_url":"https://api.github.com/repos/opencor/opencor/issues/1571/comments","events_url":"https://api.github.com/repos/opencor/opencor/issues/1571/events","html_url":"https://github.com/opencor/opencor/issues/1571","id":306289692,"number":1571,"title":"PMR support: cannot synchronise more than one file at a time","user":{"login":"agarny","id":602265,"avatar_url":"https://avatars1.githubusercontent.com/u/602265?v=4","gravatar_id":"","url":"https://api.github.com/users/agarny","html_url":"https://github.com/agarny","followers_url":"https://api.github.com/users/agarny/followers","following_url":"https://api.github.com/users/agarny/following{/other_user}","gists_url":"https://api.github.com/users/agarny/gists{/gist_id}","starred_url":"https://api.github.com/users/agarny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agarny/subscriptions","organizations_url":"https://api.github.com/users/agarny/orgs","repos_url":"https://api.github.com/users/agarny/repos","events_url":"https://api.github.com/users/agarny/events{/privacy}","received_events_url":"https://api.github.com/users/agarny/received_events","type":"User","site_admin":false},"labels":[{"id":123753113,"url":"https://api.github.com/repos/opencor/opencor/labels/Task","name":"Task","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":{"login":"dbrnz","id":239220,"avatar_url":"https://avatars2.githubusercontent.com/u/239220?v=4","gravatar_id":"","url":"https://api.github.com/users/dbrnz","html_url":"https://github.com/dbrnz","followers_url":"https://api.github.com/users/dbrnz/followers","following_url":"https://api.github.com/users/dbrnz/following{/other_user}","gists_url":"https://api.github.com/users/dbrnz/gists{/gist_id}","starred_url":"https://api.github.com/users/dbrnz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbrnz/subscriptions","organizations_url":"https://api.github.com/users/dbrnz/orgs","repos_url":"https://api.github.com/users/dbrnz/repos","events_url":"https://api.github.com/users/dbrnz/events{/privacy}","received_events_url":"https://api.github.com/users/dbrnz/received_events","type":"User","site_admin":false},"assignees":[{"login":"dbrnz","id":239220,"avatar_url":"https://avatars2.githubusercontent.com/u/239220?v=4","gravatar_id":"","url":"https://api.github.com/users/dbrnz","html_url":"https://github.com/dbrnz","followers_url":"https://api.github.com/users/dbrnz/followers","following_url":"https://api.github.com/users/dbrnz/following{/other_user}","gists_url":"https://api.github.com/users/dbrnz/gists{/gist_id}","starred_url":"https://api.github.com/users/dbrnz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbrnz/subscriptions","organizations_url":"https://api.github.com/users/dbrnz/orgs","repos_url":"https://api.github.com/users/dbrnz/repos","events_url":"https://api.github.com/users/dbrnz/events{/privacy}","received_events_url":"https://api.github.com/users/dbrnz/received_events","type":"User","site_admin":false},{"login":"agarny","id":602265,"avatar_url":"https://avatars1.githubusercontent.com/u/602265?v=4","gravatar_id":"","url":"https://api.github.com/users/agarny","html_url":"https://github.com/agarny","followers_url":"https://api.github.com/users/agarny/followers","following_url":"https://api.github.com/users/agarny/following{/other_user}","gists_url":"https://api.github.com/users/agarny/gists{/gist_id}","starred_url":"https://api.github.com/users/agarny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agarny/subscriptions","organizations_url":"https://api.github.com/users/agarny/orgs","repos_url":"https://api.github.com/users/agarny/repos","events_url":"https://api.github.com/users/agarny/events{/privacy}","received_events_url":"https://api.github.com/users/agarny/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/opencor/opencor/milestones/7","html_url":"https://github.com/opencor/opencor/milestone/7","labels_url":"https://api.github.com/repos/opencor/opencor/milestones/7/labels","id":1089255,"number":7,"title":"0.6","description":"","creator":{"login":"agarny","id":602265,"avatar_url":"https://avatars1.githubusercontent.com/u/602265?v=4","gravatar_id":"","url":"https://api.github.com/users/agarny","html_url":"https://github.com/agarny","followers_url":"https://api.github.com/users/agarny/followers","following_url":"https://api.github.com/users/agarny/following{/other_user}","gists_url":"https://api.github.com/users/agarny/gists{/gist_id}","starred_url":"https://api.github.com/users/agarny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agarny/subscriptions","organizations_url":"https://api.github.com/users/agarny/orgs","repos_url":"https://api.github.com/users/agarny/repos","events_url":"https://api.github.com/users/agarny/events{/privacy}","received_events_url":"https://api.github.com/users/agarny/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":179,"state":"open","created_at":"2015-04-29T13:38:39Z","updated_at":"2018-03-20T07:39:05Z","due_on":null,"closed_at":null},"comments":30,"created_at":"2018-03-18T22:19:19Z","updated_at":"2018-03-20T23:50:33Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"@s-fong reported this issue:\r\n- Start OpenCOR and connect to your `PMR Workspaces`;\r\n- Create a new workspace in the Staging instance of PMR;\r\n- Make a local copy of the workspace you have just created;\r\n- Add one file to the local copy of your workspace; and\r\n- Synchronise your workspace with PMR.\r\n\r\nAt this stage, if you view your workspace in PMR, you will see that it indeed contains one file.\r\n\r\nNow:\r\n- Add two files to the local copy of your workspace; and\r\n- Synchronise your workspace with PMR.\r\n\r\nHere, you would expect things to work as above, it does not. OpenCOR may either:\r\n- have its busy widget running indefinitely, forcing you to kill OpenCOR; or\r\n- get an error message that reads `request failed with status code 502`.\r\n\r\nFrom there, if you go to the command line and do `git status`, you will get something like:\r\n\r\n```\r\n$ git status\r\nOn branch master\r\nYour branch is ahead of 'origin/master' by 1 commit.\r\n  (use \"git push\" to publish your local commits)\r\n\r\nnothing to commit, working tree clean\r\n```\r\n\r\nIf you then do `git push` as suggested, then everything is fine:\r\n\r\n```\r\n$ git push\r\nCounting objects: 2, done.\r\nDelta compression using up to 8 threads.\r\nCompressing objects: 100% (2/2), done.\r\nWriting objects: 100% (2/2), 486 bytes | 486.00 KiB/s, done.\r\nTotal 2 (delta 0), reused 0 (delta 0)\r\nTo https://staging.physiomeproject.org/workspace/28b\r\n   c46ba62..a53f77c  master -> master\r\n```\r\n\r\nLooking at the OpenCOR code, the problem occurs [here](https://github.com/opencor/opencor/blob/2da70a50a9549dba9b9c577fb6f1d0f265c7d274/src/plugins/support/PMRSupport/src/pmrworkspace.cpp#L1331) when calling `git_remote_push()`. When adding one file, that call goes through fine, but when adding two files or more, that call hangs up or return the 502 error...!? @dbrnz, any idea what might be going wrong here?..."},"comment":{"url":"https://api.github.com/repos/opencor/opencor/issues/comments/374796002","html_url":"https://github.com/opencor/opencor/issues/1571#issuecomment-374796002","issue_url":"https://api.github.com/repos/opencor/opencor/issues/1571","id":374796002,"user":{"login":"agarny","id":602265,"avatar_url":"https://avatars1.githubusercontent.com/u/602265?v=4","gravatar_id":"","url":"https://api.github.com/users/agarny","html_url":"https://github.com/agarny","followers_url":"https://api.github.com/users/agarny/followers","following_url":"https://api.github.com/users/agarny/following{/other_user}","gists_url":"https://api.github.com/users/agarny/gists{/gist_id}","starred_url":"https://api.github.com/users/agarny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agarny/subscriptions","organizations_url":"https://api.github.com/users/agarny/orgs","repos_url":"https://api.github.com/users/agarny/repos","events_url":"https://api.github.com/users/agarny/events{/privacy}","received_events_url":"https://api.github.com/users/agarny/received_events","type":"User","site_admin":false},"created_at":"2018-03-20T23:50:32Z","updated_at":"2018-03-20T23:50:32Z","author_association":"CONTRIBUTOR","body":"FWIW, I have just tried the \"new\" `https` version of OpenCOR with the `staging` instance on Windows (VirtualBox machine), and it's all working fine for me. So, it looks like it's only on @s-fong's computer that things are going awry."}}
{"actor":{"display_login":"agarny"}}