-
Notifications
You must be signed in to change notification settings - Fork 154
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
Error incorrect updater private key password: Missing comment in secret key #658
Comments
Hmm, i'm pretty sure this can only happen if the key and/or password you saved in the github settings is different from the one(s) you use locally. |
I deleted |
Hmm, i looked through our discord where others reported a similar issue but all of them fixed it by either setting the secrets again (cause of a simple type or something) or by regenerating them completely. I really can't think of anything else either. It still works for me and my keys are also super old (generated with 1.0 or 1.1 iirc) so i'm completely lost tbh. |
me too tauri/target/release/bundle/macos/PagePatrol.app.tar.gz)
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. |
|
I ran into the same issue in Github Actions:
https://github.com/snijderlab/annotator/actions/runs/8096651802/job/22125859028 Locally it works. Based on the comments above I reset my github secrets multiple times and generated new keys. This is the last of a couple of actions that failed on exactly the same reason. I am using only the |
@douweschulte I forked your repo, regenerated the key, and it works for me: https://github.com/FabianLars/annotator/actions/runs/8097213610/job/22128304100#step:8:516 What's the exact command you used to generate the key and what version of the tauri cli are you using? |
Thanks so much for looking into it! |
I updated to |
@douweschulte no issues on my side using Possible things to try.
|
still can't reproduce it. How about a more drastic approach, can you post a private key, public key, and password combination that fails for you? (make sure it's not something you actually use in one of your apps) |
I updated Same error: https://github.com/MasterKrab/Penguin-Writer/actions/runs/8100511692 then i set action to Same error: https://github.com/MasterKrab/Penguin-Writer/actions/runs/8100607610/job/22138995188 then i set an empty password: Same error: https://github.com/MasterKrab/Penguin-Writer/actions/runs/8100774078 Created new keys: Same error: https://github.com/MasterKrab/Penguin-Writer/actions/runs/8100949483/job/22140028433 |
So I actually do get this so adding my analysis to the issue. I see this on people making pull requests from a fork will not allow the 🛑 Issue = Workflow Run (PR) - This is a user creating a pull request from a forked repo. ✅ No Issue = Workflow Run (PR) - This is me creating a pull request in the same repo. |
So in my cause I think my issue was in my I fixed it via the following commits Unsure if this is what @MasterKrab and others are experiencing though. |
I have exactly the same problem... Did you found a solution ? Here is a private/public key generated just for testing: public: password: no My repo: https://github.com/Ziltosh/trading-bot-manager Thank you. |
Hello everyone I had the same error and tried everything:
I hadn't seen in the previous comments "Don't set a password", so I always used one (also in Github's secret values), but I still managed to get the updater configuration to work. All I had to do was limit the targets to those allowing the updater:
And then my Github workflow worked! As a suggestion, regarding this problem, I'd suggest excluding the updater configuration (even if it means putting a warning) from all targets that don't support it, so as to avoid any more errors of this kind. Note also that the error message is not very explicit. I fumbled for a long time before finding the solution... However, no binary for macOS? An app.tar.gz is generated, so do you have to compile them by hand? If so, that's promising >_<" |
That honestly makes no sense to. not saying you're wrong, but i don't think this is the actual root cause. Tauri won't try to sign bundle types that don't support the updater and i also had all bundles enabled in my testing. I also have a bit time today so i'm checking @Ziltosh examples (thank you btw!!) |
Sooo, i forked https://github.com/Ziltosh/trading-bot-manager from the comment above #658 (comment), copied the provided private key into a repo secret and the pubkey into tauri.conf.json and it worked fine... https://github.com/FabianLars/trading-bot-manager/actions/runs/9694702927/job/26752906291 |
Thank you for testing. Always the same error. |
Ok, I finally found it! Personally, I was adding an environment secret... Thank you. |
Yes, I had the same problem (I had defined a secret in an environment and not a secret in my repository). That said, it wasn't enough on its own to fix the bug. What I was missing, and the error message was quite explicit, was the Declare the updater function in the Cargo.toml file:
After running the On the other hand, I've never managed to create a Gitlab pipeline (sorry if I'm talking about the competition here, but I'm used to having my repositories on Gitlab, an old habit I picked up back in the days when you had to pay to have several private repositories on Github - that was a long time ago). Now I generate all types of output correctly (nsis, wix, deb, AppImage, dmg, app.tar.gz) with the added bonus of a double update asset for nsis (Tauri.Base_0.0.2_x64-setup.nsis.zip and Tauri.Base_0.0.2_x64-setup.nsis.zip. sig - Tauri Base is the name of my application, I wanted a skeleton to clone for any new application -) which are however not used, unless I am mistaken (according to the documentation, the updater, for windows, only concerns installations via wix, and the latest.json file does not seem to list these nsis packages). If anyone has an explanation, I'd love to hear it (as to why and how these two assets were created, and how to integrate them into the update process). In the meantime, I've started to develop a website using the Phalcon framework, which will be responsible for managing all the applications using the update system (currently my site only manages the update part, but eventually I'm planning to have a showcase for downloading the installer, an administration panel to check the number of downloads, for example, or to delete applications, all activated via github webhooks). Once I've got a viable project, I'll make its repository public (right now it's hosted on a private repository on Gitlab). And if by then a working pipeline for Gitlab is proposed, I'll try to come up with a system that works with both ;) |
The updater itself supports both wix and nsis, but only one at a time because it can't detect which one the app was installed with. |
I'm building my app with the updater. I already tried putting a password or not, and it keeps giving me that error in the action, but locally, it works.
https://github.com/MasterKrab/Penguin-Writer/actions/runs/7379835021/job/20076548977
The text was updated successfully, but these errors were encountered: