Open spcvalente opened 3 years ago
@spcvalente since you opened this issue, we released Storage Explorer 1.19.0. In that version, we've added some additional logging for this failure scenario. Please download and use that version. You can get it here: https://storageexplorer.com
After you do that, please try to get Storage Explorer logs and servicehub logs (if possible).
@MRayermannMSFT I installed it, same error.
The authentication library used by Storage Explorer has failed to start properly. Please ensure you have .NET Core 2.1 installed. If .NET Core 2.1 is already installed then refer to the troubleshooting guide for help. Verbose authentication logging has been enabled. Error:Hub Controller process exited prematurely with exit code 22 (ErrorStartingServer).
Storage Explorer logs.
servicehub logs were not created.
Thanks.
@spcvalente how long is your username (on your computer that is)?
@MRayermannMSFT username 18 characters hostname 15 characters
@spcvalente can you see if there's anything in the folder:
~/snap/storage-explorer/22/.ServiceHub/logs
or ~/snap/storage-explorer/current/.ServiceHub/logs
?
For the question about your username length, that path of investigation seems to be a dead end. :(
And if you can't find those dirs, then do this:
process.env.HOME
and hit enter.ServiceHub/logs
dir in ithi @MRayermannMSFT process.env.HOME is 64 characters long and points to "22" nevertheless, please find "22" and "current" versions attached, both from ~/snap/storage-explorer/xxxxxx/.ServiceHub/logs logs.zip
Hey @spcvalente, thanks for continuing to work with me here. I've been given a patch of a file to help us nail down what is broken. Here's what I need you to do:
sudo mount -o ro,bind <path to the downloaded file> /snap/storage-explorer/current/resources/app/ServiceHub/Controllers/microsoft-servicehub-controller/Microsoft.ServiceHub.Controller.dll
(this command temporarily patches that file in the snap install, the patch contains extra logging) rm ~/snap/storage-explorer/current/.ServiceHub/logs/*
storage-explorer
~/snap/storage-explorer/current/.ServiceHub/logs/
to here againsudo umount /snap/storage-explorer/current/resources/app/ServiceHub/Controllers/microsoft-servicehub-controller/Microsoft.ServiceHub.Controller.dll
(this command removes the patch)Hey @MRayermannMSFT you're welcome here it goes logs2.zip
@spcvalente thank you. That now confirms what we believed to be the issue.
Long story short, the auth library used by Storage Explorer needs to create a socket. You can see the path for that socket in the log files you uploaded. Unfortunately the path is too long (you can see the exact length of the path in the log files). We're trying to see if there's something we can do to limit the path length, but I don't think such a solution will reach you until our next release in June.
So to unblock yourself, the only options I can see is to:
I'll keep trying to think of other creative workarounds for you. 😓
@MRayermannMSFT thanks, I'll use the tar.gz instead for anyone else with the same issue:
cd ~/Downloads
mkdir -p ~/azure-storage-explorer
tar xvf StorageExplorer-linux-x64.tar.gz -C ~/azure-storage-explorer
cd ~/azure-storage-explorer
./StorageExplorer
anyway, @MRayermannMSFT please let us know whenever there is a fix for thisAlso affected here with snap version 32 and 33. So issue is still not fixed.
@spcvalente thanks a lot for the guide to install the tar version. It works much faster than the snap version.
@MRayermannMSFT why don't you rather release a DEB version for Ubuntu. It's clear Snaps are bad.
Storage Explorer Version: 1.18.1 Build Number: can't check Platform/OS: Ubuntu 20.04 Architecture: x64 Regression From: na
Bug Description
I installed Azure Storage Explorer with snap. When starting it, this message pops up: "To run Microsoft Azure Storage Explorer on Linux, you must have .NET Core 2.1 installed. Please make sure .NET Core 2.1 is properly installed before launching the application again." I installed (and removed) .NET with multiple combinations: runtime, even SDK, multiple versions (2.1, 3.1, 5.0), with apt-get, with snap, following this and this. I also checked 2322 and 2327 and followed the steps you suggested there, removing ServiceHub folders, reinstalling storage-explorer. All with great failure.
I can't attach the ~/.ServiceHub/logs/ folder as it does not exist on my case.
Steps to Reproduce
Start Azure Storage Explorer
Expected Experience
Start Program
Actual Experience
"To run Microsoft Azure Storage Explorer on Linux, you must have .NET Core 2.1 installed. Please make sure .NET Core 2.1 is properly installed before launching the application again."
Additional Context
Related to 2322 and 2327