Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Error zkgroup.InvalidInputException: Length of array supplied was 161 expected 769 #124

Open
notsukamto opened this issue Aug 4, 2021 · 0 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@notsukamto
Copy link

Server Version : (Server v4.97)

Dependencies : (Twilio / AWS / Nginx / Apache / Self-Signed SSL Certificate / Docker / On Premise Redis / On Premise Postgresql / Turn / Localstack)

Describe what are you trying to achieve

Setup Signal Server ver. 4.97.

Describe the issue that you face

Got an array length error when doing this command

java -jar service/target/TextSecureServer-4.97.jar server service/config/config.yml

Logs

INFO  [2021-08-04 02:06:34,594] io.dropwizard.server.DefaultServerFactory: Registering jersey handler with root path prefix: /
INFO  [2021-08-04 02:06:34,599] io.dropwizard.server.DefaultServerFactory: Registering admin handler with root path prefix: /
INFO  [2021-08-04 02:06:39,747] io.micrometer.core.instrument.push.PushMeterRegistry: publishing metrics for  every 1m
INFO  [2021-08-04 02:06:43,776] com.eatthepath.pushy.apns.ApnsClientBuilder: Native SSL provider is available; will use native provider.
java.lang.IllegalArgumentException: org.signal.zkgroup.InvalidInputException: Length of array supplied was 161 expected 769
        at org.signal.zkgroup.internal.ByteArray.<init>(ByteArray.java:27)
        at org.signal.zkgroup.ServerSecretParams.<init>(ServerSecretParams.java:45)
        at org.whispersystems.textsecuregcm.WhisperServerService.run(WhisperServerService.java:372)
        at org.whispersystems.textsecuregcm.WhisperServerService.run(WhisperServerService.java:177)
        at io.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:44)
        at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:87)
        at io.dropwizard.cli.Cli.run(Cli.java:78)
        at io.dropwizard.Application.run(Application.java:94)
        at org.whispersystems.textsecuregcm.WhisperServerService.main(WhisperServerService.java:500)
Caused by: org.signal.zkgroup.InvalidInputException: Length of array supplied was 161 expected 769
        at org.signal.zkgroup.internal.ByteArray.cloneArrayOfLength(ByteArray.java:33)
        at org.signal.zkgroup.internal.ByteArray.<init>(ByteArray.java:25)
        ... 8 more

Additional context

I also disabled Twilio using the guide over here
https://github.com/madeindra/signal-setup-guide/tree/master/signal-server-no-twilio

Though, I didn't bother with further modification or any test number for now since I just want to get it running and getting the OTP on console is good enough for now.

@notsukamto notsukamto added the help wanted Extra attention is needed label Aug 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants