AmericanPresidentJimmyCarter / yasd-discord-bot

Yet Another Stable Diffusion Discord Bot
MIT License
112 stars 15 forks source link

Add WSL2 note about docker #63

Open AmericanPresidentJimmyCarter opened 1 year ago

AmericanPresidentJimmyCarter commented 1 year ago

.cache may not be writable.

From user: "sudo chmod +777 .cache within my WSL /home/ directory did the trick."

AmericanPresidentJimmyCarter commented 1 year ago

for wsl the ip is dynamic and the 127.0.0.1 ip doesntt work in imagetool.py i had to change it from 127.0.0.1:51005 to localhost:51005 to get it to work bettween boots

AmericanPresidentJimmyCarter commented 1 year ago

To fix

docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #0: error running hook: exit status 1, stdout: , stderr: Auto-detected mode as 'legacy'
nvidia-container-cli: initialization error: WSL environment detected but no adapters were found: unknown.
ERRO[0000] error waiting for container: context canceled
net stop winnat then
net start winnat 
AmericanPresidentJimmyCarter commented 1 year ago

this fixed it

cmd as admin:

wsl --shutdown
netsh winsock reset
netsh int ip reset all
ipconfig /flushdns

and then reboot oh and then Windows Search > Network Reset and now on the first run of sudo docu run [...] I get a windows Firewall permissions prompt, so I'm sure the issue had to do, somehow, with windows firewall somehow needing a new permissions or something after this most recent update.