microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.36k stars 815 forks source link

Error on startup: mount: /proc: proc already mounted on /proc. #5800

Closed dDanissimo closed 3 years ago

dDanissimo commented 4 years ago

Environment

Windows build number:
[Version 10.0.19041.450]

Your Distribution version:
Debian 11 (Debian-based Pengwin/WLinux)

Whether the issue is on WSL 2 and/or WSL 1:
WSL 2 (command output: Linux version 4.19.104-microsoft-standard (oe-user@oe-host) (gcc version 8.2.0 (GCC)))

Steps to reproduce

1) Install fresh new Pengwin distribution from Microsoft Store 2) Launch it, do a pengwin-setup embedded command query to install essential utilities, if asks to upgrade system packages, do so, next, select the following: image

Then, In each of the categories: image

image

image

image

image in sub-categories, select all of offered (e.g. shells - fish AND zsh AND csh AND bash BASH-RL, languages - configure ALL locales, leave en_us.UTF8 by default)

Everything seems to install properly, Pengwin will terminate itself after setup is done, relaunch.

WSL logs:

Expected behavior

You should be meeted with nothing but an empty command-prompt, like this: image (no, i did not encounter this, i just scrolled down :D) And you can continue to work with WSL afterwards.

Actual behavior

Instead, on launch of your distro, this happens. image However, /etc/fstab shows following: image Nothing useful here, but /proc/mounts though shows that proc is mounted, and everything is ok: archangel@ikelos-a:~$ cat /proc/mounts /dev/sdb / ext4 rw,relatime,discard,errors=remount-ro,data=ordered 0 0 tmpfs /mnt/wsl tmpfs rw,relatime 0 0 tools /init 9p ro,dirsync,relatime,aname=tools;fmask=022,loose,access=client,trans=fd,rfd=6,wfd=6 0 0 none /dev devtmpfs rw,nosuid,relatime,size=3222184k,nr_inodes=805546,mode=755 0 0 sysfs /sys sysfs rw,nosuid,nodev,noexec,noatime 0 0 proc /proc proc rw,nosuid,nodev,noexec,noatime 0 0 devpts /dev/pts devpts rw,nosuid,noexec,noatime,gid=5,mode=620,ptmxmode=000 0 0 none /run tmpfs rw,nosuid,noexec,noatime,mode=755 0 0 none /run/lock tmpfs rw,nosuid,nodev,noexec,noatime 0 0 none /run/shm tmpfs rw,nosuid,nodev,noatime 0 0 none /run/user tmpfs rw,nosuid,nodev,noexec,noatime,mode=755 0 0 binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0 tmpfs /sys/fs/cgroup tmpfs rw,nosuid,nodev,noexec,relatime,mode=755 0 0 cgroup2 /sys/fs/cgroup/unified cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate 0 0 cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0 cgroup /sys/fs/cgroup/cpu cgroup rw,nosuid,nodev,noexec,relatime,cpu 0 0 cgroup /sys/fs/cgroup/cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpuacct 0 0 cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0 cgroup /sys/fs/cgroup/memory cgroup rw,nosuid,nodev,noexec,relatime,memory 0 0 cgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 0 0 cgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0 cgroup /sys/fs/cgroup/net_cls cgroup rw,nosuid,nodev,noexec,relatime,net_cls 0 0 cgroup /sys/fs/cgroup/perf_event cgroup rw,nosuid,nodev,noexec,relatime,perf_event 0 0 cgroup /sys/fs/cgroup/net_prio cgroup rw,nosuid,nodev,noexec,relatime,net_prio 0 0 cgroup /sys/fs/cgroup/hugetlb cgroup rw,nosuid,nodev,noexec,relatime,hugetlb 0 0 cgroup /sys/fs/cgroup/pids cgroup rw,nosuid,nodev,noexec,relatime,pids 0 0 cgroup /sys/fs/cgroup/rdma cgroup rw,nosuid,nodev,noexec,relatime,rdma 0 0 C:\134 /mnt/c 9p rw,dirsync,noatime,aname=drvfs;path=C:\;uid=1000;gid=1000;metadata;uid=1000;gid=1000;umask=0022;fmask=11;case=off;symlinkroot=/mnt/,mmap,access=client,msize=65536,trans=fd,rfd=8,wfd=8 0 0 D:\134 /mnt/d 9p rw,dirsync,noatime,aname=drvfs;path=D:\;uid=1000;gid=1000;metadata;uid=1000;gid=1000;umask=0022;fmask=11;case=off;symlinkroot=/mnt/,mmap,access=client,msize=65536,trans=fd,rfd=8,wfd=8 0 0 archangel@ikelos-a:~$ We see that everything is ok with /proc, but i'm not sure what causes additional mount on startup I am not that sort of an advanced user when it comes to thin lines of disk mounting and other stuff like what can cause mount on linux system boot, etc., so that is why I am texting here. I assume I should also forward the issue to Whitewater Foundry, the team behing Pengwin, but I also thought that would be necessary to post this initially on WSL repo, probably this is sort of a known issue.

dDanissimo commented 4 years ago

will attach my logs a little bit later, struggling with the feedback hub thing, i cannot switch my diagnostics data to full for some reason, troubleshooting that.

dDanissimo commented 4 years ago

i cant attach logs though, i still cant change my diagnostic data to full for some reason, probably there's a trouble with registry that blocks me off, i dunno, currently in progress of solving this

dDanissimo commented 4 years ago

is there an alternative way to attach the logs? i suppose this issue is too complicated, i wish to keep on the context of the issue with the WSL

therealkenc commented 4 years ago

i'm not sure what causes additional mount on startup

You might be able to get an answer here.

wjm1191 commented 3 years ago

I have the same problem. It takes about 40 seconds to show the normal bash command line. But the Ubuntu 20.04 lts starts up immediately. After I uninstalled all the fcitx languages, the start takes only about 5 seconds now.