Closed andy840119 closed 4 years ago
Hey @andy840119, please give me more detail about what is your objective and what modification did you do? Also about the server & client version you used.
Server : 2.92
Android : 4.53
.
I only set up twilio
, gcm(fcm)
, redis
and postgresql
in my signal server.
Android can only send few message, then this error happen.
.
Also can i ask what directory
property do in config.yml
?
Thanks a lot 👍
I will give you an example.
directory:
redis: # Redis server configuration for directory cluster
url: redis://127.0.0.1:6379/directory
replicaUrls:
- redis://127.0.0.1:6379/directoryReplica
client: # Configuration for interfacing with Contact Discovery Service cluster
userAuthenticationTokenSharedSecret: b46dca6e16b48551a28dd6e4e28ed704 # head -c 16 /dev/urandom | hexdump -ve '1/1 "%.2x"'
userAuthenticationTokenUserIdSecret: 0815943b625ca1ccbf08a02acd2e930f # head -c 16 /dev/urandom | hexdump -ve '1/1 "%.2x"'
sqs:
accessKey: CHANGE-TO-YOU-ACCESS-KEY
accessSecret: CHANGE-TO-YOU-SECRET
queueUrl: https://sqs.us-east-1.amazonaws.com/1234567/your-queue-name.fifo
server:
replicationUrl: http://127.0.0.1:9090 # CDS replication endpoint base url
replicationPassword: mypassword # CDS replication endpoint password
replicationCaCertificate: |
-----BEGIN CERTIFICATE-----
...use-your-tls-certificate...
-----END CERTIFICATE-----
Also, check this: https://github.com/indrawp/Setup-Guide/blob/master/signal-server.md#faq
Try disabling accountDatabaseCrawler()
in WhisperServerService.java
first if you have not setup your CDSServer (or if you don't use CDS, because it is optional)
Thanks a lot! Can i ask which of the version of server and android client are you using?
I use the same version Server 2.92 and Android 4.53.
Directory is used for CDS, so if you don't plan to use it you can disable it for now. But remember to always use a valid configuration because it is parsed & validated on runtime.
Have you meet that sometimes one phone(#1) can send message to another(#2), but another(#2) cannot send to this phone(#1). Or cannot send sticker. Thanks.
Yes! It is caused by "UNIDENTIFIED_SENDER_TRUST_ROOT" in Android. Check this: https://github.com/indrawp/Setup-Guide/blob/master/signal-android.md#how-to
Make sure you set "UNIDENTIFIED_SENDER_TRUST_ROOT" using the public key that used to generate "UnidentifiedDelivery" in server's config.yml.
Also, i have not tried sticker. But for attachment, you need some patching, I've written it all in my Signal Android guide.
Hi @andy840119, if you have solved the problem please mark this as closed. If not, please give more detail about what's not working.
Haven't success yet ;_; I'll read all the document then try it again 👍
I've check that Android Client never call /v2/directory/reconcile
, it is exist in the Server but I too get 404. Don't worry, it is related to CDS so, you won't need that for now.
After run up the server, server will try to call replication's server path
/v2/directory/reconcile
. But this path is not exist in code. . Full log :