Skip to content

500 Internal Server Error while trying to coder port-forward #10037

@spikecurtis

Description

@spikecurtis

Seen on our dogfood instance.

% coder -v port-forward dogfood2 --tcp 8080
Internal error fetching workspace agent.
unauthorized: rbac: forbidden

Coder API log

			"fields": {
				"path": "/api/v2/workspaceagents/REDACTED",
				"remote_addr": "REDACTED",
				"took": "19.020056ms",
				"status_code": 500,
				"proto": "HTTP/2.0",
				"host": "dev.coder.com",
				"start": "2023-10-04T12:47:26.929773465Z",
				"response_body": "{\"message\":\"Internal error fetching workspace agent.\",\"detail\":\"unauthorized: rbac: forbidden\"}\n",
				"request_id": "abab31f3-a344-43c0-9fae-880f264ed83c",
				"latency_ms": 19
			},

Client is macOS Coder CLI

% coder version
Coder v2.1.5+66019ef Tue Sep  5 21:44:12 UTC 2023
https://github.com/coder/coder/commit/66019ef70a69cc65679733da65547761a67e50ce

Full build of Coder, supports the  server  subcommand.

Metadata

Metadata

Assignees

Labels

s2Broken use cases or features (with a workaround). Only humans may set this.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions