{"action":"created","issue":{"url":"https://api.github.com/repos/capistrano-plugins/capistrano-faster-assets/issues/9","labels_url":"https://api.github.com/repos/capistrano-plugins/capistrano-faster-assets/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/capistrano-plugins/capistrano-faster-assets/issues/9/comments","events_url":"https://api.github.com/repos/capistrano-plugins/capistrano-faster-assets/issues/9/events","html_url":"https://github.com/capistrano-plugins/capistrano-faster-assets/issues/9","id":87096770,"number":9,"title":"When using RVM, with a .rvmrc file, the backup manifest breaks.","user":{"login":"TJM","id":1641316,"avatar_url":"https://avatars.githubusercontent.com/u/1641316?v=3","gravatar_id":"","url":"https://api.github.com/users/TJM","html_url":"https://github.com/TJM","followers_url":"https://api.github.com/users/TJM/followers","following_url":"https://api.github.com/users/TJM/following{/other_user}","gists_url":"https://api.github.com/users/TJM/gists{/gist_id}","starred_url":"https://api.github.com/users/TJM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TJM/subscriptions","organizations_url":"https://api.github.com/users/TJM/orgs","repos_url":"https://api.github.com/users/TJM/repos","events_url":"https://api.github.com/users/TJM/events{/privacy}","received_events_url":"https://api.github.com/users/TJM/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-10T20:29:50Z","updated_at":"2015-06-11T23:59:23Z","closed_at":null,"body":"Our server is using RVM, and we are using a .rvmrc (because it is still the best place to put `export RAILS_ENV=staging` that I have found). This obnoxious message comes up on a newly provisioned server, and breaks the `deploy:assets:backup_manifest` task.\r\n\r\nEasy workaround: `rvm rvmrc warning ignore all.rvmrcs` \r\n\r\n```\r\n INFO [224cd57f] Running /usr/bin/env cp You are using '.rvmrc', it requires trusting, it is slower and it is not compatible with other ruby managers,\r\nyou can switch to '.ruby-version' using 'rvm rvmrc to ruby-version'\r\nor ignore this warning with 'rvm rvmrc warning ignore /web/railsapp/staging/.rvmrc',\r\n'.rvmrc' will continue to be the default project file in RVM 1 and RVM 2,\r\nto ignore the warning for all files run 'rvm rvmrc warning ignore all.rvmrcs'.\r\n\r\n/web/railsapp/staging/releases/20150610202127/public/assets/.sprockets-manifest-fd7e2ccc959215614bf6fc35b33e3f3a.json /web/railsapp/staging/releases/20150610202127/assets_manifest_backup on stage.example.com\r\nDEBUG [224cd57f] Command: cd /web/railsapp/staging/releases/20150610202127 && /usr/bin/env cp You are using '.rvmrc', it requires trusting, it is slower and it is not compatible with other ruby managers,\r\nyou can switch to '.ruby-version' using 'rvm rvmrc to ruby-version'\r\nor ignore this warning with 'rvm rvmrc warning ignore /web/railsapp/staging/.rvmrc',\r\n'.rvmrc' will continue to be the default project file in RVM 1 and RVM 2,\r\nto ignore the warning for all files run 'rvm rvmrc warning ignore all.rvmrcs'.\r\n\r\n/web/railsapp/staging/releases/20150610202127/public/assets/.sprockets-manifest-fd7e2ccc959215614bf6fc35b33e3f3a.json /web/railsapp/staging/releases/20150610202127/assets_manifest_backup\r\nDEBUG [224cd57f] \tYou are using '.rvmrc', it requires trusting, it is slower and it is not compatible with other ruby managers,\r\nDEBUG [224cd57f] \tyou can switch to '.ruby-version' using 'rvm rvmrc to ruby-version'\r\nDEBUG [224cd57f] \tor ignore this warning with 'rvm rvmrc warning ignore /web/railsapp/staging/.rvmrc',\r\nDEBUG [224cd57f] \t'.rvmrc' will continue to be the default project file in RVM 1 and RVM 2,\r\nDEBUG [224cd57f] \tto ignore the warning for all files run 'rvm rvmrc warning ignore all.rvmrcs'.\r\nDEBUG [224cd57f] \t\r\nDEBUG [224cd57f] \tcp: target ‘managers,\\r’ is not a directory\r\nDEBUG [224cd57f] \tbash: line 1: you: command not found\r\nDEBUG [224cd57f] \tbash: line 2: or: command not found\r\nDEBUG [224cd57f] \tbash: line 3: .rvmrc: command not found\r\nDEBUG [224cd57f] \tbash: line 4: to: command not found\r\n(Backtrace restricted to imported tasks)\r\ncap aborted!\r\nSSHKit::Command::Failed: cp exit status: 126\r\ncp stdout: Nothing written\r\ncp stderr: Nothing written\r\n\r\nTasks: TOP => deploy:assets:backup_manifest\r\n(See full trace by running task with --trace)\r\nThe deploy has failed with an error: cp exit status: 126\r\ncp stdout: Nothing written\r\ncp stderr: Nothing written\r\n\r\n``` INFO [224cd57f] Running /usr/bin/env cp You are using '.rvmrc', it requires trusting, it is slower and it is not compatible with other ruby managers,\r\nyou can switch to '.ruby-version' using 'rvm rvmrc to ruby-version'\r\nor ignore this warning with 'rvm rvmrc warning ignore /web/railsapp/staging/.rvmrc',\r\n'.rvmrc' will continue to be the default project file in RVM 1 and RVM 2,\r\nto ignore the warning for all files run 'rvm rvmrc warning ignore all.rvmrcs'.\r\n\r\n/web/railsapp/staging/releases/20150610202127/public/assets/.sprockets-manifest-fd7e2ccc959215614bf6fc35b33e3f3a.json /web/railsapp/staging/releases/20150610202127/assets_manifest_backup on stage.example.com\r\nDEBUG [224cd57f] Command: cd /web/railsapp/staging/releases/20150610202127 && /usr/bin/env cp You are using '.rvmrc', it requires trusting, it is slower and it is not compatible with other ruby managers,\r\nyou can switch to '.ruby-version' using 'rvm rvmrc to ruby-version'\r\nor ignore this warning with 'rvm rvmrc warning ignore /web/railsapp/staging/.rvmrc',\r\n'.rvmrc' will continue to be the default project file in RVM 1 and RVM 2,\r\nto ignore the warning for all files run 'rvm rvmrc warning ignore all.rvmrcs'.\r\n\r\n/web/railsapp/staging/releases/20150610202127/public/assets/.sprockets-manifest-fd7e2ccc959215614bf6fc35b33e3f3a.json /web/railsapp/staging/releases/20150610202127/assets_manifest_backup\r\nDEBUG [224cd57f] \tYou are using '.rvmrc', it requires trusting, it is slower and it is not compatible with other ruby managers,\r\nDEBUG [224cd57f] \tyou can switch to '.ruby-version' using 'rvm rvmrc to ruby-version'\r\nDEBUG [224cd57f] \tor ignore this warning with 'rvm rvmrc warning ignore /web/railsapp/staging/.rvmrc',\r\nDEBUG [224cd57f] \t'.rvmrc' will continue to be the default project file in RVM 1 and RVM 2,\r\nDEBUG [224cd57f] \tto ignore the warning for all files run 'rvm rvmrc warning ignore all.rvmrcs'.\r\nDEBUG [224cd57f] \t\r\nDEBUG [224cd57f] \tcp: target ‘managers,\\r’ is not a directory\r\nDEBUG [224cd57f] \tbash: line 1: you: command not found\r\nDEBUG [224cd57f] \tbash: line 2: or: command not found\r\nDEBUG [224cd57f] \tbash: line 3: .rvmrc: command not found\r\nDEBUG [224cd57f] \tbash: line 4: to: command not found\r\n(Backtrace restricted to imported tasks)\r\ncap aborted!\r\nSSHKit::Command::Failed: cp exit status: 126\r\ncp stdout: Nothing written\r\ncp stderr: Nothing written\r\n\r\nTasks: TOP => deploy:assets:backup_manifest\r\n(See full trace by running task with --trace)\r\nThe deploy has failed with an error: cp exit status: 126\r\ncp stdout: Nothing written\r\ncp stderr: Nothing written\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/capistrano-plugins/capistrano-faster-assets/issues/comments/111309400","html_url":"https://github.com/capistrano-plugins/capistrano-faster-assets/issues/9#issuecomment-111309400","issue_url":"https://api.github.com/repos/capistrano-plugins/capistrano-faster-assets/issues/9","id":111309400,"user":{"login":"TJM","id":1641316,"avatar_url":"https://avatars.githubusercontent.com/u/1641316?v=3","gravatar_id":"","url":"https://api.github.com/users/TJM","html_url":"https://github.com/TJM","followers_url":"https://api.github.com/users/TJM/followers","following_url":"https://api.github.com/users/TJM/following{/other_user}","gists_url":"https://api.github.com/users/TJM/gists{/gist_id}","starred_url":"https://api.github.com/users/TJM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TJM/subscriptions","organizations_url":"https://api.github.com/users/TJM/orgs","repos_url":"https://api.github.com/users/TJM/repos","events_url":"https://api.github.com/users/TJM/events{/privacy}","received_events_url":"https://api.github.com/users/TJM/received_events","type":"User","site_admin":false},"created_at":"2015-06-11T23:59:23Z","updated_at":"2015-06-11T23:59:23Z","body":"OK, I will see if I can cook something up. The `cp` operation that was failing for me (as a result of the lines I pointed out) is also a bit concerning. I will take a look and see what I can come up with, but I am stuck in a puppet world right now."}}