mirror of
https://github.com/stoatchat/self-hosted.git
synced 2026-07-21 12:35:23 -04:00
bug: pushd error: VAPID_PRIVATE_KEY: InvalidPadding
#86
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @VladlenAfonin on GitHub (Jan 6, 2025).
What happened?
Error description
When I run
docker compose up -dI get the following in thepushdlogs:As far as I understand, the issue is related to
vapidprivate key: when I change it in theRevolt.toml, the error message also changes. The keys are generated using the./generate_config.shscript.Environment
OS: Debian 12
Docker version 27.4.1, build b9d17ea
Docker Compose version v2.32.1
Arch: amd64 (x86_64)
Maybe important: I don't use domain names. I only use IP address.
Steps to reproduce
Following
README.md:./generate_config.sh 123.123.123.123(my IP address is different).docker compose up -d.Expected
All the services start and the pages
https://123.123.123.123/*are accessible.Actual behavior
pushdservice does not load and keeps restarting with the error message presented above.UPD 2025-01-08
I have also tried with domain name and using Ubuntu 24.04 as in the instructions. The error is the same,
@Rexogamer commented on GitHub (Jan 8, 2025):
the decoder requires that the generated key has no padding. I suspect that the generated keys have padding - we've seen this issue on our end at Upryzing and, taking a look, our key (which was generated with the script) does have padding. I'll test removing it in a bit and see if that fixes the issue
@Rexogamer commented on GitHub (Jan 8, 2025):
yup. removing the padding fixes this issue. now getting a different error which is with our configuration, but the original issue has gone
@Rexogamer commented on GitHub (Jan 8, 2025):
I'm assuming the fix is to remove the padding when generating the keys so cc @insertish
@Akurosia commented on GitHub (Jan 9, 2025):
Can you give an example how you fixed it in the script?
i am currently running into the same issue.
@Rexogamer commented on GitHub (Jan 9, 2025):
I didn't tweak the script, but in our
Revolt.tomlI tweaked the private key to remove the equals signs (=) at the end. equals signs at the end of base64 strings are padding, which the code requires to be absent.@hakt0r commented on GitHub (Jan 28, 2025):
my pr should automate this, sorry for the brevity, i still encounter other issues
@DeclanChidlow commented on GitHub (Feb 9, 2025):
Closing as should be resolved by https://github.com/revoltchat/self-hosted/pull/126 which is now merged.