Code Monkey home page Code Monkey logo

docker-code-server's Introduction

linuxserver.io

Blog Discord Discourse Fleet GitHub Open Collective

The LinuxServer.io team brings you another container release featuring:

  • regular and timely application updates
  • easy user mappings (PGID, PUID)
  • custom base image with s6 overlay
  • weekly base OS updates with common layers across the entire LinuxServer.io ecosystem to minimise space usage, down time and bandwidth
  • regular security updates

Find us at:

  • Blog - all the things you can do with our containers including How-To guides, opinions and much more!
  • Discord - realtime support / chat with the community and the team.
  • Discourse - post on our community forum.
  • Fleet - an online web interface which displays all of our maintained images.
  • GitHub - view the source for all of our repositories.
  • Open Collective - please consider helping us by either donating or contributing to our budget

Scarf.io pulls GitHub Stars GitHub Release GitHub Package Repository GitLab Container Registry Quay.io Docker Pulls Docker Stars Jenkins Build LSIO CI

Code-server is VS Code running on a remote server, accessible through the browser.

  • Code on your Chromebook, tablet, and laptop with a consistent dev environment.
  • If you have a Windows or Mac workstation, more easily develop for Linux.
  • Take advantage of large cloud servers to speed up tests, compilations, downloads, and more.
  • Preserve battery life when you're on the go.
  • All intensive computation runs on your server.
  • You're no longer running excess instances of Chrome.

code-server

Supported Architectures

We utilise the docker manifest for multi-platform awareness. More information is available from docker here and our announcement here.

Simply pulling lscr.io/linuxserver/code-server:latest should retrieve the correct image for your arch, but you can also pull specific arch images via tags.

The architectures supported by this image are:

Architecture Available Tag
x86-64 amd64-<version tag>
arm64 arm64v8-<version tag>
armhf

Application Setup

Access the webui at http://<your-ip>:8443. For github integration, drop your ssh key in to /config/.ssh. Then open a terminal from the top menu and set your github username and email via the following commands

git config --global user.name "username"
git config --global user.email "email address"

Hashed code-server password

How to create the hashed password.

Usage

To help you get started creating a container from this image you can either use docker-compose or the docker cli.

docker-compose (recommended, click here for more info)

---
services:
  code-server:
    image: lscr.io/linuxserver/code-server:latest
    container_name: code-server
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
      - PASSWORD=password #optional
      - HASHED_PASSWORD= #optional
      - SUDO_PASSWORD=password #optional
      - SUDO_PASSWORD_HASH= #optional
      - PROXY_DOMAIN=code-server.my.domain #optional
      - DEFAULT_WORKSPACE=/config/workspace #optional
    volumes:
      - /path/to/appdata/config:/config
    ports:
      - 8443:8443
    restart: unless-stopped
docker run -d \
  --name=code-server \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Etc/UTC \
  -e PASSWORD=password `#optional` \
  -e HASHED_PASSWORD= `#optional` \
  -e SUDO_PASSWORD=password `#optional` \
  -e SUDO_PASSWORD_HASH= `#optional` \
  -e PROXY_DOMAIN=code-server.my.domain `#optional` \
  -e DEFAULT_WORKSPACE=/config/workspace `#optional` \
  -p 8443:8443 \
  -v /path/to/appdata/config:/config \
  --restart unless-stopped \
  lscr.io/linuxserver/code-server:latest

Parameters

Containers are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate <external>:<internal> respectively. For example, -p 8080:80 would expose port 80 from inside the container to be accessible from the host's IP on port 8080 outside the container.

Parameter Function
-p 8443 web gui
-e PUID=1000 for UserID - see below for explanation
-e PGID=1000 for GroupID - see below for explanation
-e TZ=Etc/UTC specify a timezone to use, see this list.
-e PASSWORD=password Optional web gui password, if PASSWORD or HASHED_PASSWORD is not provided, there will be no auth.
-e HASHED_PASSWORD= Optional web gui password, overrides PASSWORD, instructions on how to create it is below.
-e SUDO_PASSWORD=password If this optional variable is set, user will have sudo access in the code-server terminal with the specified password.
-e SUDO_PASSWORD_HASH= Optionally set sudo password via hash (takes priority over SUDO_PASSWORD var). Format is $type$salt$hashed.
-e PROXY_DOMAIN=code-server.my.domain If this optional variable is set, this domain will be proxied for subdomain proxying. See Documentation
-e DEFAULT_WORKSPACE=/config/workspace If this optional variable is set, code-server will open this directory by default
-v /config Contains all relevant configuration files.

Environment variables from files (Docker secrets)

You can set any environment variable from a file by using a special prepend FILE__.

As an example:

-e FILE__MYVAR=/run/secrets/mysecretvariable

Will set the environment variable MYVAR based on the contents of the /run/secrets/mysecretvariable file.

Umask for running applications

For all of our images we provide the ability to override the default umask settings for services started within the containers using the optional -e UMASK=022 setting. Keep in mind umask is not chmod it subtracts from permissions based on it's value it does not add. Please read up here before asking for support.

User / Group Identifiers

When using volumes (-v flags), permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user PUID and group PGID.

Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.

In this instance PUID=1000 and PGID=1000, to find yours use id your_user as below:

id your_user

Example output:

uid=1000(your_user) gid=1000(your_user) groups=1000(your_user)

Docker Mods

Docker Mods Docker Universal Mods

We publish various Docker Mods to enable additional functionality within the containers. The list of Mods available for this image (if any) as well as universal mods that can be applied to any one of our images can be accessed via the dynamic badges above.

Support Info

  • Shell access whilst the container is running:

    docker exec -it code-server /bin/bash
  • To monitor the logs of the container in realtime:

    docker logs -f code-server
  • Container version number:

    docker inspect -f '{{ index .Config.Labels "build_version" }}' code-server
  • Image version number:

    docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/code-server:latest

Updating Info

Most of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (noted in the relevant readme.md), we do not recommend or support updating apps inside the container. Please consult the Application Setup section above to see if it is recommended for the image.

Below are the instructions for updating containers:

Via Docker Compose

  • Update images:

    • All images:

      docker-compose pull
    • Single image:

      docker-compose pull code-server
  • Update containers:

    • All containers:

      docker-compose up -d
    • Single container:

      docker-compose up -d code-server
  • You can also remove the old dangling images:

    docker image prune

Via Docker Run

  • Update the image:

    docker pull lscr.io/linuxserver/code-server:latest
  • Stop the running container:

    docker stop code-server
  • Delete the container:

    docker rm code-server
  • Recreate a new container with the same docker run parameters as instructed above (if mapped correctly to a host folder, your /config folder and settings will be preserved)

  • You can also remove the old dangling images:

    docker image prune

Image Update Notifications - Diun (Docker Image Update Notifier)

tip: We recommend Diun for update notifications. Other tools that automatically update containers unattended are not recommended or supported.

Building locally

If you want to make local modifications to these images for development purposes or just to customize the logic:

git clone https://github.com/linuxserver/docker-code-server.git
cd docker-code-server
docker build \
  --no-cache \
  --pull \
  -t lscr.io/linuxserver/code-server:latest .

The ARM variants can be built on x86_64 hardware using multiarch/qemu-user-static

docker run --rm --privileged multiarch/qemu-user-static:register --reset

Once registered you can define the dockerfile to use with -f Dockerfile.aarch64.

Versions

  • 01.07.23: - Deprecate armhf. As announced here
  • 05.10.22: - Install recommended deps to maintain parity with the older images.
  • 29.09.22: - Rebase to jammy, switch to s6v3. Fix chown logic to skip /config/workspace contents.
  • 20.02.22: - Install using the official tarballs.
  • 29.12.21: - Add install-extension as a helper for mods to install extensions.
  • 06.12.21: - Add DEFAULT_WORKSPACE env var.
  • 29.11.21: - Rebase to Ubuntu focal.
  • 16.09.21: - Fix slow chown on large workspace (contents of workspace folder no longer chowned).
  • 11.07.21: - Bump node to 14 to fix builds
  • 08.05.21: - Fix doc link
  • 04.02.20: - Allow setting gui password via hash using env var HASHED_PASSWORD.
  • 23.12.20: - Allow setting sudo password via hash using env var SUDO_PASSWORD_HASH.
  • 29.05.20: - Add --domain-proxy support.
  • 21.05.20: - Shrink images, install via yarn, fix arm32v7 build.
  • 18.05.20: - Switch to multi-arch images, install via npm.
  • 29.04.20: - Update start arguments.
  • 01.04.20: - Structural changes required for v3.
  • 17.01.20: - Fix artifact url retrieval from github.
  • 24.10.19: - Upgrade to v2 builds.
  • 28.09.19: - Update project logo.
  • 21.09.19: - Add development builds/tag.
  • 09.07.19: - Add optional sudo access.
  • 01.07.19: - Add nano.
  • 24.06.19: - Initial Release.

docker-code-server's People

Contributors

aptalca avatar chbmb avatar gjrtimmer avatar j0nnymoe avatar jrebey avatar linuxserver-ci avatar lrstanley avatar n-i-x avatar nemchik avatar roxedus avatar thelamer avatar tobbenb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-code-server's Issues

Alpine image

Hi, Could you please add an image running on Alpine instead of Ubuntu?
Alpine is more lightweight.
Thank you for your efforts

Upgrade base ubuntu image from 18.04 to the latest LTS (20.04 Focal)

I couldn't find anything on a roadmap or discussion about it, but are there any plans to take the base Ubuntu image from 18.04 -> 20.04?

This would be much appreciated, as I'm encountering more and more scenarios where the 18.04 repos are too out of date, or trying to install from external ppas assumes ubuntu dependencies only available on 20.04 or newer

Appreciate all the support you've all included for code-server so far, I've been absolutely addicted to using it

Package not found error - arm64

linuxserver.io


Expected Behavior

Finds package, works

Current Behavior

Shows error page.

Logs:

Error: Cannot find module 'yauzl',
Require stack:,
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:831:15),
  ],,
    at /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:14:10,
    at Function.Module._load (internal/modules/cjs/loader.js:687:27),
    at Module.require (internal/modules/cjs/loader.js:903:19),
    at require (internal/modules/cjs/helpers.js:74:18),
    at t.load (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:17:960),
    at e.load (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:13:941),
    at o (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:31:189),
    at Object.errorback (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:31:313),
    at e.triggerErrorback (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:14:306),
    at ReadFileContext.callback (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:18:342),
    at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:261:13) {,
  requireStack: [,
    '/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/bootstrap-amd.js',,
    '/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/fork.js',
  phase: 'loading',,
  moduleId: 'yauzl',,
  neededBy: [ 'vs/base/node/zip' ],
}

Steps to Reproduce

Install docker image (rpi4 ubuntu arm64)
Connect to web page.

Environment

OS: Ubuntu Server
CPU architecture: arm64
How docker service was installed:
Installed, docker repo

Command used to create docker container (run/create/compose/screenshot)

Compose snippet

  code-server:
    image: linuxserver/code-server
    container_name: code-server
    networks:
      - backend
    env_file: 
      - "./conf/code-server.env"
    volumes:
      - ./data/vscode-server/config:/config
      - .:/config/workspace
      - ../.ssh:/config/.ssh
    restart: always
    healthcheck:
      test: pidof node || exit 1
      interval: 120s
      timeout: 10s
      retries: 3

Docker logs

code-server           | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
code-server           | [s6-init] ensuring user provided files have correct perms...exited 0.
code-server           | [fix-attrs.d] applying ownership & permissions fixes...
code-server           | [fix-attrs.d] done.
code-server           | [cont-init.d] executing container initialization scripts...
code-server           | [cont-init.d] 01-envfile: executing... 
code-server           | [cont-init.d] 01-envfile: exited 0.
code-server           | [cont-init.d] 10-adduser: executing... 
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           | GID/UID
code-server           | -------------------------------------
code-server           | 
code-server           | User uid:    1001
code-server           | User gid:    1001
code-server           | -------------------------------------
code-server           | 
code-server           | [cont-init.d] 10-adduser: exited 0.
code-server           | [cont-init.d] 30-config: executing... 
code-server           | setting up sudo access
code-server           | adding abc to sudoers
code-server           | setting sudo password
code-server           | Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
code-server           | [cont-init.d] 30-config: exited 0.
code-server           | [cont-init.d] 99-custom-scripts: executing... 
code-server           | [custom-init] no custom files found exiting...
code-server           | [cont-init.d] 99-custom-scripts: exited 0.
code-server           | [cont-init.d] done.
code-server           | [services.d] starting services
code-server           | [services.d] done.
code-server           | [2020-11-17T04:49:46.390Z] info  Using user-data-dir ~/data
code-server           | [2020-11-17T04:49:46.422Z] info  code-server 3.6.2 9bde62fbd611a7a91c5f327fa43e0d06f1379169
code-server           | [2020-11-17T04:49:46.422Z] info  Using config file ~/.config/code-server/config.yaml
code-server           | [2020-11-17T04:49:46.438Z] info  HTTP server listening on http://0.0.0.0:8443
code-server           | [2020-11-17T04:49:46.438Z] info      - Using password from $PASSWORD
code-server           | [2020-11-17T04:49:46.438Z] info      - To disable use `--auth none`
code-server           | [2020-11-17T04:49:46.439Z] info    - Not serving HTTPS
code-server           | [2020-11-17T04:49:46.439Z] info    - Proxying the following domain:
code-server           | [2020-11-17T04:49:46.440Z] info      - *.www.winters.nz
code-server           | Error: Cannot find module 'semver-umd'
code-server           | Require stack:
code-server           | - /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/bootstrap-amd.js
code-server           | - /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/fork.js
code-server           |     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:831:15)
code-server           |     at Function.Module._load (internal/modules/cjs/loader.js:687:27)
code-server           |     at Module.require (internal/modules/cjs/loader.js:903:19)
code-server           |     at require (internal/modules/cjs/helpers.js:74:18)
code-server           |     at t.load (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:17:960)
code-server           |     at e.load (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:13:941)
code-server           |     at o (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:31:189)
code-server           |     at Object.errorback (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:31:313)
code-server           |     at e.triggerErrorback (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:14:306)
code-server           |     at /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:14:10
code-server           |     at ReadFileContext.callback (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:18:342)
code-server           |     at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:261:13) {
code-server           |   code: 'MODULE_NOT_FOUND',
code-server           |   requireStack: [
code-server           |     '/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/bootstrap-amd.js',
code-server           |     '/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/fork.js'
code-server           |   ],
code-server           |   phase: 'loading',
code-server           |   moduleId: 'semver-umd',
code-server           |   neededBy: [
code-server           |     'vs/platform/extensionManagement/node/extensionDownloader',
code-server           |     'vs/workbench/services/extensions/node/extensionPoints',
code-server           |     'vs/platform/extensionManagement/node/extensionsScanner',
code-server           |     'vs/platform/extensionManagement/node/extensionManagementService'
code-server           |   ]
code-server           | }
code-server           | Error: Cannot find module 'applicationinsights'
code-server           | Require stack:
code-server           | - /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/bootstrap-amd.js
code-server           | - /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/fork.js
code-server           |     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:831:15)
code-server           |     at Function.Module._load (internal/modules/cjs/loader.js:687:27)
code-server           |     at Module.require (internal/modules/cjs/loader.js:903:19)
code-server           |     at require (internal/modules/cjs/helpers.js:74:18)
code-server           |     at t.load (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:17:960)
code-server           |     at e.load (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:13:941)
code-server           |     at o (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:31:189)
code-server           |     at Object.errorback (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:31:313)
code-server           |     at e.triggerErrorback (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:14:306)
code-server           |     at /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:14:10
code-server           |     at ReadFileContext.callback (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:18:342)
code-server           |     at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:261:13) {
code-server           |   code: 'MODULE_NOT_FOUND',
code-server           |   requireStack: [
code-server           |     '/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/bootstrap-amd.js',
code-server           |     '/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/fork.js'
code-server           |   ],
code-server           |   phase: 'loading',
code-server           |   moduleId: 'applicationinsights',
code-server           |   neededBy: [ 'vs/platform/telemetry/node/appInsightsAppender' ]
code-server           | }
code-server           | Error: Cannot find module '@coder/node-browser'
code-server           | Require stack:
code-server           | - /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/bootstrap-amd.js
code-server           | - /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/fork.js
code-server           |     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:831:15)
code-server           |     at Function.Module._load (internal/modules/cjs/loader.js:687:27)
code-server           |     at Module.require (internal/modules/cjs/loader.js:903:19)
code-server           |     at require (internal/modules/cjs/helpers.js:74:18)
code-server           |     at t.load (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:17:960)
code-server           |     at e.load (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:13:941)
code-server           |     at o (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:31:189)
code-server           |     at Object.errorback (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:31:313)
code-server           |     at e.triggerErrorback (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:14:306)
code-server           |     at /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:14:10
code-server           |     at ReadFileContext.callback (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:18:342)
code-server           |     at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:261:13) {
code-server           |   code: 'MODULE_NOT_FOUND',
code-server           |   requireStack: [
code-server           |     '/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/bootstrap-amd.js',
code-server           |     '/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/fork.js'
code-server           |   ],
code-server           |   phase: 'loading',
code-server           |   moduleId: '@coder/node-browser',
code-server           |   neededBy: [ 'vs/server/node/channel' ]
code-server           | }
code-server           | Error: Cannot find module 'yazl'
code-server           | Require stack:
code-server           | - /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/bootstrap-amd.js
code-server           | - /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/fork.js
code-server           |     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:831:15)
code-server           |     at Function.Module._load (internal/modules/cjs/loader.js:687:27)
code-server           |     at Module.require (internal/modules/cjs/loader.js:903:19)
code-server           |     at require (internal/modules/cjs/helpers.js:74:18)
code-server           |     at t.load (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:17:960)
code-server           |     at e.load (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:13:941)
code-server           |     at o (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:31:189)
code-server           |     at Object.errorback (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:31:313)
code-server           |     at e.triggerErrorback (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:14:306)
code-server           |     at /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:14:10
code-server           |     at ReadFileContext.callback (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:18:342)
code-server           |     at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:261:13) {
code-server           |   code: 'MODULE_NOT_FOUND',
code-server           |   requireStack: [
code-server           |     '/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/bootstrap-amd.js',
code-server           |     '/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/fork.js'
code-server           |   ],
code-server           |   phase: 'loading',
code-server           |   moduleId: 'yazl',
code-server           |   neededBy: [ 'vs/base/node/zip' ]
code-server           | }
code-server           | Error: Cannot find module 'yauzl'
code-server           | Require stack:
code-server           | - /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/bootstrap-amd.js
code-server           | - /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/fork.js
code-server           |     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:831:15)
code-server           |     at Function.Module._load (internal/modules/cjs/loader.js:687:27)
code-server           |     at Module.require (internal/modules/cjs/loader.js:903:19)
code-server           |     at require (internal/modules/cjs/helpers.js:74:18)
code-server           |     at t.load (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:17:960)
code-server           |     at e.load (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:13:941)
code-server           |     at o (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:31:189)
code-server           |     at Object.errorback (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:31:313)
code-server           |     at e.triggerErrorback (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:14:306)
code-server           |     at /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:14:10
code-server           |     at ReadFileContext.callback (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:18:342)
code-server           |     at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:261:13) {
code-server           |   code: 'MODULE_NOT_FOUND',
code-server           |   requireStack: [
code-server           |     '/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/bootstrap-amd.js',
code-server           |     '/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/fork.js'
code-server           |   ],
code-server           |   phase: 'loading',
code-server           |   moduleId: 'yauzl',
code-server           |   neededBy: [ 'vs/base/node/zip' ]
code-server           | }
code-server           | [2020-11-17T04:52:07.850Z] error VS Code exited unexpectedly with code 0

Permission denied while saving a file

I ran an instance of your image inside a docker and launched VS Code at localhost:8443.

However, when I want to save a file, I see this error:

Failed to save 'TicketController.cs': Unable to write file 'vscode-remote://0.0.0.0:8443/Company/AdminApi/Api/Controllers/TicketController.cs' (NoPermissions (FileSystemError): Error: EACCES: permission denied, open '/Company/AdminApi/Api/Controllers/TicketController.cs')

Editing CSS script in Angular while dev server is running causes npm to crash due to auto saving in CS Vode

linuxserver.io

VS Code in this code-server image appears to automatically save a file after a few seconds after a change has been made to the file without requiring you to hit save to save it. When I am editing a CSS file in an Angular project while the dev server is running (which you start by running npm start which runs the command ng serve --host 0.0.0.0 --proxy-config proxy.conf.json) if I have not typed out the css element name completely, the script is auto saved and throws a fatal error that can only be fixed by restarting npm.


Expected Behavior

When the CSS file is auto saved, it will reinterpret the CSS file with the new changes and the error will go away

Current Behavior

The following error appears:

`Error: ./src/app/app.module.ts
Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
NonErrorEmittedError: (Emitted value instead of an instance of Error) Error: Module build failed (from ./node_modules/postcss-loader/dist/cjs.js):
SyntaxError

(106:1) /config/code/You2Me/src/app/y2m/y2m.component.css Unknown word

104 | }
105 |

106 | #test
| ^

at /config/code/You2Me/node_modules/webpack/lib/NormalModule.js:313:13
at /config/code/You2Me/node_modules/loader-runner/lib/LoaderRunner.js:367:11
at /config/code/You2Me/node_modules/loader-runner/lib/LoaderRunner.js:233:18
at context.callback (/config/code/You2Me/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
at /config/code/You2Me/node_modules/@ngtools/webpack/src/ivy/loader.js:57:9
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:97:5)` 

Fixing the CSS error does not cause this message to go away and npm has to be restarted

Steps to Reproduce

  1. Open a CSS Script while the Angular dev server is running.
  2. For this example, say we want to add #test { display: none; }
  3. Type #test at the bottom of the CSS script and wait until it auto saves
  4. An error message like the one above appears
  5. Fix this CSS block so that it reads #test { display: none; } and wait until it automatically saves the file
  6. The fatal error does not go away like it does in a TypeScript file. npm has to be restarted

Environment

OS: Ubuntu Server 20.04
CPU architecture: x86_64
How docker service was installed:
apt-get

Command used to create docker container (run/create/compose/screenshot)

Compose Script: https://bpa.st/K23A

Docker logs

Docker logs: https://bpa.st/EXQQ

Starting code-server container with userns-remap fails

Since I'm using userns-remap in docker daemon,
I have to use userns=host to be able to write files inside a docker container with my host uid.
Starting code-server using userns=host fails.

Expected Behavior

docker container starts

Current Behavior

docker run --rm -it --userns=host linuxserver/code-server:latest bash
gives:
s6-overlay-preinit: fatal: unable to chown /var/run/s6: Operation not permitted

Steps to Reproduce

/etc/docker/daemon.json
{"userns-remap": "dockremap", "icc": false,"experimental": true}
/etc/subuid
dockremap:231072:65536
/etc/subgid
dockremap:231072:65536

docker run --rm -it --userns=host linuxserver/code-server:latest bash
gives:
s6-overlay-preinit: fatal: unable to chown /var/run/s6: Operation not permitted

docker -v
Docker version 19.03.13, build 4484c46d9d

Environment

**OS:Linux Mint 20
**CPU architecture: x86_64
**How docker service was installed:
ppa: https://download.docker.com/linux/ubuntu
dpkg --list | grep docker
ii docker-ce 5:19.03.133-0ubuntu-focal amd64 Docker: the open-source application container engine
ii docker-ce-cli 5:19.03.133-0ubuntu-focal amd64 Docker CLI: the open-source application container engine

docker -v
Docker version 19.03.13, build 4484c46d9d

Command used to create docker container (run/create/compose/screenshot)

docker run --rm -it --userns=host linuxserver/code-server:latest bash

Docker logs

s6-overlay-preinit: fatal: unable to chown /var/run/s6: Operation not permitted

Thanks for your help!

Environmental variables not set for current user

linuxserver.io

Environmental variables not set for current user.


Expected Behavior

The Terminal user in the code-server UI should be able to use the system environmental variables (/etc/environment) from beginning. (Proxy)

Current Behavior

After starting Code-Server with root uid and guid environment variables, the user needs to be switched to the real root user.

image
OR
image

