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

Unable to expand a subscription (module not found) #3326

Closed
shueybubbles opened this issue Jul 30, 2020 · 13 comments
Closed

Unable to expand a subscription (module not found) #3326

shueybubbles opened this issue Jul 30, 2020 · 13 comments
Assignees
Labels
🪲 missing module Issue is due to missing module 🪲 retrieve child resource error Issue is do to "retrieve child resource" error ❔ investigate We need to look into this further ✅ merged A fix for this issue has been merged
Milestone

Comments

@shueybubbles
Copy link

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"]

@shueybubbles
Copy link
Author

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

@JasonYeMSFT
Copy link
Contributor

This means a library named "tslib" is not found. Could you go to directory "I:\apps\storageexplorer\resources\app\node_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?

@shueybubbles
Copy link
Author

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.

@shueybubbles
Copy link
Author

Works fine with the default location

@MRayermannMSFT
Copy link
Member

MRayermannMSFT commented Aug 3, 2020

@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?

@shueybubbles
Copy link
Author

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.

@MRayermannMSFT MRayermannMSFT added the 🪲 retrieve child resource error Issue is do to "retrieve child resource" error label Aug 5, 2020
@JasonYeMSFT JasonYeMSFT added the ❔ investigate We need to look into this further label Aug 5, 2020
@JasonYeMSFT JasonYeMSFT self-assigned this Aug 5, 2020
@krishjag
Copy link

krishjag commented Aug 7, 2020

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.

@MRayermannMSFT MRayermannMSFT added the 🪲 missing module Issue is due to missing module label Aug 17, 2020
@MRayermannMSFT
Copy link
Member

MRayermannMSFT commented Aug 17, 2020

@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?

@MRayermannMSFT
Copy link
Member

MRayermannMSFT commented Aug 18, 2020

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

@anmmok
Copy link

anmmok commented Aug 18, 2020

  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
Copy link

@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.

@krishjag
Copy link

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

This was referenced Aug 19, 2020
@MRayermannMSFT MRayermannMSFT added this to the 1.15.0 milestone Aug 19, 2020
@MRayermannMSFT MRayermannMSFT changed the title Unable to expand a subscription Unable to expand a subscription (module not found) Aug 19, 2020
@MRayermannMSFT MRayermannMSFT added this to Committed in Storage Explorer via automation Aug 19, 2020
@MRayermannMSFT
Copy link
Member

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.

Storage Explorer automation moved this from Committed to Done Aug 24, 2020
@MRayermannMSFT MRayermannMSFT added the ✅ merged A fix for this issue has been merged label Aug 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪲 missing module Issue is due to missing module 🪲 retrieve child resource error Issue is do to "retrieve child resource" error ❔ investigate We need to look into this further ✅ merged A fix for this issue has been merged
Projects
Development

No branches or pull requests

5 participants