cerebrate / wabash

A utility to hold a WSL session-set open continuously. Works in conjunction with wabashd.
Microsoft Public License
81 stars 4 forks source link

Could not start wabashd. #5

Closed richardlock closed 7 years ago

richardlock commented 7 years ago

Hi,

Thanks for your work on wabash. I've installed wabash using chocolatey, and wabashd from the wsl-translinux repo. My WSL release is 16.04.1 LTS. When I try to launch wabash.exe, it gives error:

image

If I try to manually run start-wabashd in WSL, I get the following error:

version: 4 shell: /bin/bash Error: /proc must be mounted To mount /proc at boot you need an /etc/fstab line like: proc /proc proc defaults In the meantime, run "mount proc /proc -t proc" sess: -1 daem: 0

Is there something else I need to do to get wabash working?

Thanks, Richard

richardlock commented 7 years ago

I have tried clearing the lock file which has been present once or twice.

cerebrate commented 7 years ago

That's odd. It looks like wabashd is having trouble (or rather, ps, which wabashd uses, is) getting the list of running processes. Can you send me the output of the following commands in your WSL:

ps --ppid 1 --no-headers -o comm

ls /proc

and

mount

? Thanks.

richardlock commented 7 years ago

Thanks.

$ ps --ppid 1 --no-headers -o comm Error: /proc must be mounted To mount /proc at boot you need an /etc/fstab line like: proc /proc proc defaults In the meantime, run "mount proc /proc -t proc"

$ ls /proc 1 17 2 cmdline cpuinfo filesystems interrupts loadavg meminfo mounts net self stat sys uptime version

$ mount rootfs on / type rootfs (rw,relatime) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=204320k,mode=755) none on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k) none on /run/shm type tmpfs (rw,nosuid,nodev,relatime) none on /run/user type tmpfs (rw,nosuid,nodev,noexec,relatime,size=102400k,mode=755)

cerebrate commented 7 years ago

Hm. I'll say up front that this looks to me like something's gone fairly fundamentally wrong with your WSL installation (if ps isn't working even from the command line, it's not a wabash-specific problem). You could try seeing if ps works as root, or do an strace ps to see if the problem shows up there, but unless you've got a lot of un-backuped customization done to WSL, I'd be tempted to just uninstall and reinstall it to clear this up.

richardlock commented 7 years ago

Thanks Alistair. I'll try that. I wasn't sure if the lack of process visibility was a normal limitation of bash on Windows, but it sounds like an issue on my machine. I'll check and close if so. Thanks.

richardlock commented 7 years ago

It was my upgrade to 16.04 which killed WSL rather than using the Insider Preview build. Sorry about that. Thanks for your help. Richard