#Error Invalid padding At build tauri-action

1 messages · Page 1 of 1 (latest)

unborn walrus
#

Yeah so the action worked pretty well( in the past), don't know what did change but now I get a cryptic Error Invalid padding

Excerpt Log:

  Compiling minisign-verify v0.2.1
   Compiling state v0.5.3
    Finished release [optimized] target(s) in 6m 33s
    Bundling yup-live-tauri_1.1.8_amd64.deb (/home/runner/work/yup-live/yup-live/apps/yup-live-desktop/src-tauri/target/release/bundle/deb/yup-live-tauri_1.1.8_amd64.deb)
    Bundling yup-live-tauri_1.1.8_amd64.AppImage (/home/runner/work/yup-live/yup-live/apps/yup-live-desktop/src-tauri/target/release/bundle/appimage/yup-live-tauri_1.1.8_amd64.AppImage)
    Bundling /home/runner/work/yup-live/yup-live/apps/yup-live-desktop/src-tauri/target/release/bundle/appimage/yup-live-tauri_1.1.8_amd64.AppImage.tar.gz (/home/runner/work/yup-live/yup-live/apps/yup-live-desktop/src-tauri/target/release/bundle/appimage/yup-live-tauri_1.1.8_amd64.AppImage.tar.gz)
    Finished 3 bundles at:
        /home/runner/work/yup-live/yup-live/apps/yup-live-desktop/src-tauri/target/release/bundle/deb/yup-live-tauri_1.1.8_amd64.deb
        /home/runner/work/yup-live/yup-live/apps/yup-live-desktop/src-tauri/target/release/bundle/appimage/yup-live-tauri_1.1.8_amd64.AppImage
        /home/runner/work/yup-live/yup-live/apps/yup-live-desktop/src-tauri/target/release/bundle/appimage/yup-live-tauri_1.1.8_amd64.AppImage.tar.gz (updater)

       Error Invalid padding
Error: Command failed with exit code 1: tauri build

Config at: https://github.com/andrei0x309/yup-live/blob/main/.github/workflows/on-demand-cross-build-tauri.yml

Has anyone got this error? Or know anything on how to solve it?

Thanks.

Also local build works fine.

GitHub

A monorepo build with turborepo for yup live, open source client apps for yup backend - yup-live/on-demand-cross-build-tauri.yml at main · andrei0x309/yup-live

flat parrot
#

This should be completely unrelated to the action (even though we released a new version of it) since it only executes tauri build the same you'd do locally, and that error comes from tauri, not the action.

Can you try re-running it after adding args: --verbose to the action so we get a more helpful output please?

unborn walrus
# flat parrot This should be completely unrelated to the action (even though we released a new...

Thanks a lot for answer, and sorry for late answer.

I did that here's the raw log from Linux build failed: https://gist.github.com/andrei0x309/913871c7d2c6886327de68b01148398a

I looked at it for me is the same very cryptic not much helpful.

Some thing to note is:
1 Job fails for all 3 OSes Build
2 It fails at the end of building ( meaning it takes 15-19 min that was the time it build when it worked)
3 running build locally on windows from same repo I have no issue
4 for me it looks like it builds fine but for some reason the command just fails after creating assets

Gist

actionRawLog tauri build. GitHub Gist: instantly share code, notes, and snippets.

flat parrot
#
  1. yeah, same
unborn walrus
#

I'll try to update deps, the tauri node cli since that's the only new info that was provided by verbose. And see if it helps at all.

flat parrot
#

I think one issue here could also be the updater setup (priv/pub key, password). Maybe try regenerating them

unborn walrus
#

Yeah I suspected that, after updating everything(rust deps/ node deps) the error also was emitted locally...

I can't regenerate without breaking old installed versions, but I think I found the issue.

The issue was that in tauri config , the pub key was missing last = char, normally those chars are not 100% required so it means in the past the builder was less strict.

After adding the missing = locally the error was gone, now it runs in CI, but I suspect it will be gone there too.

#

I'll mark as solved after ok build.

hardy jungle
#

I'm getting the same build fail error and came across this thread. I added a = to my Tauri pubkey but to no avail. ChatGBT (take with a grain of salt) suggests looking at my other secrets such as my certificate. I created these according to the docs https://tauri.app/v1/guides/distribution/sign-macos Could I have been mistaken when exporting the certificate and converting to plain text?

This guide provides information on code signing and notarization for macOS applications.

