{"action":"created","issue":{"url":"https://api.github.com/repos/CanonicalLtd/jujucharms.com/issues/332","repository_url":"https://api.github.com/repos/CanonicalLtd/jujucharms.com","labels_url":"https://api.github.com/repos/CanonicalLtd/jujucharms.com/issues/332/labels{/name}","comments_url":"https://api.github.com/repos/CanonicalLtd/jujucharms.com/issues/332/comments","events_url":"https://api.github.com/repos/CanonicalLtd/jujucharms.com/issues/332/events","html_url":"https://github.com/CanonicalLtd/jujucharms.com/issues/332","id":176282858,"number":332,"title":"502 when trying to attach resource to charm store","user":{"login":"johnsca","id":406082,"avatar_url":"https://avatars.githubusercontent.com/u/406082?v=3","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},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2016-09-12T02:31:41Z","updated_at":"2016-09-13T23:19:19Z","closed_at":null,"body":"This is happening consistently, so we haven't been able to get this (96 MB) resource up:\r\n\r\n```\r\n$ charm attach cs:~bigdata-dev/insightedge InsightEdgeDiff=InsightEdge-1.0.0-juju-diff.tar.gz\r\nERROR can't upload resource: cannot post resource: cannot unmarshal error response \"<!DOCTYPE HTML PUBLIC \\\"-//IETF//DTD HTML 2.0//EN\\\">\\n<html><head>\\n<title>502 Bad Gateway</title>\\n</head><body>\\n<h1>Bad Gateway</h1>\\n<p>The proxy server received an invalid\\r\\nresponse from an upstream server.<br />\\r\\n</p>\\n<hr>\\n<address>Apache/2.4.7 (Ubuntu) Server at api.jujucharms.com Port 443</address>\\n</body></html>\\n\": invalid character '<' looking for beginning of value\r\n```"},"comment":{"url":"https://api.github.com/repos/CanonicalLtd/jujucharms.com/issues/comments/246856749","html_url":"https://github.com/CanonicalLtd/jujucharms.com/issues/332#issuecomment-246856749","issue_url":"https://api.github.com/repos/CanonicalLtd/jujucharms.com/issues/332","id":246856749,"user":{"login":"johnsca","id":406082,"avatar_url":"https://avatars.githubusercontent.com/u/406082?v=3","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":"2016-09-13T23:19:19Z","updated_at":"2016-09-13T23:19:19Z","body":"Using `charm push` with `--resource`, I was able to get the resource uploaded, but `charm attach` still fails.  Also, I still can't do `charm release` because it says the resource isn't available, but I've been asked to open that as a separate bug.\r\n\r\n```\r\n$ charm attach cs:~bigdata-dev/insightedge InsightEdgeDiff=InsightEdge-1.0.0-juju-diff.tar.gz\r\nERROR can't upload resource: cannot post resource: cannot unmarshal error response \"<!DOCTYPE HTML PUBLIC \\\"-//IETF//DTD HTML 2.0//EN\\\">\\n<html><head>\\n<title>502 Bad Gateway</title>\\n</head><body>\\n<h1>Bad Gateway</h1>\\n<p>The proxy server received an invalid\\r\\nresponse from an upstream server.<br />\\r\\n</p>\\n<hr>\\n<address>Apache/2.4.7 (Ubuntu) Server at api.jujucharms.com Port 443</address>\\n</body></html>\\n\": invalid character '<' looking for beginning of value\r\n$ charm push ~/juju/envs/apache-dev/builds/insightedge cs:~bigdata-dev/insightedge --resource InsightEdgeDiff=InsightEdge-1.0.0-juju-diff.tar.gz\r\nurl: cs:~bigdata-dev/insightedge-2\r\nchannel: unpublished\r\nUploaded \"/var/tmp/InsightEdge-1.0.0-juju-diff.tar.gz\" as InsightEdgeDiff-0\r\n$ charm show cs:~bigdata-dev/insightedge-2 resources\r\nresources:\r\n- Description: The package with the InsightEdge files only\r\n  Fingerprint: lF3Zr1NDf1Xw/O/NjkhOMYTMsB4tC34PZeVHGO+TiqFKrMgaRO+HLX7qaKPUnBMa\r\n  Name: InsightEdgeDiff\r\n  Path: InsightEdge-1.0.0-juju-diff.tar.gz\r\n  Revision: 0\r\n  Size: 1.00129896e+08\r\n  Type: file\r\n$ charm release cs:~bigdata-dev/insightedge-2\r\nERROR cannot release charm or bundle: bad request: charm published with incorrect resources: resources are missing from publish request: InsightEdgeDiff\r\n```"}}
{"actor":{"display_login":"johnsca"}}