Šimon DJ Čecháček
Šimon DJ Čecháček
CCoder.com
Created by Šimon DJ Čecháček on 12/4/2024 in #help
Issue with starting workspaces that were running for months.
Hi there. My Uni finals started, so I wan unable to test it. Will do ASAP and let you know
36 replies
CCoder.com
Created by Šimon DJ Čecháček on 12/4/2024 in #help
Issue with starting workspaces that were running for months.
Yeah i just learned that. I read the tutorial and was able to build it. But my issue is now my user will not even create and everything runs under user coder, so folders cant be accessed and etc. There is no word about this in the guide
36 replies
CCoder.com
Created by Šimon DJ Čecháček on 12/4/2024 in #help
Issue with starting workspaces that were running for months.
Okay, for now I forced the older version of resource so our devs can work. I am unable to make it work :/
36 replies
CCoder.com
Created by Šimon DJ Čecháček on 12/4/2024 in #help
Issue with starting workspaces that were running for months.
Yes, I ran the whole coder and startuo script under the individual user (owner of the workspace), now it runs under user coder and it makes issues as coder does not own the folder. I do not want to change the user structure asd that would break exisiting machines
36 replies
CCoder.com
Created by Šimon DJ Čecháček on 12/4/2024 in #help
Issue with starting workspaces that were running for months.
I think its because the coder command are no more running under the users username, but under coder username?
36 replies
CCoder.com
Created by Šimon DJ Čecháček on 12/4/2024 in #help
Issue with starting workspaces that were running for months.
Well, I remembered I created the template from a docker starter template, so I went there and copied the same stuff to update the variables, now I can build a template, but my startscript fails on permissions:
fatal: could not create work tree dir '/home/simonc/coderconfig': Permission denied
/bin/bash: line 22: cd: /home/simonc/coderconfig: No such file or directory
CONFIG REPO CLONE FAILED
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
Repository has been updated, and local changes have been ignored.
ln: failed to create symbolic link '/home/simonc/configs': Permission denied
project-base-codered
ln: failed to create symbolic link '/home/simonc/repo': Permission denied
fatal: could not create work tree dir '/home/simonc/coderconfig': Permission denied
/bin/bash: line 22: cd: /home/simonc/coderconfig: No such file or directory
CONFIG REPO CLONE FAILED
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
Repository has been updated, and local changes have been ignored.
ln: failed to create symbolic link '/home/simonc/configs': Permission denied
project-base-codered
ln: failed to create symbolic link '/home/simonc/repo': Permission denied
That code worked for months, so I am afraid is something to do witht the recent change, is there anything that changed permissions in coder workspace?
36 replies
CCoder.com
Created by Šimon DJ Čecháček on 12/4/2024 in #help
Issue with starting workspaces that were running for months.
Well, that is not correct as it ends on Error: Unable to create container: Error response from daemon: Invalid container name (coder-radekchaloupka-radek chaloupka), only [a-zA-Z0-9][a-zA-Z0-9_.-] are allowed on main.tf line 579, in resource "docker_container" "workspace": 579: resource "docker_container" "workspace" {
36 replies
CCoder.com
Created by Šimon DJ Čecháček on 12/4/2024 in #help
Issue with starting workspaces that were running for months.
maybe data.coder_workspace_owner.me.full_name?
36 replies
CCoder.com
Created by Šimon DJ Čecháček on 12/4/2024 in #help
Issue with starting workspaces that were running for months.
Okay, I understand that. But with what should be data.coder_workspace.me.name replaced? I am unable to understand it from the guide on terraform site you sent, I am sorry.
36 replies
CCoder.com
Created by Šimon DJ Čecháček on 12/4/2024 in #help
Issue with starting workspaces that were running for months.
Any idea what is wrong?
36 replies
CCoder.com
Created by Šimon DJ Čecháček on 12/4/2024 in #help
Issue with starting workspaces that were running for months.
Great! This is hopefully the last one I am fighting with:
Error: Unsupported attribute
on .terraform/modules/coder-login/main.tf line 22, in resource "coder_script" "coder-login":

22: CODER_USER_TOKEN : data.coder_workspace.me.owner_session_token,
This object has no argument, nested block, or exported attribute named "owner_session_token".
Error: Unsupported attribute
on .terraform/modules/coder-login/main.tf line 22, in resource "coder_script" "coder-login":

22: CODER_USER_TOKEN : data.coder_workspace.me.owner_session_token,
This object has no argument, nested block, or exported attribute named "owner_session_token".
This is the current value: env = ["CODER_AGENT_TOKEN=${data.coder_workspace_owner.me.session_token}"] This is the original value: env = ["CODER_AGENT_TOKEN=${coder_agent.main.token}"]
36 replies
CCoder.com
Created by Šimon DJ Čecháček on 12/4/2024 in #help
Issue with starting workspaces that were running for months.
Okay, this is wrong: weburl = "https://preview--main--${lower(data.coder_workspace.me.name)}--${data.coder_workspace.me.owner}.coder.artdev.space" visibility_switch = data.coder_parameter.visibility.value == "false" ? "authenticated" : "public" Can you help me fix this line please?
36 replies
CCoder.com
Created by Šimon DJ Čecháček on 12/4/2024 in #help
Issue with starting workspaces that were running for months.
In the meaintime Here is how I updated it: 94: username = data.coder_workspace_owner.me.name 95: weburl = "https://preview--main--${lower(data.coder_workspace_owner.me.name)}--${data.coder_workspace.me.owner}.coder.domain.tld" 544: labels { label = "coder.owner" value = data.coder_workspace_owner.me.name 548: labels { label = "coder.owner_id" value = data.coder_workspace_owner.me.id } Is tha correct? 😄
36 replies
CCoder.com
Created by Šimon DJ Čecháček on 12/4/2024 in #help
Issue with starting workspaces that were running for months.
I hope I updted it correctly, but now I end on Error: Failed to install provider Error while installing kreuzwerker/docker v3.0.2: unsuccessful request to https://github.com/kreuzwerker/terraform-provider-docker/releases/download/v3.0.2/terraform-provider-docker_3.0.2_linux_amd64.zip: 504 Gateway Timeout Maybe I got banned for too many attemps 😄
36 replies
CCoder.com
Created by Šimon DJ Čecháček on 12/4/2024 in #help
Issue with starting workspaces that were running for months.
Okay, Will try 😄 Can I ask for help if I fail? 😄
36 replies
CCoder.com
Created by Šimon DJ Čecháček on 12/4/2024 in #help
Issue with starting workspaces that were running for months.
I will check it
36 replies
CCoder.com
Created by Šimon DJ Čecháček on 7/29/2024 in #help
Application error: Cannot read properties of undefined (reading 'id')
No description
7 replies
CCoder.com
Created by Šimon DJ Čecháček on 7/29/2024 in #help
Application error: Cannot read properties of undefined (reading 'id')
Hello, I created the issue and included a video: https://github.com/coder/coder/issues/14053
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
Yea that should help. I tested it on all my workspaces and I can confirm that the issue appears on all of them that were creqated with 23.04 version. Luckily there is a single fix, just open the terminal on even not fully started workspace (as it fails to start completely) and run sudo chown -R $USER:$USER /home/$USER. Then you restart and workspace works just fine on a new version and can even be updated to a new versions with no problems.
27 replies
CCoder.com
Created by Šimon DJ Čecháček on 4/30/2024 in #help
home directory of user changed owner to ubuntu user
When I starta new workspace, runs fine. When I update an old one, issue appears
27 replies