Thanks to visit codestin.com
Credit goes to github.com

Skip to content

UI: cannot create a workspace from default Linux AWS template #1977

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

Closed
Tracked by #1939
nadzeyav opened this issue Jun 2, 2022 · 3 comments
Closed
Tracked by #1939

UI: cannot create a workspace from default Linux AWS template #1977

nadzeyav opened this issue Jun 2, 2022 · 3 comments

Comments

@nadzeyav
Copy link

nadzeyav commented Jun 2, 2022

OS Information

Steps to Reproduce

  1. Create a template Linux on AWS EC2 using build it templates
  2. Login to coder
  3. Click Create workspace
  4. Choose aws-linux template

Expected

Options to choose region are displayed

Actual

Error is displayed

Logs

Screenshot

image

Notes

======================= STACK TRACE ========================

Cannot read properties of null (reading 'length')
at J (https://vigorous-germain0.try.coder.app/bundle.595fd896d2995adf1ea9.js:1:7186)
at aa (https://vigorous-germain0.try.coder.app/bundle.f605f7e1baaad8f0b827.js:2:560721)
at Hs (https://vigorous-germain0.try.coder.app/bundle.f605f7e1baaad8f0b827.js:2:612770)
at Au (https://vigorous-germain0.try.coder.app/bundle.f605f7e1baaad8f0b827.js:2:600044)
at ku (https://vigorous-germain0.try.coder.app/bundle.f605f7e1baaad8f0b827.js:2:599972)
at Cu (https://vigorous-germain0.try.coder.app/bundle.f605f7e1baaad8f0b827.js:2:599835)
at gu (https://vigorous-germain0.try.coder.app/bundle.f605f7e1baaad8f0b827.js:2:596822)
at https://vigorous-germain0.try.coder.app/bundle.f605f7e1baaad8f0b827.js:2:546643
at t.unstable_runWithPriority (https://vigorous-germain0.try.coder.app/bundle.f605f7e1baaad8f0b827.js:2:647788)
at Hi (https://vigorous-germain0.try.coder.app/bundle.f605f7e1baaad8f0b827.js:2:546420)

============================================================

@kconley-sq
Copy link
Contributor

kconley-sq commented Jun 3, 2022

I believe I ran into this issue myself in v0.6.0:

======================= STACK TRACE ========================

Cannot read properties of null (reading 'length')
    at Y (https://coder.sqcorp.co/bundle.d348b2254471bdd9d116.js:1:7754)
    at aa (https://coder.sqcorp.co/bundle.82f6fac05ecb071bdc27.js:2:333661)
    at Hs (https://coder.sqcorp.co/bundle.82f6fac05ecb071bdc27.js:2:385710)
    at _l (https://coder.sqcorp.co/bundle.82f6fac05ecb071bdc27.js:2:372984)
    at Cl (https://coder.sqcorp.co/bundle.82f6fac05ecb071bdc27.js:2:372912)
    at kl (https://coder.sqcorp.co/bundle.82f6fac05ecb071bdc27.js:2:372775)
    at vl (https://coder.sqcorp.co/bundle.82f6fac05ecb071bdc27.js:2:369762)
    at https://coder.sqcorp.co/bundle.82f6fac05ecb071bdc27.js:2:319583
    at t.unstable_runWithPriority (https://coder.sqcorp.co/bundle.82f6fac05ecb071bdc27.js:2:418114)
    at Vo (https://coder.sqcorp.co/bundle.82f6fac05ecb071bdc27.js:2:319360)

============================================================

I wasn't using the aws-linux example exactly but my own AWS Linux template that I was previously able to create a workspace from in the web UI until I added this validation block to one of the template variables (named amazon_machine_image_name):

validation {
  condition     = trimprefix(var.amazon_machine_image_name, "my-prefix-") != var.amazon_machine_image_name
  error_message = "The AMI name must start with \"my-prefix-\"."
}

Creating a workspace from the CLI would still work without issues, though.

Once I remove that validation block and re-upload my template, I am able to create a workspace from it in the Coder web UI once more.

@kylecarbs kylecarbs changed the title Bug: UI: cannot create a workspace from default Linux AWS template UI: cannot create a workspace from default Linux AWS template Jun 7, 2022
@misskniss misskniss added the site Area: frontend dashboard label Jun 7, 2022
@Kira-Pilot
Copy link
Member

Tried this out this morning but couldn't reproduce 🤔

@misskniss misskniss assigned Kira-Pilot and unassigned greyscaled Jun 14, 2022
@Kira-Pilot
Copy link
Member

This should be resolved by #2384.

@misskniss misskniss added duplicate and removed bug site Area: frontend dashboard labels Jun 16, 2022
@misskniss misskniss removed this from the Community MVP milestone Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants