Author Topic: All BASIC Sandbox  (Read 42525 times)

Offline John

  • Forum Support / SB Dev
  • Posts: 3597
    • ScriptBasic Open Source Project
Re: All BASIC Sandbox
« Reply #30 on: December 08, 2018, 07:54:06 PM »
[centos@ip-172-30-0-53 ~]$ sudo certbot renew
sudo: certbot: command not found
[centos@ip-172-30-0-53 ~]$

This was suppose to renew the cert.

sudo gitlab-ctl hup nginx

as well as this.

[centos@ip-172-30-0-53 ~]$ sudo gitlab-ctl renew-le-certs
Starting Chef Client, version 13.6.4
resolving cookbooks for run list: ["gitlab::letsencrypt_renew"]
Synchronizing Cookbooks:
  - gitlab (0.0.1)
  - package (0.1.0)
  - postgresql (0.1.0)
  - redis (0.1.0)
  - registry (0.1.0)
  - mattermost (0.1.0)
  - consul (0.0.0)
  - gitaly (0.1.0)
  - letsencrypt (0.1.0)
  - nginx (0.1.0)
  - runit (0.14.2)
  - acme (3.1.0)
  - crond (0.1.0)
  - compat_resource (12.19.0)
Installing Cookbook Gems:
Compiling Cookbooks...
Converging 0 resources

Running handlers:
Running handlers complete
Chef Client finished, 0/0 resources updated in 06 seconds
[centos@ip-172-30-0-53 ~]$

Update

I sent the GilLab configuration infor to you in a PM. There was info in there that shouldn't be made public.
« Last Edit: December 08, 2018, 08:29:57 PM by John »

Offline AIR

  • BASIC Developer
  • Posts: 932
  • Coder
Re: All BASIC Sandbox
« Reply #31 on: December 08, 2018, 08:29:17 PM »
Damn, this thing uses Go, Rails, and Vue.js? Then shells out to run other stuff?

Anyway, I'm thinking that since Plesk doesn't seem to really know about other LE update processes, and Gitlab doesn't know about Plesk's, you may have had a bit of a 'race' condition, where each was trying to update the cert.  But since neither recognized what the other may have already pulled, they each in fact requested a NEW cert causing the sandbox to hit the LE limit.

It's the only thing that makes sense to me.  So if you insist on using Plesk to manage, then disable any other system that might duplicate that management functionality.

BTW, answer a question:  Are you using Apache or Nginx?  Because GL seems to have an Nginx module that it uses.

Personally, projects like Gitlab are too heavy for me to use.  For git repositories I run, I use either Gogs or Gitea, which are both written in Go and perform much better without all the bells and whistles.  They provide Git, and a Wiki, and both have the added bonus of being able to import repositories from github/bitbucket/etc, AND keep them synchronized with the original....Gitlab appears to allow imports, but doesn't keep the imported repository synced with the original.

AIR.


Offline John

  • Forum Support / SB Dev
  • Posts: 3597
    • ScriptBasic Open Source Project
Re: All BASIC Sandbox
« Reply #32 on: December 08, 2018, 08:36:09 PM »
I don't understand why I can't use the cert Plesk created for allbasic.info with GitLab running on the same domain?

Offline AIR

  • BASIC Developer
  • Posts: 932
  • Coder
Re: All BASIC Sandbox
« Reply #33 on: December 08, 2018, 08:50:21 PM »
You have to add the sandbox subdomain to the cert, and then tell gitlab to use it.

Offline John

  • Forum Support / SB Dev
  • Posts: 3597
    • ScriptBasic Open Source Project
Re: All BASIC Sandbox
« Reply #34 on: December 08, 2018, 08:53:19 PM »
I think we are wasting our time until LE let's us renew certs for the sandbox.

We are in LE purgatory.

I wonder if the GitLab cert would also work for the main domain cert?

I might try running the sandbox under HTTP until the LE cert issue is resolved.
« Last Edit: December 08, 2018, 09:05:38 PM by John »

Offline John

  • Forum Support / SB Dev
  • Posts: 3597
    • ScriptBasic Open Source Project
Re: All BASIC Sandbox
« Reply #35 on: December 09, 2018, 12:49:07 PM »
I tried running the sandbox under HTTP and was unsuccessful. We are just going to have to wait until Let's Encrypt allows generating certificates for sandbox.allbasic.info again.

Maybe I should have considered the container direction to save me a lot of grief.

