I did a CPU/RAM resize on my Ubuntu 16.04 droplet after poweroff. The resize took around 10 min and after I powered it on I found that I was unable to SSH into the droplet.
I used the access console, and arrived at a prompt that says “Press Enter for maintenance (or press Control-D to continue”. Pressing Enter allows me to access the terminal, but Ctrl+D will give an error message that says ‘sulogin: cannot read /dev/tty1: Operation not permitted’.
When I check running services through ‘service --status-all’, I found that services that usually automatically start after reboot aren’t running (they are inactive/dead). These include:
ssh apache2 mysql postfix openvpn
I checked systemctl is-enabled apache2, and the system confirms that the apache2 service is supposed to start on boot.
In terminal, I ran a reboot to see if the above services would automatically start again, but they did not.
Manually starting the services apache2 / mysql will allow me to access my webserver with no problems, but they would unexpectedly go down again after a few hours.
Manually starting the ssh service works, but accessing through putty gives me an error “Fatal Error: Server unexpectedly closed network connection”. I didn’t modify any of my SSH configuration files / keys / passwords. Note that this is not a “Connection refused” error, so I think the authentication was successful but
Will be happy to provide logs / additional information. I’m not an expert with Ubuntu and would appreciate any help.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $100 of credit to try our products over 60 days!