Bobcares

“Server disconnected code 1006” in DigitalOcean – Here’s how to fix it

by | Dec 15, 2018

Cloud providers like DigitalOcean, AWS, etc. allow shell access which makes things easier for server owners.

But, what if you cannot access the server via shell?

Here comes the use of “Console Access” that allows direct access to the Droplet.

Server disconnected code 1006” is an error that shows up when using the “Console Access“. This happens mainly due to firewall restrictions.

At Bobcares, we help server owners to resolve problems with cloud instances as part of our Dedicated Support Services for Web Hosts.

Today, we’ll see the causes for the “Server disconnected code 1006” error in DigitalOcean droplets and how we fix them.

 

Console Access – pros and cons

Before checking the reasons for the error “Server disconnected (code: 1006)“, let’s have a quick look on the facts about Console access.

It comes handy in situations like:

  1. Remote SSH access becomes unresponsive
  2. Screwed up Droplet configuration files

Here, the console works just like plugging a monitor and keyboard directly to your virtual server. Fortunately, console does not require any additional software. It usually works fine from your browser.

However, it has some demerits too. Console access will be rather slow, compared to a live ssh connection. Also, there is a limitation in the characters that can be used in commands executed via console.

 

What causes “Server disconnected code 1006” error?

We now know that “Console Access” often helps in unresponsive Droplets.

But, Whats the point if one can’t even access their console?

Let’s now see the reasons that can cause “Console Access” to fail in DigitalOcean panel.

1. Firewall Restrictions

Basically, Console Access option will open a VNC connection to your Droplet.

VNC is a graphical desktop sharing system, where you see the screen of the Droplet on your computer.

It normally uses a random port to connect the browser with the vnc service. Since multiple services are run on each machine that accommodates these Droplets, the port used will be a random one. Usually, it will be in the 5900-7000 range.

Therefore, if the customer’s internet service provider do not allow these port range, it results in the error

"Server disconnected (code: 1006)"

 

2. Bad Droplet configuration

Again, this error can happen if there are configuration problems with your Droplet.

Here, the Droplet will not be responsive to the Console Access request. And, when you try to access the Droplet, the following error shows up.

Additionally, for the Droplet to work perfectly, the physical server that hosts the droplet should be running fine.

 

How to fix “Server disconnected code 1006” in DigitalOcean Droplets?

We just saw the reasons for the error “Server disconnected code 1006” in DigitalOcean Droplets.

Now, let’s check how our Dedicated Support Engineers fix this error.

 

1. Changing Firewall Settings

From our experience in managing DigitalOcean Droplets, we see customers complaining that “Console Access” was working earlier, but not now.

Usually, this happens when customer is connecting from a new network. Therefore, it is clear that the firewall on customer’s network is the root cause.

To confirm this, our Hosting Support Engineers ask customers to check if port 5900 is open in their home network.

And, to fix the error we suggest customers to work with their Internet Service provider to modify the firewall settings. They need to allow the port range for VNC connection. Also, another workaround is to try from an alternate internet connection.

 

2. Fixing the Droplet

If there are no port restrictions on your network, and still you have problems with Console Access, server needs the fix.

Here, as the first step, we confirm that problem exists only with specific droplet. When other droplets works fine,  we can be sure that there are no problems in physical server.

At times, we see Droplets that are completely messed up. In such cases, our Support Engineers quickly rebuild the Droplet from the latest backup. This helps to quickly bring back the websites online.

[Are you experiencing problems connecting to your DigitalOcean Droplet? We can fix Console Access for you.]

Conclusion

In short, during ssh access failure, “Console Access” comes handy in managing DigitalOcean Droplet. But, it often shows the error “Server disconnected code 1006” due to firewall restrictions and wrong Droplet configurations. Today, we’ve seen the top causes for the error and how our Dedicated Support Engineers fix them.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

SEE SERVER ADMIN PLANS

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF