[nix-shell:/etc/nixos-repo]# nixos-rebuild switch
building the system configuration...
stopping the following units: accounts-daemon.service, coder-init-admin.service, coder.service, systemd-sysctl.service
activating the configuration...
[template-sync] Initializing the backend...
[template-sync] Initializing provider plugins...
[template-sync] - Finding coder/coderd versions matching "~> 0.0.16"...
[template-sync] - Installing coder/coderd v0.0.16...
[template-sync] - Installed coder/coderd v0.0.16 (unauthenticated)
[template-sync] Terraform has created a lock file .terraform.lock.hcl to record the provider
[template-sync] selections it made above. Include this file in your version control repository
[template-sync] so that Terraform can guarantee to make the same selections by default when
[template-sync] you run "terraform init" in the future.
[template-sync]
[template-sync]
[template-sync] Warning: Incomplete lock file information for providers
[template-sync]
[template-sync] Due to your customized provider installation methods, Terraform was forced to
[template-sync] calculate lock file checksums locally for the following providers:
[template-sync] - coder/coderd
[template-sync]
[template-sync] The current .terraform.lock.hcl file only includes checksums for linux_arm64,
[template-sync] so Terraform running on another platform will fail to install these
[template-sync] providers.
[template-sync]
[template-sync] To calculate additional checksums for another platform, run:
[template-sync] terraform providers lock -platform=linux_amd64
[template-sync] (where linux_amd64 is the platform to generate)
[template-sync] Terraform has been successfully initialized!
[template-sync]
[template-sync] You may now begin working with Terraform. Try running "terraform plan" to see
[template-sync] any changes that are required for your infrastructure. All Terraform commands
[template-sync] should now work.
[template-sync]
[template-sync] If you ever set or change modules or backend configuration for Terraform,
[template-sync] rerun this command to reinitialize your working directory. If you forget, other
[template-sync] commands will detect it and remind you to do so if necessary.
[template-sync]
[template-sync] Error: default_organization_id
[template-sync]
[template-sync] with provider["registry.terraform.io/coder/coderd"],
[template-sync] on main.tf line 41, in provider "coderd":
[template-sync] 41: provider "coderd" {
[template-sync]
[template-sync] failed to get default organization ID: Get
[template-sync] "http://localhost:3000/api/v2/users/me: dial tcp [::1]:3000: connect:
[template-sync] connection refused
setting up /etc...
reloading user units for coder...
reloading user units for coderbox...
restarting sysinit-reactivation.target
reloading the following units: dbus.service
restarting the following units: polkit.service
starting the following units: accounts-daemon.service, coder-init-admin.service, coder.service, systemd-sysctl.service
the
coder-init-adminservice tries to reach the Coder instance before it is ready/as it is stopping (unsure yet).