Error incorrect updater private key password: Missing comment in secret key
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.
Bundling PenguinWriter.app (/Users/runner/work/Penguin-Writer/Penguin-Writer/src-tauri/target/release/bundle/macos/PenguinWriter.app)
Bundling PenguinWriter_1.0.0_x64.dmg (/Users/runner/work/Penguin-Writer/Penguin-Writer/src-tauri/target/release/bundle/dmg/PenguinWriter_1.0.0_x64.dmg)
Running bundle_dmg.sh
Bundling /Users/runner/work/Penguin-Writer/Penguin-Writer/src-tauri/target/release/bundle/macos/PenguinWriter.app.tar.gz (/Users/runner/work/Penguin-Writer/Penguin-Writer/src-tauri/target/release/bundle/macos/PenguinWriter.app.tar.gz)
Finished 2 bundles at:
/Users/runner/work/Penguin-Writer/Penguin-Writer/src-tauri/target/release/bundle/macos/PenguinWriter.app
/Users/runner/work/Penguin-Writer/Penguin-Writer/src-tauri/target/release/bundle/dmg/PenguinWriter_1.0.0_x64.dmg
/Users/runner/work/Penguin-Writer/Penguin-Writer/src-tauri/target/release/bundle/macos/PenguinWriter.app.tar.gz (updater)
Error incorrect updater private key password: Missing comment in secret key
ELIFECYCLE Command failed with exit code 1.
Error: Command failed with exit code 1: pnpm tauri build
https://github.com/MasterKrab/Penguin-Writer/actions/runs/7379835021/job/20076548977
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.
Or really rarely, if one environment uses a vastly different tauri-cli version (in case your node_modules folder is still from the npm install you got the package-lock.json file from for example.
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. Or really rarely, if one environment uses a vastly different tauri-cli version (in case your node_modules folder is still from the
npm installyou got thepackage-lock.jsonfile from for example.
I deleted node_modules, ran pnpm install, set the password to empty, and checked the keys, but the issue persists.
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) Finished 2 bundles at: /Users/runner/work/pagepatrol/pagepatrol/src-tauri/target/release/bundle/macos/PagePatrol.app /Users/runner/work/pagepatrol/pagepatrol/src-tauri/target/release/bundle/dmg/PagePatrol_0.1.0_x64.dmg /Users/runner/work/pagepatrol/pagepatrol/src-tauri/target/release/bundle/macos/PagePatrol.app.tar.gz (updater)
Error incorrect updater private key password: Missing comment in secret key
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. error Command failed with exit code 1. Error: Command failed with exit code 1: yarn tauri build
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. Or really rarely, if one environment uses a vastly different tauri-cli version (in case your node_modules folder is still from the
npm installyou got thepackage-lock.jsonfile from for example.I deleted
node_modules, ranpnpm install, set the password to empty, and checked the keys, but the issue persists. figure out ??
I ran into the same issue in Github Actions:
Finished release [optimized] target(s) in 3m 16s
Bundling annotator_0.2.2_amd64.deb (/home/runner/work/annotator/annotator/src-tauri/target/release/bundle/deb/annotator_0.2.2_amd64.deb)
Bundling annotator_0.2.2_amd64.AppImage (/home/runner/work/annotator/annotator/src-tauri/target/release/bundle/appimage/annotator_0.2.2_amd64.AppImage)
Bundling /home/runner/work/annotator/annotator/src-tauri/target/release/bundle/appimage/annotator_0.2.2_amd64.AppImage.tar.gz (/home/runner/work/annotator/annotator/src-tauri/target/release/bundle/appimage/annotator_0.2.2_amd64.AppImage.tar.gz)
Finished 2 bundles at:
/home/runner/work/annotator/annotator/src-tauri/target/release/bundle/deb/annotator_0.2.2_amd64.deb
/home/runner/work/annotator/annotator/src-tauri/target/release/bundle/appimage/annotator_0.2.2_amd64.AppImage
/home/runner/work/annotator/annotator/src-tauri/target/release/bundle/appimage/annotator_0.2.2_amd64.AppImage.tar.gz (updater)
Error incorrect updater private key password: Missing comment in secret key
Error: Command failed with exit code 1: tauri build
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 cargo-tauri-cli and the tauri-apps/tauri-action github action.
@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?
cargo tauri signer generate -w '$HOME/.tauri/annotator.key' with my password pasted in there with tauri-cli 1.3.1
Thanks so much for looking into it!
I updated to 1.5.10 generated a new key pair and got the same error: https://github.com/snijderlab/annotator/actions/runs/8098279095/job/22131308247.
@douweschulte no issues on my side using dev (source) action and no password, but I see you are using v0 (source) and a password.
https://github.com/Hacksore/overlayed/blob/master/.github/workflows/release.yaml#L91-L92
Possible things to try.
- Update tauri action
- Don't use a password
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 @tauri-apps/clito 1.5.10, set action to tauri-apps/[email protected] and used a password.
Same error: https://github.com/MasterKrab/Penguin-Writer/actions/runs/8100511692
then i set action to tauri-apps/tauri-action@dev.
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 TAURI_PRIVATE_KEY and TAURI_PUBLIC_KEY env vars to be pulled from my repos secrets.
🛑 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.