signal-setup-guide icon indicating copy to clipboard operation
signal-setup-guide copied to clipboard

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

Open notsukamto opened this issue 4 years ago • 0 comments

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 avatar Aug 04 '21 04:08 notsukamto