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

Skip to content

Bug: terraform install error on starting coder service #1404

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
kconley-sq opened this issue May 11, 2022 · 4 comments
Closed

Bug: terraform install error on starting coder service #1404

kconley-sq opened this issue May 11, 2022 · 4 comments
Assignees
Labels
api Area: HTTP API
Milestone

Comments

@kconley-sq
Copy link
Contributor

kconley-sq commented May 11, 2022

OS Information

  • OS: Ubuntu 20.04.4 LTS
  • Browser (if applicable): N/A
  • Architecture: x86_64
  • coder --version: Coder v0.5.5+3660483 Tue May 10 00:01:33 UTC 2022
    3660483

Steps to Reproduce

  1. Install coder by downloading https://github.com/coder/coder/releases/download/v0.5.5/coder_0.5.5_linux_amd64.deb and running sudo apt-get install /path/to/coder_0.5.5_linux_amd64.deb
  2. Configure /etc/coder.d/coder.env with appropriate values for CODER_ACCESS_URL, CODER_ADDRESS, and CODER_PG_CONNECTION_URL variables
  3. Run sudo service coder restart to restart the coder service

Expected

Coder service should start successfully (as told by sudo service coder status).

Actual

sudo service coder status shows that Coder failed to start:

● coder.service - "Coder - Self-hosted developer workspaces on your infra"
     Loaded: loaded (/lib/systemd/system/coder.service; disabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Wed 2022-05-11 23:53:50 UTC; 13s ago
       Docs: https://coder.com/docs/
    Process: 99080 ExecStart=/usr/bin/coder server (code=exited, status=1/FAILURE)
   Main PID: 99080 (code=exited, status=1/FAILURE)

May 11 23:53:50 coder-prod-0 systemd[1]: coder.service: Scheduled restart job, restart counter is at 3.
May 11 23:53:50 coder-prod-0 systemd[1]: Stopped "Coder - Self-hosted developer workspaces on your infra".
May 11 23:53:50 coder-prod-0 systemd[1]: coder.service: Start request repeated too quickly.
May 11 23:53:50 coder-prod-0 systemd[1]: coder.service: Failed with result 'exit-code'.
May 11 23:53:50 coder-prod-0 systemd[1]: Failed to start "Coder - Self-hosted developer workspaces on your infra".

Logs

(via sudo journalctl -u coder.service)

May 11 23:56:09 coder-prod-0 systemd[1]: coder.service: Scheduled restart job, restart counter is at 2.
May 11 23:56:09 coder-prod-0 systemd[1]: Stopped "Coder - Self-hosted developer workspaces on your infra".
May 11 23:56:09 coder-prod-0 systemd[1]: Starting "Coder - Self-hosted developer workspaces on your infra"...
May 11 23:56:09 coder-prod-0 coder[99331]:     ▄█▀    ▀█▄
May 11 23:56:09 coder-prod-0 coder[99331]:      ▄▄ ▀▀▀  █▌   ██▀▀█▄          ▐█
May 11 23:56:09 coder-prod-0 coder[99331]:  ▄▄██▀▀█▄▄▄  ██  ██      █▀▀█ ▐█▀▀██ ▄█▀▀█ █▀▀
May 11 23:56:09 coder-prod-0 coder[99331]: █▌   ▄▌   ▐█ █▌  ▀█▄▄▄█▌ █  █ ▐█  ██ ██▀▀  █
May 11 23:56:09 coder-prod-0 coder[99331]:      ██████▀▄█    ▀▀▀▀   ▀▀▀▀  ▀▀▀▀▀  ▀▀▀▀ ▀
May 11 23:56:09 coder-prod-0 coder[99331]: access-url: <ELIDED>
May 11 23:56:09 coder-prod-0 coder[99331]: provisioner-daemons: 3
May 11 23:56:09 coder-prod-0 coder[99331]:                                                             
May 11 23:56:09 coder-prod-0 coder[99331]:   > Started in  production  mode. All data is stored in the
May 11 23:56:09 coder-prod-0 coder[99331]:   PostgreSQL provided! Press  ctrl+c  to gracefully
May 11 23:56:09 coder-prod-0 coder[99331]:   shutdown.
May 11 23:56:09 coder-prod-0 coder[99331]:                                                             
May 11 23:56:09 coder-prod-0 coder[99331]:   > Run  coder login <ELIDED>
May 11 23:56:09 coder-prod-0 coder[99331]:   in
May 11 23:56:09 coder-prod-0 coder[99331]:   a new terminal to get started.
May 11 23:56:09 coder-prod-0 systemd[1]: Started "Coder - Self-hosted developer workspaces on your infra".
May 11 23:56:10 coder-prod-0 coder[99331]:                                                             2022-05-11 23:56:10.031 [INFO]        <provisionerd.go:844>        skipping job fail; none running        {"error_message": "provisioner daemon was shutdown gracefully"}
May 11 23:56:10 coder-prod-0 coder[99331]: 2022-05-11 23:56:10.031 [INFO]        <provisionerd.go:844>        skipping job fail; none running        {"error_message": "provisioner daemon was shutdown gracefully"}
May 11 23:56:10 coder-prod-0 coder[99331]: 2022-05-11 23:56:10.031 [INFO]        <provisionerd.go:844>        skipping job fail; none running        {"error_message": "provisioner daemon was shutdown gracefully"}
May 11 23:56:10 coder-prod-0 coder[99331]: install terraform: unexpected Content-Type: "application/vnd+hashicorp.releases-api.v0+json"
May 11 23:56:10 coder-prod-0 systemd[1]: coder.service: Main process exited, code=exited, status=1/FAILURE
May 11 23:56:10 coder-prod-0 systemd[1]: coder.service: Failed with result 'exit-code'.

Notes

I saw this unexpected Content-Type: "application/vnd+hashicorp.releases-api.v0+json" error message also reported here: hashicorp/terraform#31033 (comment)

Could this be related to these recent changes to the Hashicorp releases API? https://www.hashicorp.com/blog/announcing-the-hashicorp-releases-api

@bpmct
Copy link
Member

bpmct commented May 12, 2022

@kylecarbs this seems high-prio

@kylecarbs
Copy link
Member

Ahh we need to publish a new release!

@bpmct
Copy link
Member

bpmct commented May 12, 2022

@kconley-sq this is fixed in the latest release. this was due to an upstream Terraform bug. #1383 is planned to prevent this kinda stuff in the future

@bpmct
Copy link
Member

bpmct commented May 12, 2022

fixed in #1381

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Area: HTTP API
Projects
None yet
Development

No branches or pull requests

4 participants