{"action":"opened","issue":{"url":"https://api.github.com/repos/mitchellh/packer/issues/2781","labels_url":"https://api.github.com/repos/mitchellh/packer/issues/2781/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/packer/issues/2781/comments","events_url":"https://api.github.com/repos/mitchellh/packer/issues/2781/events","html_url":"https://github.com/mitchellh/packer/issues/2781","id":108551800,"number":2781,"title":"Vagrant Private Boxfile generated via Packer/Atlas is 404 when accessed as logged in user","user":{"login":"thinkspill","id":822133,"avatar_url":"https://avatars.githubusercontent.com/u/822133?v=3","gravatar_id":"","url":"https://api.github.com/users/thinkspill","html_url":"https://github.com/thinkspill","followers_url":"https://api.github.com/users/thinkspill/followers","following_url":"https://api.github.com/users/thinkspill/following{/other_user}","gists_url":"https://api.github.com/users/thinkspill/gists{/gist_id}","starred_url":"https://api.github.com/users/thinkspill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thinkspill/subscriptions","organizations_url":"https://api.github.com/users/thinkspill/orgs","repos_url":"https://api.github.com/users/thinkspill/repos","events_url":"https://api.github.com/users/thinkspill/events{/privacy}","received_events_url":"https://api.github.com/users/thinkspill/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-27T18:18:16Z","updated_at":"2015-09-27T18:18:16Z","closed_at":null,"body":"I'm generating an AMI image, and passing that through to a vmware_fusion vagrant.box post-processor. This completes successfully, and the vagrant box page claims that the box is accessible and available. Using the instructions provided on the box file page to init a new project with the box result in...\r\n\r\n```\r\nAn error occurred while downloading the remote file. The error\r\nmessage, if any, is reproduced below. Please fix this error and try\r\nagain.\r\n\r\n\r\nThe requested URL returned error: 404 Not Found\r\n```\r\n\r\nWhen copy/pasting the 404'd URL into a browser, I also get the Atlas 404 page.\r\n\r\nI have verified that I am logged in via vagrant login at the console and I am logged in to the Atlas site, so the 404 is not a result of the box being private and myself not being logged in.\r\n\r\nI have run other box builds, and they did successfully download at this stage. It kind of seems like Packer/Atlas is bugged right now, but I have no way to verify that.\r\n\r\nIt's very likely that I'm just doing it wrong. Here's what my Packer config looks like:\r\n```json\r\n{\r\n  \"variables\": {\r\n    \"aws_access_key\": \"{{env `AWS_ACCESS`}}\",\r\n    \"aws_secret_key\": \"{{env `AWS_SECRET`}}\"\r\n  },\r\n  \"builders\": [\r\n    {\r\n      \"type\": \"amazon-ebs\",\r\n      \"access_key\": \"{{user `aws_access_key`}}\",\r\n      \"secret_key\": \"{{user `aws_secret_key`}}\",\r\n      \"ami_name\": \"ami_name_here {{timestamp}}\",\r\n      \"instance_type\": \"t2.medium\",\r\n      \"region\": \"us-east-1\",\r\n      \"source_ami\": \"ami-df38e6b4\",\r\n      \"user_data_file\": \"ec2-setup.sh\"\r\n    }\r\n  ],\r\n  \"provisioners\": [\r\n    {\r\n      \"type\": \"shell\",\r\n      \"execute_command\": \"echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'\",\r\n      \"script\": \"packer_scripts/setup.sh\"\r\n    },\r\n    {\r\n      \"type\": \"shell\",\r\n      \"inline\": [\r\n        \"sleep 30\",\r\n        \"cd /tmp && sudo wget https://apt.puppetlabs.com/puppetlabs-release-pc1-trusty.deb\",\r\n        \"sudo dpkg -i /tmp/puppetlabs-release-pc1-trusty.deb\",\r\n        \"sudo apt-get update && sudo apt-get upgrade -y\",\r\n        \"sudo apt-get install puppet -y\"\r\n      ]\r\n    },\r\n    {\r\n      \"type\": \"puppet-masterless\",\r\n      \"manifest_file\": \"manifests/default.pp\",\r\n      \"module_paths\": [\r\n        \"modules/\"\r\n      ]\r\n    }\r\n  ],\r\n  \"post-processors\": [\r\n    [\r\n      {\r\n        \"type\": \"atlas\",\r\n        \"artifact\": \"my/artifact\",\r\n        \"artifact_type\": \"amazon.ami\",\r\n        \"metadata\": {\r\n          \"created_at\": \"{{timestamp}}\"\r\n        }\r\n      },\r\n      {\r\n        \"type\": \"atlas\",\r\n        \"artifact\": \"my/artifact\",\r\n        \"artifact_type\": \"vagrant.box\",\r\n        \"metadata\": {\r\n          \"created_at\": \"{{timestamp}}\",\r\n          \"provider\": \"vmware_fusion\"\r\n        }\r\n      }\r\n    ]\r\n  ],\r\n  \"push\": {\r\n    \"name\": \"my/artifact\",\r\n    \"vcs\": true\r\n  }\r\n}\r\n```"}}