plane icon indicating copy to clipboard operation
plane copied to clipboard

[bug]: The application does not open on my IOS M1

Open duyaan opened this issue 10 months ago • 13 comments

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

  1. Run the project using docker-compose up --build
  2. Wait for the migrations to complete (migrator-1 exited with code 0)
  3. Open http://localhost:8000 in the browser
  4. 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)

duyaan avatar Mar 12 '25 22:03 duyaan

Hi @duyaan,

Please follow the official documentation to set up Plane using Docker Compose:
🔗 Plane Self-Hosting Guide

akshat5302 avatar Mar 13 '25 06:03 akshat5302

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.

SRICKKY avatar Mar 17 '25 05:03 SRICKKY

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 .

duyaan avatar Mar 22 '25 01:03 duyaan

Hi, @duyaan are you trying to set up a commercial or community edition of Plane?

akshat5302 avatar Mar 24 '25 06:03 akshat5302

hi @akshat5302 , i am trying to set up the community edition , so i can contribute .

duyaan avatar Mar 24 '25 15:03 duyaan

Please follow the steps outlined in the README to set up the local environment for contribution.

akshat5302 avatar Mar 25 '25 11:03 akshat5302

Image hello @akshat5302 , i already follwed the README file step by step and the container is created and running correctly . but , when i open the localhost on a safari page , it gives me a 502 Bad Gateaway .

duyaan avatar Mar 26 '25 01:03 duyaan

Please verify that the proxy container is running correctly and share its logs here.

akshat5302 avatar Mar 26 '25 06:03 akshat5302

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 .

Image Image

duyaan avatar Mar 28 '25 02:03 duyaan

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 .

duyaan avatar Apr 02 '25 17:04 duyaan

Hey @duyaan, is there any proxy (like Nginx) running on your server in front of the Plane application?

akshat5302 avatar Apr 21 '25 06:04 akshat5302

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 .

duyaan avatar Apr 22 '25 12:04 duyaan

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"

ChandraShekharAgrawal avatar Apr 27 '25 05:04 ChandraShekharAgrawal