MatthewL246 / pretendo-docker

An unofficial Docker Compose setup for self-hosting a Pretendo Network server.
https://matthewl246.github.io/pretendo-docker/
GNU Affero General Public License v3.0
54 stars 9 forks source link

When i try to connect co mario maker DNS error. #56

Closed redmine4404 closed 7 months ago

redmine4404 commented 7 months ago

I have setup my own pretendo server on a separate laptop that i use like a server and cemu to test it, and when i want to go to the world stage section of mario maker (wii u, EUR) i have a errEula pop up with the error code 106-520 (Transport::DnsError), when i close it, the game just say lock to the "please wait" screen. the mitmprxy show that only these request are made. image

redmine4404 commented 7 months ago

also when i try to got to the https://juxt.pretendo.network/ from my proxyied browser i have a 502 error (bad gateway), that's maybe related. I'm on the latest commit 94218bf.

MatthewL246 commented 7 months ago

I'm not sure what the Mario Maker error is caused by, I don't know why Cemu would have a DNS error. A 502 bad gateway error in Juxt means that the server crashed, to debug that I'll need the logs from juxtaposition-ui.

redmine4404 commented 7 months ago

after a git pull --force (for the third time), the juxtaposition website work again, it just complain that i don't have link a wiii u or 3DS. Also i have still the 106-0520 error in mario maker.

MatthewL246 commented 7 months ago

Try re-running the setup script after pulling.

redmine4404 commented 7 months ago

after deleting the entire pretendo-docker folder and redownload the folder, run ./setup, and compose up -d. Still get 106-0520 error.

MatthewL246 commented 7 months ago

Alright, sounds like there is a bug in the SMM server or its configuration here. I'll investigate that when I have time soon.

MatthewL246 commented 7 months ago

I can't reproduce this issue. Did you upload a course from the Course Maker yet? I don't think Course World will work until you upload at least one course. Otherwise, it sounds like there is an issue with your setup.

Scratch that - I was able to reproduce this using Cemu. It works fine on console.

MatthewL246 commented 7 months ago

I can see what is happening. Cemu is looking up minio.pretendo.cc using my system's DNS resolver instead of letting the proxy server handle it, and then it refuses to connect when it gets an NXDOMAIN. It seems that Cemu is incorrectly bypassing the configured proxy server in this case.

It works if you add this to your system's hosts file, replacing SERVER_IP with your server's actual IP address:

SERVER_IP minio.pretendo.cc

Unfortunately, it still bypasses mitmproxy and connects directly to nginx. I'll see if there's a cleaner way to do this, but that should work for now.

redmine4404 commented 7 months ago

do i have to replace 127.0.0.1 by the ip of my server ?

MatthewL246 commented 7 months ago

Yes, use your server's IP address. I had assumed that you were using the same computer as your server.

redmine4404 commented 7 months ago

i can confirm it work great, so it's a cemu problem, but thank you for your help and your time.