rollback safety number retrusting job
Context
the job to automatically retrust all safety numbers for all publishers and subscribers every 24 hours causes signald to fall over with roughly a few hundred publishers/subscribers.
the bug is tricky enough i want to push off figuring it out until the weekend. in the meantime, eliminate the call to schedule the retrusting job on startup to prevent signald falling over.
Symptoms
After a job runs, signald generates a bunch of nullpointer exceptions that look like this:
signald | 05:46:47.397 [socketlistener] ERROR io.finn.signald.SocketHandler - Catching
signald | java.lang.NullPointerException: null
signald | at io.finn.signald.JsonIdentityList.<init>(JsonIdentityList.java:43) ~[signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.getIdentities(SocketHandler.java:416) ~[signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.handleRequest(SocketHandler.java:173) [signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.run(SocketHandler.java:119) [signald.jar:unspecified]
signald | at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
signald | 05:46:47.398 [socketlistener] ERROR io.finn.signald.SocketHandler - Catching
signald | java.lang.NullPointerException: null
signald | at io.finn.signald.JsonIdentityList.<init>(JsonIdentityList.java:43) ~[signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.getIdentities(SocketHandler.java:416) ~[signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.handleRequest(SocketHandler.java:173) [signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.run(SocketHandler.java:119) [signald.jar:unspecified]
signald | at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
signald | 05:46:47.398 [socketlistener] ERROR io.finn.signald.SocketHandler - Catching
signald | java.lang.NullPointerException: null
signald | at io.finn.signald.JsonIdentityList.<init>(JsonIdentityList.java:43) ~[signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.getIdentities(SocketHandler.java:416) ~[signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.handleRequest(SocketHandler.java:173) [signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.run(SocketHandler.java:119) [signald.jar:unspecified]
signald | at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
signald | 05:46:47.399 [socketlistener] ERROR io.finn.signald.SocketHandler - Catching
signald | java.lang.NullPointerException: null
signald | at io.finn.signald.JsonIdentityList.<init>(JsonIdentityList.java:43) ~[signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.getIdentities(SocketHandler.java:416) ~[signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.handleRequest(SocketHandler.java:173) [signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.run(SocketHandler.java:119) [signald.jar:unspecified]
signald | at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
signald | 05:46:47.411 [socketlistener] ERROR io.finn.signald.SocketHandler - Catching
signald | java.lang.NullPointerException: null
signald | at io.finn.signald.JsonIdentityList.<init>(JsonIdentityList.java:43) ~[signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.getIdentities(SocketHandler.java:416) ~[signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.handleRequest(SocketHandler.java:173) [signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.run(SocketHandler.java:119) [signald.jar:unspecified]
signald | at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
signald | 05:46:47.550 [socketlistener] ERROR io.finn.signald.SocketHandler - Catching
signald | java.lang.NullPointerException: null
signald | at io.finn.signald.JsonIdentityList.<init>(JsonIdentityList.java:43) ~[signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.getIdentities(SocketHandler.java:416) ~[signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.handleRequest(SocketHandler.java:173) [signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.run(SocketHandler.java:119) [signald.jar:unspecified]
signald | at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
signald | 05:46:47.870 [socketlistener] ERROR io.finn.signald.SocketHandler - Catching
signald | java.lang.NullPointerException: null
signald | at org.whispersystems.signalservice.api.SignalServiceMessageSender.getTargetUnidentifiedAccess(SignalServiceMessageSender.java:1077) ~[signal-service-java-2.13.0_unofficial_2.jar:?]
signald | at org.whispersystems.signalservice.api.SignalServiceMessageSender.sendMessage(SignalServiceMessageSender.java:385) ~[signal-service-java-2.13.0_unofficial_2.jar:?]
signald | at org.whispersystems.signalservice.api.SignalServiceMessageSender.sendMessage(SignalServiceMessageSender.java:313) ~[signal-service-java-2.13.0_unofficial_2.jar:?]
signald | at io.finn.signald.Manager.sendSyncMessage(Manager.java:955) ~[signald.jar:unspecified]
signald | at io.finn.signald.Manager.sendVerifiedMessage(Manager.java:1656) ~[signald.jar:unspecified]
signald | at io.finn.signald.Manager.trustIdentityVerified(Manager.java:1702) ~[signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.trust(SocketHandler.java:425) ~[signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.handleRequest(SocketHandler.java:176) [signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.run(SocketHandler.java:119) [signald.jar:unspecified]
signald | at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
signald | 05:46:47.909 [socketlistener] ERROR io.finn.signald.SocketHandler - Catching
signald | java.lang.NullPointerException: null
signald | at org.whispersystems.signalservice.api.SignalServiceMessageSender.getTargetUnidentifiedAccess(SignalServiceMessageSender.java:1077) ~[signal-service-java-2.13.0_unofficial_2.jar:?]
signald | at org.whispersystems.signalservice.api.SignalServiceMessageSender.sendMessage(SignalServiceMessageSender.java:385) ~[signal-service-java-2.13.0_unofficial_2.jar:?]
signald | at org.whispersystems.signalservice.api.SignalServiceMessageSender.sendMessage(SignalServiceMessageSender.java:313) ~[signal-service-java-2.13.0_unofficial_2.jar:?]
signald | at io.finn.signald.Manager.sendSyncMessage(Manager.java:955) ~[signald.jar:unspecified]
signald | at io.finn.signald.Manager.sendVerifiedMessage(Manager.java:1656) ~[signald.jar:unspecified]
signald | at io.finn.signald.Manager.trustIdentityVerified(Manager.java:1702) ~[signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.trust(SocketHandler.java:425) ~[signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.handleRequest(SocketHandler.java:176) [signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.run(SocketHandler.java:119) [signald.jar:unspecified]
signald | at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
signald | 05:46:47.952 [socketlistener] ERROR io.finn.signald.SocketHandler - Catching
signald | java.lang.NullPointerException: null
signald | at org.whispersystems.signalservice.api.SignalServiceMessageSender.getTargetUnidentifiedAccess(SignalServiceMessageSender.java:1077) ~[signal-service-java-2.13.0_unofficial_2.jar:?]
signald | at org.whispersystems.signalservice.api.SignalServiceMessageSender.sendMessage(SignalServiceMessageSender.java:385) ~[signal-service-java-2.13.0_unofficial_2.jar:?]
signald | at org.whispersystems.signalservice.api.SignalServiceMessageSender.sendMessage(SignalServiceMessageSender.java:313) ~[signal-service-java-2.13.0_unofficial_2.jar:?]
signald | at io.finn.signald.Manager.sendSyncMessage(Manager.java:955) ~[signald.jar:unspecified]
signald | at io.finn.signald.Manager.sendVerifiedMessage(Manager.java:1656) ~[signald.jar:unspecified]
signald | at io.finn.signald.Manager.trustIdentityVerified(Manager.java:1702) ~[signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.trust(SocketHandler.java:425) ~[signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.handleRequest(SocketHandler.java:176) [signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.run(SocketHandler.java:119) [signald.jar:unspecified]
signald | at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
signald | 05:46:47.994 [socketlistener] ERROR io.finn.signald.SocketHandler - Catching
signald | java.lang.NullPointerException: null
signald | at org.whispersystems.signalservice.api.SignalServiceMessageSender.getTargetUnidentifiedAccess(SignalServiceMessageSender.java:1077) ~[signal-service-java-2.13.0_unofficial_2.jar:?]
signald | at org.whispersystems.signalservice.api.SignalServiceMessageSender.sendMessage(SignalServiceMessageSender.java:385) ~[signal-service-java-2.13.0_unofficial_2.jar:?]
signald | at org.whispersystems.signalservice.api.SignalServiceMessageSender.sendMessage(SignalServiceMessageSender.java:313) ~[signal-service-java-2.13.0_unofficial_2.jar:?]
signald | at io.finn.signald.Manager.sendSyncMessage(Manager.java:955) ~[signald.jar:unspecified]
signald | at io.finn.signald.Manager.sendVerifiedMessage(Manager.java:1656) ~[signald.jar:unspecified]
signald | at io.finn.signald.Manager.trustIdentityVerified(Manager.java:1702) ~[signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.trust(SocketHandler.java:425) ~[signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.handleRequest(SocketHandler.java:176) [signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.run(SocketHandler.java:119) [signald.jar:unspecified]
signald | at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
signald | 05:46:48.036 [socketlistener] ERROR io.finn.signald.SocketHandler - Catching
signald | java.lang.NullPointerException: null
signald | at org.whispersystems.signalservice.api.SignalServiceMessageSender.getTargetUnidentifiedAccess(SignalServiceMessageSender.java:1077) ~[signal-service-java-2.13.0_unofficial_2.jar:?]
signald | at org.whispersystems.signalservice.api.SignalServiceMessageSender.sendMessage(SignalServiceMessageSender.java:385) ~[signal-service-java-2.13.0_unofficial_2.jar:?]
signald | at org.whispersystems.signalservice.api.SignalServiceMessageSender.sendMessage(SignalServiceMessageSender.java:313) ~[signal-service-java-2.13.0_unofficial_2.jar:?]
signald | at io.finn.signald.Manager.sendSyncMessage(Manager.java:955) ~[signald.jar:unspecified]
signald | at io.finn.signald.Manager.sendVerifiedMessage(Manager.java:1656) ~[signald.jar:unspecified]
signald | at io.finn.signald.Manager.trustIdentityVerified(Manager.java:1702) ~[signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.trust(SocketHandler.java:425) ~[signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.handleRequest(SocketHandler.java:176) [signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.run(SocketHandler.java:119) [signald.jar:unspecified]
signald | at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
signald | 05:46:48.078 [socketlistener] ERROR io.finn.signald.SocketHandler - Catching
signald | java.lang.NullPointerException: null
signald | at org.whispersystems.signalservice.api.SignalServiceMessageSender.getTargetUnidentifiedAccess(SignalServiceMessageSender.java:1077) ~[signal-service-java-2.13.0_unofficial_2.jar:?]
signald | at org.whispersystems.signalservice.api.SignalServiceMessageSender.sendMessage(SignalServiceMessageSender.java:385) ~[signal-service-java-2.13.0_unofficial_2.jar:?]
signald | at org.whispersystems.signalservice.api.SignalServiceMessageSender.sendMessage(SignalServiceMessageSender.java:313) ~[signal-service-java-2.13.0_unofficial_2.jar:?]
signald | at io.finn.signald.Manager.sendSyncMessage(Manager.java:955) ~[signald.jar:unspecified]
signald | at io.finn.signald.Manager.sendVerifiedMessage(Manager.java:1656) ~[signald.jar:unspecified]
signald | at io.finn.signald.Manager.trustIdentityVerified(Manager.java:1702) ~[signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.trust(SocketHandler.java:425) ~[signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.handleRequest(SocketHandler.java:176) [signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.run(SocketHandler.java:119) [signald.jar:unspecified]
signald | at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
signald | 05:46:48.119 [socketlistener] ERROR io.finn.signald.SocketHandler - Catching
signald | java.lang.NullPointerException: null
signald | at org.whispersystems.signalservice.api.SignalServiceMessageSender.getTargetUnidentifiedAccess(SignalServiceMessageSender.java:1077) ~[signal-service-java-2.13.0_unofficial_2.jar:?]
signald | at org.whispersystems.signalservice.api.SignalServiceMessageSender.sendMessage(SignalServiceMessageSender.java:385) ~[signal-service-java-2.13.0_unofficial_2.jar:?]
signald | at org.whispersystems.signalservice.api.SignalServiceMessageSender.sendMessage(SignalServiceMessageSender.java:313) ~[signal-service-java-2.13.0_unofficial_2.jar:?]
signald | at io.finn.signald.Manager.sendSyncMessage(Manager.java:955) ~[signald.jar:unspecified]
signald | at io.finn.signald.Manager.sendVerifiedMessage(Manager.java:1656) ~[signald.jar:unspecified]
signald | at io.finn.signald.Manager.trustIdentityVerified(Manager.java:1702) ~[signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.trust(SocketHandler.java:425) ~[signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.handleRequest(SocketHandler.java:176) [signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.run(SocketHandler.java:119) [signald.jar:unspecified]
signald | at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
signald | 05:46:48.169 [socketlistener] ERROR io.finn.signald.SocketHandler - Catching
signald | java.lang.NullPointerException: null
signald | at org.whispersystems.signalservice.api.SignalServiceMessageSender.getTargetUnidentifiedAccess(SignalServiceMessageSender.java:1077) ~[signal-service-java-2.13.0_unofficial_2.jar:?]
signald | at org.whispersystems.signalservice.api.SignalServiceMessageSender.sendMessage(SignalServiceMessageSender.java:385) ~[signal-service-java-2.13.0_unofficial_2.jar:?]
signald | at org.whispersystems.signalservice.api.SignalServiceMessageSender.sendMessage(SignalServiceMessageSender.java:313) ~[signal-service-java-2.13.0_unofficial_2.jar:?]
signald | at io.finn.signald.Manager.sendSyncMessage(Manager.java:955) ~[signald.jar:unspecified]
signald | at io.finn.signald.Manager.sendVerifiedMessage(Manager.java:1656) ~[signald.jar:unspecified]
signald | at io.finn.signald.Manager.trustIdentityVerified(Manager.java:1702) ~[signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.trust(SocketHandler.java:425) ~[signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.handleRequest(SocketHandler.java:176) [signald.jar:unspecified]
signald | at io.finn.signald.SocketHandler.run(SocketHandler.java:119) [signald.jar:unspecified]
signald | at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
signald | 05:46:48.211 [socketlistener] ERROR io.finn.signald.SocketHandler - Catching
Edited by aguestuser