cloudcmd icon indicating copy to clipboard operation
cloudcmd copied to clipboard

enoent error

Open ohitstom opened this issue 2 years ago • 30 comments
trafficstars

  • Version v16.17.6:
  • Node Version v18.18.0:
  • OS Windows 10 Pro [64-bit]:
  • **Browser name/versionChrome:
  • **Used Command Line Parametersnone:
  • Changed Config: "root": "C:/",

image

ohitstom avatar Oct 10 '23 16:10 ohitstom

Looks like you set wrong root, could you please try c:\ instead, since / used for Linux paths.

coderaiser avatar Oct 10 '23 17:10 coderaiser

Looks like you set wrong root, could you please try c:\ instead, since / used for Linux paths.

both cause this error, wherever i run the startup command prepends to the actual root im setting

ohitstom avatar Oct 10 '23 19:10 ohitstom

Looks like a problem in restafary, could you please try to start restafary. Is it has same behavior?

Could you please tell me what use see when open http://localhost:8000/ is it content of your c volume, or an error?

coderaiser avatar Oct 10 '23 19:10 coderaiser

image image

ohitstom avatar Oct 10 '23 19:10 ohitstom

one thing that does work is setting root to "\" then launching cloudcmd from a terminal that has cd'd to C: directly like so:

image image

however this means i cannot change root in app and its actually dependant on where i launch the process from, this isnt ideal as i have multiple drives and would have to restart the process every time...

ohitstom avatar Oct 10 '23 19:10 ohitstom

and its actually dependant on where i launch the process from

Only if you set root to ., Cloud Commander will show you current directory.

Could you please check if mellow works for you.

coderaiser avatar Oct 10 '23 19:10 coderaiser

once installed what should i set root to?

ohitstom avatar Oct 10 '23 20:10 ohitstom

I don’t understand where came from :C:\Users\tomfi if the root is C:\

image

coderaiser avatar Oct 10 '23 20:10 coderaiser

I don’t understand where came from :C:\Users\tomfi if the root is C:\

image

when you open cmd its directory is set to the user profile, so if you run ls its the contents of your user profile.

Setting root doesnt override this and its combining the two at runtime, atleast i assume thats whats happening

ohitstom avatar Oct 10 '23 20:10 ohitstom

What you see if the root is default /? Is it list of all drives?

Try to install win32 and run this code:

const win = require('win32');

const volumes = await win.getVolumes();
console.log(volumes)

What do you see?

coderaiser avatar Oct 10 '23 20:10 coderaiser

What you see if the root is default /? Is it list of all drives?

image image

ohitstom avatar Oct 10 '23 20:10 ohitstom

Looks like getVolumes doesn’t works for you. I don’t have windows, so PR’s are welcome.

coderaiser avatar Oct 10 '23 20:10 coderaiser

Looks like getVolumes doesn’t works for you. I don’t have windows, so PR’s are welcome. looks like it image

ohitstom avatar Oct 10 '23 20:10 ohitstom

Need another way to get list of volumes on windows

coderaiser avatar Oct 10 '23 20:10 coderaiser

Need another way to get list of volumes on windows

https://github.com/balena-io-modules/drivelist

perhaps this would work better crossplatform?

ohitstom avatar Oct 10 '23 20:10 ohitstom

This feature is needed only for windows, there is no such problems in Linux and Mac OS. About this tool it required MS Visual Studio was installed on your computer and compilation step for other operation systems.

coderaiser avatar Oct 10 '23 20:10 coderaiser

This feature is needed only for windows, there is no such problems in Linux and Mac OS. About this tool it required MS Visual Studio was installed on your computer and compilation step for other operation systems.

that is a shame, there might be some workaround using built in windows tools ig

ohitstom avatar Oct 10 '23 20:10 ohitstom

What this command shows you:

wmic logicaldisk get name

coderaiser avatar Oct 10 '23 20:10 coderaiser

What this command shows you:

wmic logicaldisk get name

image

ohitstom avatar Oct 11 '23 05:10 ohitstom

So wmic works good, and getVolumes doesn't work for you?

coderaiser avatar Oct 11 '23 07:10 coderaiser

So wmic works good, and getVolumes doesn't work for you?

that is exactly correct

ohitstom avatar Oct 11 '23 16:10 ohitstom

Try to call it with spawn using node js

coderaiser avatar Oct 11 '23 18:10 coderaiser

image still no dice just returns []...

ohitstom avatar Oct 11 '23 22:10 ohitstom

Closed due to a long time of inactivity 🏝

coderaiser avatar Mar 16 '24 09:03 coderaiser