No Internet connection after droplet resize

Posted October 28, 2016 6.8k views
NetworkingUbuntu 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.

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.

Submit an Answer
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,,

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 dev eth0

      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 newrelic InRelease
Could not resolve ‘’
Err:2 xenial-security InRelease
Could not resolve '’
Err:3 xenial InRelease
Could not resolve '’
Err:4 xenial-updates InRelease
Could not resolve '’
Err:5 xenial-backports InRelease
Could not resolve '’

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.