Šimon DJ Čecháček
Šimon DJ Čecháček
CCoder.com
Created by Šimon DJ Čecháček on 7/29/2024 in #help
Application error: Cannot read properties of undefined (reading 'id')
One of my workspaces shows an error when I try to open its page from the list insice coder. The error is:
TypeError: Cannot read properties of undefined (reading 'id')
at https://artdev.space/assets/WorkspaceBuildData-e78a221d.js:3:7661
at Fm (https://domain.tld/assets/index-1aa73b9d.js:47:24296)
at $c (https://domain.tld/assets/index-1aa73b9d.js:47:42443)
at zee (https://domain.tld/assets/index-1aa73b9d.js:47:41265)
at vs (https://domain.tld/assets/index-1aa73b9d.js:47:40307)
at vL (https://domain.tld/assets/index-1aa73b9d.js:47:36911)
at rs (https://domain.tld/assets/index-1aa73b9d.js:45:3287)
at https://domain.tld/assets/index-1aa73b9d.js:47:34285
TypeError: Cannot read properties of undefined (reading 'id')
at https://artdev.space/assets/WorkspaceBuildData-e78a221d.js:3:7661
at Fm (https://domain.tld/assets/index-1aa73b9d.js:47:24296)
at $c (https://domain.tld/assets/index-1aa73b9d.js:47:42443)
at zee (https://domain.tld/assets/index-1aa73b9d.js:47:41265)
at vs (https://domain.tld/assets/index-1aa73b9d.js:47:40307)
at vL (https://domain.tld/assets/index-1aa73b9d.js:47:36911)
at rs (https://domain.tld/assets/index-1aa73b9d.js:45:3287)
at https://domain.tld/assets/index-1aa73b9d.js:47:34285
I run the latest version of Coder on a Debian machine using docker for the workspaces.
7 replies
CCoder.com
Created by Šimon DJ Čecháček on 4/30/2024 in #help
home directory of user changed owner to ubuntu user
No description
21 replies
CCoder.com
Created by Šimon DJ Čecháček on 3/25/2024 in #help
Terraforms docker_image extra_hosts flag get ignored
Hello, I need to add some local records into /etc/hosts of every container made from my template, so i read the docker_image documentation on terraform and teried to use the extra_hosts parameter: https://registry.terraform.io/providers/kreuzwerker/docker/latest/docs/resources/image#extra_hosts Unfortunately, it is ignored by Coder the DNS record is not resolvable in containers and the change is not save into /ets/hosts even on newly created workspaces. I added it like this: resource "docker_image" "main" { name = "coder-${data.coder_workspace.me.id}" build { context = "./build" build_args = { USER = local.username } extra_hosts=["plesk.domain.tld:192.168.3.18","plesk:192.168.3.18"] } triggers = { dir_sha1 = sha1(join("", [for f in fileset(path.module, "build/*") : filesha1(f)])) } } Any idea why this is ignored?
6 replies