Steps to Reproduce

  1. Run Code Server with PUID=0 and PGID=0
  2. Set Proxy environments: echo 'http_proxy=http://www-zproxy.company.com:80\n\
    https_proxy=http://www-zproxy.company.com:80\n\
    ftp_proxy=ftp://www-zproxy.company.com:80\n\
    no_proxy=localhost, 127.0.0.1, company.com, 10.0.0.0/8\n
    soap_use_proxy=on\n' > /etc/environment
  3. open in code-server terminal with bash
  4. printenv https_proxy (result:empty)

Environment

OS:Ubuntu 20.04.3 LTS"
CPU architecture: x64
How docker service was installed: apt install docker.io

Own Docker Image based on the official docker repo.

Command used to create docker container (run/create/compose/screenshot)

code-server-vstest:
image: local/code-server:dev
container_name: code-server-vstest
environment:
- PUID=0
- PGID=0
- TZ=Europe/Vienna
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /home/code-server/vstest/config:/config
ports:
- 8443:8443
restart: unless-stopped
network_mode: bridge

Docker logs

,
[cont-init.d] 10-adduser: exited 0.,
[cont-init.d] 30-config: executing... ,
setting up sudo access,
setting sudo password using SUDO_PASSWORD env var,
Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully,
setting permissions::configuration,
setting permissions::workspace,
[cont-init.d] 30-config: exited 0.,
[cont-init.d] 90-custom-folders: executing... ,
[cont-init.d] 90-custom-folders: exited 0.,
[cont-init.d] 99-custom-scripts: executing... ,
[custom-init] no custom files found exiting...,
[cont-init.d] 99-custom-scripts: exited 0.,
[cont-init.d] done.,
[services.d] starting services,
[services.d] done.,
[2021-11-22T16:22:20.860Z] info code-server 3.12.0 4cd55f94c0a72f05c18cea070e10b969996614d2,
[2021-11-22T16:22:20.861Z] info Using user-data-dir ~/data,
[2021-11-22T16:22:20.873Z] info Using config file ~/.config/code-server/config.yaml,
[2021-11-22T16:22:20.873Z] info HTTP server listening on http://0.0.0.0:8443 ,
[2021-11-22T16:22:20.873Z] info - Authentication is enabled,
[2021-11-22T16:22:20.873Z] info - Using password from $PASSWORD,
[2021-11-22T16:22:20.873Z] info - Not serving HTTPS ,
[2021-11-22T16:38:16.318Z] error Failed to get latest version {"error":"read ETIMEDOUT"},
[cont-finish.d] executing container finish scripts...,
[cont-finish.d] done.,
[s6-finish] waiting for services.,
[s6-finish] sending all processes the TERM signal.,
[s6-finish] sending all processes the KILL signal and exiting.,
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.,
[s6-init] ensuring user provided files have correct perms...exited 0.,
[fix-attrs.d] applying ownership & permissions fixes...,
[fix-attrs.d] done.,
[cont-init.d] executing container initialization scripts...,
[cont-init.d] 01-envfile: executing... ,
[cont-init.d] 01-envfile: exited 0.,
[cont-init.d] 10-adduser: executing... ,
usermod: no changes,
,
-------------------------------------,
_ (),
| | ___ _ _,
| | / | | | / \ ,
| | _
\ | | | () |,
|| |
/ || _/,
,
,
Brought to you by linuxserver.io,
-------------------------------------,
,
To support LSIO projects visit:,
https://www.linuxserver.io/donate/,
-------------------------------------,
GID/UID,
-------------------------------------,
,
User uid: 0,
User gid: 0,
-------------------------------------,
,
[cont-init.d] 10-adduser: exited 0.,
[cont-init.d] 30-config: executing... ,
setting up sudo access,
setting sudo password using SUDO_PASSWORD env var,
Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully,
setting permissions::configuration,
setting permissions::workspace,
[cont-init.d] 30-config: exited 0.,
[cont-init.d] 90-custom-folders: executing... ,
[cont-init.d] 90-custom-folders: exited 0.,
[cont-init.d] 99-custom-scripts: executing... ,
[custom-init] no custom files found exiting...,
[cont-init.d] 99-custom-scripts: exited 0.,
[cont-init.d] done.,
[services.d] starting services,
[services.d] done.,
[2021-11-22T16:44:02.361Z] info code-server 3.12.0 4cd55f94c0a72f05c18cea070e10b969996614d2,
[2021-11-22T16:44:02.362Z] info Using user-data-dir ~/data,
[2021-11-22T16:44:02.376Z] info Using config file ~/.config/code-server/config.yaml,
[2021-11-22T16:44:02.376Z] info HTTP server listening on http://0.0.0.0:8443 ,
[2021-11-22T16:44:02.376Z] info - Authentication is enabled,
[2021-11-22T16:44:02.376Z] info - Using password from $PASSWORD,
[2021-11-22T16:44:02.376Z] info - Not serving HTTPS ,

Terminal Font/Text Showing Half of Letter

linuxserver.io


Expected Behavior

The letters should be fully displayed and easy to read in the terminal.

Current Behavior

The letters get cut off at around the half-way point of each letter. This only happened after an update from 3.9.x to 3.10.x. See the image below.
image

Steps to Reproduce

  1. Install version 3.10.2 from the official docker repository
  2. Go to the site
  3. Click "Terminal > New Terminal"
  4. Run a command like ls and see the issue with the font.

Environment

OS: Ubuntu 20.04.2 LTS
CPU architecture: x86_64
How docker service was installed: Official docker repo via docker-compose

Command used to create docker container (run/create/compose/screenshot)

---
version: "2.1"
services:
  code-server:
    image: ghcr.io/linuxserver/code-server
    container_name: code-server
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/<REDACTED>
      - PASSWORD=<REDACTED>
      - SUDO_PASSWORD=<REDACTED>
      - PROXY_DOMAIN=code.<REDACTED>
    volumes:
      - <REDACTED>/codeserver/config:/config
    ports:
      - 8443:8443
    restart: unless-stopped

Docker logs

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing...
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 10-adduser: executing...

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/


Brought to you by linuxserver.io
-------------------------------------

To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    1000
User gid:    1000
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing...
setting up sudo access
adding abc to sudoers
setting sudo password using SUDO_PASSWORD env var
Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
[cont-init.d] 30-config: exited 0.
[cont-init.d] 99-custom-scripts: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2021-06-25T18:01:45.662Z] info  code-server 3.10.2 387b12ef4ca404ffd39d84834e1f0776e9e3c005
[2021-06-25T18:01:45.665Z] info  Using user-data-dir ~/data
[2021-06-25T18:01:45.712Z] info  Using config file ~/.config/code-server/config.yaml
[2021-06-25T18:01:45.712Z] info  HTTP server listening on http://0.0.0.0:8443
[2021-06-25T18:01:45.712Z] info    - Authentication is enabled
[2021-06-25T18:01:45.712Z] info      - Using password from $PASSWORD
[2021-06-25T18:01:45.713Z] info    - Not serving HTTPS
[2021-06-25T18:01:45.713Z] info    - Proxying the following domain:
[2021-06-25T18:01:45.714Z] info      - *.code.<redacted>
 INFO Installing extension: ms-python.python
 INFO Installing extension: ms-toolsai.jupyter
 INFO Downloaded extension: ms-python.python /config/data/CachedExtensionVSIXs/ms-python.python-2021.5.926500501
 INFO Downloaded extension: ms-toolsai.jupyter /config/data/CachedExtensionVSIXs/ms-toolsai.jupyter-2021.6.832593372
 INFO Extracted extension to /config/extensions/.3330265c-1023-40f3-96fa-863d31131087: ms-toolsai.jupyter
 INFO Renamed to /config/extensions/ms-toolsai.jupyter-2021.6.832593372
 INFO Installation completed. ms-toolsai.jupyter
 INFO Extensions installed successfully: ms-toolsai.jupyter
 INFO Extracted extension to /config/extensions/.a3230f35-4be2-400e-b4d3-8b7a8739b34e: ms-python.python
 INFO Renamed to /config/extensions/ms-python.python-2021.5.926500501
 INFO Installation completed. ms-python.python
 INFO Extensions installed successfully: ms-python.python
[IPC Library: Pty Host]  INFO Persistent process "1": Replaying 167 chars and 1 size events

Pressing enter in the VS Code IDE stops working

linuxserver.io

Expected Behavior

After using code-server for a little while, when I press enter in the IDE, nothing happens.

I expect that a new line would be inserted at the current cursor location

Current Behavior

The cursor does not move to the beginning of the new next line as expected
I have to kill the npm process and reload the browser page to fix this issue and then restart npm again.

Steps to Reproduce

  1. Load code-server Docker container in a web page ( I use Firefox 85 on Windows 10 and Ubuntu)
  2. After using it for a random period of time, pressing enter in VS Code stops working and nothing happens when you press enter. I have experienced this bug across multiple computers
  3. Reload page in browser
  4. Pressing enter inserts a new line again as expected.

Environment

OS: Ubuntu Server 20.04
CPU architecture: x86_64
How docker service was installed: apt-get

Command used to create docker container (run/create/compose/screenshot)

Compose Script: https://bpa.st/K23A

Docker logs

Docker logs: https://bpa.st/EXQQ

python.execInTerminal-icon' not found

linuxserver.io


Expected Behavior

After creating a python file, the python interpreter extension should be activated.

Current Behavior

Even after installing the python extension, the interpreter doesn't show up. I get the following error upon clicking on the run button
command 'python.execInTerminal-icon' not found

Steps to Reproduce

I used the following docker command.

docker run -d --restart unless-stopped \ --name=vscode \ -e PUID=0 \ -e PGID=0 \ -e TZ=Europe/London \ -e PASSWORD=vscode \ -p 8443:8443 \ -v /mnt/mclaren/vscode:/config \ --restart unless-stopped \ ghcr.io/linuxserver/code-server

Python 3

I love your Code-Server container, but would it be possible to add Python 3?

So far it seems I have to reinstall it after every update which sucks.

Support setting of fs.inotify.max_user_watches through environmental variable

linuxserver.io

Provide ability to set fs.inotify.max_user_watches as environmental variable. This seems to be triggered when you've got large directories. For me this was happenning with Plex and Radarr which I imagine many users have.
https://code.visualstudio.com/docs/setup/linux#_visual-studio-code-is-unable-to-watch-for-file-changes-in-this-large-workspace-error-enospc

Desired Behavior

https://stackoverflow.com/questions/16748737/grunt-watch-error-waiting-fatal-error-watch-enospc/17437601#17437601 is an example of a solution which just increases the allowable fs.inotify.max_user_watches=524288

Current Behavior

Currenty cannot run this command inside the container

root@aa152290bfc6:/# cat /proc/sys/fs/inotify/max_user_watches
8192
root@aa152290bfc6:/# echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
fs.inotify.max_user_watches=524288
sysctl: setting key "fs.inotify.max_user_watches": Read-only file system
sysctl: setting key "fs.inotify.max_user_watches": Read-only file system
root@aa152290bfc6:/# 

Alternatives Considered

Setting individual folders to be ignored but this can be somewhat of a whackamole approach as you may always be adding more folders that are monitored by code.

Disabled extensions are stuck as 'Reload Required'

linuxserver.io


Expected Behavior

When disabling an extension, it should either immediately stop running, or be stopped during a reload. Running the command "Developer: Show Running Extensions" should not display the disabled extension in the list.

Current Behavior

Most extensions initially show up as immediately disabled when the 'Disable' button is clicked ('This extension is disabled globally by the user'). Upon reloading the page, workspace, or another workspace or folder, the extension goes back to being enabled, the text 'Please reload Visual Studio Code to disable this extension' displayed, and with a 'Reload Required' button. Pressing the button or refreshing the page changes nothing from this point on. I can re-enable the extension and it will work fine, but that is obviously not what I want.

I have tried this on a fresh image with no data/config folder configured, and all LSIO mods disabled, with the same problem occurring.

Steps to Reproduce

  1. Install and enable any extension (I tried with the MySQL extension)
  2. Go to the Extensions tab and disable the extension. Its features are still enabled
  3. Reload the page. The extension shows up as enabled with a 'Reload Required' button.

Environment

