-
Notifications
You must be signed in to change notification settings - Fork 335
macOS: The Trust Settings Record was corrupted #1656
Comments
Still reproduces on Mac OS X 10.15.7 with the latest wrangler 1.13.0 |
it sounds like it's caused by a wrangler dependency, maybe upgrading it would fix the issue? |
Looks like the interfaces of some dependencies changed in newer versions, so it's not that easy (there are compile errors). I assume that bad versions are:
In my case, manually deleting all wrong/expired certificates from the local keychain "solved" the problem. |
Just installed latest wrangler:
on macos Big Sur 11.1 and I'm getting this error too:
The error message references |
I tracked it down to the "127.0.0.1" Certificate in "Keychain Access" "System" list. It sort of makes sense, as it starts a web server on 127.0.0.1 .... but not sure of the details. |
This issue has been automatically marked as stale because it has not had recent activity in the last 180 days. It will be closed if no further activity occurs in the next week. Please feel free to comment if you'd like it to remain open, and thank you for your contributions. |
Happens to me, too. Not sure which certificate it could be. |
+1, facing this issue on macOS 10.15.7. The solution mentioned above is not working for me as cert for |
Digging into this issue, I found it was something with rustls-native-certs. It seems that this library simply raises an exception when parsing any root cert that can not be recognized. A suspicious root cert was located by:
|
Solution by @12f23eddde worked like a charm! 🔥 With the additional |
For future travelers after finding the certificate you may need to validate you have it with:
Then run to delete it:
|
👋 Thanks for reporting this issue! Wrangler v1 is now deprecated and support is only being provided for critical updates or security concerns. As such, we are closing this issue. New versions of Wrangler are maintained in the workers-sdk repo. If you are running into a similar issue with wrangler v2, please report it in the workers-sdk repo. For more info about wrangler v1 deprecation, please check out our blog post. |
Just ran into this issue myself and this thread was the most helpful reference I found! For others, @12f23eddde instructions above were crucial for fixing it. Turns out awhile ago I had manually marked a built-in CA root as untrusted. It didn't seem invalid, but this was enough to cause the error. Without @12f23eddde's advice it would have been a long time before I found it. Curiously after changing the cert back to "System Default", saving that setting, then changing it back again to "Never Trust", I didn't get rustls-native-certs error anymore. Hope this helps other struggling with this obscure issue! |
🐛 Bug Report
After upgrade to 1.12.2 I see the following when running
wrangler dev
:Downgrade to 1.10.3 fixed the issue.
After tracking down the bug, I found similar issues:
What fixed the issue for 1.11.2 was deleting all "weird" certificates in KeyChain Access, but I couldn't track down which one specifically was causing it or how I've acquired it.
Environment
rustc -V
: rustc 1.41.0 (5e1a79984 2020-01-27)node -v
: v15.2.1wrangler -V
: wrangler 1.12.2wrangler.toml
n/aThe text was updated successfully, but these errors were encountered: