{"action":"created","issue":{"url":"https://api.github.com/repos/cloudfoundry/ruby-buildpack/issues/71","repository_url":"https://api.github.com/repos/cloudfoundry/ruby-buildpack","labels_url":"https://api.github.com/repos/cloudfoundry/ruby-buildpack/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/cloudfoundry/ruby-buildpack/issues/71/comments","events_url":"https://api.github.com/repos/cloudfoundry/ruby-buildpack/issues/71/events","html_url":"https://github.com/cloudfoundry/ruby-buildpack/issues/71","id":193134364,"number":71,"title":"Error when pushing app from Windows","user":{"login":"saliceti","id":8416694,"avatar_url":"https://avatars.githubusercontent.com/u/8416694?v=3","gravatar_id":"","url":"https://api.github.com/users/saliceti","html_url":"https://github.com/saliceti","followers_url":"https://api.github.com/users/saliceti/followers","following_url":"https://api.github.com/users/saliceti/following{/other_user}","gists_url":"https://api.github.com/users/saliceti/gists{/gist_id}","starred_url":"https://api.github.com/users/saliceti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saliceti/subscriptions","organizations_url":"https://api.github.com/users/saliceti/orgs","repos_url":"https://api.github.com/users/saliceti/repos","events_url":"https://api.github.com/users/saliceti/events{/privacy}","received_events_url":"https://api.github.com/users/saliceti/received_events","type":"User","site_admin":false},"labels":[{"id":240264984,"url":"https://api.github.com/repos/cloudfoundry/ruby-buildpack/labels/unscheduled","name":"unscheduled","color":"D9D9D9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-12-02T14:52:26Z","updated_at":"2016-12-12T17:47:31Z","closed_at":null,"body":"What version of Cloud Foundry are you using?\r\n245\r\n\r\nWhat version of the buildpack you are using?\r\n23d58c3\r\n\r\nIf you were attempting to accomplish a task, what was it you were attempting to do?\r\nPush a ruby application from a Windows desktop. The problem occurs when the files have Windows line endings (CRLF). Especially Ruby files as it fails at first line `#!/usr/bin/env ruby`.\r\n\r\nWhat did you expect to happen?\r\nSuccessful deploy\r\n\r\nWhat was the actual behavior?\r\nCrashed application:\r\n\r\n```\r\n2016-12-02T06:03:15.58-0800 [STG/0]      OUT Staging complete\r\n2016-12-02T06:03:15.58-0800 [STG/0]      OUT Uploading droplet, build artifacts cache...\r\n2016-12-02T06:03:15.58-0800 [STG/0]      OUT Uploading droplet...\r\n2016-12-02T06:03:15.58-0800 [STG/0]      OUT Uploading build artifacts cache...\r\n2016-12-02T06:03:16.48-0800 [STG/0]      OUT Uploaded build artifacts cache (24.6M)\r\n2016-12-02T06:03:21.91-0800 [STG/0]      OUT Uploaded droplet (33.7M)\r\n2016-12-02T06:03:21.92-0800 [STG/0]      OUT Uploading complete\r\n2016-12-02T06:03:21.95-0800 [STG/0]      OUT Destroying container\r\n2016-12-02T06:03:22.33-0800 [CELL/0]     OUT Creating container\r\n2016-12-02T06:03:22.72-0800 [CELL/0]     OUT Successfully created container\r\n2016-12-02T06:03:24.31-0800 [STG/0]      OUT Successfully destroyed container\r\n2016-12-02T06:03:25.85-0800 [CELL/0]     OUT Starting health monitoring of container\r\n2016-12-02T06:03:25.95-0800 [APP/PROC/WEB/0]ERR /usr/bin/env: ruby\r\n2016-12-02T06:03:25.95-0800 [APP/PROC/WEB/0]ERR : No such file or directory\r\n2016-12-02T06:03:25.95-0800 [APP/PROC/WEB/0]OUT Exit status 127\r\n2016-12-02T06:03:25.97-0800 [CELL/0]     OUT Exit status 0\r\n2016-12-02T06:03:26.01-0800 [CELL/0]     OUT Destroying container\r\n2016-12-02T06:03:26.03-0800 [API/1]      OUT Process has crashed with type: \"web\"\r\n2016-12-02T06:03:26.05-0800 [API/1]      OUT App instance exited with guid a8d8940f-00cf-4681-86b4-01044add8fd7 payload: {\"instance\"=>\"\", \"index\"=>0, \"reason\"=>\"CRASHED\", \"exit_description\"=>\"2 error(s) occurred:\\n\\n* 2 error(s) occurred:\\n\\n* Exited with status 127\\n* cancelled\\n* cancelled\", \"crash_count\"=>1, \"crash_timestamp\"=>1480687405981789551, \"version\"=>\"7fc758f8-6b3e-4431-8e32-a6739ffc7916\"}\r\n```\r\n\r\nPlease confirm where necessary:\r\n* [x] I have included a log output \r\n* [x] My log includes an error message \r\n* [x] I have included steps for reproduction\r\n"},"comment":{"url":"https://api.github.com/repos/cloudfoundry/ruby-buildpack/issues/comments/266499841","html_url":"https://github.com/cloudfoundry/ruby-buildpack/issues/71#issuecomment-266499841","issue_url":"https://api.github.com/repos/cloudfoundry/ruby-buildpack/issues/71","id":266499841,"user":{"login":"keymon","id":280032,"avatar_url":"https://avatars.githubusercontent.com/u/280032?v=3","gravatar_id":"","url":"https://api.github.com/users/keymon","html_url":"https://github.com/keymon","followers_url":"https://api.github.com/users/keymon/followers","following_url":"https://api.github.com/users/keymon/following{/other_user}","gists_url":"https://api.github.com/users/keymon/gists{/gist_id}","starred_url":"https://api.github.com/users/keymon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keymon/subscriptions","organizations_url":"https://api.github.com/users/keymon/orgs","repos_url":"https://api.github.com/users/keymon/repos","events_url":"https://api.github.com/users/keymon/events{/privacy}","received_events_url":"https://api.github.com/users/keymon/received_events","type":"User","site_admin":false},"created_at":"2016-12-12T17:47:31Z","updated_at":"2016-12-12T17:47:31Z","body":"@sclevine it is complicated, indeed. But that is why I suggested the change in the ruby buildpack: you could check newlines in the .rb files.\r\n\r\nI would not say that you fail, but you can print a warning message."}}
{"actor":{"display_login":"keymon"}}