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 retrieve child resources. #3386

Closed
rawatsudhir1 opened this issue Aug 12, 2020 · 3 comments
Closed

Unable to retrieve child resources. #3386

rawatsudhir1 opened this issue Aug 12, 2020 · 3 comments
Labels
🪲 missing module Issue is due to missing module 🪲 retrieve child resource error Issue is do to "retrieve child resource" error ✅ duplicate Issue or pull request already exists

Comments

@rawatsudhir1
Copy link

Storage Explorer Version: 1.14.2
Build Number:
Platform/OS: windows 10
Architecture: x64
Regression From: No

image

Bug Description

Unable to retrieve child resources.

Details:
["Error:Cannot find module 'tslib'\nRequire stack:\n- D:\Microsoft Azure Storage Explorer\resources\app\node_modules\se-managed-disks-extension\dist\src\index.js\n- d:\Microsoft Azure Storage Explorer\resources\app\out\app\providers\Provider.js\n- d:\Microsoft Azure Storage Explorer\resources\app\out\app\node\NodeProcessHostProxy.js"]

Steps to Reproduce

Expected Experience

Actual Experience

Additional Context

@MRayermannMSFT MRayermannMSFT added 🪲 retrieve child resource error Issue is do to "retrieve child resource" error 🪲 missing module Issue is due to missing module labels Aug 13, 2020
@JasonYeMSFT
Copy link
Contributor

Similar to #3326. Unfortunately we haven't figured out what is causing this. Could you please help us by doing the following things?

  1. Check if a "tslib" directory does exist at D:\Microsoft Azure Storage Explorer\resources\app\node_modules\. If it doesn't, it clearly explains the error.
  2. Try uninstall and re-install Storage Explorer at the default location (e.g. C:\Program Files (x86)\Microsoft Azure Storage Explorer. One user from Unable to expand a subscription (module not found) #3326 said that Storage Explorer works for him from the default location. However, I have tried installing Storage Explorer at my D drive and didn't see this issue.
  3. If none of the above gets any finding, could you please try installing an older version like 1.14.0 or older. There was some code change to the module loading. It would be good to know if it is relevant.

We are seeing multiple people running into this issue recently, it would be very appreciated if you can help us figure out the cause so we can fix the bug. Thanks.

@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

@MRayermannMSFT
Copy link
Member

Merging this with #3326

@MRayermannMSFT MRayermannMSFT added the ✅ duplicate Issue or pull request already exists label Aug 19, 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 ✅ duplicate Issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants