Remote installation of CoCalc Docker Image

104 views
Skip to first unread message

Ingo Dahn

unread,
May 6, 2020, 12:58:39 PM5/6/20
to CoCalc
I have successfully installed the CoCalc Docker image locally and I am trying to do this now remotely on my server under a URL which has https access. I tried installing it from Github using the server management software Plesk Obsidian. Running the container from Plesk throws a number of errors, the first of which is
psql: FATAL:  database "smc" does not exist
Alternatively, I may try installation over ssh, but I'd need some more help to do this:
  1. Must the installation be run as a particular user (sage)? 
  2. Which privileges are needed for installation?
  3. How do I connect the container with a particular subdomain on my server?
  4. How do I control user accounts on my cocalc instance?
Thanks a lot for your support!

Ingo Dahn

unread,
May 8, 2020, 4:21:39 AM5/8/20
to CoCalc
As I couldn't install the cocalc docker image through my server administration software I tried it now from the command line as user sage with sudo privilege. I got the error

docker: Error response from daemon: driver failed programming external connectivity on endpoint cocalc (138934648d8ba58118535b4f7ae58505727a3199f3cbbd1303d582efbc794cca): Error starting userland proxy: listen tcp 0.0.0.0:443: bind: address already in use.

Please, help.

Harald Schilly

unread,
May 8, 2020, 7:52:05 AM5/8/20
to Ingo Dahn, CoCalc
Well, we can't really help you. "address already in use" means some service is using this port. Did you check what's running there?



--
CoCalc: Collaborative Calculation in the Cloud -- https://cocalc.com
---
You received this message because you are subscribed to the Google Groups "CoCalc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cocalc+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cocalc/1f3bfa30-b7ed-4faf-bbcf-1afceeff8830%40googlegroups.com.

Ingo Dahn

unread,
May 8, 2020, 10:41:14 AM5/8/20
to CoCalc
Yes, sudo netstat -ltnp shows nothing, but lsof -i:443 shows 2 processes launched by nginx.
There is another service running in another docker container accessible with https under a different subdomain but it doesn't have any specific settings for 443. Could that conflict? I have also a firewall in place. Does cocalc require any specific firewall settings?(Sorry, I am far from being a professional admin)
To unsubscribe from this group and stop receiving emails from it, send an email to coc...@googlegroups.com.

Ingo Dahn

unread,
May 8, 2020, 4:01:15 PM5/8/20
to CoCalc
I am a bit further in launching the container with nginx in place.
  1. From the command line changig port assignment tp -p SomeNewPort:443, making sure that SomeNewPort isn't blocked by firewall
  2. From the Plesk Docker interface using automated port assignment (I get the aforementioned error about non-existent database when using the ports set from the command line
I am still forwarded to the website instead of cocalc, but that may be another problem. I get extensive logs from the start process in each case - let me know if you would like to see them.
Reply all
Reply to author
Forward
0 new messages