-
Notifications
You must be signed in to change notification settings - Fork 881
workspace name too long for coder_app #8145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
There is a size limit to the first segment (left of domain name) of the IDE URL. 61 or 63 characters. So check the length of the agent name, coder_app name, workspace name, user name - which make up that segment, to see if they exceed that. |
When the segment exceeds 63 characters, we could suggest an alternate URL that uses a constant-length format. For example, the agent ID. |
I'm looking into this now. |
I incorrectly assumed that the workspace apps proxy server uses the database to match subdomains (URLs are stored in the database). @deansheater brought up that issue (thanks!) and suggested In the meantime, we identified other issues:
If I understand the issue correctly, to make it work we need to:
also from @deansheater slack:
|
Bumping as I ended up with the following subdomain:
Would it make sense for this to break during terraform plan/apply already? I think @mtojek's proposal sounds good considering we obviously can take multiple precautions for ensuring less noise in the subdomain, but we still have usernames and workspace names that are capped at 32, so we should assume those alone can use up all the available space. Not to mention the possibility of using subdomain suffixes. I think it's important we consider that the URL should work across template versions and updated workspaces. I think the best option is for us to generate a new UUID for use in the URL based on workspace ID and app slug, this gives us a constant 32 (or 36 with dashes) length subdomain, and leaves room for nearly as many more. The reason I'd avoid using e.g. workspace ID directly is edge cases like |
what is the solution to this problem? |
Hi,
I used coder and want to creating different workspaces. The length of workspace name can be 32 characters. If you set the name to 32 characters, then error 404 occur by clicking
coder-server
button.You can solve the issue by setting workspace name to 31 characters.
It seems it is a bug by handling workspace name to open coder-server instance.
Regards,

Frank
The text was updated successfully, but these errors were encountered: