Hannsr
Hannsr
CCoder.com
Created by Hannsr on 1/3/2023 in #help
No Coder Logs
Oh well, my coding experience is basically none, but I can give it a try. Thanks either way! And sure, I'll do that once I have a few minutes. I'm not entirely sure it is necessary, but having the option to add another security layer can't hurt 🙂 I noticed I'll have to update caddy as well then since it doesn't forward the real IP in the basic setup. Thanks for looking into it!
20 replies
CCoder.com
Created by Hannsr on 1/3/2023 in #help
No Coder Logs
But having it log everything like that might not be great in the long run. Can I tweak it somehow so logins aren't just available with logging everything?
20 replies
CCoder.com
Created by Hannsr on 1/3/2023 in #help
No Coder Logs
Ok, adding verbose does work, now I can see login attempts.
20 replies
CCoder.com
Created by Hannsr on 1/3/2023 in #help
No Coder Logs
Same output as without .service I also just tried again to login with wrong credentials, but nothing in the logs, no matter if with/without .serviceadded.
20 replies
CCoder.com
Created by Hannsr on 1/3/2023 in #help
No Coder Logs
No more Ideas anyone? 😦
20 replies
CCoder.com
Created by Hannsr on 1/3/2023 in #help
No Coder Logs
Just checked, but yeah, running as systemd service:
coder.service - "Coder - Self-hosted developer workspaces on your infra"
Loaded: loaded (/lib/systemd/system/coder.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2023-01-02 16:42:01 CET; 2 days ago
Docs: https://coder.com/docs/coder-oss
Main PID: 534 (coder)
Tasks: 26 (limit: 38492)
Memory: 1.0G
CPU: 13min 28.495s
CGroup: /system.slice/coder.service
├─ 534 /usr/bin/coder server
├─ 601 /home/coder/.config/coderv2/postgres/bin/bin/postgres -D /home/coder/.config/coderv2/postgres/data -p 36497
├─ 603 postgres: checkpointer
├─ 604 postgres: background writer
├─ 605 postgres: walwriter
├─ 606 postgres: autovacuum launcher
├─ 607 postgres: stats collector
├─ 608 postgres: logical replication launcher
├─ 779 postgres: coder coder ::1(45108) idle
├─ 816 postgres: coder coder ::1(45116) idle
├─ 834 postgres: coder coder ::1(45180) idle
└─90044 postgres: coder coder ::1(34738) idle
coder.service - "Coder - Self-hosted developer workspaces on your infra"
Loaded: loaded (/lib/systemd/system/coder.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2023-01-02 16:42:01 CET; 2 days ago
Docs: https://coder.com/docs/coder-oss
Main PID: 534 (coder)
Tasks: 26 (limit: 38492)
Memory: 1.0G
CPU: 13min 28.495s
CGroup: /system.slice/coder.service
├─ 534 /usr/bin/coder server
├─ 601 /home/coder/.config/coderv2/postgres/bin/bin/postgres -D /home/coder/.config/coderv2/postgres/data -p 36497
├─ 603 postgres: checkpointer
├─ 604 postgres: background writer
├─ 605 postgres: walwriter
├─ 606 postgres: autovacuum launcher
├─ 607 postgres: stats collector
├─ 608 postgres: logical replication launcher
├─ 779 postgres: coder coder ::1(45108) idle
├─ 816 postgres: coder coder ::1(45116) idle
├─ 834 postgres: coder coder ::1(45180) idle
└─90044 postgres: coder coder ::1(34738) idle
20 replies
CCoder.com
Created by Hannsr on 1/3/2023 in #help
No Coder Logs
Yeah, definitely. But I'll double-check tomorrow.
20 replies
CCoder.com
Created by Hannsr on 1/3/2023 in #help
No Coder Logs
Yeah I ran both. It was weird already when I set up the new system and had some errors in the coder.env and all it said was "failed to start", no error log at all.
20 replies
CCoder.com
Created by Hannsr on 1/3/2023 in #help
No Coder Logs
Yeah it's really weird. Like there is nothing being logged at all by coder.
20 replies
CCoder.com
Created by Hannsr on 1/2/2023 in #help
Port ForwardingSSL issues
Oh alright, thanks. It's not as much about security, but more about replicating the production system as close as possible. Changing nginx to serve http instead shouldn't be too bad though.
8 replies
CCoder.com
Created by Hannsr on 12/21/2022 in #help
Coder behind Reverse Proxy and Port Forwarding
Ok wait, I think I know what this is. I can login from my local system so probably down to hairpin nat or something like that. Edit: Yuuup, Hairpin NAT issues. I even answered a related question in this discord just recently. 🤦‍♂️
129 replies
CCoder.com
Created by Hannsr on 12/21/2022 in #help
Coder behind Reverse Proxy and Port Forwarding
Same goes for /api/v2/users/first which returns
{"message":"The initial user has already been created!"}
{"message":"The initial user has already been created!"}
129 replies
CCoder.com
Created by Hannsr on 12/21/2022 in #help
Coder behind Reverse Proxy and Port Forwarding
Opening https://my.domain.dev/api/v2/buildinfo opens the correct page I assume. At least the output is
{"external_url":"https://github.com/coder/coder/commit/86257ce7fcc2b695b6700b5983eb40d0ef0ab193","version":"v0.13.5+86257ce"}
{"external_url":"https://github.com/coder/coder/commit/86257ce7fcc2b695b6700b5983eb40d0ef0ab193","version":"v0.13.5+86257ce"}
129 replies
CCoder.com
Created by Hannsr on 12/21/2022 in #help
Coder behind Reverse Proxy and Port Forwarding
I guess this was resolved too early …🫠
I can login just fine and create a user, basically do everything in the WebUI, yer when I run
coder login my.domain.dev
coder login my.domain.dev
I get
Failed to check server "https://my.domain.dev" for first user, is the URL correct and is coder accessible from your browser? Error - has initial user: do: Get "https://my.domain.dev/api/v2/users/first": x509: certificate is valid for OPNsense.localdomain, not my.domain.dev
Failed to check server "https://my.domain.dev" for first user, is the URL correct and is coder accessible from your browser? Error - has initial user: do: Get "https://my.domain.dev/api/v2/users/first": x509: certificate is valid for OPNsense.localdomain, not my.domain.dev
So it hit's my firewall somehow? It shouldn't do that, unless I missed something...
129 replies
CCoder.com
Created by Hannsr on 12/21/2022 in #help
Coder behind Reverse Proxy and Port Forwarding
Now don't forget to disable caddy 😄 Thank you for the time. This gave me a headache for far to long ^^
129 replies
CCoder.com
Created by Hannsr on 12/21/2022 in #help
Coder behind Reverse Proxy and Port Forwarding
It was really listening to itself on :3000. So I changed it to
CODER_ADDRESS=0.0.0.0:3000
CODER_ADDRESS=0.0.0.0:3000
in the coder.env file and now it works
129 replies
CCoder.com
Created by Hannsr on 12/21/2022 in #help
Coder behind Reverse Proxy and Port Forwarding
Oh F me, I got it
129 replies
CCoder.com
Created by Hannsr on 12/21/2022 in #help
Coder behind Reverse Proxy and Port Forwarding
oh wait a sec, I have it only listen on localhost:3000 Scratch that, I don't ^^
129 replies
CCoder.com
Created by Hannsr on 12/21/2022 in #help
Coder behind Reverse Proxy and Port Forwarding
I'm back to bad gateway now btw 😄 Pointing nginx to :3000, no matter if http or https
129 replies
CCoder.com
Created by Hannsr on 12/21/2022 in #help
Coder behind Reverse Proxy and Port Forwarding
yeah, true
129 replies