Offline John

  • Forum Support / SB Dev
  • Posts: 3597
    • ScriptBasic Open Source Project
Re: All BASIC Sandbox
« Reply #36 on: December 09, 2018, 02:18:43 PM »
Quote
This site uses HTTP Strict Transport Security (HSTS) to specify that Firefox may only connect to it securely. As a result, it is not possible to add an exception for this certificate.

Would you know how I can make Firefox allow me to accept the certificate problem and connect to the sandbox like Chrome?

I might try to get ssh working with the sandbox for console git comands.
« Last Edit: December 09, 2018, 02:51:01 PM by John »

Offline AIR

  • BASIC Developer
  • Posts: 932
  • Coder
Re: All BASIC Sandbox
« Reply #37 on: December 09, 2018, 05:33:11 PM »
Quote
This site uses HTTP Strict Transport Security (HSTS) to specify that Firefox may only connect to it securely. As a result, it is not possible to add an exception for this certificate.

Would you know how I can make Firefox allow me to accept the certificate problem and connect to the sandbox like Chrome?

I might try to get ssh working with the sandbox for console git comands.

Go into "History", select "Show All History", find the link to the sandbox, right-click, and select "Forget About This site"

Then try connecting.

AIR.

Offline AIR

  • BASIC Developer
  • Posts: 932
  • Coder
Re: All BASIC Sandbox
« Reply #38 on: December 09, 2018, 05:58:19 PM »
I might try to get ssh working with the sandbox for console git comands.

In the .git folder in the source tree, edit the config file so that the the port is specified:

[remote "origin"]
   url = https://sandbox.allbasic.info:8181/AIR/sb-dev.git


And add the following at the end of the file:

[http]
   sslVerify = false


This will enable https connections with a self-signed cert.  For ssh you're on your own.

You'll need to re-authenticate the first time after you make the changes, because the url has changed.


AIR.

Offline John

  • Forum Support / SB Dev
  • Posts: 3597
    • ScriptBasic Open Source Project
Re: All BASIC Sandbox
« Reply #39 on: December 09, 2018, 06:55:30 PM »
Thanks a bunch!

This at least makes the sandbox usable again.

Chrome on my phone wouldn't access the sandbox but Firefox allowed the acception.

$ git config --list is a handy command.

I found the History trick and that worked great as well.

Thanks again for your outstanding support for the forum and the Script BASIC project.
« Last Edit: December 09, 2018, 08:21:34 PM by John »

Offline John

  • Forum Support / SB Dev
  • Posts: 3597
    • ScriptBasic Open Source Project
Re: All BASIC Sandbox
« Reply #40 on: December 10, 2018, 12:52:39 AM »
I didn't realize FORMAT supported multiple variables in its definition. This news and combining it with the curses extension module could produce some fancy FORMAT functions.

Code: ScriptBasic
  1. PRINT FORMAT("send=%s\nhost=%s\nrecv=%s\nmsg=%s\n",_send,_host,_recv,_msg)
  2.  
« Last Edit: December 10, 2018, 02:04:48 AM by John »

Offline John

  • Forum Support / SB Dev
  • Posts: 3597
    • ScriptBasic Open Source Project
Re: All BASIC Sandbox
« Reply #41 on: December 10, 2018, 12:58:19 PM »
I updated the SB-Dev project sandbox with your ingredients from the SB kitchen. It built clean on my Ubuntu 18.10 dev laptop. I plan to do the same for CentOS using the server OS. How are things going with the Mac SB version? Any luck finding a GUI library you like that would work as an extension module?

Offline AIR

  • BASIC Developer
  • Posts: 932
  • Coder
Re: All BASIC Sandbox
« Reply #42 on: December 10, 2018, 07:41:41 PM »
How are things going with the Mac SB version? Any luck finding a GUI library you like that would work as an extension module?

Have not done anything, working on MBC lately...

Offline John

  • Forum Support / SB Dev
  • Posts: 3597
    • ScriptBasic Open Source Project
Re: All BASIC Sandbox
« Reply #43 on: December 10, 2018, 08:34:09 PM »
Great to see you pick MBC back up. Will you be creating a sandbox project for it?
« Last Edit: December 11, 2018, 11:20:10 AM by John »

Offline AIR

  • BASIC Developer
  • Posts: 932
  • Coder
Re: All BASIC Sandbox
« Reply #44 on: December 11, 2018, 03:28:47 PM »
I have my own repositories for this...