{"action":"created","issue":{"url":"https://api.github.com/repos/mitchellh/packer/issues/3549","repository_url":"https://api.github.com/repos/mitchellh/packer","labels_url":"https://api.github.com/repos/mitchellh/packer/issues/3549/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/packer/issues/3549/comments","events_url":"https://api.github.com/repos/mitchellh/packer/issues/3549/events","html_url":"https://github.com/mitchellh/packer/issues/3549","id":155484979,"number":3549,"title":"\"Bad script... no such file or directory\" for scripts that seem to clearly be present","user":{"login":"austinbutler","id":354741,"avatar_url":"https://avatars.githubusercontent.com/u/354741?v=3","gravatar_id":"","url":"https://api.github.com/users/austinbutler","html_url":"https://github.com/austinbutler","followers_url":"https://api.github.com/users/austinbutler/followers","following_url":"https://api.github.com/users/austinbutler/following{/other_user}","gists_url":"https://api.github.com/users/austinbutler/gists{/gist_id}","starred_url":"https://api.github.com/users/austinbutler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/austinbutler/subscriptions","organizations_url":"https://api.github.com/users/austinbutler/orgs","repos_url":"https://api.github.com/users/austinbutler/repos","events_url":"https://api.github.com/users/austinbutler/events{/privacy}","received_events_url":"https://api.github.com/users/austinbutler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-18T12:07:27Z","updated_at":"2016-05-18T12:24:50Z","closed_at":null,"body":"This seems like it should be a simple thing, but I am completely stumped. So I am using [this project](https://github.com/kaorimatz/packer-templates) as a base to start from for my own local development. Unchanged, it works great. But I added my own scripts, and after that when running a validate or build I get the following:\r\n\r\n```\r\npacker-io build archlinux-x86_64.json\r\nvirtualbox-iso output will be in this color.\r\n\r\n1 error(s) occurred:\r\n\r\n* Bad script 'scripts/archlinux/pacman.sh': stat scripts/archlinux/pacman.sh: no such file or directory\r\n```\r\n\r\nI am pretty certain the file is there, though. And it seems to have the exact same permissions as the other files in the same folder that Packer has no problems with. When I remove the script from the template, everything builds fine.\r\n\r\n```\r\nls -lah scripts/archlinux\r\ntotal 24K\r\ndrwxr-xr-x 1 austin austin  154 May 18 02:41 .\r\ndrwxr-xr-x 1 austin austin  188 May 18 02:41 ..\r\n-rw-r--r-- 1 austin austin   51 May 18 04:22 cleanup.sh\r\n-rw-r--r-- 1 austin austin  943 May 18 03:02 packages-gui.sh\r\n-rw-r--r-- 1 austin austin 1.2K May 18 04:24 pacman.sh\r\n-rw-r--r-- 1 austin austin  157 May 18 02:41 virtualbox-cli.sh\r\n-rw-r--r-- 1 austin austin  153 May 18 02:41 virtualbox-gui.sh\r\n```\r\n\r\nI even put a test into the template using shell-local, which can stat the same file without issue:\r\n`File: 'scripts/archlinux/pacman.sh' Size: 1193 Blocks: 8 IO Block: 4096 regular file Device: 21h/33d Inode: 5457306 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 1000/ austin) Gid: ( 1000/ austin) Access: 2016-05-18 02:41:06.982259880 -0700 Modify: 2016-05-18 02:41:06.982259880 -0700 Change: 2016-05-18 02:41:06.982259880 -0700 Birth: -`\r\n\r\nI can also copy and paste from the error message and do a stat without issue:\r\n```\r\nstat scripts/archlinux/pacman.sh\r\n  File: 'scripts/archlinux/pacman.sh'\r\n  Size: 1193      \tBlocks: 8          IO Block: 4096   regular file\r\nDevice: 21h/33d\tInode: 5457306     Links: 1\r\nAccess: (0644/-rw-r--r--)  Uid: ( 1000/  austin)   Gid: ( 1000/  austin)\r\nAccess: 2016-05-18 02:41:06.982259880 -0700\r\nModify: 2016-05-18 04:24:26.913507578 -0700\r\nChange: 2016-05-18 04:24:26.913507578 -0700\r\n Birth: -\r\n```\r\n\r\nThinking it was maybe something with my setup on this computer, I cloned my repo to another computer, installed Packer, then tried a build, but the same error for the same file occurs. I tried adding my own other scripts, too, with different names and I just end up with more of the same errors. What's weird is how all of the scripts I didn't add never are an issue. At this point I am guessing it's a bug, or I am somehow missing something incredibly obvious.\r\n\r\n- Packer v0.10.1\r\n- Arch Linux\r\n- Debug log: https://gist.github.com/austinbutler/114854ef567622a7b0e76e22304d0e25\r\n- Template: https://gist.github.com/austinbutler/29cbb85e11798f90a6587a429a808ae2\r\n- Script: https://gist.github.com/austinbutler/70f04c29e9670bbd7e6d1ea6a4f62b87"},"comment":{"url":"https://api.github.com/repos/mitchellh/packer/issues/comments/220010287","html_url":"https://github.com/mitchellh/packer/issues/3549#issuecomment-220010287","issue_url":"https://api.github.com/repos/mitchellh/packer/issues/3549","id":220010287,"user":{"login":"rickard-von-essen","id":557699,"avatar_url":"https://avatars.githubusercontent.com/u/557699?v=3","gravatar_id":"","url":"https://api.github.com/users/rickard-von-essen","html_url":"https://github.com/rickard-von-essen","followers_url":"https://api.github.com/users/rickard-von-essen/followers","following_url":"https://api.github.com/users/rickard-von-essen/following{/other_user}","gists_url":"https://api.github.com/users/rickard-von-essen/gists{/gist_id}","starred_url":"https://api.github.com/users/rickard-von-essen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickard-von-essen/subscriptions","organizations_url":"https://api.github.com/users/rickard-von-essen/orgs","repos_url":"https://api.github.com/users/rickard-von-essen/repos","events_url":"https://api.github.com/users/rickard-von-essen/events{/privacy}","received_events_url":"https://api.github.com/users/rickard-von-essen/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T12:24:50Z","updated_at":"2016-05-18T12:24:50Z","body":"Could you publish you git repo where you have this problem."}}