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

Skip to content

Problems with adding a coder_app to a coder_agent when there are multiple agents #13358

Open
@sean-brace

Description

@sean-brace

I'm having some issues with setting a coder_app for a single coder_agent in a template. When I do, I get a "internal provisionerserver error" (no other errors can be seen)

Here's roughly what I have:

resource "coder_agent" "core" {
  count              = 1
  arch               = "amd64"
  auth               = "token"
  os                 = "linux"
  dir                = "/workspaces/core"
  connection_timeout = 0
  order              = 1
}

resource "coder_agent" "dev" {
  count              = 1
  arch               = "amd64"
  auth               = "token"
  os                 = "linux"
  dir                = "/workspaces/dev"
  connection_timeout = 0
  order              = 2
}

resource "coder_app" "http-server" {
  agent_id      = coder_agent.core[0].id
  icon          = "${data.coder_workspace.me.access_url}/icon/php.svg"
  slug          = "http-server"
  display_name  = "Apache"
  url           = "http://localhost"
  share         = "public"
  subdomain     = true
}

If I remove the coder_app everything builds fine and I can use the template, minus the public shared url. Is there something I'm doing incorrectly that doesn't seem obvious to me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    waiting-for-infoThe issue creator is asked to provide more information.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions