romm icon indicating copy to clipboard operation
romm copied to clipboard

[Bug] Can't access UI when running in WSL2

Open FrankEBailey opened this issue 1 year ago • 5 comments

RomM version Latest

Describe the bug I'm on Windows 10 running WSL2 and Docker Desktop. My docker compose file works fine, and ROMM appears to run fine, however when I try to access it in my browser I get image

Expected behavior I expected to be able to access the web interface of ROMM

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Firefox
  • Version: 129.0.1

Additional context

romm-log.txt docker-compose.txt

FrankEBailey avatar Aug 15 '24 17:08 FrankEBailey

Can you post the container logs?

gantoine avatar Aug 15 '24 23:08 gantoine

The log is romm-log.txt as above, thanks

romm-log.txt

FrankEBailey avatar Aug 16 '24 06:08 FrankEBailey

Not sure if this helps (I changed my port to 8118 in the compose file):

/romm # netstat -tuln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       
tcp        0      0 127.0.0.11:38473        0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:5000            0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:6379            0.0.0.0:*               LISTEN      
tcp        0      0 :::6379                 :::*                    LISTEN      
udp        0      0 127.0.0.11:44542        0.0.0.0:*                           
/romm # 

FrankEBailey avatar Aug 16 '24 09:08 FrankEBailey

Hi! how are you connecting to the wsl romm instance? are you using the wsl IP?

I can connect to my wsl instance using directly the wsl IP

Edit: Also you may need to port forward your WSL port to windows with something like this:

netsh interface portproxy add v4tov4 listenport=[PORT] listenaddress=0.0.0.0 connectport=[PORT] connectaddress=[WSL_IP]

zurdi15 avatar Aug 16 '24 12:08 zurdi15

With Docker Desktop I don't believe the Docker has its own IP address. I've built several WordPress dockerfiles and never had any issues connecting on my localhost with the specified port number.

Also, I'm not seeing "connection refused" or "unable to connect" but "connection reset", which indicates that I'm able to connect to the ROMM instance, but something is immediately resetting the connection. Nothing shows up in the docker log though, which is odd.

Would someone be willing to share their own docker-compose yml file with the API keys suitably redacted?

FrankEBailey avatar Aug 16 '24 15:08 FrankEBailey

@FrankEBailey I know it's been a while but did you ever get this working?

gantoine avatar Jan 15 '25 05:01 gantoine

@FrankEBailey I know it's been a while but did you ever get this working?

Sorry, no. I gave up.

FrankEBailey avatar Jan 15 '25 06:01 FrankEBailey

Ok sorry to hear that! For anyone else who comes across this, running in WSL2 isn't a setup we recommend or can support/help debug.

gantoine avatar Jan 15 '25 14:01 gantoine