Skip to content

code-server v4 unable to load resources (e.g. new theme) -- requesting to port 80? #4608

Closed
@drmrbrewer

Description

@drmrbrewer

I'm getting the following error in the console when trying to load a new theme (in a fresh v4 installation):

  GET https://code-server.mydomain.com:80/vscode-remote-resource?path=%2Fusr%2Flib%2Fcode-server%2Fvendor%2Fmodules%2Fcode-oss-dev%2Fextensions%2Ftheme-defaults%2Fthemes%2Fdark_plus.json&tkn=0000 net::ERR_SSL_PROTOCOL_ERROR

  ERR Unable to load vscode-remote://code-server.mydomain.com:80/usr/lib/code-server/vendor/modules/code-oss-dev/extensions/theme-defaults/themes/dark_plus.json: Failed to fetch: Error: Unable to load vscode-remote://code-server.mydomain.com:80/usr/lib/code-server/vendor/modules/code-oss-dev/extensions/theme-defaults/themes/dark_plus.json: Failed to fetch
	at https://code-server.mydomain.com/static/out/vs/workbench/workbench.web.api.js:1926:79062
	at async Z.restoreColorTheme (https://code-server.mydomain.com/static/out/vs/workbench/workbench.web.api.js:1926:79687)

My installation is in this context: #4529 (comment) (just replacing curl install.sh | sh with curl install.sh | sh -s -- --version=4.0.0).

I also have the following ENTRYPOINT (i.e. binding to 8443 rather than 8080):

ENTRYPOINT [ "code-server", "/root/workspace", "--bind-addr", "0.0.0.0:8443" ]

It all seems to fire up just fine with v4... just not able to change theme for a start.

I'm also seeing the following (not really doing anything to prompt it):

  ERR Unable to load and parse grammar for scope source.json.comments from vscode-remote://code-server.mydomain.com:80/usr/lib/code-server/vendor/modules/code-oss-dev/extensions/json/syntaxes/JSONC.tmLanguage.json TypeError: Failed to fetch
	at v.readExtensionResource (extensionResourceLoaderService.ts:46)
	at Object.readFile (abstractTextMateService.ts:246)
	at Object.loadGrammar (TMGrammarFactory.ts:53)
	at e.<anonymous> (main.js:107)
	at main.js:46
	at Object.next (main.js:27)
	at main.js:21
	at new Promise (<anonymous>)
	at i (main.js:17)
	at e._doLoadSingleGrammar (main.js:103)
log.ts:313   ERR No grammar provided for <source.json.comments>: Error: No grammar provided for <source.json.comments>
	at d (https://code-server.mydomain.com/static/node_modules/vscode-textmate/release/main.js:1:3170)
	at e.processQueue (https://code-server.mydomain.com/static/node_modules/vscode-textmate/release/main.js:1:2533)
	at e.<anonymous> (https://code-server.mydomain.com/static/node_modules/vscode-textmate/release/main.js:1:30634)
	at https://code-server.mydomain.com/static/node_modules/vscode-textmate/release/main.js:1:28678
	at Object.next (https://code-server.mydomain.com/static/node_modules/vscode-textmate/release/main.js:1:28783)
	at s (https://code-server.mydomain.com/static/node_modules/vscode-textmate/release/main.js:1:27497)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions