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

WSL2: Service Fabric for Linux Installation Errors #4178

Closed
MedAnd opened this issue Jun 18, 2019 · 10 comments
Closed

WSL2: Service Fabric for Linux Installation Errors #4178

MedAnd opened this issue Jun 18, 2019 · 10 comments

Comments

@MedAnd
Copy link

MedAnd commented Jun 18, 2019

  • Your Windows build number:

Microsoft Windows [Version 10.0.18917.1000]

  • What you're doing and what's happening:

Following installation steps as per Prepare your development environment on Linux

  • What's wrong / what should be happening instead:

Actual:

getfacl: Removing leading '/' from absolute path names
find: ‘/mnt/d/$RECYCLE.BIN/S-1-5-21-3037394892-517346355-113189614-1001’: Permission denied
find: ‘/mnt/d/$RECYCLE.BIN/S-1-5-21-3053762458-1566222040-1484859411-1604’: Permission denied
find: ‘/mnt/d/$RECYCLE.BIN/S-1-5-21-3053762458-1566222040-1484859411-1637’: Permission denied
find: ‘/mnt/d/$RECYCLE.BIN/S-1-5-21-3053762458-1566222040-1484859411-500’: Permission denied
find: ‘/mnt/d/Recovery’: Permission denied
find: ‘/mnt/d/System Volume Information’: Permission denied
find: ‘/mnt/c/$Recycle.Bin/S-1-5-18’: Permission denied
find: ‘/mnt/c/ProgramData/Docker/windowsfilter/1086c288b057704d5e3e7526ca950740c67d688d22aeeb3dd8a8b1ba2700f766/Files/Program Files/WindowsApps’: Permission denied
find: ‘/mnt/c/ProgramData/Docker/windowsfilter/1086c288b057704d5e3e7526ca950740c67d688d22aeeb3dd8a8b1ba2700f766/Files/ProgramData/Microsoft/Crypto/PCPKSP/WindowsAIK’: Permission denied
find: ‘/mnt/c/ProgramData/Docker/windowsfilter/1086c288b057704d5e3e7526ca950740c67d688d22aeeb3dd8a8b1ba2700f766/Files/ProgramData/Microsoft/Diagnosis’: Permission denied

Failed to connect to bus: No such file or directory
/var/lib/dpkg/info/servicefabric.postinst: line 202: echo Error: Failed to restart atop.service: command not found
dpkg: error processing package servicefabric (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of servicefabricsdkcommon:
servicefabricsdkcommon depends on servicefabric (>= 6.4.625.1); however:
Package servicefabric is not configured yet.

dpkg: error processing package servicefabricsdkcommon (--configure):
dependency problems - leaving unconfigured
Setting up libbabeltrace1:amd64 (1.3.2-1) ...
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up libbabeltrace-ctf1:amd64 (1.3.2-1) ...
Setting up babeltrace (1.3.2-1) ...
Processing triggers for ureadahead (0.100.0-19.1) ...
Processing triggers for systemd (229-4ubuntu21.21) ...
Processing triggers for libc-bin (2.23-0ubuntu11) ...
Processing triggers for dbus (1.10.6-1ubuntu3.3) ...
Errors were encountered while processing:
servicefabric
servicefabricsdkcommon
E: Sub-process /usr/bin/dpkg returned an error code (1)
Error@67: Failed to install Service Fabric SDK

Expected:

Assume the windows file system should not be iterated?

@onomatopellan
Copy link

On real Linux there is no /mnt/* windows folders.
With mount you can see how many windows drives you have mounted. You can unmount them with sudo umount /mnt/c.

@MedAnd
Copy link
Author

MedAnd commented Jun 18, 2019

Before downloading and setting up the Ubuntu 16.04 VM via the MS Marketplace I ran:

wsl --set-default-version 2

Some questions:

  • Can I assume this means my Ubuntu VM is running on WSL2?
  • Does WSL2 auto mount windows drives within the Ubuntu VM, is this documented etc?
  • Is this an issue with how the Service Fabric installation scripts work or with WSL2?

@onomatopellan
Copy link

1.- On cmd run wsl -l -v to see the version of running WSL.
2.- Yes, but it can be changed with wsl.conf
3.- That's more a question for the Azure devs.

@MedAnd
Copy link
Author

MedAnd commented Jun 18, 2019

Right, so WSL2 uses the same wsl.conf as WS1 and windows drives are auto mounted... thinking this would be great info to add to WSL 2 FAQ

@benhillis
Copy link
Member

@MedAnd - Agreed, @mscraigloewen can you add this to the FAQ?

@benhillis
Copy link
Member

@MedAnd - It's unclear to me why service fabric is falling over, is it because you are getting permission denied errors even though you are running as root?

@MedAnd
Copy link
Author

MedAnd commented Jun 18, 2019

@benhillis / @mscraigloewen - I started over by creating a new WSL2 VM, disabled auto-mount and ran the script as sudo with the same failure outcome. I've attached the full logs of the failed installation inline.

PS. Wondering if I should also log this with the Service Fabric team?

SetupServiceFabric.sh script failure log

cc @masnider @raunakpandya @suhuruli

@craigloewen-msft
Copy link
Member

@MedAnd @benhillis I've added the info about wsl.conf to the WSL 2 FAQ docs.

@therealkenc
Copy link
Collaborator

therealkenc commented Jun 27, 2019

From the attached shell log:

Failed to connect to bus: No such file or directory

That's because the bus is not there dupe #376

/var/lib/dpkg/info/servicefabric.postinst: line 202: echo Error: Failed to restart atop.service: command not found

That line looks like this, also #376,

PS. Wondering if I should also log this with the Service Fabric team?

Ask them how to make it run on Alpine/Gentoo/Void Linux ref #4158 (message). It will make a better formed question, and you will get a shorter and less confused answer. LZ is #994.

@MedAnd
Copy link
Author

MedAnd commented Jun 27, 2019

@benhillis @mscraigloewen - may I recommend the FAQ is updated to clearly spell out that WSL2 does not run systemd (or anything that systemd usually starts, like dbus-daemon)

@therealkenc - would also be good to clarify if this will never be supported or it's on your roadmap.

PS. For anyone else looking for Service Fabric on WSL2 support, the request was created over a year ago 😎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants