[Support] Linuxserver.io - Code-server


Recommended Posts

2 minutes ago, saarg said:

It didn't say to edit anything, so you shouldn't have done that. Set it back to the default port as it's not using the mapped port, but the container port.

Thank you so much, I though you had to change the port in the config files to the mapped ports.

Link to comment
16 minutes ago, bdzschau said:

Thank you so much, I though you had to change the port in the config files to the mapped ports.

You don't have to map any ports if you reverse proxy as letsencrypt talks to the containers on the docker bridge using container names. Each container has it's own IP, so the same port can be used on two containers. You do however need to use the domain name and have a router that supports hairpining if you don't map any ports.

  • Thanks 1
Link to comment
  • 2 weeks later...
7 hours ago, TDA said:

Hello,

After updating the Code-Server I get following error:

"The terminal shell path "opt/microsoft/powershell/7/pwsh" does not exist"

 

The Docker is configurated with "linuxserver/mods:code-server-powershell"

 

 

What do the logs show?

Link to comment
  • 2 weeks later...
On 6/2/2020 at 6:00 PM, aptalca said:

Docker

Hello,

I just saw that there is also an update available (don't know it has a relation)

image.thumb.png.20d098a270c0063282196689ee11896c.png

 

As for docker logs do you mean this one?



ErrorWarningSystemArrayLogin

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


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...
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] 98-powershell: executing...
Installing PowerShell
Get:1 https://deb.nodesource.com/node_12.x bionic InRelease [4,584 B]
Get:2 https://dl.yarnpkg.com/debian stable InRelease [17.1 kB]
Get:3 https://deb.nodesource.com/node_12.x bionic/main amd64 Packages [764 B]
Get:4 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:7 https://dl.yarnpkg.com/debian stable/main all Packages [10.0 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic/main Sources [1,063 kB]
Get:9 http://archive.ubuntu.com/ubuntu bionic/restricted Sources [5,823 B]
Get:10 http://archive.ubuntu.com/ubuntu bionic/universe Sources [11.5 MB]
Get:11 https://dl.yarnpkg.com/debian stable/main amd64 Packages [10.0 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic/multiverse Sources [216 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1,344 kB]
Get:14 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
Get:16 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
Get:17 http://archive.ubuntu.com/ubuntu bionic-updates/universe Sources [371 kB]
Get:18 http://archive.ubuntu.com/ubuntu bionic-updates/main Sources [408 kB]
Get:19 http://archive.ubuntu.com/ubuntu bionic-updates/restricted Sources [8,394 B]
Get:20 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse Sources [7,152 B]
Get:21 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [1,228 kB]
Get:22 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [20.1 kB]
Get:23 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1,385 kB]
Get:24 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [73.6 kB]
Get:25 http://archive.ubuntu.com/ubuntu bionic-security/main Sources [192 kB]
Get:26 http://archive.ubuntu.com/ubuntu bionic-security/multiverse Sources [3,232 B]
Get:27 http://archive.ubuntu.com/ubuntu bionic-security/restricted Sources [5,992 B]
Get:28 http://archive.ubuntu.com/ubuntu bionic-security/universe Sources [217 kB]
Get:29 http://archive.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [59.3 kB]
Get:30 http://archive.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [8,815 B]
Get:31 http://archive.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [854 kB]
Get:32 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 Packages [931 kB]
Fetched 31.9 MB in 3s (9,908 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
libicu60 libunwind8
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 8,101 kB of archives.
After this operation, 32.0 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libicu60 amd64 60.2-3ubuntu3.1 [8,054 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic/main amd64 libunwind8 amd64 1.2.1-8 [47.5 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 2.)
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 8,101 kB in 1s (7,820 kB/s)
Selecting previously unselected package libicu60:amd64.
Preparing to unpack .../libicu60_60.2-3ubuntu3.1_amd64.deb ...
Unpacking libicu60:amd64 (60.2-3ubuntu3.1) ...
Selecting previously unselected package libunwind8:amd64.
Preparing to unpack .../libunwind8_1.2.1-8_amd64.deb ...
Unpacking libunwind8:amd64 (1.2.1-8) ...
Setting up libicu60:amd64 (60.2-3ubuntu3.1) ...
Setting up libunwind8:amd64 (1.2.1-8) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
[cont-init.d] 98-powershell: 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.
info Using config file ~/.config/code-server/config.yaml
info Using user-data-dir ~/data
info code-server 3.4.0 69ad52907e8ea109345831d29da5425cb2a55047
info HTTP server listening on http://0.0.0.0:8443
info - Using password from $PASSWORD
info - To disable use `--auth none`
info - Not serving HTTPS
[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.
[mod-init] Attempting to run Docker Modification Logic
[mod-init] Applying linuxserver/mods:code-server-powershell files to container
[mod-init] linuxserver/mods:code-server-powershell at sha256:e790ad46e3ae13cfe0ddcb7553a57e423e36060ed9127abea180a3df097ea2b9 has been previously applied skipping
[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: 99
User gid: 100
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing...
setting up sudo access
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] 98-powershell: executing...
PowerShell already installed, skipping
[cont-init.d] 98-powershell: 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.
info Using config file ~/.config/code-server/config.yaml
info Using user-data-dir ~/data
info code-server 3.4.0 69ad52907e8ea109345831d29da5425cb2a55047
info HTTP server listening on http://0.0.0.0:8443
info - Using password from $PASSWORD
info - To disable use `--auth none`
info - Not serving HTTPS
[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.
[mod-init] Attempting to run Docker Modification Logic
[mod-init] Applying linuxserver/mods:code-server-powershell files to container
[mod-init] linuxserver/mods:code-server-powershell at sha256:e790ad46e3ae13cfe0ddcb7553a57e423e36060ed9127abea180a3df097ea2b9 has been previously applied skipping
[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: 99
User gid: 100
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing...
setting up sudo access
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] 98-powershell: executing...
PowerShell already installed, skipping
[cont-init.d] 98-powershell: 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.
info Using config file ~/.config/code-server/config.yaml
info Using user-data-dir ~/data
info code-server 3.4.0 69ad52907e8ea109345831d29da5425cb2a55047
info HTTP server listening on http://0.0.0.0:8443
info - Using password from $PASSWORD
info - To disable use `--auth none`
info - Not serving HTTPS
warn discarding socket connection: vscode is not running
warn discarding socket connection: vscode is not running
[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.
[mod-init] Attempting to run Docker Modification Logic
[mod-init] Applying linuxserver/mods:code-server-powershell files to container
[mod-init] linuxserver/mods:code-server-powershell at sha256:e790ad46e3ae13cfe0ddcb7553a57e423e36060ed9127abea180a3df097ea2b9 has been previously applied skipping
[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: 99
User gid: 100
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing...
setting up sudo access
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] 98-powershell: executing...
PowerShell already installed, skipping
[cont-init.d] 98-powershell: 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.
info Using config file ~/.config/code-server/config.yaml
info Using user-data-dir ~/data
info code-server 3.4.0 69ad52907e8ea109345831d29da5425cb2a55047
info HTTP server listening on http://0.0.0.0:8443
info - Using password from $PASSWORD
info - To disable use `--auth none`
info - Not serving HTTPS
[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.
[mod-init] Attempting to run Docker Modification Logic
[mod-init] Applying linuxserver/mods:code-server-powershell files to container
[mod-init] linuxserver/mods:code-server-powershell at sha256:e790ad46e3ae13cfe0ddcb7553a57e423e36060ed9127abea180a3df097ea2b9 has been previously applied skipping
[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: 99
User gid: 100
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing...
setting up sudo access
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] 98-powershell: executing...
PowerShell already installed, skipping
[cont-init.d] 98-powershell: 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.
info Using config file ~/.config/code-server/config.yaml
info Using user-data-dir ~/data
info code-server 3.4.0 69ad52907e8ea109345831d29da5425cb2a55047
info HTTP server listening on http://0.0.0.0:8443
info - Using password from $PASSWORD
info - To disable use `--auth none`
info - Not serving HTTPS

I then access the coder server through https with a reverseproxy.

Edited by TDA
Link to comment
  • 3 weeks later...

How do you change the HTTP Server listening port if we are using that port for something else. You would think (based on the logs) it would be in the config.yaml but I cant find anything?

 

From the Logs:

1872136452_code-serverconfig.png.5c4c7313c1827e7e844470302376fe86.png

 

nano on terminal for config.yaml [~./config/code-server/config.yaml] have tried sudo nano and just nano.

959670675_code-serveryaml.png.075fb0b96c5e7e26c767aa9fba329dfa.png

 

I have tried changing port 8080 to the new port i'm trying to use (dumb I know, but it was worth a shot [figured 8080/http lol]...)

 

Forgive me not very fluent in Linux / Docker yet.

 

As a side note why cant I see /config/.config/ with ls? I have a feeling the www/http server is hidden somewhere I just cant find the directory? (Again this is probably my lack of experience with Linux in general.

 

1403260176_code-serverconfig.config.png.03bd86c3159b1008af510f97646e73f1.png

 

UNRAID Docker Config:

322576131_code-serverunraid.png.8a6be4ab7f8301b9e0211bff2c37bfa9.png

 

Thanks for any help!

Link to comment
7 hours ago, TangTrapper said:

How do you change the HTTP Server listening port if we are using that port for something else. You would think (based on the logs) it would be in the config.yaml but I cant find anything?

 

From the Logs:

1872136452_code-serverconfig.png.5c4c7313c1827e7e844470302376fe86.png

 

nano on terminal for config.yaml [~./config/code-server/config.yaml] have tried sudo nano and just nano.

959670675_code-serveryaml.png.075fb0b96c5e7e26c767aa9fba329dfa.png

 

I have tried changing port 8080 to the new port i'm trying to use (dumb I know, but it was worth a shot [figured 8080/http lol]...)

 

Forgive me not very fluent in Linux / Docker yet.

 

As a side note why cant I see /config/.config/ with ls? I have a feeling the www/http server is hidden somewhere I just cant find the directory? (Again this is probably my lack of experience with Linux in general.

 

1403260176_code-serverconfig.config.png.03bd86c3159b1008af510f97646e73f1.png

 

UNRAID Docker Config:

322576131_code-serverunraid.png.8a6be4ab7f8301b9e0211bff2c37bfa9.png

 

Thanks for any help!

You don't need to change the port in the container. You change the host port in the template, which you have already done as you have changed it to 8297. That is all you have to do.

Link to comment
15 hours ago, saarg said:

You don't need to change the port in the container. You change the host port in the template, which you have already done as you have changed it to 8297. That is all you have to do.

saarg, thanks for the reply!

 

I am still getting a 502 error when using the reverse proxy, I feel like it has something to do with the listening port for the HTTP as the logs still show: 'info HTTP server listening on http://0.0.0.0:8443' which is not the port that the container should be using, which is why i'm thinking its hard coded into the application/docker itself.

 

I had to do something similar with Wiki.js under config.yaml when Rocket.Chat took over port 3000 I had to update the port (outside of the initial container config) in order to get the reverse proxy running. The picture below is with vi config.yaml inside of wiki.js. Proxy would not work until i changed the port: 3000 to a different ip with BindIP: 0.0.0.0 | even though the host port was different. [Different problem but same situation]

 

2020-07-07_21h27_33.png.e6d2d7656721d30da9a63dc6bb1a139f.png

 

Code-Server proxy works fine if i disable the Unifi-Controller and Revert Code-Server port in nginx config back to internal port 8443 and the mapping port.

 

image.png.e191cc42e7d4d644e5121efa1da4b988.png

 

I must be missing something but not sure what. 

 

Thanks again,

Link to comment
1 hour ago, TangTrapper said:

saarg, thanks for the reply!

 

I am still getting a 502 error when using the reverse proxy, I feel like it has something to do with the listening port for the HTTP as the logs still show: 'info HTTP server listening on http://0.0.0.0:8443' which is not the port that the container should be using, which is why i'm thinking its hard coded into the application/docker itself.

 

I had to do something similar with Wiki.js under config.yaml when Rocket.Chat took over port 3000 I had to update the port (outside of the initial container config) in order to get the reverse proxy running. The picture below is with vi config.yaml inside of wiki.js. Proxy would not work until i changed the port: 3000 to a different ip with BindIP: 0.0.0.0 | even though the host port was different. [Different problem but same situation]

 

2020-07-07_21h27_33.png.e6d2d7656721d30da9a63dc6bb1a139f.png

 

Code-Server proxy works fine if i disable the Unifi-Controller and Revert Code-Server port in nginx config back to internal port 8443 and the mapping port.

 

image.png.e191cc42e7d4d644e5121efa1da4b988.png

 

I must be missing something but not sure what. 

 

Thanks again,

Don't change the port in the proxy confs. They refer to internal container ports.

 

If you're reverse proxying that way, you don't even need to map a port for the container, you can remove them. Or set then to whatever, it doesn't matter.

Link to comment
  • 5 weeks later...

Hi, I'm getting the following error trying to use Emmet expansions: 

Running the contributed command: 'emmet.expandAbbreviation' failed.

Here are my setting configs: 

image.png.12b5ef7f93bd596613e907271e3596e8.png

image.png.e221a45ef72dbbaedf9619012bdd0bc5.png

 

I thought it was because I messed up some config but I removed the docker + wiped appdata folder but the issue persists. I get the expansion error trying to expand ! or anything like ul>li*3 for example. 

 

Is this a code-server issue? 

Link to comment
8 hours ago, crazykidguy said:

Hi, I'm getting the following error trying to use Emmet expansions: 


Running the contributed command: 'emmet.expandAbbreviation' failed.

Here are my setting configs: 

image.png.12b5ef7f93bd596613e907271e3596e8.png

image.png.e221a45ef72dbbaedf9619012bdd0bc5.png

 

I thought it was because I messed up some config but I removed the docker + wiped appdata folder but the issue persists. I get the expansion error trying to expand ! or anything like ul>li*3 for example. 

 

Is this a code-server issue? 

That's really a question for code-server

Link to comment
On 8/7/2020 at 7:38 PM, aptalca said:

That's really a question for code-server

Thanks, I opened an issue with code-server and they weren't able to reproduce the problem with a fresh install and on the same version. Here are some additional logs from the remote extension host in vscode when I try to run the command.

 

According to code-server, it seems like packages were missing during installation in /node_modules/code-server/lib/vscode/extensions/emmet. I followed their suggested workaround and ran sudo yarn in /node_modules/code-server/lib/vscode/extensions/emmet and that has properly installed the missing packages and Emmet is working again. 

[2020-08-11 15:54:20.929] [exthost] [error] [vscode.emmet] provider FAILED
[2020-08-11 15:54:20.931] [exthost] [error] Error: Cannot find module 'vscode-emmet-helper'
Require stack:
- /node_modules/code-server/lib/vscode/extensions/emmet/dist/extension.js
- /node_modules/code-server/lib/vscode/out/vs/loader.js
- /node_modules/code-server/lib/vscode/out/bootstrap-amd.js
- /node_modules/code-server/lib/vscode/out/bootstrap-fork.js
	at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15)
	at Function.Module._load (internal/modules/cjs/loader.js:842:27)
	at Function.t._load (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:956:846)
	at Function.n._load (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:926:106)
	at Function.i._load (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:922:391)
	at Module.require (internal/modules/cjs/loader.js:1026:19)
	at require (internal/modules/cjs/helpers.js:72:18)
	at Object.<anonymous> (/node_modules/code-server/lib/vscode/extensions/emmet/dist/extension.js:1:59931)
	at n (/node_modules/code-server/lib/vscode/extensions/emmet/dist/extension.js:1:158)
	at Object.t.getEmmetHelper (/node_modules/code-server/lib/vscode/extensions/emmet/dist/extension.js:1:3341)
	at t.DefaultCompletionItemProvider.provideCompletionItemsInternal (/node_modules/code-server/lib/vscode/extensions/emmet/dist/extension.js:1:53050)
	at t.DefaultCompletionItemProvider.provideCompletionItems (/node_modules/code-server/lib/vscode/extensions/emmet/dist/extension.js:1:52275)
	at /node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:675:521
	at /node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:51:988
	at new Promise (<anonymous>)
	at Object.t.asPromise (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:51:960)
	at H.provideCompletionItems (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:675:492)
	at /node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:694:883
	at e._withAdapter (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:685:862)
	at e.$provideCompletionItems (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:694:861)
	at e._doInvokeHandler (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:790:363)
	at e._invokeHandler (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:790:55)
	at e._receiveRequest (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:788:688)
	at e._receiveOneMessage (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:787:518)
	at /node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:785:754
	at e.fire (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:46:67)
	at v.fire (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:232:615)
	at /node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:958:347
	at e.fire (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:46:67)
	at v.fire (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:232:615)
	at t.PersistentProtocol._receiveMessage (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:237:17)
	at /node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:234:155
	at e.fire (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:46:67)
	at p.acceptChunk (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:230:129)
	at /node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:229:483
	at e.fire (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:46:67)
	at f._acceptChunk (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:241:182)
	at /node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:239:346
	at Socket.t (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:238:565)
	at Socket.emit (events.js:315:20)
	at addChunk (_stream_readable.js:295:12)
	at readableAddChunk (_stream_readable.js:271:9)
	at Socket.Readable.push (_stream_readable.js:212:10)
	at TCP.onStreamRead (internal/stream_base_commons.js:186:23)
[2020-08-11 15:55:01.133] [exthost] [error] TypeError: s.updateExtensionsPath is not a function
	at c (/node_modules/code-server/lib/vscode/extensions/emmet/dist/extension.js:1:2978)
	at Object.t.getEmmetHelper (/node_modules/code-server/lib/vscode/extensions/emmet/dist/extension.js:1:3348)
	at Object.t.expandEmmetAbbreviation (/node_modules/code-server/lib/vscode/extensions/emmet/dist/extension.js:1:41608)
	at /node_modules/code-server/lib/vscode/extensions/emmet/dist/extension.js:1:48572
	at e._executeContributedCommand (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:627:753)
	at e.$executeContributedCommand (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:628:104)
	at e._doInvokeHandler (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:790:363)
	at e._invokeHandler (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:790:55)
	at e._receiveRequest (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:788:739)
	at e._receiveOneMessage (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:787:518)
	at /node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:785:754
	at e.fire (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:46:67)
	at v.fire (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:232:615)
	at /node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:958:347
	at e.fire (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:46:67)
	at v.fire (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:232:615)
	at t.PersistentProtocol._receiveMessage (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:237:17)
	at /node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:234:155
	at e.fire (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:46:67)
	at p.acceptChunk (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:230:129)
	at /node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:229:483
	at e.fire (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:46:67)
	at f._acceptChunk (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:241:182)
	at /node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:239:346
	at Socket.t (/node_modules/code-server/lib/vscode/out/vs/workbench/services/extensions/node/extensionHostProcess.js:238:565)
	at Socket.emit (events.js:315:20)
	at addChunk (_stream_readable.js:295:12)
	at readableAddChunk (_stream_readable.js:271:9)
	at Socket.Readable.push (_stream_readable.js:212:10)
	at TCP.onStreamRead (internal/stream_base_commons.js:186:23) emmet.expandAbbreviation

From the 

Link to comment

Do we need a docker mod to get remote development tools? I did not see anything like that in the list of currently available docker mods. See snapshot of my local install of VS that lists some of these. These don't show up as search results using the extensions search from within this docker. Can anyone share info on how to set up ssh for remote development from within this docker? Thanks!!

remote.PNG

Edited by njdowdy
Link to comment
1 hour ago, njdowdy said:

Do we need a docker mod to get remote development tools? I did not see anything like that in the list of currently available docker mods. See snapshot of my local install of VS that lists some of these. These don't show up as search results using the extensions search from within this docker. Can anyone share info on how to set up ssh for remote development from within this docker? Thanks!!

remote.PNG

Why do you need SSH when you can just reverse proxy the container and use the console in code-server?

Link to comment
3 minutes ago, saarg said:

Why do you need SSH when you can just reverse proxy the container and use the console in code-server?

I have a reverse-proxy for myself, but I need to also SSH into my university to upload and execute code developed in vscode remotely on a cluster. 

Link to comment
  • 3 weeks later...

First of all, thanks for creating this.  I just found out my network dept just blacklisted vscode as a security risk.  Told me to use VS because it does the same thing.  Crazy!

 

I got the container working and can open it in the browser locally.  Now I need to set up a cert and try to get it over https.  I think I'm over complicating the setup though.

I setup a dns with cloudflare pointing to my pfsense wan and have nat forwading 443 to 8443 (I also have LE/SWAG listening on 1443).  I'm using acme to obtain a cert from letsencrypt for code-server.  When I try the website code.bacnet.app I get ssl handshake failed.  I'm not sure where my problem is.

Link to comment
1 hour ago, sgt_spike said:

First of all, thanks for creating this.  I just found out my network dept just blacklisted vscode as a security risk.  Told me to use VS because it does the same thing.  Crazy!

 

I got the container working and can open it in the browser locally.  Now I need to set up a cert and try to get it over https.  I think I'm over complicating the setup though.

I setup a dns with cloudflare pointing to my pfsense wan and have nat forwading 443 to 8443 (I also have LE/SWAG listening on 1443).  I'm using acme to obtain a cert from letsencrypt for code-server.  When I try the website code.bacnet.app I get ssl handshake failed.  I'm not sure where my problem is.

If you already have SWAG, just enable the subdomain conf for code-server.

Link to comment
10 hours ago, sgt_spike said:

A-ha! I knew I was over thinking it!

 

Looking at the code-server.subdomain.config it seems like all I need to do is take the .sample off and it's good to go?  

That is correct. You also need a subdomain for it on your domain if you are not using wildcard cert.

Link to comment
2 hours ago, saarg said:

That is correct. You also need a subdomain for it on your domain if you are not using wildcard cert.

I have a subdomain set up for it.  

 

I have LE/SWAG on a user defined bridge and CODE-SERVER on the same bridge.  Because I'm using a user defined bridge does anything in the conf file have to change?  My domain name for code-server (code.bacnet.app) is resolving back to my main site (www.spikedevelopments.com)

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.