Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error After Changing Ports #1300

Open
JV-X opened this issue Mar 6, 2025 · 0 comments
Open

Error After Changing Ports #1300

JV-X opened this issue Mar 6, 2025 · 0 comments

Comments

@JV-X
Copy link

JV-X commented Mar 6, 2025

Hello, I tried running Hatchet locally,using docker way, but since port 8080 was already occupied, I switched to port 3033. I modified the ​Caddyfile to:

http://localhost:3033 {  
    handle /api/* {  
        reverse_proxy hatchet-api:3033  
    }  

    handle /* {  
        reverse_proxy hatchet-frontend:80  
    }  
}  

I also updated line 52 in ​docker-compose.yml (setting SERVER_AUTH_COOKIE_DOMAIN to localhost:3033) and line 104 (mapping ports: "3033:3033" for the Caddy service). After running docker compose up -d and open http://localhost:3033/ in browser, the page shows "Something went wrong" with the following logs:

2025-03-06 11:26:58 caddy-1             | {"level":"error","ts":1741231618.6942554,"logger":"http.log.error","msg":"dial tcp 172.22.0.7:3033: connect: connection refused","request":{"remote_ip":"172.22.0.1","remote_port":"41174","client_ip":"172.22.0.1","proto":"HTTP/1.1","method":"GET","host":"localhost:3033","uri":"/api/v1/users/current","headers":{"Sec-Fetch-Dest":["empty"],"Referer":["http://localhost:3033/auth/login"],"Cookie":[],"Sec-Fetch-Site":["same-origin"],"Sec-Fetch-Mode":["cors"],"Sec-Ch-Ua-Platform":["\"Windows\""],"Sec-Ch-Ua":["\"Not(A:Brand\";v=\"99\", \"Google Chrome\";v=\"133\", \"Chromium\";v=\"133\""],"Connection":["keep-alive"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36"],"Accept-Language":["zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7"],"Sec-Ch-Ua-Mobile":["?0"],"Accept-Encoding":["gzip, deflate, br, zstd"],"Accept":["application/json, text/plain, */*"],"Dnt":["1"]}},"duration":0.002519487,"status":502,"err_id":"da08bxdfa","err_trace":"reverseproxy.statusError (reverseproxy.go:1267)"}

How can I correctly switch the ports?
thanks for your reply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant