{"action":"created","issue":{"url":"https://api.github.com/repos/juju/charm-tools/issues/327","repository_url":"https://api.github.com/repos/juju/charm-tools","labels_url":"https://api.github.com/repos/juju/charm-tools/issues/327/labels{/name}","comments_url":"https://api.github.com/repos/juju/charm-tools/issues/327/comments","events_url":"https://api.github.com/repos/juju/charm-tools/issues/327/events","html_url":"https://github.com/juju/charm-tools/issues/327","id":239853206,"number":327,"title":"charm create from snap fails: OSError: [Errno 2] No such file or directory: '/tmp/tmpOx6ca0'","user":{"login":"dannf","id":2072165,"avatar_url":"https://avatars3.githubusercontent.com/u/2072165?v=4","gravatar_id":"","url":"https://api.github.com/users/dannf","html_url":"https://github.com/dannf","followers_url":"https://api.github.com/users/dannf/followers","following_url":"https://api.github.com/users/dannf/following{/other_user}","gists_url":"https://api.github.com/users/dannf/gists{/gist_id}","starred_url":"https://api.github.com/users/dannf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dannf/subscriptions","organizations_url":"https://api.github.com/users/dannf/orgs","repos_url":"https://api.github.com/users/dannf/repos","events_url":"https://api.github.com/users/dannf/events{/privacy}","received_events_url":"https://api.github.com/users/dannf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-06-30T18:17:49Z","updated_at":"2017-09-25T17:51:38Z","closed_at":null,"author_association":"NONE","body":"## Checklist\r\n\r\n - [X] Confirmed this is an issue with charm-tools, not charmstore-client\r\n - [X] Provide versions of tools used\r\n - [X] Described the feature or ways to replicate the issue\r\n\r\n## What version am I running?\r\n\r\nI ran the following command: `charm version` and got the following ouput:\r\n\r\n```\r\n$ charm version\r\ncharm 2.2.2\r\ncharm-tools 2.2.1\r\n```\r\n\r\nI am using: Debian GNU/Linux\r\n\r\n## Issue/Feature\r\ncharm create fails.\r\n### I expect/expected the following\r\nNo crash.\r\n\r\n### What I got\r\n```\r\n$ charm create java-browser\r\nINFO: Using default charm template (reactive-python). To select a different template, use the -t option.\r\nINFO: Generating charm for java-browser in ./java-browser\r\nINFO: No java-browser in apt cache; creating an empty charm instead.\r\nCloning into '/tmp/tmpOx6ca0'...\r\nfatal: Unable to find remote helper for 'https'\r\nTraceback (most recent call last):\r\n  File \"/snap/charm/15/bin/charm-create\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/snap/charm/15/lib/python2.7/site-packages/charmtools/create.py\", line 98, in main\r\n    generator.create_charm()\r\n  File \"/snap/charm/15/lib/python2.7/site-packages/charmtools/generators/generator.py\", line 77, in create_charm\r\n    self._cleanup(tempdir)\r\n  File \"/snap/charm/15/lib/python2.7/site-packages/charmtools/generators/generator.py\", line 127, in _cleanup\r\n    shutil.rmtree(tempdir)\r\n  File \"/snap/charm/15/usr/lib/python2.7/shutil.py\", line 239, in rmtree\r\n    onerror(os.listdir, path, sys.exc_info())\r\n  File \"/snap/charm/15/usr/lib/python2.7/shutil.py\", line 237, in rmtree\r\n    names = os.listdir(path)\r\nOSError: [Errno 2] No such file or directory: '/tmp/tmpOx6ca0'\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/juju/charm-tools/issues/comments/331960452","html_url":"https://github.com/juju/charm-tools/issues/327#issuecomment-331960452","issue_url":"https://api.github.com/repos/juju/charm-tools/issues/327","id":331960452,"user":{"login":"johnsca","id":406082,"avatar_url":"https://avatars3.githubusercontent.com/u/406082?v=4","gravatar_id":"","url":"https://api.github.com/users/johnsca","html_url":"https://github.com/johnsca","followers_url":"https://api.github.com/users/johnsca/followers","following_url":"https://api.github.com/users/johnsca/following{/other_user}","gists_url":"https://api.github.com/users/johnsca/gists{/gist_id}","starred_url":"https://api.github.com/users/johnsca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnsca/subscriptions","organizations_url":"https://api.github.com/users/johnsca/orgs","repos_url":"https://api.github.com/users/johnsca/repos","events_url":"https://api.github.com/users/johnsca/events{/privacy}","received_events_url":"https://api.github.com/users/johnsca/received_events","type":"User","site_admin":false},"created_at":"2017-09-25T17:51:38Z","updated_at":"2017-09-25T17:51:38Z","author_association":"MEMBER","body":"I'm not able to reproduce this, but in both cases it seems to have failed to download the template and then blown up in the cleanup code.  We definitely need to fix the cleanup code and should ensure that template fetch errors are reported better with more useful debugging info."}}
{"actor":{"display_login":"johnsca"}}