# Site Can't Be Reached on Digital Ocean

**URL:** https://discourse.roots.io/t/site-cant-be-reached-on-digital-ocean/10481
**Category:** trellis
**Created:** 2017-09-21T23:53:25Z
**Posts:** 7

## Post 1 by @joshb — 2017-09-21T23:53:25Z

I have been at this for two days now and I’m at the end of the rope now. I’m not sure how to explain this very well but I will try. This sounds more like a DNS issue than a Trellis issue but I don’t know where to go from here… here’s what’s going on, I hope someone can help.

I have setup a local multisite trellis/bedrock environment and it works perfectly.

I have setup the staging group\_vars and committed files to github successfully.

I have run ansible playbook and successfully provision the server on Digital Ocean with zero errors.

I have deployed the site files to the digital Ocean droplet as well with zero errors.

The domain is with Godaddy and I have changed the name servers to point to Digital Oceans.

The IP address for my droplet is: [xxx.xxx.xxx.xxx](http://xxx.xxx.xxx.xxx)

The domain is: [example.com](http://example.com)

Whois shows the domain has the correct name servers.

Digging the domain shows the correct IP address.

The staging site I’m trying to load is actually [staging.example.com](http://staging.example.com)

Digging the staging domain also shows the correct IP address.

I have an A record setup with Digital Ocean to point [staging.example.com](http://staging.example.com) to the DO IP address for the Droplet.

No matter what you visit:  
The IP: [http://xxx.xxx.xxx.xxx](http://xxx.xxx.xxx.xxx)  
or  
[staging.example.com](http://staging.example.com)  
or  
[example.com](http://example.com)

Nothing works. The IP says the page isn’t working.  
The domains says the site can’t be reached.

What could possibly be going on here?

Thanks!

---

## Post 2 by @kalenjohnson — 2017-09-21T23:56:56Z

I don’t know what’s up with the main domain, but the staging domain shows

> Error establishing a database connection

for me, which means it’s hitting the site fine but WP can’t connect to the database for some reason.

---

## Post 3 by @joshb — 2017-09-22T00:03:10Z

Thanks @kalenjohnson–

I tried again in FireFox and now I see that database error.  
In Safari and in Chrome I get “site isn’t working” errors.

Any idea why I might be getting this database error in FireFox only and what I may have done wrong?

---

## Post 4 by @fullyint — 2017-09-22T00:06:40Z

If this is a brand new multisite install, note this brand new (pending) entry to the multisite docs:

> After provisioning your remote server and deploying your sites, you’ll need to install Wordpress as a final step in your staging and production environments. SSH into your server… –[roots/docs#111](https://github.com/roots/docs/pull/111)

---

## Post 5 by @joshb — 2017-09-22T00:15:47Z

Oh, @fullyint— you really saved the day… the last couple of days actually…  
Wow, thanks…

---

## Post 6 by @fullyint — 2017-09-22T00:27:17Z

> [@Multisite remote provision/deploy doesn't create any database tables](https://discourse.roots.io/t/multisite-remote-provision-deploy-doesnt-create-any-database-tables/9097/2):
>
> Given Trellis creates DB tables in development, it can be surprising that …
> 
> > **Trellis does not automatically install WordPress on remote servers.** It’s normal and expected to see the WordPress install screen the first time you deploy. It’s up to you to either import an existing database or install a fresh site. _[– deploy docs](https://roots.io/trellis/docs/deploys/#deploying)_
> 
> Deploying is a process you will repeat many times as your site evolves and updates over time, whereas importing or creating DB tables will typically only happen once, after your initial deploy. So, the deploy doesn’t automatically create/import tables.

It would be less confusing if for new multisite deploys the default WP install screen would show in the browser like it does for regular sites (non-multisite).

Trellis figures people will vary in how they want to install WP (manual in browser, manual via wp-cli, some script, etc.), so it leaves the install in your hands. I suspect it would be valuable if Trellis had a pre-built install-on-deploy option (disabled-by-default).

---

## Post 7 by @kalenjohnson — 2017-09-22T00:34:36Z

> [@fullyint](#):
>
> Trellis figures people will vary in how they want to install WP (manual in browser, manual via wp-cli, some script, etc.), so it leaves the install in your hands. I suspect it would be valuable if Trellis had a pre-built install-on-deploy option (disabled-by-default).

Possibly. I think the assumption is 99% of sites aren’t being deployed to staging/production as brand new sites, generally there’s already a database to use.
