{"action":"created","issue":{"url":"https://api.github.com/repos/puppetlabs/r10k/issues/533","labels_url":"https://api.github.com/repos/puppetlabs/r10k/issues/533/labels{/name}","comments_url":"https://api.github.com/repos/puppetlabs/r10k/issues/533/comments","events_url":"https://api.github.com/repos/puppetlabs/r10k/issues/533/events","html_url":"https://github.com/puppetlabs/r10k/issues/533","id":115389897,"number":533,"title":"wrong argument type nil (expected String) --> until I delete environment folders.","user":{"login":"brettswift","id":723989,"avatar_url":"https://avatars.githubusercontent.com/u/723989?v=3","gravatar_id":"","url":"https://api.github.com/users/brettswift","html_url":"https://github.com/brettswift","followers_url":"https://api.github.com/users/brettswift/followers","following_url":"https://api.github.com/users/brettswift/following{/other_user}","gists_url":"https://api.github.com/users/brettswift/gists{/gist_id}","starred_url":"https://api.github.com/users/brettswift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettswift/subscriptions","organizations_url":"https://api.github.com/users/brettswift/orgs","repos_url":"https://api.github.com/users/brettswift/repos","events_url":"https://api.github.com/users/brettswift/events{/privacy}","received_events_url":"https://api.github.com/users/brettswift/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-05T22:29:24Z","updated_at":"2015-11-06T23:10:04Z","closed_at":null,"body":"I'm getting this error when running `r10k deploy environment -pvt`\r\n\r\nError:   https://gist.github.com/brettswift/9c0cdc45e0f55bf662d6\r\n\r\nThis gives me an exit code of 1, which causes our cronjob to report a failure to our hipchat room. (ugh!)  yes cron.. still.\r\n\r\nThis is the resulting permissions of those folders:\r\n``` bash\r\n[root@devcorepptl920 ~]# cd /etc/puppetlabs/code\r\n[root@devcorepptl920 code]# ll\r\ntotal 16\r\ndrwxrwxr-x  9 pe-puppet pe-puppet 4096 Nov  5 15:15 environments\r\n-rw-r--r--  1 peadmin   peadmin    576 Nov  5 08:11 hiera.yaml\r\ndrwxr-xr-x 10 root      root      4096 Nov  5 07:36 hostdata\r\ndrwxr-xr-x  2 root      root      4096 Oct  6 18:27 modules\r\n[root@devcorepptl920 code]# ll environments/\r\ntotal 28\r\ndrwxr-xr-x 11 root root 4096 Nov  5 07:36 develop\r\ndrwxr-xr-x 10 root root 4096 Nov  5 07:38 feature_iptables_to_firewall\r\ndrwxr-xr-x 10 root root 4096 Nov  5 07:38 feature_multi_tenancy\r\ndrwxr-xr-x 12 root root 4096 Nov  5 07:38 feature_new_2015\r\ndrwxr-xr-x 10 root root 4096 Nov  5 07:38 feature_puppet_enc\r\ndrwxr-xr-x 11 root root 4096 Nov  5 07:38 nomerge_cutover\r\ndrwxr-xr-x 11 root root 4096 Nov  5 07:39 test\r\n[root@devcorepptl920 code]# ll hostdata/\r\ntotal 32\r\ndrwxr-xr-x 4 root root 4096 Nov  5 07:36 feature_oeb_nc_version\r\ndrwxr-xr-x 4 root root 4096 Nov  5 07:36 feature_test_puppet_db_dashboard\r\ndrwxr-xr-x 4 root root 4096 Nov  5 07:36 hotfix_devcoreappw002_access\r\ndrwxr-xr-x 4 root root 4096 Nov  5 07:36 hotfix_m35_access_request\r\ndrwxr-xr-x 4 root root 4096 Nov  5 07:36 hotfix_matrix021OE\r\ndrwxr-xr-x 4 root root 4096 Nov  5 07:36 hotfix_matrix026OE\r\ndrwxr-xr-x 4 root root 4096 Nov  5 07:36 hotfix_matrix037\r\ndrwxr-xr-x 4 root root 4096 Nov  5 07:36 live\r\n```\r\n\r\nThe modules seem to all be filled out. \r\n\r\n\r\nOne thing to note:  our \"hostdata\" repository is just a hiera tier, and has no puppetfile, however I still get this error without the -p option. \r\n\r\nr10k.yaml: \r\n\r\n```\r\n[root@devcorepptl920 code]# cat /etc/puppetlabs/r10k/r10k.yaml\r\n---\r\ncachedir: /opt/puppetlabs/server/data/puppetserver/r10k\r\nsources:\r\n  hostdata:\r\n    basedir: /etc/puppetlabs/code/hostdata\r\n    prefix: false\r\n    remote: ssh://git@stash.sjrb.ad:7999/codo/hostdata.git\r\n  puppet:\r\n    basedir: /etc/puppetlabs/code/environments\r\n    prefix: false\r\n    remote: ssh://git@stash.sjrb.ad:7999/~bswift/puppetconfig.git\r\n\r\n\r\ngit:\r\n    private_key: /root/.ssh/r10k/id_rsa\r\n    provider: rugged\r\n```\r\n\r\n```\r\n[root@devcorepptl920 code]# puppet --version\r\n4.2.2\r\n[root@devcorepptl920 code]# r10k version\r\nr10k 2.0.3\r\n```\r\n\r\nIf I delete the hostdata contents (/etc/puppetlabs/code/hostdata),   r10k works. \r\n\r\nStrange?! \r\n\r\nThat repo is just this below.   Gemfile, Rakefile, and host folder filled with  .yaml files. \r\n```\r\n[root@devcorepptl920 code]# ll hostdata/live/\r\ntotal 24\r\n-rw-r--r-- 1 root root   269 Nov  5 15:26 Gemfile\r\ndrwxr-xr-x 2 root root 16384 Nov  5 15:26 host\r\n-rw-r--r-- 1 root root   147 Nov  5 15:26 Rakefile\r\n```\r\n\r\n\r\nAny idea what is going on here? "},"comment":{"url":"https://api.github.com/repos/puppetlabs/r10k/issues/comments/154571857","html_url":"https://github.com/puppetlabs/r10k/issues/533#issuecomment-154571857","issue_url":"https://api.github.com/repos/puppetlabs/r10k/issues/533","id":154571857,"user":{"login":"adrienthebo","id":172194,"avatar_url":"https://avatars.githubusercontent.com/u/172194?v=3","gravatar_id":"","url":"https://api.github.com/users/adrienthebo","html_url":"https://github.com/adrienthebo","followers_url":"https://api.github.com/users/adrienthebo/followers","following_url":"https://api.github.com/users/adrienthebo/following{/other_user}","gists_url":"https://api.github.com/users/adrienthebo/gists{/gist_id}","starred_url":"https://api.github.com/users/adrienthebo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrienthebo/subscriptions","organizations_url":"https://api.github.com/users/adrienthebo/orgs","repos_url":"https://api.github.com/users/adrienthebo/repos","events_url":"https://api.github.com/users/adrienthebo/events{/privacy}","received_events_url":"https://api.github.com/users/adrienthebo/received_events","type":"User","site_admin":false},"created_at":"2015-11-06T23:10:04Z","updated_at":"2015-11-06T23:10:04Z","body":"This looks likehttps://tickets.puppetlabs.com/browse/RK-175 which was fixed in r10k 2.1.0, try upgrading to have version and see if the error recurs."}}