#
    Bundling Bani.app (/Users/runner/work/bani/bani/src-tauri/target/release/bundle/macos/Bani.app)
     Signing with identity "***"
        Info setup keychain from environment variables...
        Info Signing app bundle...
     Signing /Users/runner/work/bani/bani/src-tauri/target/release/bundle/macos/Bani.app/Contents/MacOS/Bani
        Info using entitlements file at ./entitlements.mac.plist
     Signing /Users/runner/work/bani/bani/src-tauri/target/release/bundle/macos/Bani.app
        Info using entitlements file at ./entitlements.mac.plist
     Signing with identity "***"
        Info setup keychain from environment variables...
        Info Signing app bundle...
     Signing /var/folders/qv/pdh5wsgn0lq3dp77zj602b5c0000gn/T/.tmpN7DEfy/Bani.zip
        Info using entitlements file at ./entitlements.mac.plist
  Notarizing /Users/runner/work/bani/bani/src-tauri/target/release/bundle/macos/Bani.app
  Notarizing Finished with status Accepted for id cab78638-b661-4781-ab91-97753c191463 (Processing complete)
    Bundling Bani_0.0.1_x64.dmg (/Users/runner/work/bani/bani/src-tauri/target/release/bundle/dmg/Bani_0.0.1_x64.dmg)
     Running bundle_dmg.sh
     Signing with identity "***"
        Info setup keychain from environment variables...
        Info Signing app bundle...
     Signing /Users/runner/work/bani/bani/src-tauri/target/release/bundle/dmg/Bani_0.0.1_x64.dmg
        Info using entitlements file at ./entitlements.mac.plist
    Bundling /Users/runner/work/bani/bani/src-tauri/target/release/bundle/macos/Bani.app.tar.gz (/Users/runner/work/bani/bani/src-tauri/target/release/bundle/macos/Bani.app.tar.gz)
    Finished 2 bundles at:
        /Users/runner/work/bani/bani/src-tauri/target/release/bundle/macos/Bani.app
        /Users/runner/work/bani/bani/src-tauri/target/release/bundle/dmg/Bani_0.0.1_x64.dmg
        /Users/runner/work/bani/bani/src-tauri/target/release/bundle/macos/Bani.app.tar.gz (updater)

       Error Invalid padding
hardy jungle
#

// tauri.config.json

    "updater": {
      "active": true,
      "dialog": true,
      "endpoints": [
        "https://github.com/{myrepo}/bani-releases/releases/latest/download/latest.json"
      ],
      "pubkey": "{pubkey string}"
    },
#

I actually want a universal mac build but just trying to figure out this invalid padding thing

#

ubuntu same failure so not my Apple certificates

    Bundling bani_0.0.1_amd64.deb (/home/runner/work/bani/bani/src-tauri/target/release/bundle/deb/bani_0.0.1_amd64.deb)
    Bundling bani_0.0.1_amd64.AppImage (/home/runner/work/bani/bani/src-tauri/target/release/bundle/appimage/bani_0.0.1_amd64.AppImage)
    Bundling /home/runner/work/bani/bani/src-tauri/target/release/bundle/appimage/bani_0.0.1_amd64.AppImage.tar.gz (/home/runner/work/bani/bani/src-tauri/target/release/bundle/appimage/bani_0.0.1_amd64.AppImage.tar.gz)
    Finished 2 bundles at:
        /home/runner/work/bani/bani/src-tauri/target/release/bundle/deb/bani_0.0.1_amd64.deb
        /home/runner/work/bani/bani/src-tauri/target/release/bundle/appimage/bani_0.0.1_amd64.AppImage
        /home/runner/work/bani/bani/src-tauri/target/release/bundle/appimage/bani_0.0.1_amd64.AppImage.tar.gz (updater)

       Error Invalid padding
#

So must be some issue with the Updater config, but no idea what

#

same with Windows

    Bundling bani_0.0.1_amd64.deb (/home/runner/work/bani/bani/src-tauri/target/release/bundle/deb/bani_0.0.1_amd64.deb)
    Bundling bani_0.0.1_amd64.AppImage (/home/runner/work/bani/bani/src-tauri/target/release/bundle/appimage/bani_0.0.1_amd64.AppImage)
    Bundling /home/runner/work/bani/bani/src-tauri/target/release/bundle/appimage/bani_0.0.1_amd64.AppImage.tar.gz (/home/runner/work/bani/bani/src-tauri/target/release/bundle/appimage/bani_0.0.1_amd64.AppImage.tar.gz)
    Finished 2 bundles at:
        /home/runner/work/bani/bani/src-tauri/target/release/bundle/deb/bani_0.0.1_amd64.deb
        /home/runner/work/bani/bani/src-tauri/target/release/bundle/appimage/bani_0.0.1_amd64.AppImage
        /home/runner/work/bani/bani/src-tauri/target/release/bundle/appimage/bani_0.0.1_amd64.AppImage.tar.gz (updater)

       Error Invalid padding
#

tried a local build...
Invalid byte 61, offset 152.

hardy jungle
#

removed the = from the pub key and build works locally. Now to test the GitHub action