OS: Ubuntu 20.04
CPU architecture: x86_64
How docker service was installed: DockStarter (which uses the install script from https://get.docker.com/ I believe)

Command used to create docker container (run/create/compose/screenshot)

    image: ghcr.io/linuxserver/code-server:version-v3.10.2
    hostname: ${DOCKERHOSTNAME}
    container_name: codeserver
    logging:
      driver: json-file
      options:
        max-file: ${DOCKERLOGGING_MAXFILE}
        max-size: ${DOCKERLOGGING_MAXSIZE}
    networks:
      - default
      - frontendprod
      - backenddev
      - dbdev
      - dbprod
      - api
    restart: unless-stopped  
    volumes:
      # Standard directories
      - /etc/localtime:/etc/localtime:ro
      - ${DOCKERCONFDIR}/codeserver:/config
      - /var/run/docker.sock:/var/run/docker.sock
      environment:
      - PGID=${PGID}
      - PUID=${PUID}
      - SUDO_PASSWORD=###
      - TZ=${TZ}
      - PROXY_DOMAIN=dev.domain.tld
      - DOCKER_MODS=linuxserver/mods:code-server-docker|linuxserver/mods:code-server-flutter|linuxserver/mods:code-server-php|linuxserver/mods:code-server-python3|linuxserver/mods:code-server-npmglobal|linuxserver/mods:code-server-nodejs|linuxserver/mods:code-server-dotnet

Docker logs

codeserver.log

error vscode is not running Error: vscode is not running

linuxserver.io

When I run the code-server it works fine but, the logs are constantly triggering an error.


Expected Behavior

To work just fine.

Current Behavior

Works fine with log errors:

at VscodeProvider.send (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:206:19)
at VscodeProvider.<anonymous> (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:198:30)
at step (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:63:23)
at Object.next (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:44:53)
at fulfilled (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:35:58)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
[2021-05-29T20:04:56.143Z] error vscode is not running Error: vscode is not running

Steps to Reproduce

  1. Start docker

Environment

OS: unRAID 6.9.2
CPU architecture: x86_64
How docker service was installed:

nas OS provided

Command used to create docker container (run/create/compose/screenshot)

/usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='code' --net='proxynet' -e TZ="Europe/Paris" -e HOST_OS="Unraid" -e 'PASSWORD'='mapasswd' -e 'DOCKER_MODS'='linuxserver/mods:code-server-python3' -e 'SUDO_PASSWORD'='' -e 'PUID'='99' -e 'PGID'='100' -p '8746:8443/tcp' -v '/mnt/user/appdata/code-server':'/config':'rw' 'linuxserver/code-server'

Docker logs

[mod-init] Attempting to run Docker Modification Logic
[mod-init] Applying linuxserver/mods:code-server-python3 files to container
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing... 
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 10-adduser: executing... 

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \ 
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/


Brought to you by linuxserver.io
-------------------------------------

To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    99
User gid:    100
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing... 
[cont-init.d] 30-config: exited 0.
[cont-init.d] 98-python3: executing... 
**** installing python3 dev environment ****
Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Get:2 https://dl.yarnpkg.com/debian stable InRelease [17.1 kB]
Get:3 https://deb.nodesource.com/node_12.x bionic InRelease [4,584 B]
Get:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:5 https://dl.yarnpkg.com/debian stable/main all Packages [10.2 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic/main Sources [1,063 kB]
Get:8 https://dl.yarnpkg.com/debian stable/main amd64 Packages [10.2 kB]
Get:9 http://archive.ubuntu.com/ubuntu bionic/restricted Sources [5,823 B]
Get:10 http://archive.ubuntu.com/ubuntu bionic/multiverse Sources [216 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic/universe Sources [11.5 MB]
Get:12 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
Get:13 https://deb.nodesource.com/node_12.x bionic/main amd64 Packages [766 B]
Get:14 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1,344 kB]
Get:16 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
Get:17 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse Sources [13.2 kB]
Get:18 http://archive.ubuntu.com/ubuntu bionic-updates/universe Sources [573 kB]
Get:19 http://archive.ubuntu.com/ubuntu bionic-updates/main Sources [641 kB]
Get:20 http://archive.ubuntu.com/ubuntu bionic-updates/restricted Sources [25.0 kB]
Get:21 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2,184 kB]
Get:22 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [452 kB]
Get:23 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2,584 kB]
Get:24 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [31.6 kB]
Get:25 http://archive.ubuntu.com/ubuntu bionic-security/main Sources [318 kB]
Get:26 http://archive.ubuntu.com/ubuntu bionic-security/restricted Sources [21.6 kB]
Get:27 http://archive.ubuntu.com/ubuntu bionic-security/universe Sources [347 kB]
Get:28 http://archive.ubuntu.com/ubuntu bionic-security/multiverse Sources [5,571 B]
Get:29 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 Packages [2,152 kB]
Get:30 http://archive.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [423 kB]
Get:31 http://archive.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1,413 kB]
Get:32 http://archive.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [24.7 kB]
Fetched 37.4 MB in 3s (13.6 MB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  binutils binutils-common binutils-x86-64-linux-gnu cpp cpp-7 dbus dh-python
  dpkg-dev fakeroot g++ g++-7 gcc gcc-7 gcc-7-base gir1.2-glib-2.0
  libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl
  libapparmor1 libasan4 libatomic1 libbinutils libc-dev-bin libc6-dev libcc1-0
  libcilkrts5 libdbus-1-3 libdpkg-perl libexpat1-dev libfakeroot
  libfile-fcntllock-perl libgcc-7-dev libgirepository-1.0-1 libglib2.0-0
  libglib2.0-data libgomp1 libicu60 libisl19 libitm1 liblocale-gettext-perl
  liblsan0 libmpc3 libmpdec2 libmpfr6 libmpx2 libpython3-dev libpython3-stdlib
  libpython3.6 libpython3.6-dev libpython3.6-minimal libpython3.6-stdlib
  libquadmath0 libstdc++-7-dev libtsan0 libubsan0 libxml2 linux-libc-dev make
  manpages manpages-dev python-pip-whl python3 python3-asn1crypto
  python3-cffi-backend python3-crypto python3-cryptography python3-dbus
  python3-distutils python3-gi python3-idna python3-keyring
  python3-keyrings.alt python3-lib2to3 python3-minimal python3-pkg-resources
  python3-secretstorage python3-setuptools python3-six python3-wheel
  python3-xdg python3.6 python3.6-dev python3.6-minimal python3.6-venv
  shared-mime-info xdg-user-dirs
Suggested packages:
  binutils-doc cpp-doc gcc-7-locales default-dbus-session-bus
  | dbus-session-bus debian-keyring g++-multilib g++-7-multilib gcc-7-doc
  libstdc++6-7-dbg gcc-multilib autoconf automake libtool flex bison gdb
  gcc-doc gcc-7-multilib libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg
  libasan4-dbg liblsan0-dbg libtsan0-dbg libubsan0-dbg libcilkrts5-dbg
  libmpx2-dbg libquadmath0-dbg glibc-doc bzr libssl-doc libstdc++-7-doc
  make-doc man-browser python3-doc python3-tk python-crypto-doc
  python-cryptography-doc python3-cryptography-vectors python-dbus-doc
  python3-dbus-dbg gnome-keyring libkf5wallet-bin gir1.2-gnomekeyring-1.0
  python-secretstorage-doc python-setuptools-doc python3.6-doc binfmt-support
The following NEW packages will be installed:
  binutils binutils-common binutils-x86-64-linux-gnu build-essential cpp cpp-7
  dbus dh-python dpkg-dev fakeroot g++ g++-7 gcc gcc-7 gcc-7-base
  gir1.2-glib-2.0 libalgorithm-diff-perl libalgorithm-diff-xs-perl
  libalgorithm-merge-perl libapparmor1 libasan4 libatomic1 libbinutils
  libc-dev-bin libc6-dev libcc1-0 libcilkrts5 libdbus-1-3 libdpkg-perl
  libexpat1-dev libfakeroot libffi-dev libfile-fcntllock-perl libgcc-7-dev
  libgirepository-1.0-1 libglib2.0-0 libglib2.0-data libgomp1 libicu60
  libisl19 libitm1 liblocale-gettext-perl liblsan0 libmpc3 libmpdec2 libmpfr6
  libmpx2 libpython3-dev libpython3-stdlib libpython3.6 libpython3.6-dev
  libpython3.6-minimal libpython3.6-stdlib libquadmath0 libssl-dev
  libstdc++-7-dev libtsan0 libubsan0 libxml2 linux-libc-dev make manpages
  manpages-dev python-pip-whl python3 python3-asn1crypto python3-cffi-backend
  python3-crypto python3-cryptography python3-dbus python3-dev
  python3-distutils python3-gi python3-idna python3-keyring
  python3-keyrings.alt python3-lib2to3 python3-minimal python3-pip
  python3-pkg-resources python3-secretstorage python3-setuptools python3-six
  python3-venv python3-wheel python3-xdg python3.6 python3.6-dev
  python3.6-minimal python3.6-venv shared-mime-info xdg-user-dirs
0 upgraded, 92 newly installed, 0 to remove and 7 not upgraded.
Need to get 112 MB of archives.
After this operation, 337 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu bionic/main amd64 liblocale-gettext-perl amd64 1.07-3build2 [16.6 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython3.6-minimal amd64 3.6.9-1~18.04ubuntu1.4 [534 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 python3.6-minimal amd64 3.6.9-1~18.04ubuntu1.4 [1,610 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 python3-minimal amd64 3.6.7-1~18.04 [23.7 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic/main amd64 libmpdec2 amd64 2.4.2-1ubuntu1 [84.1 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython3.6-stdlib amd64 3.6.9-1~18.04ubuntu1.4 [1,712 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 python3.6 amd64 3.6.9-1~18.04ubuntu1.4 [203 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython3-stdlib amd64 3.6.7-1~18.04 [7,240 B]
Get:9 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 python3 amd64 3.6.7-1~18.04 [47.2 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libapparmor1 amd64 2.12-4ubuntu5.1 [31.3 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libdbus-1-3 amd64 1.12.2-1ubuntu1.2 [175 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 dbus amd64 1.12.2-1ubuntu1.2 [150 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libglib2.0-0 amd64 2.56.4-0ubuntu0.18.04.8 [1,171 kB]
Get:14 http://archive.ubuntu.com/ubuntu bionic/main amd64 libgirepository-1.0-1 amd64 1.56.1-1 [82.0 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic/main amd64 gir1.2-glib-2.0 amd64 1.56.1-1 [131 kB]
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libglib2.0-data all 2.56.4-0ubuntu0.18.04.8 [4,716 B]
Get:17 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libicu60 amd64 60.2-3ubuntu3.1 [8,054 kB]
Get:18 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libxml2 amd64 2.9.4+dfsg1-6.1ubuntu1.3 [663 kB]
Get:19 http://archive.ubuntu.com/ubuntu bionic/main amd64 python3-dbus amd64 1.2.6-1 [89.9 kB]
Get:20 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 python3-gi amd64 3.26.1-2ubuntu1 [153 kB]
Get:21 http://archive.ubuntu.com/ubuntu bionic/main amd64 shared-mime-info amd64 1.9-2 [426 kB]
Get:22 http://archive.ubuntu.com/ubuntu bionic/main amd64 xdg-user-dirs amd64 0.17-1ubuntu1 [48.0 kB]
Get:23 http://archive.ubuntu.com/ubuntu bionic/main amd64 manpages all 4.15-1 [1,234 kB]
Get:24 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 binutils-common amd64 2.30-21ubuntu1~18.04.5 [197 kB]
Get:25 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libbinutils amd64 2.30-21ubuntu1~18.04.5 [489 kB]
Get:26 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 binutils-x86-64-linux-gnu amd64 2.30-21ubuntu1~18.04.5 [1,839 kB]
Get:27 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 binutils amd64 2.30-21ubuntu1~18.04.5 [3,388 B]
Get:28 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libc-dev-bin amd64 2.27-3ubuntu1.4 [71.8 kB]
Get:29 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 linux-libc-dev amd64 4.15.0-143.147 [994 kB]
Get:30 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libc6-dev amd64 2.27-3ubuntu1.4 [2,585 kB]
Get:31 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 gcc-7-base amd64 7.5.0-3ubuntu1~18.04 [18.3 kB]
Get:32 http://archive.ubuntu.com/ubuntu bionic/main amd64 libisl19 amd64 0.19-1 [551 kB]
Get:33 http://archive.ubuntu.com/ubuntu bionic/main amd64 libmpfr6 amd64 4.0.1-1 [243 kB]
Get:34 http://archive.ubuntu.com/ubuntu bionic/main amd64 libmpc3 amd64 1.1.0-1 [40.8 kB]
Get:35 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 cpp-7 amd64 7.5.0-3ubuntu1~18.04 [8,591 kB]
Get:36 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 cpp amd64 4:7.4.0-1ubuntu2.3 [27.7 kB]
Get:37 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libcc1-0 amd64 8.4.0-1ubuntu1~18.04 [39.4 kB]
Get:38 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libgomp1 amd64 8.4.0-1ubuntu1~18.04 [76.5 kB]
Get:39 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libitm1 amd64 8.4.0-1ubuntu1~18.04 [27.9 kB]
Get:40 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libatomic1 amd64 8.4.0-1ubuntu1~18.04 [9,192 B]
Get:41 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libasan4 amd64 7.5.0-3ubuntu1~18.04 [358 kB]
Get:42 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 liblsan0 amd64 8.4.0-1ubuntu1~18.04 [133 kB]
Get:43 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libtsan0 amd64 8.4.0-1ubuntu1~18.04 [288 kB]
Get:44 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libubsan0 amd64 7.5.0-3ubuntu1~18.04 [126 kB]
Get:45 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libcilkrts5 amd64 7.5.0-3ubuntu1~18.04 [42.5 kB]
Get:46 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libmpx2 amd64 8.4.0-1ubuntu1~18.04 [11.6 kB]
Get:47 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libquadmath0 amd64 8.4.0-1ubuntu1~18.04 [134 kB]
Get:48 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libgcc-7-dev amd64 7.5.0-3ubuntu1~18.04 [2,378 kB]
Get:49 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 gcc-7 amd64 7.5.0-3ubuntu1~18.04 [9,381 kB]
Get:50 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 gcc amd64 4:7.4.0-1ubuntu2.3 [5,184 B]
Get:51 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libstdc++-7-dev amd64 7.5.0-3ubuntu1~18.04 [1,471 kB]
Get:52 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 g++-7 amd64 7.5.0-3ubuntu1~18.04 [9,697 kB]
Get:53 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 g++ amd64 4:7.4.0-1ubuntu2.3 [1,568 B]
Get:54 http://archive.ubuntu.com/ubuntu bionic/main amd64 make amd64 4.1-9.1ubuntu1 [154 kB]
Get:55 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libdpkg-perl all 1.19.0.5ubuntu2.3 [211 kB]
Get:56 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 dpkg-dev all 1.19.0.5ubuntu2.3 [607 kB]
Get:57 http://archive.ubuntu.com/ubuntu bionic/main amd64 build-essential amd64 12.4ubuntu1 [4,758 B]
Get:58 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 python3-lib2to3 all 3.6.9-1~18.04 [77.4 kB]
Get:59 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 python3-distutils all 3.6.9-1~18.04 [144 kB]
Get:60 http://archive.ubuntu.com/ubuntu bionic/main amd64 dh-python all 3.20180325ubuntu2 [89.2 kB]
Get:61 http://archive.ubuntu.com/ubuntu bionic/main amd64 libfakeroot amd64 1.22-2ubuntu1 [25.9 kB]
Get:62 http://archive.ubuntu.com/ubuntu bionic/main amd64 fakeroot amd64 1.22-2ubuntu1 [62.3 kB]
Get:63 http://archive.ubuntu.com/ubuntu bionic/main amd64 libalgorithm-diff-perl all 1.19.03-1 [47.6 kB]
Get:64 http://archive.ubuntu.com/ubuntu bionic/main amd64 libalgorithm-diff-xs-perl amd64 0.04-5 [11.1 kB]
Get:65 http://archive.ubuntu.com/ubuntu bionic/main amd64 libalgorithm-merge-perl all 0.08-3 [12.0 kB]
Get:66 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libexpat1-dev amd64 2.2.5-3ubuntu0.2 [122 kB]
Get:67 http://archive.ubuntu.com/ubuntu bionic/main amd64 libfile-fcntllock-perl amd64 0.22-3build2 [33.2 kB]
Get:68 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython3.6 amd64 3.6.9-1~18.04ubuntu1.4 [1,414 kB]
Get:69 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython3.6-dev amd64 3.6.9-1~18.04ubuntu1.4 [44.9 MB]
Get:70 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython3-dev amd64 3.6.7-1~18.04 [7,328 B]
Get:71 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libssl-dev amd64 1.1.1-1ubuntu2.1~18.04.9 [1,566 kB]
Get:72 http://archive.ubuntu.com/ubuntu bionic/main amd64 manpages-dev all 4.15-1 [2,217 kB]
Get:73 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 python-pip-whl all 9.0.1-2.3~ubuntu1.18.04.4 [1,653 kB]
Get:74 http://archive.ubuntu.com/ubuntu bionic/main amd64 python3-asn1crypto all 0.24.0-1 [72.8 kB]
Get:75 http://archive.ubuntu.com/ubuntu bionic/main amd64 python3-cffi-backend amd64 1.11.5-1 [64.6 kB]
Get:76 http://archive.ubuntu.com/ubuntu bionic/main amd64 python3-crypto amd64 2.6.1-8ubuntu2 [244 kB]
Get:77 http://archive.ubuntu.com/ubuntu bionic/main amd64 python3-idna all 2.6-1 [32.5 kB]
Get:78 http://archive.ubuntu.com/ubuntu bionic/main amd64 python3-six all 1.11.0-2 [11.4 kB]
Get:79 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 python3-cryptography amd64 2.1.4-1ubuntu1.4 [220 kB]
Get:80 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 python3.6-dev amd64 3.6.9-1~18.04ubuntu1.4 [508 kB]
Get:81 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 python3-dev amd64 3.6.7-1~18.04 [1,288 B]
Get:82 http://archive.ubuntu.com/ubuntu bionic/main amd64 python3-secretstorage all 2.3.1-2 [12.1 kB]
Get:83 http://archive.ubuntu.com/ubuntu bionic/main amd64 python3-keyring all 10.6.0-1 [26.7 kB]
Get:84 http://archive.ubuntu.com/ubuntu bionic/main amd64 python3-keyrings.alt all 3.0-1 [16.6 kB]
Get:85 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 python3-pip all 9.0.1-2.3~ubuntu1.18.04.4 [114 kB]
Get:86 http://archive.ubuntu.com/ubuntu bionic/main amd64 python3-pkg-resources all 39.0.1-2 [98.8 kB]
Get:87 http://archive.ubuntu.com/ubuntu bionic/main amd64 python3-setuptools all 39.0.1-2 [248 kB]
Get:88 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 python3.6-venv amd64 3.6.9-1~18.04ubuntu1.4 [6,188 B]
Get:89 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 python3-venv amd64 3.6.7-1~18.04 [1,208 B]
Get:90 http://archive.ubuntu.com/ubuntu bionic/universe amd64 python3-wheel all 0.30.0-0.2 [36.5 kB]
Get:91 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 python3-xdg all 0.25-4ubuntu1.1 [31.3 kB]
Get:92 http://archive.ubuntu.com/ubuntu bionic/main amd64 libffi-dev amd64 3.2.1-8 [156 kB]
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76, <> line 92.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin: 
Fetched 112 MB in 4s (30.5 MB/s)
Selecting previously unselected package liblocale-gettext-perl.
(Reading database ... 16622 files and directories currently installed.)
Preparing to unpack .../liblocale-gettext-perl_1.07-3build2_amd64.deb ...
Unpacking liblocale-gettext-perl (1.07-3build2) ...
Selecting previously unselected package libpython3.6-minimal:amd64.
Preparing to unpack .../libpython3.6-minimal_3.6.9-1~18.04ubuntu1.4_amd64.deb ...
Unpacking libpython3.6-minimal:amd64 (3.6.9-1~18.04ubuntu1.4) ...
Selecting previously unselected package python3.6-minimal.
Preparing to unpack .../python3.6-minimal_3.6.9-1~18.04ubuntu1.4_amd64.deb ...
Unpacking python3.6-minimal (3.6.9-1~18.04ubuntu1.4) ...
Setting up libpython3.6-minimal:amd64 (3.6.9-1~18.04ubuntu1.4) ...
Setting up python3.6-minimal (3.6.9-1~18.04ubuntu1.4) ...
Selecting previously unselected package python3-minimal.
(Reading database ... 16874 files and directories currently installed.)
Preparing to unpack .../python3-minimal_3.6.7-1~18.04_amd64.deb ...
Unpacking python3-minimal (3.6.7-1~18.04) ...
Selecting previously unselected package libmpdec2:amd64.
Preparing to unpack .../libmpdec2_2.4.2-1ubuntu1_amd64.deb ...
Unpacking libmpdec2:amd64 (2.4.2-1ubuntu1) ...
Selecting previously unselected package libpython3.6-stdlib:amd64.
Preparing to unpack .../libpython3.6-stdlib_3.6.9-1~18.04ubuntu1.4_amd64.deb ...
Unpacking libpython3.6-stdlib:amd64 (3.6.9-1~18.04ubuntu1.4) ...
Selecting previously unselected package python3.6.
Preparing to unpack .../python3.6_3.6.9-1~18.04ubuntu1.4_amd64.deb ...
Unpacking python3.6 (3.6.9-1~18.04ubuntu1.4) ...
Selecting previously unselected package libpython3-stdlib:amd64.
Preparing to unpack .../libpython3-stdlib_3.6.7-1~18.04_amd64.deb ...
Unpacking libpython3-stdlib:amd64 (3.6.7-1~18.04) ...
Setting up python3-minimal (3.6.7-1~18.04) ...
Selecting previously unselected package python3.
(Reading database ... 17278 files and directories currently installed.)
Preparing to unpack .../00-python3_3.6.7-1~18.04_amd64.deb ...
Unpacking python3 (3.6.7-1~18.04) ...
Selecting previously unselected package libapparmor1:amd64.
Preparing to unpack .../01-libapparmor1_2.12-4ubuntu5.1_amd64.deb ...
Unpacking libapparmor1:amd64 (2.12-4ubuntu5.1) ...
Selecting previously unselected package libdbus-1-3:amd64.
Preparing to unpack .../02-libdbus-1-3_1.12.2-1ubuntu1.2_amd64.deb ...
Unpacking libdbus-1-3:amd64 (1.12.2-1ubuntu1.2) ...
Selecting previously unselected package dbus.
Preparing to unpack .../03-dbus_1.12.2-1ubuntu1.2_amd64.deb ...
Unpacking dbus (1.12.2-1ubuntu1.2) ...
Selecting previously unselected package libglib2.0-0:amd64.
Preparing to unpack .../04-libglib2.0-0_2.56.4-0ubuntu0.18.04.8_amd64.deb ...
Unpacking libglib2.0-0:amd64 (2.56.4-0ubuntu0.18.04.8) ...
Selecting previously unselected package libgirepository-1.0-1:amd64.
Preparing to unpack .../05-libgirepository-1.0-1_1.56.1-1_amd64.deb ...
Unpacking libgirepository-1.0-1:amd64 (1.56.1-1) ...
Selecting previously unselected package gir1.2-glib-2.0:amd64.
Preparing to unpack .../06-gir1.2-glib-2.0_1.56.1-1_amd64.deb ...
Unpacking gir1.2-glib-2.0:amd64 (1.56.1-1) ...
Selecting previously unselected package libglib2.0-data.
Preparing to unpack .../07-libglib2.0-data_2.56.4-0ubuntu0.18.04.8_all.deb ...
Unpacking libglib2.0-data (2.56.4-0ubuntu0.18.04.8) ...
Selecting previously unselected package libicu60:amd64.
Preparing to unpack .../08-libicu60_60.2-3ubuntu3.1_amd64.deb ...
Unpacking libicu60:amd64 (60.2-3ubuntu3.1) ...
Selecting previously unselected package libxml2:amd64.
Preparing to unpack .../09-libxml2_2.9.4+dfsg1-6.1ubuntu1.3_amd64.deb ...
Unpacking libxml2:amd64 (2.9.4+dfsg1-6.1ubuntu1.3) ...
Selecting previously unselected package python3-dbus.
Preparing to unpack .../10-python3-dbus_1.2.6-1_amd64.deb ...
Unpacking python3-dbus (1.2.6-1) ...
Selecting previously unselected package python3-gi.
Preparing to unpack .../11-python3-gi_3.26.1-2ubuntu1_amd64.deb ...
Unpacking python3-gi (3.26.1-2ubuntu1) ...
Selecting previously unselected package shared-mime-info.
Preparing to unpack .../12-shared-mime-info_1.9-2_amd64.deb ...
Unpacking shared-mime-info (1.9-2) ...
Selecting previously unselected package xdg-user-dirs.
Preparing to unpack .../13-xdg-user-dirs_0.17-1ubuntu1_amd64.deb ...
Unpacking xdg-user-dirs (0.17-1ubuntu1) ...
Selecting previously unselected package manpages.
Preparing to unpack .../14-manpages_4.15-1_all.deb ...
Unpacking manpages (4.15-1) ...
Selecting previously unselected package binutils-common:amd64.
Preparing to unpack .../15-binutils-common_2.30-21ubuntu1~18.04.5_amd64.deb ...
Unpacking binutils-common:amd64 (2.30-21ubuntu1~18.04.5) ...
Selecting previously unselected package libbinutils:amd64.
Preparing to unpack .../16-libbinutils_2.30-21ubuntu1~18.04.5_amd64.deb ...
Unpacking libbinutils:amd64 (2.30-21ubuntu1~18.04.5) ...
Selecting previously unselected package binutils-x86-64-linux-gnu.
Preparing to unpack .../17-binutils-x86-64-linux-gnu_2.30-21ubuntu1~18.04.5_amd64.deb ...
Unpacking binutils-x86-64-linux-gnu (2.30-21ubuntu1~18.04.5) ...
Selecting previously unselected package binutils.
Preparing to unpack .../18-binutils_2.30-21ubuntu1~18.04.5_amd64.deb ...
Unpacking binutils (2.30-21ubuntu1~18.04.5) ...
Selecting previously unselected package libc-dev-bin.
Preparing to unpack .../19-libc-dev-bin_2.27-3ubuntu1.4_amd64.deb ...
Unpacking libc-dev-bin (2.27-3ubuntu1.4) ...
Selecting previously unselected package linux-libc-dev:amd64.
Preparing to unpack .../20-linux-libc-dev_4.15.0-143.147_amd64.deb ...
Unpacking linux-libc-dev:amd64 (4.15.0-143.147) ...
Selecting previously unselected package libc6-dev:amd64.
Preparing to unpack .../21-libc6-dev_2.27-3ubuntu1.4_amd64.deb ...
Unpacking libc6-dev:amd64 (2.27-3ubuntu1.4) ...
Selecting previously unselected package gcc-7-base:amd64.
Preparing to unpack .../22-gcc-7-base_7.5.0-3ubuntu1~18.04_amd64.deb ...
Unpacking gcc-7-base:amd64 (7.5.0-3ubuntu1~18.04) ...
Selecting previously unselected package libisl19:amd64.
Preparing to unpack .../23-libisl19_0.19-1_amd64.deb ...
Unpacking libisl19:amd64 (0.19-1) ...
Selecting previously unselected package libmpfr6:amd64.
Preparing to unpack .../24-libmpfr6_4.0.1-1_amd64.deb ...
Unpacking libmpfr6:amd64 (4.0.1-1) ...
Selecting previously unselected package libmpc3:amd64.
Preparing to unpack .../25-libmpc3_1.1.0-1_amd64.deb ...
Unpacking libmpc3:amd64 (1.1.0-1) ...
Selecting previously unselected package cpp-7.
Preparing to unpack .../26-cpp-7_7.5.0-3ubuntu1~18.04_amd64.deb ...
Unpacking cpp-7 (7.5.0-3ubuntu1~18.04) ...
Selecting previously unselected package cpp.
Preparing to unpack .../27-cpp_4%3a7.4.0-1ubuntu2.3_amd64.deb ...
Unpacking cpp (4:7.4.0-1ubuntu2.3) ...
Selecting previously unselected package libcc1-0:amd64.
Preparing to unpack .../28-libcc1-0_8.4.0-1ubuntu1~18.04_amd64.deb ...
Unpacking libcc1-0:amd64 (8.4.0-1ubuntu1~18.04) ...
Selecting previously unselected package libgomp1:amd64.
Preparing to unpack .../29-libgomp1_8.4.0-1ubuntu1~18.04_amd64.deb ...
Unpacking libgomp1:amd64 (8.4.0-1ubuntu1~18.04) ...
Selecting previously unselected package libitm1:amd64.
Preparing to unpack .../30-libitm1_8.4.0-1ubuntu1~18.04_amd64.deb ...
Unpacking libitm1:amd64 (8.4.0-1ubuntu1~18.04) ...
Selecting previously unselected package libatomic1:amd64.
Preparing to unpack .../31-libatomic1_8.4.0-1ubuntu1~18.04_amd64.deb ...
Unpacking libatomic1:amd64 (8.4.0-1ubuntu1~18.04) ...
Selecting previously unselected package libasan4:amd64.
Preparing to unpack .../32-libasan4_7.5.0-3ubuntu1~18.04_amd64.deb ...
Unpacking libasan4:amd64 (7.5.0-3ubuntu1~18.04) ...
Selecting previously unselected package liblsan0:amd64.
Preparing to unpack .../33-liblsan0_8.4.0-1ubuntu1~18.04_amd64.deb ...
Unpacking liblsan0:amd64 (8.4.0-1ubuntu1~18.04) ...
Selecting previously unselected package libtsan0:amd64.
Preparing to unpack .../34-libtsan0_8.4.0-1ubuntu1~18.04_amd64.deb ...
Unpacking libtsan0:amd64 (8.4.0-1ubuntu1~18.04) ...
Selecting previously unselected package libubsan0:amd64.
Preparing to unpack .../35-libubsan0_7.5.0-3ubuntu1~18.04_amd64.deb ...
Unpacking libubsan0:amd64 (7.5.0-3ubuntu1~18.04) ...
Selecting previously unselected package libcilkrts5:amd64.
Preparing to unpack .../36-libcilkrts5_7.5.0-3ubuntu1~18.04_amd64.deb ...
Unpacking libcilkrts5:amd64 (7.5.0-3ubuntu1~18.04) ...
Selecting previously unselected package libmpx2:amd64.
Preparing to unpack .../37-libmpx2_8.4.0-1ubuntu1~18.04_amd64.deb ...
Unpacking libmpx2:amd64 (8.4.0-1ubuntu1~18.04) ...
Selecting previously unselected package libquadmath0:amd64.
Preparing to unpack .../38-libquadmath0_8.4.0-1ubuntu1~18.04_amd64.deb ...
Unpacking libquadmath0:amd64 (8.4.0-1ubuntu1~18.04) ...
Selecting previously unselected package libgcc-7-dev:amd64.
Preparing to unpack .../39-libgcc-7-dev_7.5.0-3ubuntu1~18.04_amd64.deb ...
Unpacking libgcc-7-dev:amd64 (7.5.0-3ubuntu1~18.04) ...
Selecting previously unselected package gcc-7.
Preparing to unpack .../40-gcc-7_7.5.0-3ubuntu1~18.04_amd64.deb ...
Unpacking gcc-7 (7.5.0-3ubuntu1~18.04) ...
Selecting previously unselected package gcc.
Preparing to unpack .../41-gcc_4%3a7.4.0-1ubuntu2.3_amd64.deb ...
Unpacking gcc (4:7.4.0-1ubuntu2.3) ...
Selecting previously unselected package libstdc++-7-dev:amd64.
Preparing to unpack .../42-libstdc++-7-dev_7.5.0-3ubuntu1~18.04_amd64.deb ...
Unpacking libstdc++-7-dev:amd64 (7.5.0-3ubuntu1~18.04) ...
Selecting previously unselected package g++-7.
Preparing to unpack .../43-g++-7_7.5.0-3ubuntu1~18.04_amd64.deb ...
Unpacking g++-7 (7.5.0-3ubuntu1~18.04) ...
Selecting previously unselected package g++.
Preparing to unpack .../44-g++_4%3a7.4.0-1ubuntu2.3_amd64.deb ...
Unpacking g++ (4:7.4.0-1ubuntu2.3) ...
Selecting previously unselected package make.
Preparing to unpack .../45-make_4.1-9.1ubuntu1_amd64.deb ...
Unpacking make (4.1-9.1ubuntu1) ...
Selecting previously unselected package libdpkg-perl.
Preparing to unpack .../46-libdpkg-perl_1.19.0.5ubuntu2.3_all.deb ...
Unpacking libdpkg-perl (1.19.0.5ubuntu2.3) ...
Selecting previously unselected package dpkg-dev.
Preparing to unpack .../47-dpkg-dev_1.19.0.5ubuntu2.3_all.deb ...
Unpacking dpkg-dev (1.19.0.5ubuntu2.3) ...
Selecting previously unselected package build-essential.
Preparing to unpack .../48-build-essential_12.4ubuntu1_amd64.deb ...
Unpacking build-essential (12.4ubuntu1) ...
Selecting previously unselected package python3-lib2to3.
Preparing to unpack .../49-python3-lib2to3_3.6.9-1~18.04_all.deb ...
Unpacking python3-lib2to3 (3.6.9-1~18.04) ...
Selecting previously unselected package python3-distutils.
Preparing to unpack .../50-python3-distutils_3.6.9-1~18.04_all.deb ...
Unpacking python3-distutils (3.6.9-1~18.04) ...
Selecting previously unselected package dh-python.
Preparing to unpack .../51-dh-python_3.20180325ubuntu2_all.deb ...
Unpacking dh-python (3.20180325ubuntu2) ...
Selecting previously unselected package libfakeroot:amd64.
Preparing to unpack .../52-libfakeroot_1.22-2ubuntu1_amd64.deb ...
Unpacking libfakeroot:amd64 (1.22-2ubuntu1) ...
Selecting previously unselected package fakeroot.
Preparing to unpack .../53-fakeroot_1.22-2ubuntu1_amd64.deb ...
Unpacking fakeroot (1.22-2ubuntu1) ...
Selecting previously unselected package libalgorithm-diff-perl.
Preparing to unpack .../54-libalgorithm-diff-perl_1.19.03-1_all.deb ...
Unpacking libalgorithm-diff-perl (1.19.03-1) ...
Selecting previously unselected package libalgorithm-diff-xs-perl.
Preparing to unpack .../55-libalgorithm-diff-xs-perl_0.04-5_amd64.deb ...
Unpacking libalgorithm-diff-xs-perl (0.04-5) ...
Selecting previously unselected package libalgorithm-merge-perl.
Preparing to unpack .../56-libalgorithm-merge-perl_0.08-3_all.deb ...
Unpacking libalgorithm-merge-perl (0.08-3) ...
Selecting previously unselected package libexpat1-dev:amd64.
Preparing to unpack .../57-libexpat1-dev_2.2.5-3ubuntu0.2_amd64.deb ...
Unpacking libexpat1-dev:amd64 (2.2.5-3ubuntu0.2) ...
Selecting previously unselected package libfile-fcntllock-perl.
Preparing to unpack .../58-libfile-fcntllock-perl_0.22-3build2_amd64.deb ...
Unpacking libfile-fcntllock-perl (0.22-3build2) ...
Selecting previously unselected package libpython3.6:amd64.
Preparing to unpack .../59-libpython3.6_3.6.9-1~18.04ubuntu1.4_amd64.deb ...
Unpacking libpython3.6:amd64 (3.6.9-1~18.04ubuntu1.4) ...
Selecting previously unselected package libpython3.6-dev:amd64.
Preparing to unpack .../60-libpython3.6-dev_3.6.9-1~18.04ubuntu1.4_amd64.deb ...
Unpacking libpython3.6-dev:amd64 (3.6.9-1~18.04ubuntu1.4) ...
Selecting previously unselected package libpython3-dev:amd64.
Preparing to unpack .../61-libpython3-dev_3.6.7-1~18.04_amd64.deb ...
Unpacking libpython3-dev:amd64 (3.6.7-1~18.04) ...
Selecting previously unselected package libssl-dev:amd64.
Preparing to unpack .../62-libssl-dev_1.1.1-1ubuntu2.1~18.04.9_amd64.deb ...
Unpacking libssl-dev:amd64 (1.1.1-1ubuntu2.1~18.04.9) ...
Selecting previously unselected package manpages-dev.
Preparing to unpack .../63-manpages-dev_4.15-1_all.deb ...
Unpacking manpages-dev (4.15-1) ...
Selecting previously unselected package python-pip-whl.
Preparing to unpack .../64-python-pip-whl_9.0.1-2.3~ubuntu1.18.04.4_all.deb ...
Unpacking python-pip-whl (9.0.1-2.3~ubuntu1.18.04.4) ...
Selecting previously unselected package python3-asn1crypto.
Preparing to unpack .../65-python3-asn1crypto_0.24.0-1_all.deb ...
Unpacking python3-asn1crypto (0.24.0-1) ...
Selecting previously unselected package python3-cffi-backend.
Preparing to unpack .../66-python3-cffi-backend_1.11.5-1_amd64.deb ...
Unpacking python3-cffi-backend (1.11.5-1) ...
Selecting previously unselected package python3-crypto.
Preparing to unpack .../67-python3-crypto_2.6.1-8ubuntu2_amd64.deb ...
Unpacking python3-crypto (2.6.1-8ubuntu2) ...
Selecting previously unselected package python3-idna.
Preparing to unpack .../68-python3-idna_2.6-1_all.deb ...
Unpacking python3-idna (2.6-1) ...
Selecting previously unselected package python3-six.
Preparing to unpack .../69-python3-six_1.11.0-2_all.deb ...
Unpacking python3-six (1.11.0-2) ...
Selecting previously unselected package python3-cryptography.
Preparing to unpack .../70-python3-cryptography_2.1.4-1ubuntu1.4_amd64.deb ...
Unpacking python3-cryptography (2.1.4-1ubuntu1.4) ...
Selecting previously unselected package python3.6-dev.
Preparing to unpack .../71-python3.6-dev_3.6.9-1~18.04ubuntu1.4_amd64.deb ...
Unpacking python3.6-dev (3.6.9-1~18.04ubuntu1.4) ...
Selecting previously unselected package python3-dev.
Preparing to unpack .../72-python3-dev_3.6.7-1~18.04_amd64.deb ...
Unpacking python3-dev (3.6.7-1~18.04) ...
Selecting previously unselected package python3-secretstorage.
Preparing to unpack .../73-python3-secretstorage_2.3.1-2_all.deb ...
Unpacking python3-secretstorage (2.3.1-2) ...
Selecting previously unselected package python3-keyring.
Preparing to unpack .../74-python3-keyring_10.6.0-1_all.deb ...
Unpacking python3-keyring (10.6.0-1) ...
Selecting previously unselected package python3-keyrings.alt.
Preparing to unpack .../75-python3-keyrings.alt_3.0-1_all.deb ...
Unpacking python3-keyrings.alt (3.0-1) ...
Selecting previously unselected package python3-pip.
Preparing to unpack .../76-python3-pip_9.0.1-2.3~ubuntu1.18.04.4_all.deb ...
Unpacking python3-pip (9.0.1-2.3~ubuntu1.18.04.4) ...
Selecting previously unselected package python3-pkg-resources.
Preparing to unpack .../77-python3-pkg-resources_39.0.1-2_all.deb ...
Unpacking python3-pkg-resources (39.0.1-2) ...
Selecting previously unselected package python3-setuptools.
Preparing to unpack .../78-python3-setuptools_39.0.1-2_all.deb ...
Unpacking python3-setuptools (39.0.1-2) ...
Selecting previously unselected package python3.6-venv.
Preparing to unpack .../79-python3.6-venv_3.6.9-1~18.04ubuntu1.4_amd64.deb ...
Unpacking python3.6-venv (3.6.9-1~18.04ubuntu1.4) ...
Selecting previously unselected package python3-venv.
Preparing to unpack .../80-python3-venv_3.6.7-1~18.04_amd64.deb ...
Unpacking python3-venv (3.6.7-1~18.04) ...
Selecting previously unselected package python3-wheel.
Preparing to unpack .../81-python3-wheel_0.30.0-0.2_all.deb ...
Unpacking python3-wheel (0.30.0-0.2) ...
Selecting previously unselected package python3-xdg.
Preparing to unpack .../82-python3-xdg_0.25-4ubuntu1.1_all.deb ...
Unpacking python3-xdg (0.25-4ubuntu1.1) ...
Selecting previously unselected package libffi-dev:amd64.
Preparing to unpack .../83-libffi-dev_3.2.1-8_amd64.deb ...
Unpacking libffi-dev:amd64 (3.2.1-8) ...
Setting up libquadmath0:amd64 (8.4.0-1ubuntu1~18.04) ...
Setting up libgomp1:amd64 (8.4.0-1ubuntu1~18.04) ...
Setting up libatomic1:amd64 (8.4.0-1ubuntu1~18.04) ...
Setting up python-pip-whl (9.0.1-2.3~ubuntu1.18.04.4) ...
Setting up manpages (4.15-1) ...
Setting up libicu60:amd64 (60.2-3ubuntu3.1) ...
Setting up libcc1-0:amd64 (8.4.0-1ubuntu1~18.04) ...
Setting up make (4.1-9.1ubuntu1) ...
Setting up libtsan0:amd64 (8.4.0-1ubuntu1~18.04) ...
Setting up libssl-dev:amd64 (1.1.1-1ubuntu2.1~18.04.9) ...
Setting up libglib2.0-0:amd64 (2.56.4-0ubuntu0.18.04.8) ...
No schema files found: doing nothing.
Setting up linux-libc-dev:amd64 (4.15.0-143.147) ...
Setting up libmpfr6:amd64 (4.0.1-1) ...
Setting up libdpkg-perl (1.19.0.5ubuntu2.3) ...
Setting up libffi-dev:amd64 (3.2.1-8) ...
Setting up libgirepository-1.0-1:amd64 (1.56.1-1) ...
Setting up libxml2:amd64 (2.9.4+dfsg1-6.1ubuntu1.3) ...
Setting up liblsan0:amd64 (8.4.0-1ubuntu1~18.04) ...
Setting up gcc-7-base:amd64 (7.5.0-3ubuntu1~18.04) ...
Setting up binutils-common:amd64 (2.30-21ubuntu1~18.04.5) ...
Setting up libfile-fcntllock-perl (0.22-3build2) ...
Setting up libmpx2:amd64 (8.4.0-1ubuntu1~18.04) ...
Setting up gir1.2-glib-2.0:amd64 (1.56.1-1) ...
Setting up libglib2.0-data (2.56.4-0ubuntu0.18.04.8) ...
Setting up libapparmor1:amd64 (2.12-4ubuntu5.1) ...
Setting up libfakeroot:amd64 (1.22-2ubuntu1) ...
Setting up libalgorithm-diff-perl (1.19.03-1) ...
Setting up liblocale-gettext-perl (1.07-3build2) ...
Setting up shared-mime-info (1.9-2) ...
Setting up libmpc3:amd64 (1.1.0-1) ...
Setting up libc-dev-bin (2.27-3ubuntu1.4) ...
Setting up manpages-dev (4.15-1) ...
Setting up libc6-dev:amd64 (2.27-3ubuntu1.4) ...
Setting up xdg-user-dirs (0.17-1ubuntu1) ...
Setting up libitm1:amd64 (8.4.0-1ubuntu1~18.04) ...
Setting up libmpdec2:amd64 (2.4.2-1ubuntu1) ...
Setting up libdbus-1-3:amd64 (1.12.2-1ubuntu1.2) ...
Setting up libisl19:amd64 (0.19-1) ...
Setting up libpython3.6-stdlib:amd64 (3.6.9-1~18.04ubuntu1.4) ...
Setting up python3.6 (3.6.9-1~18.04ubuntu1.4) ...
Setting up libasan4:amd64 (7.5.0-3ubuntu1~18.04) ...
Setting up libbinutils:amd64 (2.30-21ubuntu1~18.04.5) ...
Setting up libcilkrts5:amd64 (7.5.0-3ubuntu1~18.04) ...
Setting up libubsan0:amd64 (7.5.0-3ubuntu1~18.04) ...
Setting up python3.6-venv (3.6.9-1~18.04ubuntu1.4) ...
Setting up fakeroot (1.22-2ubuntu1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/fakeroot.1.gz because associated file /usr/share/man/man1/fakeroot-sysv.1.gz (of link group fakeroot) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/faked.1.gz because associated file /usr/share/man/man1/faked-sysv.1.gz (of link group fakeroot) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/es/man1/fakeroot.1.gz because associated file /usr/share/man/es/man1/fakeroot-sysv.1.gz (of link group fakeroot) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/es/man1/faked.1.gz because associated file /usr/share/man/es/man1/faked-sysv.1.gz (of link group fakeroot) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/fr/man1/fakeroot.1.gz because associated file /usr/share/man/fr/man1/fakeroot-sysv.1.gz (of link group fakeroot) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/fr/man1/faked.1.gz because associated file /usr/share/man/fr/man1/faked-sysv.1.gz (of link group fakeroot) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/sv/man1/fakeroot.1.gz because associated file /usr/share/man/sv/man1/fakeroot-sysv.1.gz (of link group fakeroot) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/sv/man1/faked.1.gz because associated file /usr/share/man/sv/man1/faked-sysv.1.gz (of link group fakeroot) doesn't exist
Setting up libgcc-7-dev:amd64 (7.5.0-3ubuntu1~18.04) ...
Setting up cpp-7 (7.5.0-3ubuntu1~18.04) ...
Setting up libstdc++-7-dev:amd64 (7.5.0-3ubuntu1~18.04) ...
Setting up libalgorithm-merge-perl (0.08-3) ...
Setting up libalgorithm-diff-xs-perl (0.04-5) ...
Setting up libexpat1-dev:amd64 (2.2.5-3ubuntu0.2) ...
Setting up dbus (1.12.2-1ubuntu1.2) ...
Setting up libpython3.6:amd64 (3.6.9-1~18.04ubuntu1.4) ...
Setting up binutils-x86-64-linux-gnu (2.30-21ubuntu1~18.04.5) ...
Setting up libpython3-stdlib:amd64 (3.6.7-1~18.04) ...
Setting up cpp (4:7.4.0-1ubuntu2.3) ...
Setting up python3 (3.6.7-1~18.04) ...
running python rtupdate hooks for python3.6...
running python post-rtupdate hooks for python3.6...
Setting up python3-cffi-backend (1.11.5-1) ...
Setting up python3-crypto (2.6.1-8ubuntu2) ...
Setting up python3-idna (2.6-1) ...
Setting up python3-xdg (0.25-4ubuntu1.1) ...
Setting up python3-six (1.11.0-2) ...
Setting up python3-wheel (0.30.0-0.2) ...
Setting up python3-pkg-resources (39.0.1-2) ...
Setting up python3-gi (3.26.1-2ubuntu1) ...
Setting up libpython3.6-dev:amd64 (3.6.9-1~18.04ubuntu1.4) ...
Setting up python3-asn1crypto (0.24.0-1) ...
Setting up binutils (2.30-21ubuntu1~18.04.5) ...
Setting up python3.6-dev (3.6.9-1~18.04ubuntu1.4) ...
Setting up python3-lib2to3 (3.6.9-1~18.04) ...
Setting up python3-distutils (3.6.9-1~18.04) ...
Setting up libpython3-dev:amd64 (3.6.7-1~18.04) ...
Setting up python3-venv (3.6.7-1~18.04) ...
Setting up python3-cryptography (2.1.4-1ubuntu1.4) ...
Setting up python3-dbus (1.2.6-1) ...
Setting up gcc-7 (7.5.0-3ubuntu1~18.04) ...
Setting up g++-7 (7.5.0-3ubuntu1~18.04) ...
Setting up python3-keyrings.alt (3.0-1) ...
Setting up gcc (4:7.4.0-1ubuntu2.3) ...
Setting up dpkg-dev (1.19.0.5ubuntu2.3) ...
Setting up python3-pip (9.0.1-2.3~ubuntu1.18.04.4) ...
Setting up g++ (4:7.4.0-1ubuntu2.3) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/c++.1.gz because associated file /usr/share/man/man1/g++.1.gz (of link group c++) doesn't exist
Setting up python3-setuptools (39.0.1-2) ...
Setting up python3-secretstorage (2.3.1-2) ...
Setting up dh-python (3.20180325ubuntu2) ...
Setting up python3-keyring (10.6.0-1) ...
Setting up build-essential (12.4ubuntu1) ...
Setting up python3-dev (3.6.7-1~18.04) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for libc-bin (2.27-3ubuntu1.4) ...
[cont-init.d] 98-python3: exited 0.
[cont-init.d] 99-custom-scripts: executing... 
[custom-init] files found in /config/custom-cont-init.d executing
[custom-init] python_pip.sh: executing...
WARNING: The directory '/config/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Requirement already satisfied: pip in /config/.local/lib/python3.6/site-packages (21.1.1)
Collecting pip
  Downloading pip-21.1.2-py3-none-any.whl (1.5 MB)
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 21.1.1
    Uninstalling pip-21.1.1:
      Successfully uninstalled pip-21.1.1
Successfully installed pip-21.1.2
WARNING: Running pip as root will break packages and permissions. You should install packages reliably by using venv: https://pip.pypa.io/warnings/venv
WARNING: The directory '/config/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Collecting tidal-dl
  Downloading tidal_dl-2021.5.25.1-py3-none-any.whl (50 kB)
Requirement already satisfied: pycryptodome in /config/.local/lib/python3.6/site-packages (from tidal-dl) (3.10.1)
Collecting aigpy>=2021.5.25.1
  Downloading aigpy-2021.5.27.1-py3-none-any.whl (19 kB)
Requirement already satisfied: prettytable in /config/.local/lib/python3.6/site-packages (from tidal-dl) (2.1.0)
Requirement already satisfied: pydub in /config/.local/lib/python3.6/site-packages (from tidal-dl) (0.25.1)
Requirement already satisfied: requests>=2.22.0 in /config/.local/lib/python3.6/site-packages (from tidal-dl) (2.25.1)
Requirement already satisfied: mutagen in /config/.local/lib/python3.6/site-packages (from aigpy>=2021.5.25.1->tidal-dl) (1.45.1)
Requirement already satisfied: colorama in /config/.local/lib/python3.6/site-packages (from aigpy>=2021.5.25.1->tidal-dl) (0.4.4)
Requirement already satisfied: idna<3,>=2.5 in /usr/lib/python3/dist-packages (from requests>=2.22.0->tidal-dl) (2.6)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /config/.local/lib/python3.6/site-packages (from requests>=2.22.0->tidal-dl) (1.26.4)
Requirement already satisfied: certifi>=2017.4.17 in /config/.local/lib/python3.6/site-packages (from requests>=2.22.0->tidal-dl) (2020.12.5)
Requirement already satisfied: chardet<5,>=3.0.2 in /config/.local/lib/python3.6/site-packages (from requests>=2.22.0->tidal-dl) (4.0.0)
Requirement already satisfied: wcwidth in /config/.local/lib/python3.6/site-packages (from prettytable->tidal-dl) (0.2.5)
Requirement already satisfied: importlib-metadata in /config/.local/lib/python3.6/site-packages (from prettytable->tidal-dl) (4.0.1)
Requirement already satisfied: typing-extensions>=3.6.4 in /config/.local/lib/python3.6/site-packages (from importlib-metadata->prettytable->tidal-dl) (3.10.0.0)
Requirement already satisfied: zipp>=0.5 in /config/.local/lib/python3.6/site-packages (from importlib-metadata->prettytable->tidal-dl) (3.4.1)
Installing collected packages: aigpy, tidal-dl
Successfully installed aigpy-2021.5.27.1 tidal-dl-2021.5.25.1
WARNING: Running pip as root will break packages and permissions. You should install packages reliably by using venv: https://pip.pypa.io/warnings/venv
[custom-init] python_pip.sh: exited 0
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2021-05-29T20:07:07.493Z] info  code-server 3.10.2 387b12ef4ca404ffd39d84834e1f0776e9e3c005
[2021-05-29T20:07:07.493Z] info  Using user-data-dir ~/data
[2021-05-29T20:07:07.501Z] info  Using config file ~/.config/code-server/config.yaml
[2021-05-29T20:07:07.501Z] info  HTTP server listening on http://0.0.0.0:8443 
[2021-05-29T20:07:07.501Z] info    - Authentication is enabled
[2021-05-29T20:07:07.501Z] info      - Using password from $PASSWORD
[2021-05-29T20:07:07.501Z] info    - Not serving HTTPS 
[2021-05-29T20:07:18.160Z] error vscode is not running Error: vscode is not running
    at VscodeProvider.send (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:206:19)
    at VscodeProvider.<anonymous> (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:198:30)
    at step (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:63:23)
    at Object.next (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:44:53)
    at fulfilled (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:35:58)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
[2021-05-29T20:07:26.220Z] error vscode is not running Error: vscode is not running
    at VscodeProvider.send (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:206:19)
    at VscodeProvider.<anonymous> (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:198:30)
    at step (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:63:23)
    at Object.next (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:44:53)
    at fulfilled (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:35:58)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
[2021-05-29T20:07:58.621Z] error vscode is not running Error: vscode is not running
    at VscodeProvider.send (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:206:19)
    at VscodeProvider.<anonymous> (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:198:30)
    at step (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:63:23)
    at Object.next (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:44:53)
    at fulfilled (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:35:58)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
[2021-05-29T20:08:06.700Z] error vscode is not running Error: vscode is not running
    at VscodeProvider.send (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:206:19)
    at VscodeProvider.<anonymous> (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:198:30)
    at step (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:63:23)
    at Object.next (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:44:53)
    at fulfilled (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:35:58)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
[2021-05-29T20:08:39.063Z] error vscode is not running Error: vscode is not running
    at VscodeProvider.send (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:206:19)
    at VscodeProvider.<anonymous> (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:198:30)
    at step (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:63:23)
    at Object.next (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:44:53)
    at fulfilled (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:35:58)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
[2021-05-29T20:08:47.164Z] error vscode is not running Error: vscode is not running
    at VscodeProvider.send (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:206:19)
    at VscodeProvider.<anonymous> (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:198:30)
    at step (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:63:23)
    at Object.next (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:44:53)
    at fulfilled (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:35:58)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

Update the Container

How to update the code-server from within the container instead of deploying again from a new image?

Unset SUDO_PASSWORD env variable

I find that setting the SUDO_PASSWORD when starting this container does keep it for the whole running life of the container.
My understanding is that it is at some point being used on init to set the sudo password of the abc user, but really, once initialized, I believe it would be safer to at least unset it to avoid anyone having a terminal being able to just echo the envvar...

I'm also having trumendest issues getting the SUDO_PASSWORD_HASH to work, I'm using $ in my password, and using a compose.yml file to start the code-server container and pass all variables, so any help in getting the proper syntax, as the echo -n "password" | npx argon2-cli -e syntax on the wiki of code-server is not able to deal with $ signs and prints out something like this : $argon2i$v=19$m=4096,t=3,p=1$f2v7Q2zMnxdMtlAP1T4HXQ$teRq1ux1px8UEHMNkFreKCEtsEIRiSpyX3kc38b5I30
(I know now that I need to replace any $ in the value by $$ in my compose file, not sure about quotes or double-quotes surrinding it yet...)

Missing extensions since V4.0

linuxserver.io


Expected Behavior

When searching for code-server extensions results should pop up.

Current Behavior

Starting with V4.0 the list of search results for extensions is incomplete when compared to V3.12.
Similarly, installing plugins through cli with their respective identifiers fails, where in V3.12 there was no issue.
(Regardless of using the newly added helper script)

Steps to Reproduce

  1. Spin up a container for linuxserver/code-server:3.12.0
  2. Search for extension, e.g. 'keesschollaart.vscode-home-assistant'
  3. You can find and install it.
  4. Now spin up a new container with a newer version: linuxserver/code-server:4.0.2
  5. Perform the same extension search as in step 2
  6. No results found...

Similar verification through commandline installation.

Environment

OS: Windows & Linux
CPU architecture: x86_64 & arm32
How docker service was installed:

Windows: docker-desktop
Linux: Curl helper script

Command used to create docker container (run/create/compose/screenshot)

compose:

  code-server:
    image: linuxserver/code-server
    container_name: code-server
    restart: unless-stopped
    volumes:
      - ./Volumes/code-server/config:/config
    environment:
      - PUID=${USERID}
      - PGID=${GROUPID}
      - TZ=${TIMEZONE}
      - DEFAULT_WORKSPACE=/docker-stack

Docker logs

Unavailable at time of writing. Will add later in case information above proves insufficient.

Blank page on login to HTTPS

linuxserver.io


Expected Behavior

Code-Server should load up the IDE

Current Behavior

After entering my password, it loads a blank page.

Steps to Reproduce

  1. Build code-server container using Docker Compose
  2. Configure Router Port Forwarding
  3. Configure Nginx
  4. Configure Let's Encrypt SSL
  5. Access https://my.domain.com
  6. Enter password

Accessing it via internal IP and HTTP works fine
Accessing it via the above steps through the proxy and HTTPS fails

Environment

OS:
Portainer running on Proxmox
CPU architecture:
Ryzen 5 2600x
How docker service was installed:

Docker compose

Command used to create docker container (run/create/compose/screenshot)

---
version: "2.1"
services:
  code-server:
    image: ghcr.io/linuxserver/code-server
    container_name: code-server
    environment:
      - PUID=${PUID} # default user id, defined in .env
      - PGID=${PGID} # default group id, defined in .env
      - TZ=${TZ} # timezone, defined in .env
      - PASSWORD=password
      - SUDO_PASSWORD=sudopassword
      - PROXY_DOMAIN=my.domain.com
    volumes:
      - ${ROOT}/config/codeserver:/config
    ports:
      - 8443:8443
    restart: unless-stopped

Docker logs

-------------------------------------

          _         ()

         | |  ___   _    __

         | | / __| | |  /  \ 

         | | \__ \ | | | () |

         |_| |___/ |_|  \__/



Brought to you by linuxserver.io

-------------------------------------


To support LSIO projects visit:

https://www.linuxserver.io/donate/

-------------------------------------

GID/UID

-------------------------------------


User uid:    1000

User gid:    1000

-------------------------------------


[cont-init.d] 10-adduser: exited 0.

[cont-init.d] 30-config: executing... 

setting up sudo access

setting sudo password using SUDO_PASSWORD env var

Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully

[cont-init.d] 30-config: exited 0.

[cont-init.d] 90-custom-folders: executing... 

[cont-init.d] 90-custom-folders: exited 0.

[cont-init.d] 99-custom-scripts: executing... 

[custom-init] no custom files found exiting...

[cont-init.d] 99-custom-scripts: exited 0.

[cont-init.d] done.

[services.d] starting services

[services.d] done.

[2021-09-16T15:58:00.944Z] info  code-server 3.11.1 acb5de66b71a3f8f1cc065df4633ecd3f9788d46

[2021-09-16T15:58:00.945Z] info  Using user-data-dir ~/data

[2021-09-16T15:58:00.958Z] info  Using config file ~/.config/code-server/config.yaml

[2021-09-16T15:58:00.958Z] info  HTTP server listening on http://0.0.0.0:8443 

[2021-09-16T15:58:00.958Z] info    - Authentication is enabled

[2021-09-16T15:58:00.958Z] info      - Using password from $PASSWORD

[2021-09-16T15:58:00.958Z] info    - Not serving HTTPS 

[2021-09-16T15:58:00.958Z] info    - Proxying the following domain:

[2021-09-16T15:58:00.959Z] info      - *.my.domain.com

Additionally I have developer console errors in HTTPS that do not appear in HTTP mode:

vscode.browserified.js:725 [vscode] failed to initialize VS Code
4.../../common/util @ vscode.browserified.js:725
o @ vscode.browserified.js:1
r @ vscode.browserified.js:1
(anonymous) @ vscode.browserified.js:1
vscode.browserified.js:726 Error: [vscode] Could not set body background to theme background color. Could not find colorThemeData in localStorage.
    at setBodyBackgroundToThemeBackgroundColor (vscode.browserified.js:667)
    at main (vscode.browserified.js:718)
    at Object.4.../../common/util (vscode.browserified.js:722)
    at o (vscode.browserified.js:1)
    at r (vscode.browserified.js:1)
    at vscode.browserified.js:1
4.../../common/util @ vscode.browserified.js:726
o @ vscode.browserified.js:1
r @ vscode.browserified.js:1
(anonymous) @ vscode.browserified.js:1
vscode.browserified.js:129 info  [Service Worker] registered
browserSocketFactory.ts:162 WebSocket connection to 'wss://code-server.tylerpatterson.me/?type=Management&reconnectionToken=e1c1da98-e843-458a-a363-ef6117a26b0a&reconnection=false&skipWebSocketFrames=false' failed: 
create @ browserSocketFactory.ts:162
connect @ browserSocketFactory.ts:212
o @ remoteAgentConnection.ts:191
s @ remoteAgentConnection.ts:234
a @ remoteAgentConnection.ts:311
i @ remoteAgentConnection.ts:335
d @ remoteAgentConnection.ts:408
VM93:1 Uncaught (in promise) SyntaxError: Unexpected token u in JSON at position 0
    at JSON.parse (<anonymous>)
    at new ai (editorOverrideService.ts:67)
    at f._createInstance (instantiationService.ts:110)
    at f._createServiceInstance (instantiationService.ts:230)
    at f._createServiceInstanceWithOwner (instantiationService.ts:219)
    at f._createAndCacheServiceInstance (instantiationService.ts:208)
    at f._safeCreateAndCacheServiceInstance (instantiationService.ts:151)
    at f._getOrCreateServiceInstance (instantiationService.ts:135)
    at Object.get (instantiationService.ts:54)
    at L.initLayout (layout.ts:260)
ai @ editorOverrideService.ts:67
_createInstance @ instantiationService.ts:110
_createServiceInstance @ instantiationService.ts:230
_createServiceInstanceWithOwner @ instantiationService.ts:219
_createAndCacheServiceInstance @ instantiationService.ts:208
_safeCreateAndCacheServiceInstance @ instantiationService.ts:151
_getOrCreateServiceInstance @ instantiationService.ts:135
get @ instantiationService.ts:54
initLayout @ layout.ts:260
(anonymous) @ workbench.ts:141
invokeFunction @ instantiationService.ts:61
startup @ workbench.ts:134
open @ web.main.ts:98
Promise.then (async)
m @ workbench.web.api.ts:526
(anonymous) @ workbench.ts:503
(anonymous) @ workbench.ts:510
r._invokeFactory @ loader.js:1136
r.complete @ loader.js:1146
r._onModuleComplete @ loader.js:1772
r._onModuleComplete @ loader.js:1784
r._resolve @ loader.js:1732
r.defineModule @ loader.js:1375
o @ loader.js:1660
v @ loader.js:2167
r._invokeFactory @ loader.js:1136
r.complete @ loader.js:1146
r._onModuleComplete @ loader.js:1772
r._onModuleComplete @ loader.js:1784
r._resolve @ loader.js:1732
r.defineModule @ loader.js:1375
p @ loader.js:1822
(anonymous) @ workbench.nls.js:7
errors.ts:28 Uncaught Error: WebSocket close with status code 1006

Error: WebSocket close with status code 1006
    at WebSocket.<anonymous> (browserSocketFactory.ts:129)
    at errors.ts:28
(anonymous) @ errors.ts:28
setTimeout (async)
unexpectedErrorHandler @ errors.ts:26
onUnexpectedError @ errors.ts:63
O @ errors.ts:82
createStorageService @ web.main.ts:345
async function (async)
createStorageService @ web.main.ts:341
initServices @ web.main.ts:207
async function (async)
initServices @ web.main.ts:188
open @ web.main.ts:89
oe @ web.main.ts:390
m @ workbench.web.api.ts:526
(anonymous) @ workbench.ts:503
(anonymous) @ workbench.ts:510
r._invokeFactory @ loader.js:1136
r.complete @ loader.js:1146
r._onModuleComplete @ loader.js:1772
r._onModuleComplete @ loader.js:1784
r._resolve @ loader.js:1732
r.defineModule @ loader.js:1375
o @ loader.js:1660
v @ loader.js:2167
r._invokeFactory @ loader.js:1136
r.complete @ loader.js:1146
r._onModuleComplete @ loader.js:1772
r._onModuleComplete @ loader.js:1784
r._resolve @ loader.js:1732
r.defineModule @ loader.js:1375
p @ loader.js:1822
(anonymous) @ workbench.nls.js:7
VM94:1 Uncaught SyntaxError: Unexpected token u in JSON at position 0
    at JSON.parse (<anonymous>)
    at new ai (editorOverrideService.ts:67)
    at f._createInstance (instantiationService.ts:110)
    at f._createServiceInstance (instantiationService.ts:230)
    at f._createServiceInstanceWithOwner (instantiationService.ts:219)
    at f._createAndCacheServiceInstance (instantiationService.ts:208)
    at f._safeCreateAndCacheServiceInstance (instantiationService.ts:151)
    at f._getOrCreateServiceInstance (instantiationService.ts:135)
    at f._createInstance (instantiationService.ts:88)
    at f.createInstance (instantiationService.ts:76)
ai @ editorOverrideService.ts:67
_createInstance @ instantiationService.ts:110
_createServiceInstance @ instantiationService.ts:230
_createServiceInstanceWithOwner @ instantiationService.ts:219
_createAndCacheServiceInstance @ instantiationService.ts:208
_safeCreateAndCacheServiceInstance @ instantiationService.ts:151
_getOrCreateServiceInstance @ instantiationService.ts:135
_createInstance @ instantiationService.ts:88
createInstance @ instantiationService.ts:76
acquireInstantiationService @ configurationService.ts:449
(anonymous) @ workbench.ts:207
setTimeout (async)
(anonymous) @ workbench.ts:206
invokeFunction @ instantiationService.ts:61
initServices @ workbench.ts:200
startup @ workbench.ts:132
open @ web.main.ts:98
async function (async)
open @ web.main.ts:89
oe @ web.main.ts:390
m @ workbench.web.api.ts:526
(anonymous) @ workbench.ts:503
(anonymous) @ workbench.ts:510
r._invokeFactory @ loader.js:1136
r.complete @ loader.js:1146
r._onModuleComplete @ loader.js:1772
r._onModuleComplete @ loader.js:1784
r._resolve @ loader.js:1732
r.defineModule @ loader.js:1375
o @ loader.js:1660
v @ loader.js:2167
r._invokeFactory @ loader.js:1136
r.complete @ loader.js:1146
r._onModuleComplete @ loader.js:1772
r._onModuleComplete @ loader.js:1784
r._resolve @ loader.js:1732
r.defineModule @ loader.js:1375
p @ loader.js:1822
(anonymous) @ workbench.nls.js:7
browserSocketFactory.ts:162 WebSocket connection to 'wss://code-server.tylerpatterson.me/?type=ExtensionHost&reconnectionToken=e68ee6af-7218-4e91-99fc-ef01b07f6b86&reconnection=false&skipWebSocketFrames=false' failed: 
create @ browserSocketFactory.ts:162
connect @ browserSocketFactory.ts:212
o @ remoteAgentConnection.ts:191
s @ remoteAgentConnection.ts:234
a @ remoteAgentConnection.ts:311
g @ remoteAgentConnection.ts:353
b @ remoteAgentConnection.ts:422
extensionHostManager.ts:75 Error received from starting extension host (kind: 2)
(anonymous) @ extensionHostManager.ts:75
Promise.then (async)
Zn @ extensionHostManager.ts:69
_createInstance @ instantiationService.ts:110
createInstance @ instantiationService.ts:76
(anonymous) @ abstractExtensionService.ts:602
_startExtensionHosts @ abstractExtensionService.ts:601
_initialize @ abstractExtensionService.ts:505
(anonymous) @ extensionService.ts:78
async function (async)
(anonymous) @ extensionService.ts:77
Promise.then (async)
Ma @ extensionService.ts:76
_createInstance @ instantiationService.ts:110
_createServiceInstance @ instantiationService.ts:230
_createServiceInstanceWithOwner @ instantiationService.ts:219
_createAndCacheServiceInstance @ instantiationService.ts:208
_safeCreateAndCacheServiceInstance @ instantiationService.ts:151
_getOrCreateServiceInstance @ instantiationService.ts:135
get @ instantiationService.ts:54
initLayout @ layout.ts:255
(anonymous) @ workbench.ts:141
invokeFunction @ instantiationService.ts:61
startup @ workbench.ts:134
open @ web.main.ts:98
async function (async)
open @ web.main.ts:89
oe @ web.main.ts:390
m @ workbench.web.api.ts:526
(anonymous) @ workbench.ts:503
(anonymous) @ workbench.ts:510
r._invokeFactory @ loader.js:1136
r.complete @ loader.js:1146
r._onModuleComplete @ loader.js:1772
r._onModuleComplete @ loader.js:1784
r._resolve @ loader.js:1732
r.defineModule @ loader.js:1375
o @ loader.js:1660
v @ loader.js:2167
r._invokeFactory @ loader.js:1136
r.complete @ loader.js:1146
r._onModuleComplete @ loader.js:1772
r._onModuleComplete @ loader.js:1784
r._resolve @ loader.js:1732
r.defineModule @ loader.js:1375
p @ loader.js:1822
(anonymous) @ workbench.nls.js:7
extensionHostManager.ts:76 Error: WebSocket close with status code 1006
    at WebSocket.<anonymous> (browserSocketFactory.ts:129)
(anonymous) @ extensionHostManager.ts:76
Promise.then (async)
Zn @ extensionHostManager.ts:69
_createInstance @ instantiationService.ts:110
createInstance @ instantiationService.ts:76
(anonymous) @ abstractExtensionService.ts:602
_startExtensionHosts @ abstractExtensionService.ts:601
_initialize @ abstractExtensionService.ts:505
(anonymous) @ extensionService.ts:78
async function (async)
(anonymous) @ extensionService.ts:77
Promise.then (async)
Ma @ extensionService.ts:76
_createInstance @ instantiationService.ts:110
_createServiceInstance @ instantiationService.ts:230
_createServiceInstanceWithOwner @ instantiationService.ts:219
_createAndCacheServiceInstance @ instantiationService.ts:208
_safeCreateAndCacheServiceInstance @ instantiationService.ts:151
_getOrCreateServiceInstance @ instantiationService.ts:135
get @ instantiationService.ts:54
initLayout @ layout.ts:255
(anonymous) @ workbench.ts:141
invokeFunction @ instantiationService.ts:61
startup @ workbench.ts:134
open @ web.main.ts:98
async function (async)
open @ web.main.ts:89
oe @ web.main.ts:390
m @ workbench.web.api.ts:526
(anonymous) @ workbench.ts:503
(anonymous) @ workbench.ts:510
r._invokeFactory @ loader.js:1136
r.complete @ loader.js:1146
r._onModuleComplete @ loader.js:1772
r._onModuleComplete @ loader.js:1784
r._resolve @ loader.js:1732
r.defineModule @ loader.js:1375
o @ loader.js:1660
v @ loader.js:2167
r._invokeFactory @ loader.js:1136
r.complete @ loader.js:1146
r._onModuleComplete @ loader.js:1772
r._onModuleComplete @ loader.js:1784
r._resolve @ loader.js:1732
r.defineModule @ loader.js:1375
p @ loader.js:1822
(anonymous) @ workbench.nls.js:7
VM97:1 Uncaught (in promise) SyntaxError: Unexpected token u in JSON at position 0
    at JSON.parse (<anonymous>)
    at new ai (editorOverrideService.ts:67)
    at f._createInstance (instantiationService.ts:110)
    at f._createServiceInstance (instantiationService.ts:230)
    at f._createServiceInstanceWithOwner (instantiationService.ts:219)
    at f._createAndCacheServiceInstance (instantiationService.ts:208)
    at f._safeCreateAndCacheServiceInstance (instantiationService.ts:151)
    at f._getOrCreateServiceInstance (instantiationService.ts:135)
    at f._createInstance (instantiationService.ts:88)
    at f.createInstance (instantiationService.ts:76)
ai @ editorOverrideService.ts:67
_createInstance @ instantiationService.ts:110
_createServiceInstance @ instantiationService.ts:230
_createServiceInstanceWithOwner @ instantiationService.ts:219
_createAndCacheServiceInstance @ instantiationService.ts:208
_safeCreateAndCacheServiceInstance @ instantiationService.ts:151
_getOrCreateServiceInstance @ instantiationService.ts:135
_createInstance @ instantiationService.ts:88
createInstance @ instantiationService.ts:76
_createExtensionHostCustomers @ extensionHostManager.ts:202
(anonymous) @ extensionHostManager.ts:72
Promise.then (async)
Zn @ extensionHostManager.ts:80
_createInstance @ instantiationService.ts:110
createInstance @ instantiationService.ts:76
(anonymous) @ abstractExtensionService.ts:602
_startExtensionHosts @ abstractExtensionService.ts:601
_initialize @ abstractExtensionService.ts:505
(anonymous) @ extensionService.ts:78
async function (async)
(anonymous) @ extensionService.ts:77
Promise.then (async)
Ma @ extensionService.ts:76
_createInstance @ instantiationService.ts:110
_createServiceInstance @ instantiationService.ts:230
_createServiceInstanceWithOwner @ instantiationService.ts:219
_createAndCacheServiceInstance @ instantiationService.ts:208
_safeCreateAndCacheServiceInstance @ instantiationService.ts:151
_getOrCreateServiceInstance @ instantiationService.ts:135
get @ instantiationService.ts:54
initLayout @ layout.ts:255
(anonymous) @ workbench.ts:141
invokeFunction @ instantiationService.ts:61
startup @ workbench.ts:134
open @ web.main.ts:98
async function (async)
open @ web.main.ts:89
oe @ web.main.ts:390
m @ workbench.web.api.ts:526
(anonymous) @ workbench.ts:503
(anonymous) @ workbench.ts:510
r._invokeFactory @ loader.js:1136
r.complete @ loader.js:1146
r._onModuleComplete @ loader.js:1772
r._onModuleComplete @ loader.js:1784
r._resolve @ loader.js:1732
r.defineModule @ loader.js:1375
o @ loader.js:1660
v @ loader.js:2167
r._invokeFactory @ loader.js:1136
r.complete @ loader.js:1146
r._onModuleComplete @ loader.js:1772
r._onModuleComplete @ loader.js:1784
r._resolve @ loader.js:1732
r.defineModule @ loader.js:1375
p @ loader.js:1822
(anonymous) @ workbench.nls.js:7
15VM97:1 Uncaught (in promise) SyntaxError: Unexpected token u in JSON at position 0
    at JSON.parse (<anonymous>)
    at new ai (editorOverrideService.ts:67)
    at f._createInstance (instantiationService.ts:110)
    at f._createServiceInstance (instantiationService.ts:230)
    at f._createServiceInstanceWithOwner (instantiationService.ts:219)
    at f._createAndCacheServiceInstance (instantiationService.ts:208)
    at f._safeCreateAndCacheServiceInstance (instantiationService.ts:151)
    at f._getOrCreateServiceInstance (instantiationService.ts:135)
    at f._createInstance (instantiationService.ts:88)
    at f.createInstance (instantiationService.ts:76)
ai @ editorOverrideService.ts:67
_createInstance @ instantiationService.ts:110
_createServiceInstance @ instantiationService.ts:230
_createServiceInstanceWithOwner @ instantiationService.ts:219
_createAndCacheServiceInstance @ instantiationService.ts:208
_safeCreateAndCacheServiceInstance @ instantiationService.ts:151
_getOrCreateServiceInstance @ instantiationService.ts:135
_createInstance @ instantiationService.ts:88
createInstance @ instantiationService.ts:76
_createExtensionHostCustomers @ extensionHostManager.ts:202
(anonymous) @ extensionHostManager.ts:72
../../../../../vs/workbench/services/extensions/worker/extensionHostWorker.js:72 Uncaught (in promise) Error: Unknown actor MainThreadWindow
    at s._doInvokeHandler (workbench.web.api.js:1827)
    at s._invokeHandler (workbench.web.api.js:1827)
    at s._receiveRequest (workbench.web.api.js:1827)
    at s._receiveOneMessage (workbench.web.api.js:1827)
    at workbench.web.api.js:1827
    at n.fire (workbench.web.api.js:60)
    at MessagePort.D.onmessage (workbench.web.api.js:1867)

Somehow it seems that your image does not let dotnet be installed

I tried your VS Code in the browser, using your docker-compose.yml file, and I loved it.

Then I decided to expand upon your image, install .NET and see how things go.

Thus I created this Dockerfile:

FROM ghcr.io/linuxserver/code-server

COPY ./dotnet-install.sh dotnet-install.sh

RUN ./dotnet-install.sh --channel 3.1 --verbose

RUN dotnet tool install --global dotnet-ef --version 3.1.12

And that dotnet-install.sh is the official installation script from Microsoft.

However, when it reaches the last line, it says:

/bin/sh: 1: dotnet: not found

login failed when pass PASSWORD using FILE__PASSWORD

linuxserver.io


Expected Behavior

login success with password set in file

Current Behavior

login failed

Steps to Reproduce

  1. use FILE__PASSWORD in docker-compose.yml
services:
  app:
    container_name: code-server
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Asia/Shanghai
      - FILE__PASSWORD=/run/secrets/password
      - FILE__SUDO_PASSWORD=/run/secrets/sudopassword
    secrets:
      - password
      - sudopassword
secrets:
  password:
    file: ./password.txt
  sudopassword:
    file: ./sudopassword.txt
  1. docker logs code-server
[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing...
setting up sudo access
adding abc to sudoers
setting sudo password using SUDO_PASSWORD env var
Enter new UNIX password: Retype new UNIX password: Sorry, passwords do not match
passwd: Authentication token manipulation error
passwd: password unchanged
[cont-init.d] 30-config: exited 0.
  1. when i use the password set in password.txt , code-server web page pops 'Incorrect password'

Environment

OS: CentOS 7.9
CPU architecture: x86_64
How docker service was installed:

from official docker repo

Command used to create docker container (run/create/compose/screenshot)

docker-compose up -d

Docker logs

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing...
[env-init] PASSWORD set from FILE__PASSWORD
[env-init] SUDO_PASSWORD set from FILE__SUDO_PASSWORD
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 10-adduser: executing...

User uid: 1000
User gid: 1000

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing...
setting up sudo access
adding abc to sudoers
setting sudo password using SUDO_PASSWORD env var
Enter new UNIX password: Retype new UNIX password: Sorry, passwords do not match
passwd: Authentication token manipulation error
passwd: password unchanged
[cont-init.d] 30-config: exited 0.
[cont-init.d] 99-custom-scripts: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2021-04-06T11:41:54.008Z] info Wrote default config file to ~/.config/code-server/config.yaml
[2021-04-06T11:41:55.217Z] info code-server 3.9.2 109d2ce3247869eaeab67aa7e5423503ec9eb859
[2021-04-06T11:41:55.220Z] info Using user-data-dir ~/data
[2021-04-06T11:41:55.261Z] info Using config file ~/.config/code-server/config.yaml
[2021-04-06T11:41:55.261Z] info HTTP server listening on http://0.0.0.0:8443
[2021-04-06T11:41:55.261Z] info - Authentication is enabled
[2021-04-06T11:41:55.262Z] info - Using password from $PASSWORD
[2021-04-06T11:41:55.262Z] info - Not serving HTTPS

Running code-server --install-extension fails with `error vscode Error: Server returned 500`

linuxserver.io


Expected Behavior

Install extension without error.
This works in ghcr.io/linuxserver/code-server:version-v3.6.2, but not in version-v3.7.4 (latest)

Current Behavior

root@62c6e6d23349:/# curl -Lso /tmp/ms-python.vsix https://open-vsx.org/api/ms-python/python/2020.10.332292344/file/ms-python.python-2020.10.332292344.vsix
root@62c6e6d23349:/# s6-setuidgid abc code-server --user-data-dir /config/data --extensions-dir /config/extensions --disable-telemetry --install-extension /tmp/ms-python.vsix 
Installing extensions...
Extension 'ms-python.vsix' was successfully installed.
[2020-12-09T11:26:59.795Z] error vscode Server returned 500
[2020-12-09T11:26:59.798Z] error vscode Error: Server returned 500
    at Object.t.asJson (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/entry.js:373:933)
    at j.queryGallery (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/entry.js:393:695)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async j.query (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/entry.js:392:642)
    at async j.getExtensions (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/entry.js:390:251)
    at async /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/entry.js:541:148
    at async Promise.all (index 0)
    at async J.getGalleryExtensions (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/entry.js:541:117)
    at async Promise.all (index 0)
    at async J.installExtensions (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/entry.js:540:13)
    at async J.run (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/entry.js:538:205)
    at async /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/entry.js:545:678
    at async process.<anonymous> (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/entry.js:553:669)

Steps to Reproduce

  1. docker run -d --name=code-server -e PUID=1000 -e PGID=1000 -e TZ=Europe/London -e PASSWORD=password -e SUDO_PASSWORD=password -e PROXY_DOMAIN=code-server.my.domain -p 8443:8443 --restart unless-stopped ghcr.io/linuxserver/code-server
  2. docker exec -ti code-server /bin/bash and then curl -Lso /tmp/ms-python.vsix https://open-vsx.org/api/ms-python/python/2020.10.332292344/file/ms-python.python-2020.10.332292344.vsix && s6-setuidgid abc code-server --user-data-dir /config/data --extensions-dir /config/extensions --disable-telemetry --install-extension /tmp/ms-python.vsix

Environment

OS: opensuse-tumbleweed VERSION_ID="20201207"
CPU architecture: x86_64
How docker service was installed: zypper install docker

Command used to create docker container (run/create/compose/screenshot)

docker run -d --name=code-server -e PUID=1000 -e PGID=1000 -e TZ=Europe/London -e PASSWORD=password -e SUDO_PASSWORD=password -e PROXY_DOMAIN=code-server.my.domain -p 8443:8443 --restart unless-stopped ghcr.io/linuxserver/code-server

# docker images  | grep ghcr
ghcr.io/linuxserver/code-server   latest              22eeb275bad0        7 days ago          551MB

Docker logs

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing... 
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 10-adduser: executing... 

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \ 
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/


Brought to you by linuxserver.io
-------------------------------------

To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    1000
User gid:    1000
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing... 
setting up sudo access
adding abc to sudoers
setting sudo password
Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
[cont-init.d] 30-config: exited 0.
[cont-init.d] 99-custom-scripts: executing... 
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2020-12-09T11:18:07.110Z] info  Wrote default config file to ~/.config/code-server/config.yaml
[2020-12-09T11:18:07.328Z] info  code-server 3.7.4 11f53784c58f68e7f4c5b3b8dae9407caa41725b
[2020-12-09T11:18:07.329Z] info  Using user-data-dir ~/data
[2020-12-09T11:18:07.337Z] info  Using config file ~/.config/code-server/config.yaml
[2020-12-09T11:18:07.337Z] info  HTTP server listening on http://0.0.0.0:8443 
[2020-12-09T11:18:07.337Z] info    - Authentication is enabled
[2020-12-09T11:18:07.337Z] info      - Using password from $PASSWORD
[2020-12-09T11:18:07.337Z] info    - Not serving HTTPS
[2020-12-09T11:18:07.337Z] info    - Proxying the following domain:
[2020-12-09T11:18:07.337Z] info      - *.code-server.my.domain

Terminal does not open

linuxserver.io


Expected Behavior

I can open a terminal in the browser.

Current Behavior

The terminal opens for about half a second and then closes.
While it is open it shows "This account is currently not available"

Steps to Reproduce

Define service like this:

code:
  image: linuxserver/code-server:3.12.0
    environment:
      PUID: 33 # www-data
      PGID: 33 # www-data
      PROXY_DOMAIN: code.docker.localhost #optional
    ports:
      - 80:8443 # I have a reverse proxy in front of this container.

Then start the service and try to

Environment

OS: Current Ubuntu LTS
CPU architecture: x86_64
How docker service was installed: long time ago. Pretty much standard like documented by Docker

Docker logs

code_1      | [2021-12-15T10:46:41.192Z] info  HTTP server listening on http://0.0.0.0:8443 
code_1      | [2021-12-15T10:46:41.192Z] info    - Authentication is disabled 
code_1      | [2021-12-15T10:46:41.192Z] info    - Not serving HTTPS 
code_1      | [2021-12-15T10:46:41.192Z] info    - Proxying the following domain:
code_1      | [2021-12-15T10:46:41.192Z] info      - *.code.docker.localhost
code_1      | [2021-12-15T10:46:45.778Z] error vscode is not running Error: vscode is not running
code_1      |     at VscodeProvider.send (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:121:19)
code_1      |     at VscodeProvider.sendWebsocket (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:117:14)
code_1      |     at async /usr/local/share/.config/yarn/global/node_modules/code-server/out/node/routes/vscode.js:205:5
code_1      | [2021-12-15T10:46:45.781Z] error vscode is not running Error: vscode is not running
code_1      |     at VscodeProvider.send (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:121:19)
code_1      |     at VscodeProvider.sendWebsocket (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:117:14)
code_1      |     at async /usr/local/share/.config/yarn/global/node_modules/code-server/out/node/routes/vscode.js:205:5
code_1      | [2021-12-15T10:46:46.122Z] error vscode is not running Error: vscode is not running
code_1      |     at VscodeProvider.send (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:121:19)
code_1      |     at VscodeProvider.sendWebsocket (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:117:14)
code_1      |     at async /usr/local/share/.config/yarn/global/node_modules/code-server/out/node/routes/vscode.js:205:5
code_1      | [2021-12-15T10:46:46.135Z] error vscode is not running Error: vscode is not running
code_1      |     at VscodeProvider.send (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:121:19)
code_1      |     at VscodeProvider.sendWebsocket (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/vscode.js:117:14)
code_1      |     at async /usr/local/share/.config/yarn/global/node_modules/code-server/out/node/routes/vscode.js:205:5
code_1      | [main 2021-12-15T10:46:48.494Z] getUnixShellEnvironment#error Failed to get environment (code 1, signal null)

Cannot install extensions

linuxserver.io


Steps to Reproduce

  1. Run the server
  2. Open VS Code in browser and try to install any extension
  3. See the error:
2021-05-31 17:43:08.194] [window] [error] ["downloading: getaddrinfo EAI_AGAIN storage.googleapis.com","    at x.downloadInstallableExtension (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/entry.js:36:67534)","    at processTicksAndRejections (internal/process/task_queues.js:97:5)"]
[2021-05-31 17:43:08.216] [window] [error] getaddrinfo EAI_AGAIN storage.googleapis.com: downloading: getaddrinfo EAI_AGAIN storage.googleapis.com
    at x.downloadInstallableExtension (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/entry.js:36:67534)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

Environment

OS: Linux
CPU architecture: arm32
How docker service was installed: nas OS provided

Command used to create docker container (run/create/compose/screenshot)

docker run -d --name=code-server -e PUID=1002 -e PGID=100 -e TZ=Europe/Moscow -e PROXY_DOMAIN=hc2.lan -p 8443:8443 -e SUDO_PASSWORD=123 -v /sharedfolders/syncthing/syncDir/projects/Projects:/Projects -v /sharedfolders/syncthing/syncDir/projects/Projects/config:/config --restart unless-stopped ghcr.io/linuxserver/code-server

Docker Logs

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing...
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 10-adduser: executing...
usermod: no changes

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/


Brought to you by linuxserver.io
-------------------------------------

To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    1002
User gid:    100
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing...
setting up sudo access
setting sudo password using SUDO_PASSWORD env var
Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
[cont-init.d] 30-config: exited 0.
[cont-init.d] 99-custom-scripts: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
starting with no password
[2021-05-31T19:58:10.726Z] info  code-server 3.10.2 387b12ef4ca404ffd39d84834e1f0776e9e3c005
[2021-05-31T19:58:10.730Z] info  Using user-data-dir ~/data
[2021-05-31T19:58:10.804Z] info  Using config file ~/.config/code-server/config.yaml
[2021-05-31T19:58:10.805Z] info  HTTP server listening on http://0.0.0.0:8443
[2021-05-31T19:58:10.805Z] info    - Authentication is disabled
[2021-05-31T19:58:10.805Z] info    - Not serving HTTPS
[2021-05-31T19:58:10.805Z] info    - Proxying the following domain:
[2021-05-31T19:58:10.806Z] info      - *.hc2.lan

Supposed issue

The only root can resolve hosnames because of strict rights on resolve.conf

root@a956d6eb28b3:/# ls -la /etc/resolv.conf
-rw-r-----+ 1 root root 19 May 31 22:01 /etc/resolv.conf

Appling of

chmod a+r /etc/resolv.conf

solves the problem.

Not sure this issue should be fixed in scope of linuxserver. Sorry if not.

use sudo `sudo: unable to send audit message: Operation not permitted`

linuxserver.io


Expected Behavior

Do not appear sudo: unable to send audit message: Operation not permitted
Both docker and podman have this problem running this image.

Current Behavior

When using sudo, it will prompt sudo: unable to send audit message: Operation not permitted

Steps to Reproduce

  1. run the container
  2. open web or exec -it join container
  3. use sudo apt update or use sudo to execute any other command
  4. sudo: unable to send audit message: Operation not permitted appears in the console

Environment

OS: Debian11
CPU architecture: x86_64
How docker service was installed: curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh

Command used to create docker container (run/create/compose/screenshot)

mkdir -p ~/docker/coder && chown -R 1000:1000 ~/docker/coder && docker run -d --name=code-server -e PUID=1000 -e PGID=1000 -e TZ=Asia/Shanghai -e PASSWORD=test -e SUDO_PASSWORD=test -e DEFAULT_WORKSPACE=/config/workspace -p 15983:8443 -v ~/docker/coder:/config --restart unless-stopped linuxserver/code-server

Docker logs

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing... 
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 01-migrations: executing... 
[migrations] started
[migrations] no migrations found
[cont-init.d] 01-migrations: exited 0.
[cont-init.d] 02-tamper-check: executing... 
**** Potential tampering with custom scripts/services detected ****
**** Folder /config/custom-cont-init.d is moved to /config/custom-cont-init.d.OzUXFpId ****
**** Folder /config/custom-services.d is moved to /config/custom-services.d.OzUXFpId ****
**** The folders '/config/custom-cont-init.d' and '/config/custom-services.d'; and their contents need to all be owned by root to prevent root escalation inside the container!!! ****
[cont-init.d] 02-tamper-check: exited 0.
[cont-init.d] 10-adduser: executing... 

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/


Brought to you by linuxserver.io
-------------------------------------

To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    1000
User gid:    1000
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing... 
setting up sudo access
adding abc to sudoers
setting sudo password using SUDO_PASSWORD env var
New password: Retype new password: passwd: password updated successfully
setting permissions::configuration
setting permissions::workspace
[cont-init.d] 30-config: exited 0.
[cont-init.d] 90-custom-folders: executing... 
[cont-init.d] 90-custom-folders: exited 0.
[cont-init.d] 99-custom-scripts: executing... 
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2022-01-29T06:23:58.460Z] info  code-server 4.0.2 5cdfe74686aa73e023f8354a9a6014eb30caa7dd
[2022-01-29T06:23:58.463Z] info  Using user-data-dir ~/data
[2022-01-29T06:23:58.471Z] info  Using config file ~/.config/code-server/config.yaml
[2022-01-29T06:23:58.471Z] info  HTTP server listening on http://0.0.0.0:8443/ 
[2022-01-29T06:23:58.471Z] info    - Authentication is enabled
[2022-01-29T06:23:58.471Z] info      - Using password from $PASSWORD
[2022-01-29T06:23:58.471Z] info    - Not serving HTTPS 
[14:24:03] Extension host agent started.
[14:24:11] [10.88.0.1][43c9e70f][ManagementConnection] New connection established.
[14:24:12] [10.88.0.1][c1fb8ef4][ExtensionHostConnection] New connection established.
[14:24:12] [10.88.0.1][c1fb8ef4][ExtensionHostConnection] <423> Launched Extension Host Process.
Error: Unexpected SIGPIPE
    at process.<anonymous> (/usr/local/share/.config/yarn/global/node_modules/code-server/vendor/modules/code-oss-dev/out/bootstrap.js:1:370)
    at process.emit (events.js:400:28)
Error: Unexpected SIGPIPE
    at process.<anonymous> (/usr/local/share/.config/yarn/global/node_modules/code-server/vendor/modules/code-oss-dev/out/bootstrap.js:1:370)
    at process.emit (events.js:400:28)
[14:27:30] [10.88.0.1][6b9f7175][ManagementConnection] New connection established.
[14:27:31] RequestStore#acceptReply was called without receiving a matching request 26
[14:27:31] RequestStore#acceptReply was called without receiving a matching request 27
[14:27:32] RequestStore#acceptReply was called without receiving a matching request 28
[14:27:33] RequestStore#acceptReply was called without receiving a matching request 29
[14:27:33] RequestStore#acceptReply was called without receiving a matching request 30
[14:27:33] RequestStore#acceptReply was called without receiving a matching request 31
[14:27:33] RequestStore#acceptReply was called without receiving a matching request 32
[14:27:33] [10.88.0.1][35ebae9b][ExtensionHostConnection] New connection established.
[14:27:33] [10.88.0.1][35ebae9b][ExtensionHostConnection] <886> Launched Extension Host Process.
[14:27:33] RequestStore#acceptReply was called without receiving a matching request 33
[14:27:33] RequestStore#acceptReply was called without receiving a matching request 34
[14:27:34] RequestStore#acceptReply was called without receiving a matching request 35
Error: Unexpected SIGPIPE
    at process.<anonymous> (/usr/local/share/.config/yarn/global/node_modules/code-server/vendor/modules/code-oss-dev/out/bootstrap.js:1:370)
    at process.emit (events.js:400:28)
[14:27:35] RequestStore#acceptReply was called without receiving a matching request 36
[14:27:35] RequestStore#acceptReply was called without receiving a matching request 37
[14:27:35] RequestStore#acceptReply was called without receiving a matching request 38
[14:27:35] RequestStore#acceptReply was called without receiving a matching request 39
[14:27:35] RequestStore#acceptReply was called without receiving a matching request 40
Error: Unexpected SIGPIPE
    at process.<anonymous> (/usr/local/share/.config/yarn/global/node_modules/code-server/vendor/modules/code-oss-dev/out/bootstrap.js:1:370)
    at process.emit (events.js:400:28)

Can you please update the dockerfile to check the architecture?

I am not a dockerfile specialist,
but I can see in the dockerfile line 23:
CODE_RELEASE=$(curl -sX GET "https://api.github.com/repos/cdr/code-server/releases/latest"
Having a look on this repo, I can see there are builds per architecture.
But in line 27:
select(.browser_download_url | contains("linux-x86_64"))
I am not sure what this part do, but it looks like it uploads the x86_64 architecture file.
This is why the final image does not work on my ARM64 board.
Instead I just replace the linux-x86_64 by linux-arm64 and the image works perfectly on my nano Fire3 board.
I don't know how to do that, but is it possible to check the architecture of the machine and download the relevant file?

Thanks and regards,

arm32v7 build of 3.3.1 not working

For some reason the arm32v7 build of 3.3.1 is not working and results in missing modules errors when trying to access the web gui.

Our 3.3.0 test build had worked just fine on arm.

Until a fixed build is released, you can use the image lsiodev/code-server:v3.3.0-pkg-4c123a3c-dev-9137da0f154cbad6946846cce08ee42ddd603a1a on arm32v7

Blank Page after Login with HTTPS

linuxserver.io

macbook / safari, but chrome is working

using nginx with duckdns

password welcome page is appearing, after that blank screen. (deleted caching on safari)

(See here: coder/code-server#3017)

Expected Behavior

See above

Current Behavior

See above

Steps to Reproduce

See above

Environment

OS:
CPU architecture: x86_64/arm32/arm64
How docker service was installed:

Unraid 6.9.0

Command used to create docker container (run/create/compose/screenshot)

Docker logs

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing...
setting up sudo access
setting sudo password using SUDO_PASSWORD env var
Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
[cont-init.d] 30-config: exited 0.
[cont-init.d] 99-custom-scripts: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2021-04-03T01:00:36.321Z] info code-server 3.9.2 109d2ce3247869eaeab67aa7e5423503ec9eb859
[2021-04-03T01:00:36.323Z] info Using user-data-dir ~/data
[2021-04-03T01:00:36.388Z] info Using config file ~/.config/code-server/config.yaml
[2021-04-03T01:00:36.389Z] info HTTP server listening on http://0.0.0.0:8443
[2021-04-03T01:00:36.393Z] info - Authentication is enabled
[2021-04-03T01:00:36.393Z] info - Using password from $PASSWORD
[2021-04-03T01:00:36.393Z] info - Not serving HTTPS
[2021-04-03T09:47:53.853Z] error vscode Handshake timed out �[38;2;140;140;140m{"token":"..."

Cant compile c code

linuxserver.io

I guessed I would be able to write some code, c code for instance, and compile it

Expected Behavior

Open a terminal in the IDE , execute gcc file.c and that should compile the file creating some output in the terminal

Current Behavior

However, it throws an error, it says gcc: not found

Steps to Reproduce

  1. Open a terminal tab inside the IDE and run gcc
  2. But then , if you execute : sudo docker exec -it code-server sudo apt update && sudo apt install -y gcc in your host os, it will tell you that gcc is already installed...thats what is confusing me the most

Environment

OS: Raspbian 64 bits
CPU architecture: arm64
How docker service was installed:

the docker image was installed by the docker pull command in the docs

Command used to create docker container (run/create/compose/screenshot)

I ran the docker container with the cli parameters, for testing

Docker logs

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing... 
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 10-adduser: executing... 

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \ 
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/


Brought to you by linuxserver.io
-------------------------------------

To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    1000
User gid:    1000
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing... 
[cont-init.d] 30-config: exited 0.
[cont-init.d] 99-custom-scripts: executing... 
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2020-11-25T12:52:41.955Z] info  Wrote default config file to ~/.config/code-server/config.yaml
[2020-11-25T12:52:43.102Z] info  code-server 3.7.3 93fb76e4a71b1959ec2a23481ba2611200d714b2
[2020-11-25T12:52:43.112Z] info  Using user-data-dir ~/data
[2020-11-25T12:52:43.171Z] info  Using config file ~/.config/code-server/config.yaml
[2020-11-25T12:52:43.172Z] info  HTTP server listening on http://0.0.0.0:8443 
[2020-11-25T12:52:43.172Z] info    - Authentication is enabled
[2020-11-25T12:52:43.172Z] info      - Using password from $PASSWORD
[2020-11-25T12:52:43.172Z] info    - Not serving HTTPS

Error 403 on Extension view/download/install

I made a fresh install of code-server using docker-compose, but getting 403 Error on Extensions tab


Expected Behavior

I assume checking marketplace extensions and download/installing them should be similar to vs code

Current Behavior

Error on opening any extension page

image

Error on download/installing any extension

image

Logged Errors

[2021-02-28 12:52:14.985] [window] [error] Error: Server returned 403
    at Object.t.asText (https://vscode.mydomain.com/static/fc6d123da59a4e5a675ac8e080f66e032ba01a1b/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/workbench/workbench.web.api.js:1936:111)
    at V.getManifest (https://vscode.mydomain.com/static/fc6d123da59a4e5a675ac8e080f66e032ba01a1b/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/workbench/workbench.web.api.js:2120:377)
    at async w.installFromGallery (https://vscode.mydomain.com/static/fc6d123da59a4e5a675ac8e080f66e032ba01a1b/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/workbench/workbench.web.api.js:4251:98)
    at async e.installFromGallery (https://vscode.mydomain.com/static/fc6d123da59a4e5a675ac8e080f66e032ba01a1b/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/workbench/workbench.web.api.js:4436:931)
[2021-02-28 12:52:14.997] [window] [error] Server returned 403: Error: Server returned 403
    at Object.t.asText (https://vscode.mydomain.com/static/fc6d123da59a4e5a675ac8e080f66e032ba01a1b/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/workbench/workbench.web.api.js:1936:111)
    at V.getManifest (https://vscode.mydomain.com/static/fc6d123da59a4e5a675ac8e080f66e032ba01a1b/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/workbench/workbench.web.api.js:2120:377)
    at async w.installFromGallery (https://vscode.mydomain.com/static/fc6d123da59a4e5a675ac8e080f66e032ba01a1b/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/workbench/workbench.web.api.js:4251:98)
    at async e.installFromGallery (https://vscode.mydomain.com/static/fc6d123da59a4e5a675ac8e080f66e032ba01a1b/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/workbench/workbench.web.api.js:4436:931)

Steps to Reproduce

  1. Used root user and created /docker-confs directory and /docker-confs/docker-compose.yml file
  2. create a live container using docker-compose (and swag). containers up and running
version: "2"
services:
  swag:
    image: linuxserver/swag
    container_name: swag
    cap_add:
      - NET_ADMIN
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Asia/Tehran
      - URL=mydomain.com
      - SUBDOMAINS=vscode
      - VALIDATION=dns
      - DNSPLUGIN=cloudflare #optional
      - [email protected] #optional
      - ONLY_SUBDOMAINS=true #optional
      - STAGING=false #optional
      - EXTRA_DOMAINS=
    volumes:
      - /docker-confs/swag/config:/config
    ports:
      - 443:443
      - 80:80 #optional
    restart: unless-stopped
  code-server:
    image: ghcr.io/linuxserver/code-server
    container_name: code-server
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Asia/Tehran
      - PASSWORD=xxxxx #optional
      - SUDO_PASSWORD=xxxxx #optional
    volumes:
      - /docker-confs/code-server/appdata/config:/config
    ports:
      - 8443:8443
    restart: unless-stopped
  1. setup reverse-proxy for code-server container using proxy-confs in swag configs (templae from /config/nginx/proxy-confs/code-server.subdomain.conf)
server {
    listen 443 ssl;
    listen [::]:443 ssl;

    server_name vscode.* "~^[0-9]{1,10}\.code-server\..*$";

    include /config/nginx/ssl.conf;

    client_max_body_size 0;

    # enable for ldap auth, fill in ldap details in ldap.conf
    #include /config/nginx/ldap.conf;

    # enable for Authelia
    #include /config/nginx/authelia-server.conf;

    location / {
        # enable the next two lines for http auth
        #auth_basic "Restricted";
        #auth_basic_user_file /config/nginx/.htpasswd;

        # enable the next two lines for ldap auth
        #auth_request /auth;
        #error_page 401 =200 /ldaplogin;

        # enable for Authelia
        #include /config/nginx/authelia-location.conf;

        include /config/nginx/proxy.conf;
        resolver 127.0.0.11 valid=30s;
        set $upstream_app code-server;
        set $upstream_port 8443;
        set $upstream_proto http;
        proxy_pass $upstream_proto://$upstream_app:$upstream_port;

    }
}
  1. login to vscode.mydomain.com and try to open any extension in extensions tab

Environment

OS: Centos7
**CPU architecture:**64
How docker service was installed: from the official docker repo

Command used to create docker container (run/create/compose/screenshot)

docker-compose up -d

Docker logs

error Unauthorized Error: Unauthorized
    at new HttpError (/usr/local/share/.config/yarn/global/node_modules/code-server/out/common/http.js:34:28)
    at ensureAuthenticated (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/http.js:44:15)
    at wrapped (/usr/local/share/.config/yarn/global/node_modules/code-server/out/node/wsRouter.js:81:24)
    at Layer.handle [as handle_request] (/usr/local/share/.config/yarn/global/node_modules/router/lib/layer.js:102:15)
    at next (/usr/local/share/.config/yarn/global/node_modules/router/lib/route.js:144:13)
    at Route.dispatch (/usr/local/share/.config/yarn/global/node_modules/router/lib/route.js:109:3)
    at handle (/usr/local/share/.config/yarn/global/node_modules/router/index.js:515:11)
    at Layer.handle [as handle_request] (/usr/local/share/.config/yarn/global/node_modules/router/lib/layer.js:102:15)
    at /usr/local/share/.config/yarn/global/node_modules/router/index.js:291:22
    at Function.process_params (/usr/local/share/.config/yarn/global/node_modules/router/index.js:349:12)

extenstion download failed, timeout!

linuxserver.io

selected any one extension like this :

docker-compose logs

code-server | INFO Installing extension: ecmel.vscode-html-css
code-server | ERR Failed to install extension: ecmel.vscode-html-css connect ETIMEDOUT 172.217.24.208:443
code-server | rejected promise not handled within 1 second: downloading: connect ETIMEDOUT 172.217.24.208:443
code-server | stack trace: downloading: connect ETIMEDOUT 172.217.24.208:443
code-server | at K.downloadInstallableExtension (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/entry.js:41:62920)
code-server | at processTicksAndRejections (internal/process/task_queues.js:95:5)
code-server | at async K.doInstallFromGallery (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/entry.js:41:60318)
code-server | downloading: connect ETIMEDOUT 172.217.24.208:443
code-server | at K.downloadInstallableExtension (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/entry.js:41:62920)
code-server | at processTicksAndRejections (internal/process/task_queues.js:95:5)
code-server | at async K.doInstallFromGallery (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/entry.js:41:60318) {
code-server | code: 'downloading'
code-server | }


Expected Behavior

installed any extension

Current Behavior

can't install any extension

Steps to Reproduce

  1. in china, ususl we use vpn proxy connetion [github, gist...like more] domain, in host use proxychains4 to proxy, how use proxy in docker-compose

Environment

OS:
CPU architecture: x86_64/arm32/arm64
How docker service was installed:

ubuntu 18

Command used to create docker container (run/create/compose/screenshot)

docker-compose config
docker-compose.yml

---
version: "2.1"
services:
  code-server:
    image: ghcr.io/linuxserver/code-server
    container_name: code-server
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Asia/shanghai
      - PASSWORD=password #optional
      - HASHED_PASSWORD= #optional
      - SUDO_PASSWORD=password #optional
      - SUDO_PASSWORD_HASH= #optional
      - PROXY_DOMAIN=my.example.com #optional
    volumes:
      - /path/config:/config
    ports:
      - 8443:8443
    restart: unless-stopped

Docker logs

code-server | INFO Installing extension: ecmel.vscode-html-css
code-server | ERR Failed to install extension: ecmel.vscode-html-css connect ETIMEDOUT 172.217.24.208:443
code-server | rejected promise not handled within 1 second: downloading: connect ETIMEDOUT 172.217.24.208:443
code-server | stack trace: downloading: connect ETIMEDOUT 172.217.24.208:443
code-server | at K.downloadInstallableExtension (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/entry.js:41:62920)
code-server | at processTicksAndRejections (internal/process/task_queues.js:95:5)
code-server | at async K.doInstallFromGallery (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/entry.js:41:60318)
code-server | downloading: connect ETIMEDOUT 172.217.24.208:443
code-server | at K.downloadInstallableExtension (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/entry.js:41:62920)
code-server | at processTicksAndRejections (internal/process/task_queues.js:95:5)
code-server | at async K.doInstallFromGallery (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/entry.js:41:60318) {
code-server | code: 'downloading'
code-server | }

Virtualenv interpreter not found

Web Browser: chrome
Local OS: Linux Mint
Remote OS:
Remote Architecture: x64
code-server --version: https://hub.docker.com/r/linuxserver/code-server
Hello,

I have deployed the current code server using docker

docker run -d
--name=code-server
-e PUID=1000
-e PGID=1000
-e TZ=Europe/London
-e PASSWORD=sode1234
-p 8443:8443
-v /opt/coder-docker/config:/config
-*v /opt/app:/opt/app *
--restart unless-stopped
linuxserver/code-server

My application is in /opt/app and requires python interpreter.
I have created virtualenv using cmd below, such that i could mount this to code-server and work:
virtualenv -p /usr/bin/python3.7 --no-site-packages --always-copy /opt/app/my-app/venv

In code-server, I have added workspace folder /opt/app/my-app.
Created a python lauch.json, and selected the python interpreter to be added in settings.json.

{
"python.pythonPath": "/opt/app/my-app/venv/bin/python"
}

Code-server keep prompting "unable to find python interpreter".

What is wrong here?

Thanks,

JavaScript heap out of memory - Memory leak?

linuxserver.io


Expected Behavior

A normal memory usage without OOM messages in the logs.

Current Behavior

The code server when used runs into a kind of memory leak after some time building up the memory. At first I thought maybe increasing the allocated memory for node-js may help and I've added NODE_OPTIONS="--max-old-space-size=8192" to the docker environment but it just delayed the OOM message in the logs since the node process had more time to fill all 8 gb with data.

Steps to Reproduce

  1. start docker container
  2. monitor logs and ram usage

Environment

OS: Unraid
CPU architecture: x86_64
How docker service was installed:

Command used to create docker container (run/create/compose/screenshot)

Docker logs

[039164b10800.log.gz]

2021-10-05T16:12:34.147662547Z [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
2021-10-05T16:12:34.180588822Z [s6-init] ensuring user provided files have correct perms...exited 0.
2021-10-05T16:12:34.181678396Z [fix-attrs.d] applying ownership & permissions fixes...
2021-10-05T16:12:34.182295268Z [fix-attrs.d] done.
2021-10-05T16:12:34.183202899Z [cont-init.d] executing container initialization scripts...
2021-10-05T16:12:34.185370505Z [cont-init.d] 01-envfile: executing... 
2021-10-05T16:12:34.193842835Z [cont-init.d] 01-envfile: exited 0.
2021-10-05T16:12:34.195218799Z [cont-init.d] 10-adduser: executing... 
2021-10-05T16:17:39.728312395Z 
2021-10-05T16:17:39.728338414Z -------------------------------------
2021-10-05T16:17:39.728342993Z           _         ()
2021-10-05T16:17:39.728346489Z          | |  ___   _    __
2021-10-05T16:17:39.728349695Z          | | / __| | |  /  \ 
2021-10-05T16:17:39.728352941Z          | | \__ \ | | | () |
2021-10-05T16:17:39.728356298Z          |_| |___/ |_|  \__/
2021-10-05T16:17:39.728359604Z 
2021-10-05T16:17:39.728362750Z 
2021-10-05T16:17:39.728366006Z Brought to you by linuxserver.io
2021-10-05T16:17:39.728369252Z -------------------------------------
2021-10-05T16:17:39.728375193Z 
2021-10-05T16:17:39.728378409Z To support LSIO projects visit:
2021-10-05T16:17:39.728381605Z https://www.linuxserver.io/donate/
2021-10-05T16:17:39.728384761Z -------------------------------------
2021-10-05T16:17:39.728387917Z GID/UID
2021-10-05T16:17:39.728391093Z -------------------------------------
2021-10-05T16:17:39.737461300Z 
2021-10-05T16:17:39.737501636Z User uid:    99
2021-10-05T16:17:39.737513268Z User gid:    100
2021-10-05T16:17:39.737522806Z -------------------------------------
2021-10-05T16:17:39.737531252Z 
2021-10-05T16:17:39.742450475Z [cont-init.d] 10-adduser: exited 0.
2021-10-05T16:17:39.743754843Z [cont-init.d] 30-config: executing... 
2021-10-05T16:17:39.749711601Z setting up sudo access
2021-10-05T16:17:39.751822841Z adding abc to sudoers
2021-10-05T16:17:39.751855082Z setting sudo password using SUDO_PASSWORD env var
2021-10-05T16:17:39.763595863Z Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
2021-10-05T16:17:39.766717437Z setting permissions::configuration
2021-10-05T16:19:35.902931684Z setting permissions::workspace
2021-10-05T16:19:35.907649746Z [cont-init.d] 30-config: exited 0.
2021-10-05T16:19:35.910603193Z [cont-init.d] 90-custom-folders: executing... 
2021-10-05T16:19:35.920698039Z [cont-init.d] 90-custom-folders: exited 0.
2021-10-05T16:19:35.921923449Z [cont-init.d] 99-custom-scripts: executing... 
2021-10-05T16:19:35.933377788Z [custom-init] no custom files found exiting...
2021-10-05T16:19:35.934023044Z [cont-init.d] 99-custom-scripts: exited 0.
2021-10-05T16:19:35.934834123Z [cont-init.d] done.
2021-10-05T16:19:35.935811054Z [services.d] starting services
2021-10-05T16:19:35.945583974Z [services.d] done.
2021-10-05T16:19:36.655345735Z [2021-10-05T16:19:36.654Z] info  code-server 3.12.0 4cd55f94c0a72f05c18cea070e10b969996614d2
2021-10-05T16:19:36.655509935Z [2021-10-05T16:19:36.655Z] info  Using user-data-dir ~/data
2021-10-05T16:19:36.664661443Z [2021-10-05T16:19:36.664Z] info  Using config file ~/.config/code-server/config.yaml
2021-10-05T16:19:36.664689606Z [2021-10-05T16:19:36.664Z] info  HTTP server listening on http://0.0.0.0:8443 
2021-10-05T16:19:36.664714243Z [2021-10-05T16:19:36.664Z] info    - Authentication is enabled
2021-10-05T16:19:36.664739901Z [2021-10-05T16:19:36.664Z] info      - Using password from $PASSWORD
2021-10-05T16:19:36.664766441Z [2021-10-05T16:19:36.664Z] info    - Not serving HTTPS 
2021-10-05T16:27:30.114870576Z 
2021-10-05T16:27:30.114904430Z <--- Last few GCs --->
2021-10-05T16:27:30.114909760Z 
2021-10-05T16:27:30.114914448Z [439:0x4552850]   280819 ms: Mark-sweep 2024.1 (2072.2) -> 2008.5 (2073.7) MB, 1111.4 / 1.9 ms  (average mu = 0.187, current mu = 0.097) allocation failure scavenge might not succeed
2021-10-05T16:27:30.114920931Z [439:0x4552850]   281993 ms: Mark-sweep 2025.4 (2073.9) -> 2010.9 (2076.9) MB, 1108.1 / 1.7 ms  (average mu = 0.126, current mu = 0.057) allocation failure scavenge might not succeed
2021-10-05T16:27:30.114924958Z 
2021-10-05T16:27:30.114928365Z 
2021-10-05T16:27:30.114931801Z <--- JS stacktrace --->
2021-10-05T16:27:30.114935328Z 
2021-10-05T16:27:30.114938744Z FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
2021-10-05T16:27:30.118886796Z  1: 0xa389b0 node::Abort() [/usr/bin/node]
2021-10-05T16:27:30.119330592Z  2: 0x96e0af node::FatalError(char const*, char const*) [/usr/bin/node]
2021-10-05T16:27:30.120035310Z  3: 0xbb7a4e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/usr/bin/node]
2021-10-05T16:27:30.120950496Z  4: 0xbb7dc7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/bin/node]
2021-10-05T16:27:30.121919261Z  5: 0xd73fd5  [/usr/bin/node]
2021-10-05T16:27:30.122436186Z  6: 0xd74b5f  [/usr/bin/node]
2021-10-05T16:27:30.123610329Z  7: 0xd8299b v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/bin/node]
2021-10-05T16:27:30.124207655Z  8: 0xd8655c v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/bin/node]
2021-10-05T16:27:30.124787788Z  9: 0xd54c3b v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/usr/bin/node]
2021-10-05T16:27:30.125485393Z 10: 0x109d21f v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/usr/bin/node]
2021-10-05T16:27:30.126220298Z 11: 0x1446379  [/usr/bin/node]
2021-10-05T16:27:30.489270615Z IPC "File Watcher (chokidar)" crashed with exit code null and signal SIGABRT
2021-10-05T16:27:30.489814029Z �[91m[main 2021-10-05T16:27:30.489Z]�[0m [File Watcher (chokidar)] terminated unexpectedly and is restarted again...
2021-10-05T16:27:30.490348005Z �[91m[main 2021-10-05T16:27:30.490Z]�[0m [File Watcher (chokidar)] terminated unexpectedly and is restarted again...
2021-10-05T16:32:14.079512738Z 
2021-10-05T16:32:14.079547754Z <--- Last few GCs --->
2021-10-05T16:32:14.079553906Z 
2021-10-05T16:32:14.079558234Z [475:0x4552850]   281356 ms: Scavenge (reduce) 2022.8 (2053.4) -> 2022.4 (2053.4) MB, 7.5 / 0.0 ms  (average mu = 0.265, current mu = 0.223) allocation failure 
2021-10-05T16:32:14.079563303Z [475:0x4552850]   282433 ms: Mark-sweep (reduce) 2023.2 (2050.6) -> 2019.1 (2051.8) MB, 1073.3 / 1.6 ms  (average mu = 0.207, current mu = 0.143) allocation failure scavenge might not succeed
2021-10-05T16:32:14.079567932Z 
2021-10-05T16:32:14.079571839Z 
2021-10-05T16:32:14.079575777Z <--- JS stacktrace --->
2021-10-05T16:32:14.079580285Z 
2021-10-05T16:32:14.079584213Z FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
2021-10-05T16:32:14.079907382Z  1: 0xa389b0 node::Abort() [/usr/bin/node]
2021-10-05T16:32:14.080220642Z  2: 0x96e0af node::FatalError(char const*, char const*) [/usr/bin/node]
2021-10-05T16:32:14.080605758Z  3: 0xbb7a4e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/usr/bin/node]
2021-10-05T16:32:14.081003057Z  4: 0xbb7dc7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/bin/node]
2021-10-05T16:32:14.081477341Z  5: 0xd73fd5  [/usr/bin/node]
2021-10-05T16:32:14.081895038Z  6: 0xd74b5f  [/usr/bin/node]
2021-10-05T16:32:14.082320330Z  7: 0xd8299b v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/bin/node]
2021-10-05T16:32:14.082726906Z  8: 0xd8655c v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/bin/node]
2021-10-05T16:32:14.083120358Z  9: 0xd54c3b v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/usr/bin/node]
2021-10-05T16:32:14.083592999Z 10: 0x109d21f v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/usr/bin/node]
2021-10-05T16:32:14.084092059Z 11: 0x1446379  [/usr/bin/node]
2021-10-05T16:32:14.444505154Z IPC "File Watcher (chokidar)" crashed with exit code null and signal SIGABRT
2021-10-05T16:32:14.444552062Z �[91m[main 2021-10-05T16:32:14.444Z]�[0m [File Watcher (chokidar)] terminated unexpectedly and is restarted again...
2021-10-05T16:32:14.444833633Z �[91m[main 2021-10-05T16:32:14.444Z]�[0m [File Watcher (chokidar)] terminated unexpectedly and is restarted again...
2021-10-05T16:36:48.177689020Z 
2021-10-05T16:36:48.177720309Z <--- Last few GCs --->
2021-10-05T16:36:48.177726130Z 
2021-10-05T16:36:48.177729857Z [486:0x4552850]   271309 ms: Mark-sweep 2011.0 (2068.2) -> 1995.4 (2068.4) MB, 1060.0 / 1.6 ms  (average mu = 0.181, current mu = 0.090) allocation failure scavenge might not succeed
2021-10-05T16:36:48.177734005Z [486:0x4552850]   272546 ms: Mark-sweep 2011.8 (2068.4) -> 1996.2 (2068.7) MB, 1145.7 / 1.8 ms  (average mu = 0.129, current mu = 0.074) allocation failure scavenge might not succeed
2021-10-05T16:36:48.177738052Z 
2021-10-05T16:36:48.177741529Z 
2021-10-05T16:36:48.177744785Z <--- JS stacktrace --->
2021-10-05T16:36:48.177748312Z 
2021-10-05T16:36:48.177751678Z FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
2021-10-05T16:36:48.178173463Z  1: 0xa389b0 node::Abort() [/usr/bin/node]
2021-10-05T16:36:48.178598634Z  2: 0x96e0af node::FatalError(char const*, char const*) [/usr/bin/node]
2021-10-05T16:36:48.178942242Z  3: 0xbb7a4e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/usr/bin/node]
2021-10-05T16:36:48.179304926Z  4: 0xbb7dc7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/bin/node]
2021-10-05T16:36:48.179709979Z  5: 0xd73fd5  [/usr/bin/node]
2021-10-05T16:36:48.180109803Z  6: 0xd74b5f  [/usr/bin/node]
2021-10-05T16:36:48.180537659Z  7: 0xd8299b v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/bin/node]
2021-10-05T16:36:48.180948123Z  8: 0xd8655c v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/bin/node]
2021-10-05T16:36:48.181355390Z  9: 0xd54c3b v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/usr/bin/node]
2021-10-05T16:36:48.181838321Z 10: 0x109d21f v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/usr/bin/node]
2021-10-05T16:36:48.182338524Z 11: 0x1446379  [/usr/bin/node]
2021-10-05T16:36:48.554198734Z IPC "File Watcher (chokidar)" crashed with exit code null and signal SIGABRT
2021-10-05T16:36:48.554281941Z �[91m[main 2021-10-05T16:36:48.554Z]�[0m [File Watcher (chokidar)] terminated unexpectedly and is restarted again...
2021-10-05T16:36:48.554547301Z �[91m[main 2021-10-05T16:36:48.554Z]�[0m [File Watcher (chokidar)] terminated unexpectedly and is restarted again...
2021-10-05T16:41:32.550536959Z 
2021-10-05T16:41:32.550573267Z <--- Last few GCs --->
2021-10-05T16:41:32.550579058Z 
2021-10-05T16:41:32.550582905Z [497:0x4552850]   281707 ms: Mark-sweep (reduce) 2022.6 (2053.6) -> 2020.4 (2053.8) MB, 1130.8 / 1.6 ms  (average mu = 0.166, current mu = 0.079) allocation failure scavenge might not succeed
2021-10-05T16:41:32.550587354Z [497:0x4552850]   282833 ms: Mark-sweep (reduce) 2021.5 (2050.8) -> 2020.6 (2052.1) MB, 1123.4 / 1.6 ms  (average mu = 0.091, current mu = 0.003) allocation failure scavenge might not succeed
2021-10-05T16:41:32.550591421Z 
2021-10-05T16:41:32.550595038Z 
2021-10-05T16:41:32.550598525Z <--- JS stacktrace --->
2021-10-05T16:41:32.550602152Z 
2021-10-05T16:41:32.550605708Z FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
2021-10-05T16:41:32.550615707Z  1: 0xa389b0 node::Abort() [/usr/bin/node]
2021-10-05T16:41:32.550721647Z  2: 0x96e0af node::FatalError(char const*, char const*) [/usr/bin/node]
2021-10-05T16:41:32.551122302Z  3: 0xbb7a4e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/usr/bin/node]
2021-10-05T16:41:32.553920476Z  4: 0xbb7dc7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/bin/node]
2021-10-05T16:41:32.553951485Z  5: 0xd73fd5  [/usr/bin/node]
2021-10-05T16:41:32.553956394Z  6: 0xd74b5f  [/usr/bin/node]
2021-10-05T16:41:32.553960251Z  7: 0xd8299b v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/bin/node]
2021-10-05T16:41:32.553964559Z  8: 0xd8655c v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/bin/node]
2021-10-05T16:41:32.553968787Z  9: 0xd54c3b v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/usr/bin/node]
2021-10-05T16:41:32.554211004Z 10: 0x109d21f v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/usr/bin/node]
2021-10-05T16:41:32.554788282Z 11: 0x1446379  [/usr/bin/node]
2021-10-05T16:41:32.928804315Z IPC "File Watcher (chokidar)" crashed with exit code null and signal SIGABRT
2021-10-05T16:41:32.928885227Z �[91m[main 2021-10-05T16:41:32.928Z]�[0m [File Watcher (chokidar)] terminated unexpectedly and is restarted again...
2021-10-05T16:41:32.929263360Z �[91m[main 2021-10-05T16:41:32.929Z]�[0m [File Watcher (chokidar)] terminated unexpectedly and is restarted again...
2021-10-05T16:46:12.422310251Z 
2021-10-05T16:46:12.422355025Z <--- Last few GCs --->
2021-10-05T16:46:12.422363180Z 
2021-10-05T16:46:12.422369021Z [508:0x4552850]   277287 ms: Scavenge (reduce) 2023.2 (2053.4) -> 2022.7 (2054.2) MB, 3.2 / 0.0 ms  (average mu = 0.252, current mu = 0.188) allocation failure 
2021-10-05T16:46:12.422394860Z [508:0x4552850]   278370 ms: Mark-sweep (reduce) 2023.6 (2051.3) -> 2019.0 (2051.8) MB, 1079.8 / 1.5 ms  (average mu = 0.204, current mu = 0.151) allocation failure scavenge might not succeed
2021-10-05T16:46:12.422401713Z 
2021-10-05T16:46:12.422407063Z 
2021-10-05T16:46:12.422412383Z <--- JS stacktrace --->
2021-10-05T16:46:12.422417913Z 
2021-10-05T16:46:12.422423093Z FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
2021-10-05T16:46:12.422702089Z  1: 0xa389b0 node::Abort() [/usr/bin/node]
2021-10-05T16:46:12.423030358Z  2: 0x96e0af node::FatalError(char const*, char const*) [/usr/bin/node]
2021-10-05T16:46:12.423401227Z  3: 0xbb7a4e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/usr/bin/node]
2021-10-05T16:46:12.423761907Z  4: 0xbb7dc7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/bin/node]
2021-10-05T16:46:12.424154988Z  5: 0xd73fd5  [/usr/bin/node]
2021-10-05T16:46:12.424588304Z  6: 0xd74b5f  [/usr/bin/node]
2021-10-05T16:46:12.424984902Z  7: 0xd8299b v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/bin/node]
2021-10-05T16:46:12.425397790Z  8: 0xd8655c v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/bin/node]
2021-10-05T16:46:12.425798415Z  9: 0xd4bd2d v8::internal::Factory::AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [/usr/bin/node]
2021-10-05T16:46:12.426195153Z 10: 0xd45bb4 v8::internal::FactoryBase<v8::internal::Factory>::AllocateRawWithImmortalMap(int, v8::internal::AllocationType, v8::internal::Map, v8::internal::AllocationAlignment) [/usr/bin/node]
2021-10-05T16:46:12.426609113Z 11: 0xd47bc0 v8::internal::FactoryBase<v8::internal::Factory>::NewRawOneByteString(int, v8::internal::AllocationType) [/usr/bin/node]
2021-10-05T16:46:12.427063830Z 12: 0xfaa04a v8::internal::String::SlowFlatten(v8::internal::Isolate*, v8::internal::Handle<v8::internal::ConsString>, v8::internal::AllocationType) [/usr/bin/node]
2021-10-05T16:46:12.427522735Z 13: 0xfad425 v8::internal::String::SlowEquals(v8::internal::Isolate*, v8::internal::Handle<v8::internal::String>, v8::internal::Handle<v8::internal::String>) [/usr/bin/node]
2021-10-05T16:46:12.428001518Z 14: 0x10db777 v8::internal::Runtime_StringEqual(int, unsigned long*, v8::internal::Isolate*) [/usr/bin/node]
2021-10-05T16:46:12.428518112Z 15: 0x1446379  [/usr/bin/node]
2021-10-05T16:46:12.783197116Z IPC "File Watcher (chokidar)" crashed with exit code null and signal SIGABRT
2021-10-05T16:46:12.783298898Z �[91m[main 2021-10-05T16:46:12.783Z]�[0m [File Watcher (chokidar)] terminated unexpectedly and is restarted again...
2021-10-05T16:46:12.783622769Z �[91m[main 2021-10-05T16:46:12.783Z]�[0m [File Watcher (chokidar)] terminated unexpectedly and is restarted again...
2021-10-05T16:50:49.436647565Z 
2021-10-05T16:50:49.436687280Z <--- Last few GCs --->
2021-10-05T16:50:49.436695616Z 
2021-10-05T16:50:49.436701757Z [519:0x4552850]   274281 ms: Mark-sweep 2022.8 (2069.9) -> 2007.0 (2072.2) MB, 1161.5 / 2.1 ms  (average mu = 0.163, current mu = 0.070) allocation failure scavenge might not succeed
2021-10-05T16:50:49.436707879Z [519:0x4552850]   275446 ms: Mark-sweep 2024.4 (2072.4) -> 2008.5 (2073.9) MB, 1066.1 / 1.7 ms  (average mu = 0.127, current mu = 0.085) allocation failure scavenge might not succeed
2021-10-05T16:50:49.436713820Z 
2021-10-05T16:50:49.436719491Z 
2021-10-05T16:50:49.436724691Z <--- JS stacktrace --->
2021-10-05T16:50:49.436730842Z 
2021-10-05T16:50:49.436736192Z FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
2021-10-05T16:50:49.437098936Z  1: 0xa389b0 node::Abort() [/usr/bin/node]
2021-10-05T16:50:49.437470747Z  2: 0x96e0af node::FatalError(char const*, char const*) [/usr/bin/node]
2021-10-05T16:50:49.437888614Z  3: 0xbb7a4e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/usr/bin/node]
2021-10-05T16:50:49.438224548Z  4: 0xbb7dc7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/bin/node]
2021-10-05T16:50:49.438674305Z  5: 0xd73fd5  [/usr/bin/node]
2021-10-05T16:50:49.439302399Z  6: 0xd74b5f  [/usr/bin/node]
2021-10-05T16:50:49.439748550Z  7: 0xd8299b v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/bin/node]
2021-10-05T16:50:49.440147592Z  8: 0xd8655c v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/bin/node]
2021-10-05T16:50:49.440591589Z  9: 0xd54c3b v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/usr/bin/node]
2021-10-05T16:50:49.441098565Z 10: 0x109d21f v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/usr/bin/node]
2021-10-05T16:50:49.441718183Z 11: 0x1446379  [/usr/bin/node]
2021-10-05T16:50:49.816171548Z IPC "File Watcher (chokidar)" crashed with exit code null and signal SIGABRT
2021-10-05T16:50:49.816274312Z �[91m[main 2021-10-05T16:50:49.816Z]�[0m [File Watcher (chokidar)] terminated unexpectedly and is restarted again...
2021-10-05T16:50:49.816510077Z �[91m[main 2021-10-05T16:50:49.816Z]�[0m [File Watcher (chokidar)] terminated unexpectedly and is restarted again...
2021-10-05T16:55:29.737587325Z 
2021-10-05T16:55:29.737633372Z <--- Last few GCs --->
2021-10-05T16:55:29.737643641Z 
2021-10-05T16:55:29.737651265Z [530:0x4552850]   278770 ms: Scavenge (reduce) 2022.6 (2053.1) -> 2022.2 (2053.1) MB, 4.3 / 0.0 ms  (average mu = 0.157, current mu = 0.095) allocation failure 
2021-10-05T16:55:29.737681993Z [530:0x4552850]   278779 ms: Scavenge (reduce) 2022.9 (2050.1) -> 2022.5 (2051.3) MB, 4.8 / 0.0 ms  (average mu = 0.157, current mu = 0.095) allocation failure 
2021-10-05T16:55:29.737692543Z [530:0x4552850]   278791 ms: Scavenge (reduce) 2023.2 (2053.3) -> 2022.8 (2053.6) MB, 4.2 / 0.0 ms  (average mu = 0.157, current mu = 0.095) allocation failure 
2021-10-05T16:55:29.737700328Z 
2021-10-05T16:55:29.737707191Z 
2021-10-05T16:55:29.737714104Z <--- JS stacktrace --->
2021-10-05T16:55:29.737721488Z 
2021-10-05T16:55:29.737728481Z FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
2021-10-05T16:55:29.737980255Z  1: 0xa389b0 node::Abort() [/usr/bin/node]
2021-10-05T16:55:29.738322801Z  2: 0x96e0af node::FatalError(char const*, char const*) [/usr/bin/node]
2021-10-05T16:55:29.738700723Z  3: 0xbb7a4e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/usr/bin/node]
2021-10-05T16:55:29.739042808Z  4: 0xbb7dc7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/bin/node]
2021-10-05T16:55:29.739454524Z  5: 0xd73fd5  [/usr/bin/node]
2021-10-05T16:55:29.739859127Z  6: 0xd74b5f  [/usr/bin/node]
2021-10-05T16:55:29.740279499Z  7: 0xd8299b v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/bin/node]
2021-10-05T16:55:29.740697888Z  8: 0xd8655c v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/bin/node]
2021-10-05T16:55:29.741102721Z  9: 0xd54c3b v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/usr/bin/node]
2021-10-05T16:55:29.741584399Z 10: 0x109d21f v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/usr/bin/node]
2021-10-05T16:55:29.742103217Z 11: 0x1446379  [/usr/bin/node]
2021-10-05T16:55:30.124367474Z IPC "File Watcher (chokidar)" crashed with exit code null and signal SIGABRT
2021-10-05T16:55:30.124444840Z �[91m[main 2021-10-05T16:55:30.124Z]�[0m [File Watcher (chokidar)] failed to start after retrying for some time, giving up. Please report this as a bug report!
2021-10-05T16:55:30.124793958Z �[91m[main 2021-10-05T16:55:30.124Z]�[0m [File Watcher (chokidar)] failed to start after retrying for some time, giving up. Please report this as a bug report!

[Feature] User Startup Script

linuxserver.io


Desired Behavior

Given this is a docker container; If I wanted to install a different language inside the container it will get reset once the app is updated/restarted... I would like to be able to provide a shell file in my "config" directory that would allow for further customizations.

install/setup oh my zsh
install/setup java
install/setup node
install/setup go

There could be an environment variable as well that would allow me to provide a hosted shell script (maybe from github/gitlab) to be able to further configure the environment.

Current Behavior

set up runtime environment every time/avoid restarts

Alternatives Considered

use code locally
trying to modify the startup command from docker (from unraid this is not super great if possible)

Docker image 4-4.0.2 stopped working

linuxserver.io

Current Behavior

The last published docker image has stopped working (linuxserver/code-server:amd64-4.0.2). The preview version linuxserver/code-server:amd64-v4.0.2-ls111 works fine.

Steps to Reproduce

  1. Create a new Docker container with the latest image version 4.0.2
  2. Open the browser on http endpoint

Command used to create docker container (run/create/compose/screenshot)

docker run -d
--name=code-server
-e PUID=1000
-e PGID=1000
-e TZ=Europe/Zurich
-p 8443:8443
-v /path/to/appdata/config:/config
--restart unless-stopped
linuxserver/code-server:amd64-4.0.2

Docker logs

The Docker log displays no apparent issue.

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing... 
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 01-migrations: executing... 
[migrations] started
[migrations] no migrations found
[cont-init.d] 01-migrations: exited 0.
[cont-init.d] 02-tamper-check: executing... 
[cont-init.d] 02-tamper-check: exited 0.
[cont-init.d] 10-adduser: executing... 

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/


Brought to you by linuxserver.io
-------------------------------------

To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    1000
User gid:    1000
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing... 
setting permissions::configuration
setting permissions::workspace
[cont-init.d] 30-config: exited 0.
[cont-init.d] 90-custom-folders: executing... 
[cont-init.d] 90-custom-folders: exited 0.
[cont-init.d] 99-custom-scripts: executing... 
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2022-02-20T16:54:08.698Z] info  code-server 4.0.2 5cdfe74686aa73e023f8354a9a6014eb30caa7dd
[2022-02-20T16:54:08.700Z] info  Using user-data-dir ~/data
[2022-02-20T16:54:08.742Z] info  Using config file ~/.config/code-server/config.yaml
[2022-02-20T16:54:08.742Z] info  HTTP server listening on http://0.0.0.0:8443/ 
[2022-02-20T16:54:08.742Z] info    - Authentication is enabled
[2022-02-20T16:54:08.742Z] info      - Using password from $PASSWORD
[2022-02-20T16:54:08.742Z] info    - Not serving HTTPS 
[17:54:12] Extension host agent started.

launch.json not working anymore in 3.12.0

linuxserver.io


Expected Behavior

To be able to debug a Python or a Go application by using the launch.json file.

Current Behavior

I wanted to debug a Python or a Go application using the Docker Tag "version-v3.12.0" but it doesn't work anymore.
Didn't matter what I put in the launch.json file, the debugging process assumed that there was nothing there and prompted me with the default behavior. I tried to use different launch.json configurations for Python and for Go, even with the ones you can get by using Run > Add Configuration button in VSCode.
The solution is to use Docker Tag "version-v3.11.0"

Steps to Reproduce

  1. Create any basic Python/Go file
  2. Create a launch.json file from the VSCode GUI (Run > Add Configuration..)
  3. Try to debug the Python/Go file

Environment

Docker Image used ghcr.io/linuxserver/code-server:version-v3.12.0

Administrators that assign container a static IP can not change PORT with Docker Mappings

Traditionally, you specify "-p PORT:PORT". Users that specify that the contrainer use a network connection that isn't HOST can not change the port from 8443. This is problematic for multiple reasons. First, 8443 is the HTTPS alternate port, not HTTP. As this is HTTP only traffic, port 80 or 8080 should be used. I understand that multiple docker containers may want to use those ports, but that isn't an excuse. Reguardless if the traffic is put behind a reverse proxy, there needes the be the option for us to change the port the service runs on without having to put it behind an additional proxy.

Container fails to start: Node.js error | PRI4 | Protainer.io

Hi There,

i'm using this container since a while.
But since a couple of weeks the service stopped with this error:

Node.js[517]: ../src/util.cc:188:double node::GetCurrentTimeInMicroseconds(): Assertion `(0) == (uv_gettimeofday(&tv))' failed.

My other container-> coderaiser/cloudcmd had exact the same error but coderaiser could fix it with a new version. There must be a node base image problem, it seems like updating the base images could fix it!

Environment
UI: Protainer.io
HW: PRI 4
Docker compose yml:

version: '2.1'
services:
    vscode:  
        image: lscr.io/linuxserver/code-server
        container_name: vscode
        ports:
            - 8443:8443
        environment:
            - PUID=1000
            - PGID=1000
            - TZ=Europe/Berlin
        volumes:
            - /applications/vscode:/config
        restart: unless-stopped

Cheers
Niko

Extension install location mismatch when using --install-extension from CLI

linuxserver.io

Installing extensions through the store works just fine, and the UI will correctly show them as installed and working. Using this method the extension files are stored in ~/extensions

However installing either from the store or from a .vsix file using the command code-server --install-extension <some-extension> does not work, even though the CLI prints that they were successfully installed. The files when using this method are installed to ~/.local/share/code-server/extensions/


Expected Behavior

Installing extensions through the command line should exhibit the same behavior as installing them from the store built into the program, or using the menu to install a .vsix file. The command line tool may be necessary for initial provisioning of an instance of an image.

Current Behavior

Installing extensions through the command line does not work, and files are copied to a location other than the one used when installing through the UI.

Installing the python extension through the web UI result:

abc@77516e9ad64d:~/workspace$ ls ~/extensions/
ms-python.python-2021.4.765268190  ms-toolsai.jupyter-2021.3.0

Installing the C++ extension form a .vsix file:

abc@77516e9ad64d:~/workspace$ curl -LJO https://github.com/microsoft/vscode-cpptools/releases/download/1.3.1/cpptools-linux.vsix
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   625  100   625    0     0   2828      0 --:--:-- --:--:-- --:--:--  2828
100 20.7M  100 20.7M    0     0  20.9M      0 --:--:-- --:--:-- --:--:-- 33.3M
curl: Saved to filename 'cpptools-linux.vsix'
abc@77516e9ad64d:~/workspace$ code-server --install-extension cpptools-linux.vsix 
Installing extensions...
Extension 'cpptools-linux.vsix' was successfully installed.
abc@77516e9ad64d:~/workspace$ ls ~/.local/share/code-server/extensions/
ms-vscode.cpptools-1.3.1
abc@77516e9ad64d:~/workspace$ ls ~/extensions/
ms-python.python-2021.4.765268190  ms-toolsai.jupyter-2021.3.0

Installing the Java extension from the command line using the store

abc@77516e9ad64d:~/workspace$ code-server --install-extension vscjava.vscode-java-pack
Installing extensions...
Installing extension 'vscjava.vscode-java-pack' v0.9.0...
Extension 'vscjava.vscode-java-pack' v0.9.0 was successfully installed.
abc@77516e9ad64d:~/workspace$ ls ~/extensions/
ms-python.python-2021.4.765268190  ms-toolsai.jupyter-2021.3.0
abc@77516e9ad64d:~/workspace$ ls ~/.local/share/code-server/extensions/
ms-vscode.cpptools-1.3.1  vscjava.vscode-java-debug-0.32.1       vscjava.vscode-java-pack-0.9.0   vscjava.vscode-maven-0.21.2
redhat.java-0.61.0        vscjava.vscode-java-dependency-0.18.3  vscjava.vscode-java-test-0.29.0

State of the UI after opening an new Window:
image

Similarly, trying to use this image as a base for a dockerfile that simply adds

RUN code-server --install-extension vscjava.vscode-java-pack

also does not work.

Steps to Reproduce

  1. Start an instance of this image
  2. Try to install a plugin as in the commands above

Environment

OS: MXLinux (Debian Buster)
CPU architecture: x86_64
How docker service was installed:

Using the docker compose from the readme

Command used to create docker container (run/create/compose/screenshot)

docker-compose up

Docker logs

s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing... 
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 10-adduser: executing... 

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \ 
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/


Brought to you by linuxserver.io
-------------------------------------

To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    1000
User gid:    1000
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing... 
setting up sudo access
adding abc to sudoers
setting sudo password using SUDO_PASSWORD env var
Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
[cont-init.d] 30-config: exited 0.
[cont-init.d] 99-custom-scripts: executing... 
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2021-05-03T04:03:22.801Z] info  Wrote default config file to ~/.config/code-server/config.yaml
[2021-05-03T04:03:23.060Z] info  code-server 3.9.3 fe2dc2deb08e378069891b622bb62ad1d261d1b1
[2021-05-03T04:03:23.061Z] info  Using user-data-dir ~/data
[2021-05-03T04:03:23.069Z] info  Using config file ~/.config/code-server/config.yaml
[2021-05-03T04:03:23.069Z] info  HTTP server listening on http://0.0.0.0:8443 
[2021-05-03T04:03:23.069Z] info    - Authentication is enabled
[2021-05-03T04:03:23.069Z] info      - Using password from $PASSWORD
[2021-05-03T04:03:23.069Z] info    - Not serving HTTPS 
[2021-05-03T04:03:23.069Z] info    - Proxying the following domain:
[2021-05-03T04:03:23.069Z] info      - *.code-server.my.domain
 INFO Installing extension: ms-python.python
 INFO Downloaded extension: ms-python.python undefined
 INFO Extracted extension to /config/extensions/.ms-python.python-2021.4.765268190: ms-python.python
 INFO Renamed to /config/extensions/ms-python.python-2021.4.765268190
 INFO Installation completed. ms-python.python
 INFO Installing extension: ms-toolsai.jupyter
 INFO Downloaded extension: ms-toolsai.jupyter undefined
 INFO Extracted extension to /config/extensions/.ms-toolsai.jupyter-2021.3.0: ms-toolsai.jupyter
 INFO Renamed to /config/extensions/ms-toolsai.jupyter-2021.3.0
 INFO Installation completed. ms-toolsai.jupyter
 INFO Extensions installed successfully: ms-toolsai.jupyter
 INFO Extensions installed successfully: ms-python.python
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

Feature request: Extract install script from Dockerfile to facilitate re-use

First of all, I'm new to code-server and not sure if I hit the right path already.
But docker-code-server got me to the first hacky proof of concept, so thanks a lot to all contributors!!

I don't want to accidentally violate this projects license, so instead of copyediting the parts I need, I would like to propose a small change such that I can stick with & potentially contribute to the original.

Motivation

I can't use the linuxserver.io image, because I want to build FROM an exact version of an internal image that has a specific Python environment inside.
But the installation command is currently inside the Dockerfile, making it hard to re-use.

Desired Behavior

If those RUN \ lines were extracted to a script install.sh and (temporarily) copied into the image, one could re-use it in different Dockerfiles, for example with different FROM parents.

For my context, I would then git submodule the original docker-code-server and COPY/RUN only the config & install script files.

Alternatives Considered

  • Forking/copyediting the repository would detach it from the original repo & make it harder to both contribute & pull updates & fixes.
  • Am I even using the right tools to provide the "open in the browser" experience?
    This project installs cdr/code-server.
    Is microsoft/vscode-remote-release a more "official" alternative, a dependency, or completely unrelated?

Apologies for mixing this feature request with a question; please close & refer me to a different project/strategy/channel if appropriate.

Permission denied while saving a file

linuxserver.io

Expected Behavior

File should be saved

Current Behavior

File is not saved and I receive this error:

Failed to save 'TicketController.cs': Unable to write file 'vscode-remote://0.0.0.0:8443/Company/AdminApi/Api/Controllers/TicketController.cs' (NoPermissions (FileSystemError): Error: EACCES: permission denied, open '/Company/AdminApi/Api/Controllers/TicketController.cs')

Steps to Reproduce

  1. Use your own docker-compose.yml content in your docker hub repo
  2. Mount a simple project (any project, any directory)
  3. docker-compose up
  4. Go to localhost:8443
  5. Change a file and try to save

Environment

OS: Ubuntu 20.04 focal
CPU architecture: x86_64
How docker service was installed: apt, from official docker docs

Command used to create docker container (run/create/compose/screenshot)

The same as your docker hub repo page

Docker logs

I just see VS Code logs

Can not port forward in Kubernetes

apiVersion: apps/v1
kind: Deployment
metadata:
name: coder
labels:
name: coder
namespace: coder
spec:
replicas: 1
selector:
matchLabels:
name: coder
template:
metadata:
labels:
name: coder
spec:
nodeSelector:
name: spot
containers:
- name: coder
image: codercom/code-server
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8443
- containerPort: 80
resources:
requests:
cpu: "1"
memory: 501Mi
volumeMounts:
- name: efs-coder
mountPath: "/config"
subPath: coder/config
- name: efs-coder
mountPath: "/home/coder/project"
subPath: coder/project
- name: efs-coder
mountPath: "/home/coder/notebooks"
subPath: jupyter
env:
- name: PUID
value: "1000"
# - DOCKER_MODS: taisun/nzbget-mod
- name: PGID
value: "1000"
- name: PASSWORD
value: "foobar"
- name: SUDO_PASSWORD
value: "fooobar"
# - name: TZ
# value: "Europe/Berlin"
dnsPolicy: ClusterFirst
volumes:
- name: efs-coder
persistentVolumeClaim:
claimName: coder-local-claim

What am I missing? probably something basic:
kubectl port-forward deployments/coder 8443:8443 -n coder

Passwords not being set

linuxserver.io

The password is not being set. I keep getting starting with no password despite the password being set in the both the docker-compose file as well as the code-server config file where the password is hashed. Nether of them work.

Expected Behavior

The password should be set.

Current Behavior

The password is not set and anyone can access code-server.

Steps to Reproduce

1.Set a password and start the container
2.Access the container and see that no password is asked for.

Environment

OS: Raspberry Pi OS
CPU architecture: arm32
How docker service was installed: Official Repo

Command used to create docker container (run/create/compose/screenshot)

version: "2.1"
services:
  code-server:
    image: linuxserver/code-server
    container_name: code-server
    environment:
      - PUID=1001
      - PGID=1001
      - TZ=Europe/London
      - PASSWORD=password
      #- SUDO_PASSWORD=password #optional
      - PROXY_DOMAIN=code-server.example.org
      - DOCKER_MODS=linuxserver/mods:code-server-shellcheck|linuxserver/mods:code-server-python3|linuxserver/mods:code-server-php
    volumes:
      - /home/user/code-server/config:/config
      - /var/www:/livewebsite
    ports:
      - 8445:8443
    restart: unless-stopped

Docker logs

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \ 
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/


Brought to you by linuxserver.io
-------------------------------------

To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    1001
User gid:    1001
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing... 
setting up sudo access
setting sudo password using SUDO_PASSWORD env var
Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
[cont-init.d] 30-config: exited 0.
[cont-init.d] 98-php: executing... 
**** installing php and composer ****
Hit:1 http://ports.ubuntu.com/ubuntu-ports bionic InRelease
Hit:2 http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease
Hit:3 http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease
Hit:4 http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease
Hit:5 https://deb.nodesource.com/node_12.x bionic InRelease
Hit:6 https://dl.yarnpkg.com/debian stable InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
composer is already the newest version (1.6.3-1).
php7.2 is already the newest version (7.2.24-0ubuntu0.18.04.7).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
[cont-init.d] 98-php: exited 0.
[cont-init.d] 98-python3: executing... 
**** installing python3 dev environment ****
Hit:1 http://ports.ubuntu.com/ubuntu-ports bionic InRelease
Hit:2 http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease
Hit:3 http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease
Hit:4 http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease
Hit:5 https://deb.nodesource.com/node_12.x bionic InRelease
Hit:6 https://dl.yarnpkg.com/debian stable InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
build-essential is already the newest version (12.4ubuntu1).
libffi-dev is already the newest version (3.2.1-8).
libssl-dev is already the newest version (1.1.1-1ubuntu2.1~18.04.7).
python3-dev is already the newest version (3.6.7-1~18.04).
python3-pip is already the newest version (9.0.1-2.3~ubuntu1.18.04.4).
python3-venv is already the newest version (3.6.7-1~18.04).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
[cont-init.d] 98-python3: exited 0.
[cont-init.d] 98-shellcheck: executing... 
**** installing shellcheck ****
Hit:1 http://ports.ubuntu.com/ubuntu-ports bionic InRelease
Hit:2 http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease
Hit:3 http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease
Hit:4 http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease
Hit:5 https://deb.nodesource.com/node_12.x bionic InRelease
Hit:6 https://dl.yarnpkg.com/debian stable InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
shellcheck is already the newest version (0.4.6-1).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
[cont-init.d] 98-shellcheck: exited 0.
[cont-init.d] 99-custom-scripts: executing... 
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
starting with no password
[2021-02-03T12:18:44.036Z] info  code-server 3.8.0 c4610f7829701aadb045d450013b84491c30580d
[2021-02-03T12:18:44.039Z] info  Using user-data-dir ~/data
[2021-02-03T12:18:44.078Z] info  Using config file ~/.config/code-server/config.yaml
[2021-02-03T12:18:44.079Z] info  HTTP server listening on http://0.0.0.0:8443 
[2021-02-03T12:18:44.079Z] info    - Authentication is disabled 
[2021-02-03T12:18:44.079Z] info    - Not serving HTTPS 
[2021-02-03T12:18:44.080Z] info    - Proxying the following domain:
[2021-02-03T12:18:44.080Z] info      - *.code-server.example.org

Blank page after login on ssl

linuxserver.io


Expected Behavior

After login page, it should show vs code

Current Behavior

After login, just showing blank page

Steps to Reproduce

  1. create docker compose file
  2. docker-compose up -d
  3. visiste [ip]:8443
  4. login with password provided in compose file
  5. Now shows blank page

Environment

OS: Raspbian 1o Buster
CPU architecture: arm32
How docker service was installed:
Install with official docker repo with ansible

Command used to create docker container (run/create/compose/screenshot)

docker-compose up -d

Docker logs

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.,
[s6-init] ensuring user provided files have correct perms...exited 0.,
[fix-attrs.d] applying ownership & permissions fixes...,
[fix-attrs.d] done.,
[cont-init.d] executing container initialization scripts...,
[cont-init.d] 01-envfile: executing... ,
[cont-init.d] 01-envfile: exited 0.,
[cont-init.d] 10-adduser: executing... ,
,
-------------------------------------,
          _         (),
         | |  ___   _    __,
         | | / __| | |  /  \ ,
         | | \__ \ | | | () |,
         |_| |___/ |_|  \__/,
,
,
Brought to you by linuxserver.io,
-------------------------------------,
,
To support LSIO projects visit:,
https://www.linuxserver.io/donate/,
-------------------------------------,
GID/UID,
-------------------------------------,
,
User uid:    1000,
User gid:    1000,
-------------------------------------,
,
[cont-init.d] 10-adduser: exited 0.,
[cont-init.d] 30-config: executing... ,
setting up sudo access,
adding abc to sudoers,
setting sudo password using SUDO_PASSWORD env var,
Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully,
[cont-init.d] 30-config: exited 0.,
[cont-init.d] 90-custom-folders: executing... ,
[cont-init.d] 90-custom-folders: exited 0.,
[cont-init.d] 99-custom-scripts: executing... ,
[custom-init] no custom files found exiting...,
[cont-init.d] 99-custom-scripts: exited 0.,
[cont-init.d] done.,
[services.d] starting services,
[services.d] done.,
[2021-07-31T02:51:51.396Z] info  code-server 3.11.0 4e8cd09ef0412dfc7b148b7639a692e20e4fd6dd,
[2021-07-31T02:51:51.412Z] info  Using user-data-dir ~/data,
[2021-07-31T02:51:51.559Z] info  Using config file ~/.config/code-server/config.yaml,
[2021-07-31T02:51:51.560Z] info  HTTP server listening on http://0.0.0.0:8443 ,
[2021-07-31T02:51:51.561Z] info    - Authentication is enabled,
[2021-07-31T02:51:51.562Z] info      - Using password from $PASSWORD,
[2021-07-31T02:51:51.563Z] info    - Not serving HTTPS ,
[2021-07-31T02:51:51.565Z] info    - Proxying the following domain:,
[2021-07-31T02:51:51.566Z] info      - *.,
 WARN No ptyHost heartbeat after 6 seconds

Github OAuth fails

linuxserver.io

I'm having a real hard time getting the Github integration features to work properly. Clicking on anything like "Publish to Github" takes me to an OAuth screen, and when I click continue I get a "Oh no! An error occurred!
Please restart the sign in process from the editor. Forbidden" error. Returning to the code-server instance I can click "Logging into Github" on the bottom bar, at which point I'm prompted for a URI. Entering the URI results in an Unauthorized error.

This behavior is different from the exact same version/commit of code-server running on my computer natively. The Github login process simply prompts me for a personal access token and is successful when I enter it.

I am able to clone a repository from the command line using a personal access token git clone https://<PAT>@github.com/user.repo.git and push and pull correctly in that repo only after that.


Expected Behavior

Github OAuth should be successful, or code-server should ask for a personal access token instead.

Current Behavior

Github OAuth flow fails. Code-server never asks for PAT.

Steps to Reproduce

  1. Open new folder in code-server.
  2. Go to source control tab and click "Publish to Github", and "OK" to open OAuth browser window.
  3. Click "Continue" on Github OAuth prompt.
  4. OAuth fails with forbidden error.

Environment

OS: Docker on OMV on Proxmox, running behind traefik2 container, secure domain
CPU architecture: x86_64
How docker service was installed:

Official Docker repo

Command used to create docker container (run/create/compose/screenshot)

code-server:
image: linuxserver/code-server
container_name: code-server
networks:
t2_proxy:
environment:
- PUID=$PUID
- PGID=$PGID
- TZ=$TZ
- PASSWORD=$RC_PASSWD
#- HASHED_PASSWORD= #optional
- SUDO_PASSWORD=$RC_PASSWD
#- SUDO_PASSWORD_HASH= #optional
- PROXY_DOMAIN=code.$DOMAINNAME0 #optional
- DEFAULT_WORKSPACE=/config/workspace #optional
secrets:
- code_server_pw
volumes:
- $STORAGE/appdata/code-server:/config
- $STORAGE/repos:/home/repos
labels:
- "traefik.enable=true"
- "traefik.http.routers.code-server-rtr.entrypoints=https"
- "traefik.http.routers.code-server-rtr.rule=Host(code.$DOMAINNAME0)"
- "traefik.http.routers.code-server-rtr.middlewares=middlewares-rate-limit@file,chain-oauth@file"
- "traefik.http.routers.code-server-rtr.service=code-server-svc"
- "traefik.http.services.code-server-svc.loadbalancer.server.port=8443"
ports:
- 8443:8443
restart: unless-stopped

Docker logs

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing...
setting up sudo access
adding abc to sudoers
setting sudo password using SUDO_PASSWORD env var
New password: Retype new password: passwd: password updated successfully
setting permissions::configuration
setting permissions::workspace
[cont-init.d] 30-config: exited 0.
[cont-init.d] 90-custom-folders: executing...
[cont-init.d] 90-custom-folders: exited 0.
[cont-init.d] 99-custom-scripts: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2022-01-18T10:59:57.045Z] info code-server 4.0.1 735c6da829535969ff7193c79379299e4a1cb9bc
[2022-01-18T10:59:57.095Z] info Using user-data-dir ~/data
[2022-01-18T10:59:57.443Z] info Using config file ~/.config/code-server/config.yaml
[2022-01-18T10:59:57.460Z] info HTTP server listening on http://0.0.0.0:8443/
[2022-01-18T10:59:57.492Z] info - Authentication is enabled
[2022-01-18T10:59:57.507Z] info - Using password from $PASSWORD
[2022-01-18T10:59:57.510Z] info - Not serving HTTPS
[2022-01-18T10:59:57.519Z] info - Proxying the following domain:
[2022-01-18T10:59:57.531Z] info - *.code.xxxxxxx.com
[03:00:35] Extension host agent started.
[03:00:42] No ptyHost heartbeat after 6 seconds
[03:00:44] Deleted from disk github.vscode-pull-request-github /config/extensions/github.vscode-pull-request-github-0.34.3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.