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
• 15,800 points

edited Oct 23, 2018 by Kalgi 86 views

1 answer to this question.

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
• 41,820 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
42 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,890 points
72 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,900 points
145 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,280 points
696 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
186 views
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
• 41,820 points
680 views