ForceCLI/force

Can't perform login

Closed this issue · 8 comments

Hi, when launching force login with -i -u -p parameters, i'm getting an error:

ERROR: mkdir U:: Cannot create a file when that file already exists.

running form a prompt with admin privilege, i get following error:

ERROR: mkdir U:: The system cannot find the path specified.

I'm running from windows 10 and i've admin privilege on the machine. I tried on another laptop with windows 7 enterprise and is working fine, but unfortunately i can't develop on that laptop.

Any clue about the error I receive?
Thanks!

Which version of the force cli are you using, and which shell are you using on Windows 10?

Hi, I'm using "regular" cmd, no powershell. I tried several force.com cli version, from

Thanks!
D.

I think the error is probably while saving your session information, most likely because your home directory isn't being found correctly.

If you have the go toolchain set up, I just pushed 540a441, which might fix the issue. It uses https://github.com/mitchellh/go-homedir to find the home directory.

Here are windows binaries built from this commit: https://gist.github.com/cwarden/edf9529cca53bcc955dce2ffe29a81ef

Hi, after further investigation, i found my homedrive is corrupted. I need to speak with my company IT to have it fixed.
I would say is not a real issue in the tool itself. however, would be an option to specific a different homedrive when running the tool?

Best!
D.

Yes, you can set the HOMEDRIVE environment variable (and optionally, HOMEPATH).

correct, but unfortunately env. variabled are overridden by my company policy :-(

You can't set any environment variables, or you can't override ones that are already set? (I'm not familiar with what Windows supports in this regard.)

The version in #484 (comment) also supports the HOME environment variable, which will take precedence over HOMEDRIVE and HOMEPATH, if set.

I can set a new env.var, however there is something coming from my company server which prevails any value i set.
Best!
D.