Skip to content

enoent error #397

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

Open
ohitstom opened this issue Oct 10, 2023 · 30 comments
Open

enoent error #397

ohitstom opened this issue Oct 10, 2023 · 30 comments

Comments

@ohitstom
Copy link

  • 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

@coderaiser
Copy link
Owner

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

@ohitstom
Copy link
Author

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

@coderaiser
Copy link
Owner

coderaiser commented Oct 10, 2023

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?

@ohitstom
Copy link
Author

image
image

@ohitstom
Copy link
Author

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

@coderaiser
Copy link
Owner

coderaiser commented Oct 10, 2023

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.

@ohitstom
Copy link
Author

once installed what should i set root to?

@coderaiser
Copy link
Owner

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

image

@ohitstom
Copy link
Author

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

@coderaiser
Copy link
Owner

coderaiser commented Oct 10, 2023

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?

@ohitstom
Copy link
Author

ohitstom commented Oct 10, 2023

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

image
image

@coderaiser
Copy link
Owner

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

@ohitstom
Copy link
Author

ohitstom commented Oct 10, 2023

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

@coderaiser
Copy link
Owner

Need another way to get list of volumes on windows

@ohitstom
Copy link
Author

Need another way to get list of volumes on windows

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

perhaps this would work better crossplatform?

@coderaiser
Copy link
Owner

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.

@ohitstom
Copy link
Author

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

@coderaiser
Copy link
Owner

What this command shows you:

wmic logicaldisk get name

@ohitstom
Copy link
Author

What this command shows you:

wmic logicaldisk get name

image

@coderaiser
Copy link
Owner

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

@ohitstom
Copy link
Author

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

that is exactly correct

@coderaiser
Copy link
Owner

Try to call it with spawn using node js

@ohitstom
Copy link
Author

image
still no dice just returns []...

@coderaiser
Copy link
Owner

Closed due to a long time of inactivity 🏝

@Oroborius
Copy link

Still an issue.

@coderaiser
Copy link
Owner

coderaiser commented Apr 26, 2025

@Oroborius what OS do you use? Are you up for a PR?

@coderaiser coderaiser reopened this Apr 26, 2025
@Oroborius
Copy link

@Oroborius what OS do you use? Are you up for a PR?

Windows 11 23H2.

As for a PR I've never done those in my life but I just report the issues if I seen to be helpful haha. If I can help I'd be glad to offer reruns to see if it fixes but I was never good at modifying other's code.

@Oroborius
Copy link

Image

Image

Attached some images here just to show. Nothing really happens. It fetches the directory but past that fails to be able to interact with anything whatsoever. Making new directories. Deleting files. Etc. Everything has an error when interacting with the interface on Windows.

Was trying to look but if there's a log somewhere other than the CLI output I could grab and post that too if it helps.

@coderaiser
Copy link
Owner

coderaiser commented May 4, 2025

Try to use other type of slashes: —-root /c/directory/path and (maybe) avoid spaces, is it works for you?

@Oroborius
Copy link

Oroborius commented May 8, 2025

That results in an ENOENT because:

C:\Users\orobo>cloudcmd --root "/c/users/orobo/downloads"
cloudcmd --root: ENOENT: no such file or directory, stat 'C:\c\users\orobo\downloads'

Also it fails to stat if you use slashes.

Furthermore if I use something simple like C:\Games it results in the same error as I posted above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants