Capistrano deploy error saying "end of file reached" while deploying to Ubuntu server

0 votes

I was following this blog, to set up my rails server, and after I ran this command, I am getting the following error

EOFError: end of file reached

I'm able to log into the server and i'm getting the same error when i run the following command
cap production deploy:check.

How do get over this error?

Jul 3, 2018 in Other DevOps Questions by Hannah
• 14,080 points

edited Oct 23, 2018 by Kalgi 38 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Seems like Capistrano can't connect to the server and is timing out, the most likely culprit is that it's not reading the SSH key correctly. The easiest way to test it would be to try creating an ssh config file:

nano ~/.ssh/config

Add:

Host 104.197.138.17
    HostName 104.197.138.17
    IdentityFile ~/.ssh/id_rsa

Try:

ssh deploy@104.197.138.17

Make sure it connects. (I'm assuming 104.197.138.17 is the IP of your server...)

If that works, try cap production deploy:check again.

--

What's happening here is the ssh config will feed the extra parameters to any SSH call to that Host (in this case the IP). You could change the Host to 'mysite.com' if you wanted and then you would run ssh deploy@mysite.com if you wanted to create some separation.

answered Jul 3, 2018 by Kalgi
• 35,800 points

Related Questions In Other DevOps Questions

0 votes
1 answer

How to deploy to BlueMix: 404 Error

I have the same error. I think ...READ MORE

answered Jul 16, 2018 in Other DevOps Questions by Kalgi
• 2,620 points
26 views
0 votes
1 answer

Use vagrant to update $PATH of guest vm

Just try the below script: mvm.vm.provision :shell, :inline ...READ MORE

answered May 1, 2018 in Other DevOps Questions by shubham
• 6,480 points
48 views
+1 vote
2 answers

When do we use Chef or Azure SDK to create VM and deploy in automation

The solution to the automated deployment in ...READ MORE

answered Aug 21, 2018 in Other DevOps Questions by Priyaj
• 56,120 points
105 views
0 votes
1 answer

How to get results of SonarQube?

You can use sonarqube quality gates which ...READ MORE

answered Jun 8, 2018 in Other DevOps Questions by ajs3033
• 7,000 points
303 views
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Unable to Pull image from quay.io: ERROR x509: certificate signed by unknown authority

Download necessary CA certificate. "/etc/ssl/certs/ca-certificates.crt", -> Debian/Ubuntu "/etc/pki/tls/certs/ca-bundle.crt", ...READ MORE

answered Jul 3, 2018 in Other DevOps Questions by Kalgi
• 35,800 points
226 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.