You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setting up LSIO's code-server under a Docker jail on TrueNAS Scale, via Dockge.
It downloads, sets itself up fine but is inaccessible (ERR_CONNECTION_REFUSED) when putting in the Docker host IP and defined port eg. 192.168.23.100:8443
The log in Dockge shows it configuring and downloading the mods I've defined, then constantly prints this:
error --cert-key requires a value
As I read the documentation, and other versions of code-server, it does not use HTTPS by default so why is it insisting on the --cert-key parameter? I know this is a parameter for the base code-server package. It seems to assume --cert was applied?
From the LSIO documentation though (and checking Coder.com as well) there is not a Docker parameter (eg. CERT_PATH) to pass this into the container anyway.
compose.yaml is copied below (with sensitive details changed/removed)
How do I get past this? Thanks for any help.
Expected Behavior
code-server would be accessible on the Docker host IP with defined port (eg. 8080 per this example) and it would not be asking for a signing key unless it was expecting to be run over HTTPS, in which case there should be documented options to pass in certificates or force HTTP.
Steps To Reproduce
Run a Docker host with Dockge.
Use compose.yaml as above (with changes as needed - I have tried without HASHED_PASSWORD and PROXY_DOMAIN as well)
Monitor Dockge log and try to access IP on the published port
Environment
- OS: TrueNAS Scale jail
- How docker service was installed: Installed in the jail per well known guide on TrueNAS forums
[mod-init] Adding linuxserver/mods:code-server-ssl to container
code-server | [mod-init] linuxserver/mods:code-server-ssl at sha256:8f3e8384930aedc833a9c2aa99830ee0e574717ce36a93be60843add4838f6aa has been previously applied skipping
code-server | [migrations] started
code-server | [migrations] no migrations found
code-server | usermod: no changes
code-server | ───────────────────────────────────────
code-server |
code-server | ██╗ ███████╗██╗ ██████╗
code-server | ██║ ██╔════╝██║██╔═══██╗
code-server | ██║ ███████╗██║██║ ██║
code-server | ██║ ╚════██║██║██║ ██║
code-server | ███████╗███████║██║╚██████╔╝
code-server | ╚══════╝╚══════╝╚═╝ ╚═════╝
code-server |
code-server | Brought to you by linuxserver.io
code-server | ───────────────────────────────────────
code-server |
code-server | To support LSIO projects visit:
code-server | https://www.linuxserver.io/donate/
code-server |
code-server | ───────────────────────────────────────
code-server | GID/UID
code-server | ───────────────────────────────────────
code-server |
code-server | User UID: 911
code-server | User GID: 911
code-server | ───────────────────────────────────────
code-server | Linuxserver.io version: 4.92.2-ls230
code-server | Build-date: 2024-08-31T20:22:31+00:00
code-server | ───────────────────────────────────────
code-server |
code-server |**** installing docker and docker compose ****
code-server | PowerShell already installed, skipping
code-server |**** Existing dotnet install is up to date, skipping ****
code-server |**** docker and docker-compose already installed, skipping ****
code-server |**** python3 already installed ****
code-server |**** php already installed, skipping ****
code-server |**** Flutter already installed, skipping ****
code-server | [custom-init] No custom files found, skipping...
code-server | starting with no password
code-server | [2024-09-07T19:51:46.100Z] error --cert-key requires a value
code-server | starting with no password
code-server | [2024-09-07T19:51:47.416Z] error --cert-key requires a value
code-server | starting with no password
code-server | [2024-09-07T19:51:48.734Z] error --cert-key requires a value
code-server | starting with no password
code-server | [2024-09-07T19:51:50.058Z] error --cert-key requires a value
code-server | starting with no password
code-server | [2024-09-07T19:51:51.336Z] error --cert-key requires a value
code-server | starting with no password
code-server | [2024-09-07T19:51:52.666Z] error --cert-key requires a value
code-server | starting with no password
code-server | [2024-09-07T19:51:53.982Z] error --cert-key requires a value
code-server | starting with no password
code-server | [2024-09-07T19:51:55.326Z] error --cert-key requires a value
code-server | starting with no password
code-server | [2024-09-07T19:51:56.641Z] error --cert-key requires a value
code-server | starting with no password
code-server | [2024-09-07T19:51:57.961Z] error --cert-key requires a value
code-server | starting with no password
code-server | [2024-09-07T19:51:59.277Z] error --cert-key requires a value
code-server | starting with no password
code-server | [2024-09-07T19:52:00.596Z] error --cert-key requires a value
code-server | starting with no password
code-server | [2024-09-07T19:52:01.896Z] error --cert-key requires a value
code-server | starting with no password
code-server | [2024-09-07T19:52:03.189Z] error --cert-key requires a value
code-server | starting with no password
code-server | [2024-09-07T19:52:04.495Z] error --cert-key requires a value
code-server | starting with no password
code-server | [2024-09-07T19:52:05.790Z] error --cert-key requires a value
code-server | starting with no password
code-server | [2024-09-07T19:52:07.097Z] error --cert-key requires a value
code-server | starting with no password
code-server | [2024-09-07T19:52:08.398Z] error --cert-key requires a value
code-server | starting with no password
code-server | [2024-09-07T19:52:09.707Z] error --cert-key requires a value
code-server | starting with no password
code-server | [2024-09-07T19:52:11.041Z] error --cert-key requires a value
code-server | starting with no password
code-server | [2024-09-07T19:52:12.354Z] error --ce
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Current Behavior
Setting up LSIO's code-server under a Docker jail on TrueNAS Scale, via Dockge.
It downloads, sets itself up fine but is inaccessible (
ERR_CONNECTION_REFUSED
) when putting in the Docker host IP and defined port eg. 192.168.23.100:8443The log in Dockge shows it configuring and downloading the mods I've defined, then constantly prints this:
error --cert-key requires a value
As I read the documentation, and other versions of code-server, it does not use HTTPS by default so why is it insisting on the --cert-key parameter? I know this is a parameter for the base code-server package. It seems to assume --cert was applied?
From the LSIO documentation though (and checking Coder.com as well) there is not a Docker parameter (eg. CERT_PATH) to pass this into the container anyway.
compose.yaml is copied below (with sensitive details changed/removed)
How do I get past this? Thanks for any help.
Expected Behavior
code-server would be accessible on the Docker host IP with defined port (eg. 8080 per this example) and it would not be asking for a signing key unless it was expecting to be run over HTTPS, in which case there should be documented options to pass in certificates or force HTTP.
Steps To Reproduce
Run a Docker host with Dockge.
Use compose.yaml as above (with changes as needed - I have tried without HASHED_PASSWORD and PROXY_DOMAIN as well)
Monitor Dockge log and try to access IP on the published port
Environment
CPU architecture
x86-64
Docker creation
Container logs
The text was updated successfully, but these errors were encountered: