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

bug(docker): reNgine doesn't want to install in combination with WSL #956

Closed
AnonymousWP opened this issue Sep 23, 2023 · 13 comments · Fixed by #958
Closed

bug(docker): reNgine doesn't want to install in combination with WSL #956

AnonymousWP opened this issue Sep 23, 2023 · 13 comments · Fixed by #958

Comments

@AnonymousWP
Copy link
Contributor

Issue Summary

Upon installing reNgine in combination with Ubuntu, WSL2 and Docker Desktop, the install.sh script reports that Docker isn't running. This is likely due to the fact that Docker Desktop is used in combination with WSL2. We need another way to check whether Docker is running, because systemctl is-active docker and service docker status aren't sufficient. Because reNgine can be installed (and it works too) completely fine without this check.

Steps to Reproduce

  1. Install WSL
  2. Install Ubuntu
  3. Install reNgine
  4. Notice how it returns an error

Any other relevant information. For example, why do you consider this a bug and what did you expect to happen instead?

I expect a check that's more generic, so one that's compatible with WSL2 and Docker Desktop as well.

  • I have confirmed that this issue can be reproduced as described on a latest version/pull of reNgine: yes

Technical details

  • Ubuntu 22.04 (WSL2)
  • Docker Desktop 4.23.0
  • WSL-version 1.2.5.0

image

@github-actions
Copy link

👋 Hi @AnonymousWP,
Issues is only for reporting a bug/feature request. Please read documentation before raising an issue https://rengine.wiki
For very limited support, questions, and discussions, please join reNgine Discord channel: https://discord.gg/azv6fzhNCE
Please include all the requested and relevant information when opening a bug report. Improper reports will be closed without any response.

@TofuWand
Copy link

Same here.
Still not working. I don't see how to fix this.

@AnonymousWP
Copy link
Contributor Author

Same here.
Still not working. I don't see how to fix this.

Did you update reNgine? Works fine for me now.

@TofuWand
Copy link

Same here.
Still not working. I don't see how to fix this.

Did you update reNgine? Works fine for me now.

I got the latest reNgine, and every time I hit the install script, I get the Docker isn't running error. I've read about issues with Docker and WSL2 before. Well, congrats 🎉 for you! Thanks. 🤝 I have it there on my computer for when I feel like trying it again.

@AnonymousWP
Copy link
Contributor Author

Same here.
Still not working. I don't see how to fix this.

Did you update reNgine? Works fine for me now.

I got the latest reNgine, and every time I hit the install script, I get the Docker isn't running error. I've read about issues with Docker and WSL2 before. Well, congrats 🎉 for you! Thanks. 🤝 I have it there on my computer for when I feel like trying it again.

So you're still running into that issue? Also, you're using Docker Desktop in combination with WSL 2?

@TofuWand
Copy link

TofuWand commented Dec 1, 2023 via email

@AnonymousWP
Copy link
Contributor Author

Hi, Last time, the installation script was not finishing because of the update for the tool, which worked when I tweaked the update details for the tool in the text file. This time, the script won't even start due to the Docker issue. I don't have Docker Desktop. When I use the help menu, Docker appears to function, but yeah, the system says it's not running. Kind regards, TofuWand https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Virus-free.www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Mon, 27 Nov 2023 at 04:57, Anonymoussaurus @.> wrote: Same here. Still not working. I don't see how to fix this. Did you update reNgine? Works fine for me now. I got the latest reNgine, and every time I hit the install script, I get the Docker isn't running error. I've read about issues with Docker and WSL2 before. Well, congrats 🎉 for you! Thanks. 🤝 I have it there on my computer for when I feel like trying it again. So you're still running into that issue? Also, you're using Docker Desktop in combination with WSL 2? — Reply to this email directly, view it on GitHub <#956 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4DEDFVBZNAJACGIRI55XHDYGOUMHAVCNFSM6AAAAAA5EKJSHCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRWHA4TINRQGQ . You are receiving this because you commented.Message ID: @.>

You're not supposed to install Docker inside your WSL; that doesn't work. You're supposed to install Docker Desktop for Windows.

@TofuWand
Copy link

TofuWand commented Dec 9, 2023 via email

@TofuWand
Copy link

TofuWand commented Dec 9, 2023

Hi, Last time, the installation script was not finishing because of the update for the tool, which worked when I tweaked the update details for the tool in the text file. This time, the script won't even start due to the Docker issue. I don't have Docker Desktop. When I use the help menu, Docker appears to function, but yeah, the system says it's not running. Kind regards, TofuWand https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Virus-free.www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Mon, 27 Nov 2023 at 04:57, Anonymoussaurus @.> wrote: Same here. Still not working. I don't see how to fix this. Did you update reNgine? Works fine for me now. I got the latest reNgine, and every time I hit the install script, I get the Docker isn't running error. I've read about issues with Docker and WSL2 before. Well, congrats 🎉 for you! Thanks. 🤝 I have it there on my computer for when I feel like trying it again. So you're still running into that issue? Also, you're using Docker Desktop in combination with WSL 2? — Reply to this email directly, view it on GitHub <#956 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4DEDFVBZNAJACGIRI55XHDYGOUMHAVCNFSM6AAAAAA5EKJSHCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRWHA4TINRQGQ . You are receiving this because you commented.Message ID: _@**.**_>

You're not supposed to install Docker inside your WSL; that doesn't work. You're supposed to install Docker Desktop for Windows.

Screenshot 2023-12-09 151406(Edited )

Docker works now, but now I have a Docker connection issue. I even rebooted the computer when it asked me to when I installed Docker Desktop, and then restarted again. My firewall asked me about Docker Desktop, and I hit accept to all the connections.

@AnonymousWP
Copy link
Contributor Author

Try again, it should work by now. Maybe it was a server-side issue or something related to your ISP's DNS, or do you use Cloudflare/Google?

@TofuWand
Copy link

TofuWand commented Dec 24, 2023

Try again, it should work by now. Maybe it was a server-side issue or something related to your ISP's DNS, or do you use Cloudflare/Google?

Hi, thanks. I don't use Cloudflare, but I do use Google for Gmail, and stuff like that. I don't use any online firewall, if that's what you're wondering about Google, but I don't know what Google would have to do with anything, since I don't think they have a firewall. My Avast firewall already has this stuff to be stuff accepted. Even when I turned off the firewall shield temporarily, it still didn't work.

It's not working still, even with the mall WiFi or my hotspot.

./install.sh
_ _ _
| \ | | ()
_ __ | | | __ _ _ _ __ ___
| '
/ _ \ . |/ _ | | '
\ / _
| | | __/ |\ | (
| | | | | | /
|_| _
|| _|_, ||| |_|__| v2.0.0-jasper
/ |
|
/
Before running this script, please make sure Docker is running and you have made changes to .env file.
Changing the postgres username & password from .env is highly recommended.
Are you sure, you made changes to .env file (y/n)? y
Continiuing Installation!

#########################################################################
Please note that, this installation script is only intended for Linux
For Mac and Windows, refer to the official guide https://rengine.wiki
#########################################################################

Installing reNgine and it's dependencies

#########################################################################
Installing curl...
#########################################################################
CURL already installed, skipping.

#########################################################################
Installing Docker...
#########################################################################
Docker already installed, skipping.

#########################################################################
Installing docker-compose
#########################################################################
docker-compose already installed, skipping.

#########################################################################
Installing make
#########################################################################
make already installed, skipping.

#########################################################################
Checking Docker status
#########################################################################
Docker is running.

#########################################################################
Installing reNgine
#########################################################################
[+] Building 0.0s (0/0) docker:default
[+] Building 11.1s (3/3) FINISHED docker:default
=> [certs internal] load .dockerignore 0.6s
=> => transferring context: 2B 0.0s
=> [certs internal] load build definition from Dockerfile 0.4s
=> => transferring dockerfile: 602B 0.0s
=> ERROR [certs internal] load metadata for docker.io/library/alpine:latest 10.1s

[certs internal] load metadata for docker.io/library/alpine:latest:


failed to solve: alpine:latest: failed to authorize: failed to fetch anonymous token: Get "https://auth.docker.io/token?scope=repository%3Alibrary%2Falpine%3Apull&service=registry.docker.io": dial tcp: lookup auth.docker.io on 172.21.32.1:53: read udp 172.21.36.212:43079->172.21.32.1:53: i/o timeout
make: *** [Makefile:16: certs] Error 17

@TofuWand
Copy link

Hi, again. I've tried various things to fix the ping issue, since it won't ping anything but my local IP address. I tried flushing DNS, disabling firewall, changing the traffic settings in Hyper-V Manager, turning off and on some stuff in Windows Features, changing the nameserver (which won't let me edit it now that I did a remove of it), etc.

I did plenty of searching through threads.

microsoft/WSL#5336 (comment)
microsoft/WSL#4275
microsoft/WSL#7141
Etc.

Screenshot 2023-12-25 161459 Screenshot 2023-12-24 171047 Screenshot 2023-12-24 170908

@AnonymousWP
Copy link
Contributor Author

Create a thread somewhere else or ask help somewhere else, because is obviously not related to reNgine anymore.

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

Successfully merging a pull request may close this issue.

2 participants