No Internet connection after droplet resize

October 28, 2016 166 views
Networking Ubuntu 16.04

After resizing one droplet to have more RAM it is not able to reach anything on internet.

I can connect to it through console but not through SSH. I cannot ping anything on internet (domain or ip) from it.

Any ideas? Thanks.

4 Answers

I would open a support ticket

This is not indeed and best would be to contact support.
When you SSH-ed, it means it does have Internet connection. Make sure you ping-ed some well know sites like google.com, bing.com, digitalocean.com.

While waiting for them, you can try restarting Droplet once again with:

  • sudo reboot

Or maybe restart just networking and NetworkManager but I would more recommend to just reboot. In case you want it you can go with:

  • sudo systemctl restart networking && sudo systemctl restart NetworkManager
  • I can't access by SSH, i used droplet console to see the server.

    I try that command and this is the response:

    Job for networking.service failed because the control process exited with error code. See "systemctl status networking.service" and "journalctl -xe" for details

    • I don't know does you got already resolved with support but I will correct my answer.
      This is my bad with above command, forgive me for this. This is working on Ubuntu Desktop but not on Ubuntu Server (I tried on Desktop thinking it would work on both).

      Bascially best way would be to just reboot, but if you need to restart networking I found out that this is working:

      • ifconfig eth0 down && ifconfig eth0 up

      Are you sure you didn't done some changes before resize?
      You can check interfaces configuration, i.e.:

      • sudo nano /etc/network/interfaces

      You should see template like this:

      Example: /etc/network/interfaces
      # This file describes the network interfaces available on your
      # system and how to activate them. For more information, see
      # interfaces(5).
      
      # The loopback network interface
      auto lo
      iface lo inet loopback
      
      # The primary network interface
      auto eth0
      iface eth0 inet static
              address Public IP address of Droplet
              netmask Netmask of Droplet
              gateway Gateway of Droplet
              up ip addr add 10.10.0.5/16 dev eth0
              dns-nameservers 8.8.8.8 8.8.4.4
      

      All three informations is available in Control Panel by going to it -> Droplets -> Select your Droplet -> Networking.
      About up ip addr... I'm not sure what it is and leave it as it is if it's there.
      This file could also have additional lines if you have Private networking or IPv6 enabled.
      Good luck, I hope you will have your Droplet up (if it isn't already) :)

After a while server got internet access again, but we are still seeing issues, for example:

$ sudo apt-get update
Err:1 http://apt.newrelic.com/debian newrelic InRelease
Could not resolve 'apt.newrelic.com'
Err:2 http://security.ubuntu.com/ubuntu xenial-security InRelease
Could not resolve 'security.ubuntu.com'
Err:3 http://mirrors.digitalocean.com/ubuntu xenial InRelease
Could not resolve 'mirrors.digitalocean.com'
Err:4 http://mirrors.digitalocean.com/ubuntu xenial-updates InRelease
Could not resolve 'mirrors.digitalocean.com'
Err:5 http://mirrors.digitalocean.com/ubuntu xenial-backports InRelease
Could not resolve 'mirrors.digitalocean.com'

Droplet got cut off from Internet again... Every time we reboot it networking fails to start, takes around 20 minutes to come up but only after deleting contents of /etc/resolv.conf

We though it was an issue with ufw or somthing similar, but disabling it and iptables didnt work.

Have another answer? Share your knowledge.