Hubs-Foundation / hubs-cloud

Resources for self hosted Hubs Cloud instances
Mozilla Public License 2.0
152 stars 95 forks source link

Digitalocean deployment ERR_CONNECTION_REFUSED #93

Open ivoba opened 4 years ago

ivoba commented 4 years ago

Hi, i followed exactly the instructions on https://hubs.mozilla.com/docs/hubs-cloud-do-quick-start.html

The setup script says: All set! Your hub will be available in a few minutes at https://hubs.mydomain.net.

However when opening the url the browser says: ERR_CONNECTION_REFUSED

Ping also has 100% packet loss, but IP is the correct one from Digitalocean.

What could have gone wrong? Where can i get support?

┆Issue is synchronized with this Jira Task

kenan52 commented 3 years ago

Any solution? I have same problem...

chandeepadissanayake commented 3 years ago

Reproducing this right now. @robinkwilson Are there any updates?

Something to look at: When I checked the open ports, no node app is listening on port 80 but instead listening on localhost:6000

Edit: Upon investigating the logs, I found that reticulum has been hanging on a SSL certificate. Please refer to the following logs.

Jan 20 20:05:54 eivor.ml cloud-init[1252]: [149B blob data] Jan 20 20:05:54 eivor.ml bash[2185]: reticulum.default@polycosm(O): 20:05:54.849 [info] Already up Jan 20 20:05:54 eivor.ml bash[2185]: reticulum.default@polycosm(O): 20:05:54.891 [warn] Failed to send Sentry event. Jan 20 20:05:54 eivor.ml bash[2185]: reticulum.default@polycosm(O): Cannot send event because of invalid DSN Jan 20 20:05:54 eivor.ml bash[2185]: reticulum.default@polycosm(O): 20:05:54.895 [info] Application ret exited: Ret.Application.start(:normal, []) returned an error: shutdown: failed to start child: RetWeb.Endpoint Jan 20 20:05:54 eivor.ml bash[2185]: reticulum.default@polycosm(O): ** (EXIT) an exception was raised: Jan 20 20:05:54 eivor.ml bash[2185]: reticulum.default@polycosm(O): ** (ArgumentError) could not start Cowboy2 adapter, the file /hab/svc/reticulum/files/ssl.key required by SSL's :keyfile either does not exist, or the application does not have permission to access it Jan 20 20:05:54 eivor.ml bash[2185]: reticulum.default@polycosm(O): (plug_cowboy) lib/plug/cowboy.ex:307: Plug.Cowboy.fail/1 Jan 20 20:05:54 eivor.ml bash[2185]: reticulum.default@polycosm(O): (plug_cowboy) lib/plug/cowboy.ex:59: Plug.Cowboy.args/4 Jan 20 20:05:54 eivor.ml bash[2185]: reticulum.default@polycosm(O): (plug_cowboy) lib/plug/cowboy.ex:167: Plug.Cowboy.child_spec/1 Jan 20 20:05:54 eivor.ml bash[2185]: reticulum.default@polycosm(O): (phoenix) lib/phoenix/endpoint/cowboy2_adapter.ex:44: Phoenix.Endpoint.Cowboy2Adapter.child_spec/3 Jan 20 20:05:54 eivor.ml bash[2185]: reticulum.default@polycosm(O): (phoenix) lib/phoenix/endpoint/supervisor.ex:108: anonymous fn/6 in Phoenix.Endpoint.Supervisor.server_children/4 Jan 20 20:05:54 eivor.ml bash[2185]: reticulum.default@polycosm(O): (elixir) lib/enum.ex:1940: Enum."-reduce/3-lists^foldl/2-0-"/3 Jan 20 20:05:54 eivor.ml bash[2185]: reticulum.default@polycosm(O): (phoenix) lib/phoenix/endpoint/supervisor.ex:99: Phoenix.Endpoint.Supervisor.server_children/4 Jan 20 20:05:54 eivor.ml bash[2185]: reticulum.default@polycosm(O): (phoenix) lib/phoenix/endpoint/supervisor.ex:59: Phoenix.Endpoint.Supervisor.init/1 Jan 20 20:05:54 eivor.ml bash[2185]: reticulum.default@polycosm(O): 20:05:54.898 [warn] Failed to send Sentry event. Jan 20 20:05:54 eivor.ml bash[2185]: reticulum.default@polycosm(O): Cannot send event because of invalid DSN Jan 20 20:05:55 eivor.ml cloud-init[1252]: % Total % Received % Xferd Average Speed Time Time Time Current Jan 20 20:05:55 eivor.ml cloud-init[1252]: Dload Upload Total Spent Left Speed Jan 20 20:05:55 eivor.ml cloud-init[1252]: [149B blob data]

mcfiredrill commented 2 years ago

Seeing the same error via journalctl as @chandeepadissanayake ...anyone have a fix?