-
Notifications
You must be signed in to change notification settings - Fork 78
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
sfdx: No such file or directory #1104
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
A co-worker and I both had this exact same thing happen to us overnight last night as well. |
Same on Mac OS Big Sur 11.4
Edit: This is with the executable .pkg installer that auto updates, not the node version Edit 2: I am still on Bash vs. zsh for what it's worth. but we had users on zsh report it a week ago and it self resolved. |
Anyone see this not on MacOS? |
This report in the vs-code extension repo appears to be on windows forcedotcom/salesforcedx-vscode#3471 |
We're experiencing this issue as well |
there's something wrong with line 288. This gives us more time to figure that out cf: forcedotcom/cli#1104
This is happening in oclif's autoupdate functionality (and only applies to binary installs, not those who installed via We're doing tomorrow's scheduled RC promotion in the next 10 minutes or so to prevent this from happening to anyone else, while fixing oclif for tomorrow's RC so it doesn't happen in the future. For those that it already happened to, you'll want to delete |
there's something wrong with line 288. This gives us more time to figure that out cf: forcedotcom/cli#1104
I had this on Windows on Monday evening. I had to rip out DX and reinstall from the binary. Hasn't come back yet. |
Also had this happen -- our CI server was affected, runing on linux/CentOS 7, non-npm version. |
@mshanemc, so this issue was the result because we all updated the CLI two weeks ago and OCLIF automatically removed as part of a "clean-up process" after two weeks. Is that correct? |
@ImJohnMDaniel yes. That code in oclif looks for files without a "touch" for 2 weeks and deletes them (!) |
Understood. Makes sense. So would this have been a recent OCLIF change? What SFDX CLI versions would have been affected? |
No code in the oclif plugin had changed in a long time. The bug surfaced because we hadn't promoted a RC for a few weeks, something we hadn't done before. When the autoupdate ran, it looked at your current CLI version not being changed for over 2 weeks and deleted it (?!) |
Gotcha. Thanks for the info and quick fix! I appreciate it. |
I'm hitting this as well:
See also #718 - How does the CLI team consider the tradeoffs of the convenience of an auto-updating tool, vs one that introduces non-deterministic breaking changes in local developer environments and ci systems? sfdx has introduced many hard stop breaking changes that are rolled out to users automatically. Could you also please post a public advisory on this issue on public Salesforce developer channels? From this @mshanemc are you saying that the fix is to completely nuke and reinstall sfdx locally? Given there are multiple tickets open for this long, could you make the fix more official and public? |
you should not be using the .pkg installer for Continuous Integration. Use the Node version and you can force a specific version, etc. And yeah it is easily fixable if you just delete that folder and either reinstall it with the .pkg which will keep you on the auto-update track, OR use the Node version and it never updates automatically, you have to I'm sure Shane and the team are dealing with plenty of issues over this, but the fix only takes like 5 minutes to resolve for now. |
Hey, I'm facing this issue. |
@ghoshdipan-ck @Tamashreeck can you open a new issue? I don't think it's going to be the same problem as this one, even though it's the same error message. |
I think it's worth linking to this more recent issue. I can't say if it's actually the same, but both #1104 and #2447 happen when there is no update on the CLI for some weeks. To sum-up the solution provided in #2447, it's basically to reinstall and turn off auto-update or to switch to v2 (recommended). |
Hey I'm Facing this issue |
@ptlSathyanarayanan that's unrelated. Open an issue with all the useful information instead of tagging onto this one |
Summary
I received the following error message on Monday August 2nd, 2021.
In the end, I found that the entire "/Users/johndoe/.local/share/sfdx/client/bin/../7.110.0-85b006b" folder had been completely wiped out. The "current" folder symbolic link seemed to still point to the 7.110.0 directory, but the folder itself was gone. I have no idea how this happened. One minute it was working. The next minute it was not. I had to run the full uninstall sequence and then reinstall the CLI.
Steps To Reproduce:
Unable to reproduce at this time.
System Information
Additional information
There is a minor discussion on the Trailblazer Community about this issue as it was seen by a second individual at the same time. The link to that thread is https://trailblazers.salesforce.com/0D54S00000Br4bl
FYI @mshanemc, @amphro, and @clairebianchi
The text was updated successfully, but these errors were encountered: