Azurestorageexplorer: Unable to expand a subscription (module not found)

Created on 30 Jul 2020  路  13Comments  路  Source: microsoft/AzureStorageExplorer

Storage Explorer Version:1.14.2
Platform/OS: Windows 10 x64
Regression From:
I don't know, this is the first time I've used the app

Bug Description

Unable to view containers in a subscription

Steps to Reproduce

Open storage explorer
Pick a subscription
expand it

Unable to retrieve child resources.

Details:
["Error:Cannot find module 'tslib'\nRequire stack:\n- I:\apps\storageexplorer\resources\app\node_modules\se-managed-disks-extension\dist\src\index.js\n- i:\apps\storageexplorer\resources\app\out\app\providers\Provider.js\n- i:\apps\storageexplorer\resources\app\out\app\node\NodeProcessHostProxy.js"]

investigate merged missing module retrieve child resource error

Most helpful comment

  1. Close Storage Explorer
  2. Download this file: NodeProcessHostProxy.txt
  3. After downloading, change the extension to .js.
  4. Move the file to <Storage Explorer install location>\resources\app\out\app\node. You should be prompted to overwrite an existing file. Say yes.
  5. Try using Storage Explorer

I had exactly the same issue after installing storage explorer into the custom path.
The solution above has worked fine for me.

All 13 comments

I tried using both "just for me" and machine-wide install options. Same result for both.

This means a library named "tslib" is not found. Could you go to directory "I:\apps\storageexplorer\resources\appnode_modules" to see if there is a folder named "tslib" in it? If it is there, there might be some corner case bugs in our path resolution logic. By the way, the location you are installing Storage Explorer is not the default location (e.g. machine wide C:\Program Files (x86)\Microsoft Azure Storage Explorer). Could you please try installing it at the default location and see if the issue still reproduces?

I:\apps\storageexplorer\resources\app\node_modules>dir tslib
 Volume in drive I is NewBins
 Volume Serial Number is 7EDE-F233

 Directory of I:\apps\storageexplorer\resources\app\node_modules\tslib

07/30/2020  01:49 PM    <DIR>          .
07/30/2020  01:49 PM    <DIR>          ..
07/15/2020  09:17 PM               824 CopyrightNotice.txt
07/15/2020  09:17 PM               655 LICENSE.txt
07/15/2020  09:17 PM             2,242 package.json
07/15/2020  09:17 PM             3,454 README.md
07/15/2020  09:17 PM             2,714 tslib.d.ts
07/15/2020  09:17 PM                36 tslib.es6.html
07/15/2020  09:17 PM            10,274 tslib.es6.js
07/15/2020  09:17 PM                32 tslib.html
07/15/2020  09:17 PM            13,204 tslib.js
               9 File(s)         33,435 bytes
               2 Dir(s)  392,727,842,816 bytes free

I can try the default location. I usually avoid using the default because my C drive is a smallish SSD and it's nearly full.

Works fine with the default location

@shueybubbles are you ok with having Storage Explorer installed on your C: drive or do you want us to keep investigating this?

If you'd like us to figure out what's going wrong, then I'd ask you to reinstall on your I: drive by uninstalling, re-downloading the installer, and then rerunning the installer.

Couple of extra questions as well:

  • When you install on your I: drive, are you doing that by changing the install path in the installer or by copy and pasting from C: -> I:?
  • Is I: a local drive or a network drive?

I: is a local drive. I try to install apps on it because my C drive is small.
I just type the path into the edit control and click Next.
image

uninstall/download/reinstall led to the same error.
For now I can live with the default location but I imagine I'm not the only person who installs to other folders.

I have been long time user of the storage explorer and started getting this error after updating to 1.14.2.

Storage Explorer Version:1.14.2
Platform/OS: Windows 10 x64
Regression From: After I updated the storage explorer to the above version.

Install location: Default (C:\Program Files (x86)\Microsoft Azure Storage Explorer)
Proxy: No

image

I have been working around this by uninstalling and re-installing the storage explorer every time I get this error.

@krishjag when you say:

I have been working around this by uninstalling and re-installing the storage explorer every time I get this error.

Are you implying that after some period of time an install of 1.14.2 that was working, stops working?

I have additional troubleshooting steps to help out. These are intended to be used with Storage Explorer 1.14.2.

Try patching Storage Explorer to fix what we think is the problem

First, we have a theory to what the issue is. I have a patch for you to try applying to the product:

  1. Close Storage Explorer
  2. Download this file: NodeProcessHostProxy.txt
  3. After downloading, change the extension to .js.
  4. Move the file to <Storage Explorer install location>\resources\app\out\app\node. You should be prompted to overwrite an existing file. Say yes.
  5. Try using Storage Explorer

Get us values from process explorer

If the above doesn't work, then please:

  1. Install Process Explorer: https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorer
  2. Open Process Explorer
  3. Open Storage Explorer
  4. Open notepad
  5. Get to the point of the error message
  6. Switch over to Process Explorer
  7. Sort by names and look for all of the Storage Explorer processes

For each process:

  1. Right click -> properties
  2. Look under image for the "Command line" field (see below picture)
  3. If in the command line field there is "nodeModuleRoots=", then copy and paste the value of command line field into a new line in notepad (feel free to redact any personal info in the file paths)
  4. Attach that file to a reply here
    image
  1. Close Storage Explorer
  2. Download this file: NodeProcessHostProxy.txt
  3. After downloading, change the extension to .js.
  4. Move the file to <Storage Explorer install location>\resources\app\out\app\node. You should be prompted to overwrite an existing file. Say yes.
  5. Try using Storage Explorer

I had exactly the same issue after installing storage explorer into the custom path.
The solution above has worked fine for me.

@krishjag when you say:

I have been working around this by uninstalling and re-installing the storage explorer every time I get this error.

Are you implying that after some period of time an install of 1.14.2 that was working, stops working?

Yes, that's correct.

@MRayermannMSFT
I applied the suggested patch and the storage explorer is working now. Thanks!

Closed several issues as duplicates and linked them to this one. If you're coming from those and have tried the patch or any of the other steps we've recommended, let us know how it went! Right now we plan on shipping that patch in 1.15.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alaendle picture alaendle  路  5Comments

amtsha09 picture amtsha09  路  6Comments

olgakorichkovskaya picture olgakorichkovskaya  路  4Comments

eosho picture eosho  路  3Comments

timoklimmer picture timoklimmer  路  6Comments