nullpo-head / wsl-distrod

Distrod is a meta-distro for WSL 2 which installs Ubuntu, Arch, Debian, Gentoo, etc. with systemd in a minute for you. Distrod also has built-in auto-start feature on Windows startup and port forwarding ability.
MIT License
1.9k stars 90 forks source link

[Bug]: Installing a second distrod will cause the first distrod to disconnect from the external port mapping, making the server port running in the first distrod inaccessible. #86

Open DrayChou opened 1 year ago

DrayChou commented 1 year ago

Describe the bug

I am currently using the -d parameter to install Ubuntu, and I tried to install another Alpine, but after the installation was completed, the distrod prompted WARN exceptions, and then the port mapping of Mysql running in the first Ubuntu became inaccessible.

image

Steps to reproduce

Install the first Ubuntu and set up port mapping with tcp4_ports, then set up the service with sudo systemctl enable --now portproxy.service, and then use distrod to install the second Alpine.

Expected behavior

No response

Windows version

windows 10 19042.1288

Linux kernel version

Linux 5.10.102.1-microsoft-standard-WSL2 #1 SMP Wed Mar 2 00:30:59 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Distro

Ubuntu 20.04

How did you install that distro?

Installed by Distrod wizard

Logs

distrod_wsl_launcher.exe -d Alpine

    ██████╗ ██╗███████╗████████╗██████╗  ██████╗ ██████╗
    ██╔══██╗██║██╔════╝╚══██╔══╝██╔══██╗██╔═══██╗██╔══██╗
    ██║  ██║██║███████╗   ██║   ██████╔╝██║   ██║██║  ██║
    ██║  ██║██║╚════██║   ██║   ██╔══██╗██║   ██║██║  ██║
    ██████╔╝██║███████║   ██║   ██║  ██║╚██████╔╝██████╔╝
    ╚═════╝ ╚═╝╚══════╝   ╚═╝   ╚═╝  ╚═╝ ╚═════╝ ╚═════╝

================================================================================= Thanks for trying Distrod! Choose your distribution to install. You can install a local .tar.xz, or download an image from linuxcontainers.org.

Caused by: No such file or directory (os error 2) [Distrod][WARN] Faled to mask systemd-modules-load.service. Error: Failed to symlink '"/etc/systemd/system/systemd-modules-load.service"'.

Caused by: No such file or directory (os error 2) [Distrod][WARN] Faled to mask getty@tty1.service. Error: Failed to symlink '"/etc/systemd/system/getty@tty1.service"'.

Caused by: No such file or directory (os error 2) [Distrod][WARN] Faled to mask serial-getty@ttyS0.service. Error: Failed to symlink '"/etc/systemd/system/serial-getty@ttyS0.service"'.

Caused by: No such file or directory (os error 2) [Distrod][WARN] Faled to mask console-getty.service. Error: Failed to symlink '"/etc/systemd/system/console-getty.service"'.

Caused by: No such file or directory (os error 2) [Distrod] Distrod has been enabled. Now your shell will start under systemd. [Distrod] Installation of Distrod is now complete.

additional comment

No response