Amazon AWS - Fatal: Failed to read username for "https://github.com": no such device or address

I am trying to deploy a rails 3 application while using an AWS instance. For deployment, I use opsworks services, as well as access to the private github repository for deployment. When you start the instance, we get the following errors.

[2015-03-10T04:34:32+00:00] INFO: Running queued delayed notifications before re-raising exception [2015-03-10T04:34:32+00:00] ERROR: Running exception handlers [2015-03-10T04:34:32+00:00] ERROR: Exception handlers complete [2015-03-10T04:34:32+00:00] FATAL: Stacktrace dumped to /var/lib/aws/opsworks/cache.stage1/chef-stacktrace.out [2015-03-10T04:34:32+00:00] ERROR: git[Download Custom Cookbooks] (opsworks_custom_cookbooks::checkout line 29) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '128' ---- Begin output of git ls-remote "https://github.com/user_name/repository.git" HEAD ---- STDOUT: STDERR: fatal: could not read Username for 'https://github.com': No such device or address ---- End output of git ls-remote "https://github.com/user_name/repository.git" HEAD ---- Ran git ls-remote "https://github.com/user_name/repository.git" HEAD returned 128 [2015-03-10T04:34:32+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1) 

Please, help.

+6
source share
1 answer

The solution for me was to change the URL of the application repository on the OpsWorks stack. Change it:

https://github.com/user_name/repository.git

to

git @ github.com: user_name / repository.git

+15
source

Source: https://habr.com/ru/post/983565/


All Articles