{"action":"created","issue":{"url":"https://api.github.com/repos/VUIIS/dax/issues/25","labels_url":"https://api.github.com/repos/VUIIS/dax/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/VUIIS/dax/issues/25/comments","events_url":"https://api.github.com/repos/VUIIS/dax/issues/25/events","html_url":"https://github.com/VUIIS/dax/issues/25","id":116812948,"number":25,"title":"Xnatmirror not working? Or am I doing it wrong?","user":{"login":"elijahrockers","id":4959630,"avatar_url":"https://avatars.githubusercontent.com/u/4959630?v=3","gravatar_id":"","url":"https://api.github.com/users/elijahrockers","html_url":"https://github.com/elijahrockers","followers_url":"https://api.github.com/users/elijahrockers/followers","following_url":"https://api.github.com/users/elijahrockers/following{/other_user}","gists_url":"https://api.github.com/users/elijahrockers/gists{/gist_id}","starred_url":"https://api.github.com/users/elijahrockers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elijahrockers/subscriptions","organizations_url":"https://api.github.com/users/elijahrockers/orgs","repos_url":"https://api.github.com/users/elijahrockers/repos","events_url":"https://api.github.com/users/elijahrockers/events{/privacy}","received_events_url":"https://api.github.com/users/elijahrockers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-13T17:30:41Z","updated_at":"2015-11-13T17:42:16Z","closed_at":null,"body":"elijah@picasso:~$ bash xnatmirror_env.sh \r\nSrc XNAT Host:\thttp://10.42.40.32\r\nSrc XNAT Proj:\ttest_project\r\nDest XNAT Host:\thttp://10.80.32.72\r\nDest XNAT User:\troot\r\nDest XNAT Proj:\ttest_project\r\n\r\n\r\nTime:  2015-11-13 11:26:35.087058 ========================================================\r\nGetting projects...\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/Xnatmirror\", line 4, in <module>\r\n    __import__('pkg_resources').run_script('dax==0.3.1', 'Xnatmirror')\r\n  File \"/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py\", line 735, in run_script\r\n    self.require(requires)[0].run_script(script_name, ns)\r\n  File \"/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py\", line 1659, in run_script\r\n    exec(script_code, namespace, namespace)\r\n  File \"/usr/local/lib/python2.7/dist-packages/dax-0.3.1-py2.7.egg/EGG-INFO/scripts/Xnatmirror\", line 295, in <module>\r\n    \r\n  File \"/usr/lib/python2.7/dist-packages/pyxnat/core/resources.py\", line 369, in create\r\n    output = self._intf._exec(create_uri, 'PUT')\r\n  File \"/usr/lib/python2.7/dist-packages/pyxnat/core/interfaces.py\", line 380, in _exec\r\n    catch_error(content)\r\n  File \"/usr/lib/python2.7/dist-packages/pyxnat/core/errors.py\", line 69, in catch_error\r\n    raise DatabaseError(error)\r\npyxnat.core.errors.DatabaseError: Apache Tomcat/7.0.62\r\n"},"comment":{"url":"https://api.github.com/repos/VUIIS/dax/issues/comments/156497898","html_url":"https://github.com/VUIIS/dax/issues/25#issuecomment-156497898","issue_url":"https://api.github.com/repos/VUIIS/dax/issues/25","id":156497898,"user":{"login":"byvernault","id":3945463,"avatar_url":"https://avatars.githubusercontent.com/u/3945463?v=3","gravatar_id":"","url":"https://api.github.com/users/byvernault","html_url":"https://github.com/byvernault","followers_url":"https://api.github.com/users/byvernault/followers","following_url":"https://api.github.com/users/byvernault/following{/other_user}","gists_url":"https://api.github.com/users/byvernault/gists{/gist_id}","starred_url":"https://api.github.com/users/byvernault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/byvernault/subscriptions","organizations_url":"https://api.github.com/users/byvernault/orgs","repos_url":"https://api.github.com/users/byvernault/repos","events_url":"https://api.github.com/users/byvernault/events{/privacy}","received_events_url":"https://api.github.com/users/byvernault/received_events","type":"User","site_admin":false},"created_at":"2015-11-13T17:42:16Z","updated_at":"2015-11-13T17:42:16Z","body":"Hi,\n\nSo if I understand well, you have one XNAT instance with the Host\n10.42.40.32 and an other one at 10.80.32.72.\n\nThe error you have from PyXnat doesn't provide much information on the\nissue. Most of the time it's an issue that arrises because the logins you\ngive to the Pyxnat.interface are not right. The connection to your XNAT can\nnot be established. I will bet that it's the connection to the first XNAT\n10.42.40.32.\n\nCould you check what are the values of your environment variables\nSRC_XNAT_HOST / SRC_XNAT_USER and SRC_XNAT_PASS?\nYou need to be sure you can log with those logins to your XNAT source\ninstance.\n\nTry to do the same with DEST_XNAT_HOST / DEST_XNAT_USER and DEST_XNAT_PASS.\nI see that the XNAT USER for your second XNAT is root. Is there a user\ncalled root on the XNAT destination instance?\n\nLet us know how it goes.\n\nBest,\n\nBen\n\nOn Fri, Nov 13, 2015 at 5:30 PM, elijahrockers <notifications@github.com>\nwrote:\n\n> elijah@picasso:~$ bash xnatmirror_env.sh\n> Src XNAT Host: http://10.42.40.32\n> Src XNAT Proj: test_project\n> Dest XNAT Host: http://10.80.32.72\n> Dest XNAT User: root\n> Dest XNAT Proj: test_project\n>\n> Time: 2015-11-13 11:26:35.087058\n> ========================================================\n> Getting projects...\n> Traceback (most recent call last):\n> File \"/usr/local/bin/Xnatmirror\", line 4, in\n> *import*('pkg_resources').run_script('dax==0.3.1', 'Xnatmirror')\n> File \"/usr/local/lib/python2.7/dist-packages/pkg_resources/*init*.py\",\n> line 735, in run_script\n> self.require(requires)[0].run_script(script_name, ns)\n> File \"/usr/local/lib/python2.7/dist-packages/pkg_resources/*init*.py\",\n> line 1659, in run_script\n> exec(script_code, namespace, namespace)\n> File\n> \"/usr/local/lib/python2.7/dist-packages/dax-0.3.1-py2.7.egg/EGG-INFO/scripts/Xnatmirror\",\n> line 295, in\n>\n> File \"/usr/lib/python2.7/dist-packages/pyxnat/core/resources.py\", line\n> 369, in create\n> output = self._intf._exec(create_uri, 'PUT')\n> File \"/usr/lib/python2.7/dist-packages/pyxnat/core/interfaces.py\", line\n> 380, in _exec\n> catch_error(content)\n> File \"/usr/lib/python2.7/dist-packages/pyxnat/core/errors.py\", line 69, in\n> catch_error\n> raise DatabaseError(error)\n> pyxnat.core.errors.DatabaseError: Apache Tomcat/7.0.62\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/VUIIS/dax/issues/25>.\n>\n"}}