SSH/WebSockets question

I can’t find the syntax to use to ssh into my digital ocean droplet to do some sudo stuff. This is because I am not familiar with ssh in general :slight_smile: Can anybody give me a hand? I 

Hi,

You’ll need a terminal program (Terminal on OSX, Putty on Windows).

You can find your instance IP on the DigitalOcean panel and log in:

ssh coronium@my-droplet-ip

When prompted, enter the password that was used when first installing Coronium.

You shouldn’t need to set up any SSL, the coronium user is already “sudo” enabled.

Hope that helps.

Cheers.

When I ssh with the above, I get a printout in the terminal that starts with:

Welcome to Ubuntu 14.04.3 LTS (GNU/Linux 3.13.0-71-generic x86_64)

and includes a bunch of other stuff, then concludes with:

coronium@install:~$

but when I do:

sudo coronium-tools wson

I get:

sudo: unable to resolve host install.coronium.my-instance-name

[sudo] password for coronium:

And I can’t get any further.

Hi,

Are you trying to turn on WebSocket support?

Cheers.

Trying, yes :slight_smile:

Hi,

What version of Coronium are you running? Should be in the lower left of the admin UI.

Cheers.

Beta 1.92

I have another app using coronium on digital ocean and when I ssh with the above it all works the way it is supposed to. Can you think of a reason it would fail with this installation? A setting I messed up or something?

Hi,

Is that a newer version? 

no, it is also 1.92

Just in case it matters, in the digital ocean dashboard I notice that there are two slightly different versions of ubuntu running. The more current, for the coronium install that I can NOT seem to ssh correctly, is:  Ubuntu 14.04.3    x64

While the coronium installation which DOES behave as expected with ssh is running: Ubuntu 14.04    x64

Probably immaterial but just in case.

Hey Chris, so as stated I have two instances. One says it is “unable to resolve host” when I ssh in. The other looks like this:


Welcome to Ubuntu 14.04.3 LTS (GNU/Linux 3.13.0-57-generic x86_64)

 

 * Documentation:  https://help.ubuntu.com/

 

  System information as of Thu Apr 14 16:48:57 EDT 2016

 

  System load:  0.08               Processes:           84

  Usage of /:   27.2% of 19.56GB   Users logged in:     0

  Memory usage: 58%                IP address for eth0: ***

  Swap usage:   0%

 

  Graph this data and manage this system at:

    https://landscape.canonical.com/

 

225 packages can be updated.

106 updates are security updates.

 

coronium@install:~$ sudo coronium-tools wson

[sudo] password for coronium: 

coronium@install:~$


 

But after running “sudo coronium-tools wson” and trying the 01_simple example from the docs, I get nothing printed to the screen, and this error in the logs: 

 

2016/04/14 16:50:22 [error] 8267#0: *10735143 open() “/usr/local/openresty/nginx/html/ws” failed (2: No such file or directory), client: 134.69.86.23, server: , request: “GET /ws HTTP/1.1”, host: “***” 

Hi,

Are both of these instances 1.92? Also, Coronium supports any Ubuntu 14.04.x revision.

Also you can update that box with:

sudo apt-get update -y; sudo apt-get upgrade -y

I’ll be looking into this, but it’s on a list of other things as well. I’ll try to look over the weekend.

Cheers.

Both 1.92. Thanks for fitting it in when you can. 

Just to further update you :slight_smile: I spun up a brand new digital ocean droplet, installed a fresh instance of coronium, and was not able to activate web sockets. 

You trying to add https, I just use cloud flare (which is free) and does not require terminal if you already have coronium installed.

Hi,

@Kevin

My apologies that this keeps getting pushed back. Looking into it now. You are talking about WebSockets though, correct?

Cheers.

Hey Chris, yes, trying to get WebSockets turned on. Thanks for looking.

Hi,

So the WebSocket support has been updated. The easiest way to get it, is to do a fresh install. If that’s not possible, then I can write out a patch.

http://coronium.io/ubuntu/

The examples and docs have been updated as well. A fresh install includes the “echo” example by default, but you still need to enable WebSockets.

Now, for whatever reason, you need to run the command twice. I’ll take a look at it soon. So log in as coronium user and run:

sudo coronium-tools wson

sudo coronium-tools wson (for good measure  <_< )

sudo service coronium reload

Follow the rest of the documentation and you should be able to connect. You can use can just drop the “ws.html” into your browser window for testing.

Let me know how it goes.

Cheers.

I have a bunch of data on the installation I’m currently using (DigitalOcean). For the Coronium scripts, I could just replace them on a fresh install with my local copies, but if I do a fresh install is there a way to transfer over all the other database data and uploaded files etc?