[bug]: The application does not open on my IOS M1
Is there an existing issue for this?
- [x] I have searched the existing issues
Current behavior
After running the application, the database migrations completed successfully, and the logs indicate that the web service started without errors. However, when attempting to access http://localhost , the page fails to load (502 BAD Gateaway nginx)
Steps to reproduce
- Run the project using docker-compose up --build
- Wait for the migrations to complete (migrator-1 exited with code 0)
- Open http://localhost:8000 in the browser
- page failed to load ( either 502 ERROR or page not found ) and no clear errors appear in the logs.
Environment
Production
Browser
Safari
Variant
Local
Version
Next.js Version: 14.2.23 / Docker Desktop 4.37.2 (179585)
Hi @duyaan,
Please follow the official documentation to set up Plane using Docker Compose:
🔗 Plane Self-Hosting Guide
For me it loads for a while, and after that it show's up 502 EROOR. I cleared up the .nextjs folder and tried. Still the same issue persist.
hi @akshat5302 i tried the documentation that you mentioned , and i followed all the steps , but unfortunately it didn't work either . after following the steps , i even changed the web_URL with my IP and still it showed " failed to open page " in my safari page . I also tried changing it to " https://plane.example.com:8080 " and still it didnt work . is there any other options or solutions that can help me download the project cause i need it for educational purposes .
thank you for your help .
Hi, @duyaan are you trying to set up a commercial or community edition of Plane?
hi @akshat5302 , i am trying to set up the community edition , so i can contribute .
Please follow the steps outlined in the README to set up the local environment for contribution.
Please verify that the proxy container is running correctly and share its logs here.
i noticed that the proxy container is not working , it showed a " connect() failed " sign . those are the logs i got with docker logs plane-proxy-1 .
so i deleted all the volumes and image containers from the docker and re-downloaded everything from the start .
the downloading was successful , but weirdly it's still the same problem , where the NGINX is unable to establish a connection to the web service . which lead again to a 502 BAD GETAWAY nginx/1.25.0 .
Hey @duyaan, is there any proxy (like Nginx) running on your server in front of the Plane application?
hi @akshat5302 ,
Thanks for the follow-up! I can confirm that there was no other proxy running on my server.
However, I did find a solution that might help other beginners who run into the same issue. The workaround was to set up an Ubuntu Virtual Machine. After downloading and running the project inside the Ubuntu VM, everything worked successfully.
Can i make a Pull Request for this issue to add it inside the documentation , for future mac users .
Hi @akshat5302 and @duyaan I'm also following the same issue but on Ubuntu machine. Earlier, I was not able to start project due to port 80 was in use for apache2. So I change NGINX_PORT to 8080 in .env file. Then, proxy container was able to start.
But, when I'm accessing localhost:8080, I'm getting 504 timed out. Ideally it should have gone to web:3000.
Can you please help me?
Here are logs of proxy container -
172.18.0.1 - - [27/Apr/2025:04:02:52 +0000] "GET / HTTP/1.1" 499 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36" 172.18.0.1 - - [27/Apr/2025:04:03:27 +0000] "GET / HTTP/1.1" 499 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36" 172.18.0.1 - - [27/Apr/2025:04:05:41 +0000] "GET / HTTP/1.1" 499 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36" 2025/04/27 04:06:42 [error] 8#8: *6 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 172.18.0.1, server: , request: "GET / HTTP/1.1", upstream: "http://172.18.0.10:3000/", host: "localhost:8080" 172.18.0.1 - - [27/Apr/2025:04:06:42 +0000] "GET / HTTP/1.1" 504 569 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36" 172.18.0.1 - - [27/Apr/2025:04:07:33 +0000] "GET /favicon.ico HTTP/1.1" 502 559 "http://localhost:8080/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36" 2025/04/27 04:07:33 [error] 8#8: *11 connect() failed (111: Connection refused) while connecting to upstream, client: 172.18.0.1, server: , request: "GET /favicon.ico HTTP/1.1", upstream: "http://172.18.0.10:3000/favicon.ico", host: "localhost:8080", referrer: "http://localhost:8080/" 2025/04/27 04:20:55 [error] 8#8: *13 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 172.18.0.1, server: , request: "GET / HTTP/1.1", upstream: "http://172.18.0.10:3000/", host: "localhost:8080" 172.18.0.1 - - [27/Apr/2025:04:20:55 +0000] "GET / HTTP/1.1" 504 569 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36" 172.18.0.1 - - [27/Apr/2025:04:21:54 +0000] "GET /favicon.ico HTTP/1.1" 504 569 "http://localhost:8080/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36" 2025/04/27 04:21:54 [error] 8#8: *13 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 172.18.0.1, server: , request: "GET /favicon.ico HTTP/1.1", upstream: "http://172.18.0.10:3000/favicon.ico", host: "localhost:8080", referrer: "http://localhost:8080/" 2025/04/27 04:42:25 [error] 8#8: *18 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 172.18.0.1, server: , request: "GET / HTTP/1.1", upstream: "http://172.18.0.10:3000/", host: "localhost:8080" 172.18.0.1 - - [27/Apr/2025:04:42:25 +0000] "GET / HTTP/1.1" 504 569 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36" 172.18.0.1 - - [27/Apr/2025:04:43:25 +0000] "GET /favicon.ico HTTP/1.1" 504 569 "http://localhost:8080/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36" 2025/04/27 04:43:25 [error] 8#8: *18 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 172.18.0.1, server: , request: "GET /favicon.ico HTTP/1.1", upstream: "http://172.18.0.10:3000/favicon.ico", host: "localhost:8080", referrer: "http://localhost:8080/" 172.18.0.1 - - [27/Apr/2025:05:48:51 +0000] "GET / HTTP/1.1" 499 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36" 172.18.0.1 - - [27/Apr/2025:05:49:58 +0000] "GET / HTTP/1.1" 504 569 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36" 2025/04/27 05:49:58 [error] 8#8: *23 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 172.18.0.1, server: , request: "GET / HTTP/1.1", upstream: "http://172.18.0.10:3000/", host: "localhost:8080" 2025/04/27 05:54:57 [error] 8#8: *25 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 172.18.0.1, server: , request: "GET / HTTP/1.1", upstream: "http://172.18.0.10:3000/", host: "localhost:8080" 172.18.0.1 - - [27/Apr/2025:05:54:57 +0000] "GET / HTTP/1.1" 504 569 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"