maf
maf
CCoder.com
Created by Hannsr on 1/3/2023 in #help
No Coder Logs
One option would be to modify the code and add a second condition, like:
if sw.Status == http.StatusUnauthorized {
logLevelFn = httplog.Info
}
if sw.Status == http.StatusUnauthorized {
logLevelFn = httplog.Info
}
Here: https://github.com/coder/coder/blob/a4ca8ffa651f4b0cd44b1b77d002c21bda877593/coderd/httpmw/logger.go#L56-L58 But other than that, it's not currently possible, I'm afraid. Would you care to open up a feature request on the issue tracker describing what you want to achieve and why?
20 replies
CCoder.com
Created by Hannsr on 1/3/2023 in #help
No Coder Logs
Then you should see something like this:
2023-01-09 12:28:31.651 [DEBUG] (coderd) <./coderd/httpmw/logger.go:63> Logger.func1.1.1 POST {"host": "[domain]:7080", "path": "/api/v2/users/login", "proto": "HTTP/1.1", "remote_addr": "192.168.1.76", "took": "106.59659ms", "status_code": 401, "latency_ms": 106, "request_id": "cb73df4f-5097-42c7-8dd1-7715ca08fc62"}
2023-01-09 12:28:31.651 [DEBUG] (coderd) <./coderd/httpmw/logger.go:63> Logger.func1.1.1 POST {"host": "[domain]:7080", "path": "/api/v2/users/login", "proto": "HTTP/1.1", "remote_addr": "192.168.1.76", "took": "106.59659ms", "status_code": 401, "latency_ms": 106, "request_id": "cb73df4f-5097-42c7-8dd1-7715ca08fc62"}
20 replies
CCoder.com
Created by Hannsr on 1/3/2023 in #help
No Coder Logs
You can add CODER_VERBOSE=true to /etc/coder.d/coder.env and restart the coder service.
20 replies
CCoder.com
Created by Hannsr on 1/3/2023 in #help
No Coder Logs
Do you have verbose enabled in coder.env?
20 replies
CCoder.com
Created by Hannsr on 1/3/2023 in #help
No Coder Logs
Does secifying .service help? I.e. sudo journalctl -u coder.service
20 replies
CCoder.com
Created by Freeman on 11/22/2022 in #help
Workspace state running but not started
Are you running Coder on Linux? You can try to enable verbose logging for the docker daemon as suggested here: https://github.com/coder/coder/blob/c6016d247df5733ac6b5c813d7a424dbc47f7441/dogfood/guide.md#my-docker-containers-keep-failing-and-i-have-no-idea-whats-going-on You should then be able to see the container logs via journalctl and better understand what's happening.
10 replies
CCoder.com
Created by zenhighzer on 10/6/2022 in #help
kubernetes workspace - code-server-button unhealthy
(And sorry)
10 replies
CCoder.com
Created by zenhighzer on 10/6/2022 in #help
kubernetes workspace - code-server-button unhealthy
The health check was a fairly new feature, appreciate you catching the bug for us! ❤️
10 replies
CCoder.com
Created by zenhighzer on 10/6/2022 in #help
kubernetes workspace - code-server-button unhealthy
Awesome!
10 replies
CCoder.com
Created by zenhighzer on 10/6/2022 in #help
kubernetes workspace - code-server-button unhealthy
10 replies
CCoder.com
Created by zenhighzer on 10/6/2022 in #help
kubernetes workspace - code-server-button unhealthy
I believe our template has a tiny bug (wrong port) defined here: https://github.com/coder/coder/blob/1386465631e6a052590eccd369e174b206304257/examples/templates/kubernetes/main.tf#L81 If you modify/update your kubernetes template to use port 13337 instead, I think it should work.
10 replies
CCoder.com
Created by Programmer_remote124 on 9/22/2022 in #help
Error failed to refresh cached credentials, no EC2 IMDS role found, operation error ec2imds GetMet
I also found this issue on the aws provider tracker, you may find some hints there: https://github.com/hashicorp/terraform-provider-aws/issues/23209
3 replies
CCoder.com
Created by Programmer_remote124 on 9/22/2022 in #help
Error failed to refresh cached credentials, no EC2 IMDS role found, operation error ec2imds GetMet
It sounds like coder server may not be configured with the appropriate AWS credentials, have you taken a look at https://coder.com/docs/coder-oss/latest/templates/authentication ?
3 replies
CCoder.com
Created by Mopsior on 9/9/2022 in #help
Coder CLI in docker
/opt/coder
30 replies
CCoder.com
Created by Mopsior on 9/9/2022 in #help
Coder CLI in docker
/bin/sh is usually always present
30 replies
CCoder.com
Created by Mopsior on 9/9/2022 in #help
Coder CLI in docker
You could open up a shell or give the full path (/opt/coder IIRC)
30 replies
CCoder.com
Created by Mopsior on 9/9/2022 in #help
Coder CLI in docker
Nah, running code-server is just something you can do with Coder OSS. The sky's the limit with regards to what else you can do (or rather, anything you can dream up to do in Terraform).
30 replies
CCoder.com
Created by Mopsior on 9/9/2022 in #help
Coder CLI in docker
It has a built-in terminal you can use. You can also use the separate Web Terminal (available in Coder webUI).
30 replies
CCoder.com
Created by Mopsior on 9/9/2022 in #help
Coder CLI in docker
Depends if you're using VSCode or code-server in browser. For VSCode with remote extensions you'll need the coder binary.
30 replies
CCoder.com
Created by Mopsior on 9/9/2022 in #help
Coder CLI in docker
Ok, well you could just exec into your Docker container and run the coder commands from there.
30 replies