Hi. I am having issue with the passphrases.
I have one instance of CouchDB running with 3 separated databases: A, B, and C. Each of them has their own credential. In livesync-classroom, my config is as below:
{
"A_to_C": {
"private": {
"uri": "http://couchdb:5984/A",
"auth": {
"username": "A",
"password": "xxx",
"passphrase": "yyy"
},
"path": "shared/"
},
"shared": {
"uri": "http://couchdb:5984/C",
"auth": {
"username": "C",
"password": "xxx",
"passphrase": ""
},
"path": ""
}
},
"B_to_C": {
"private": {
"uri": "http://couchdb:5984/B",
"auth": {
"username": "B",
"password": "xxx",
"passphrase": "yyy"
},
"path": "shared/"
},
"shared": {
"uri": "http://couchdb:5984/C",
"auth": {
"username": "C",
"password": "xxx",
"passphrase": ""
},
"path": ""
}
}
}
Databases A and B are used in obsidian-livesync plugins for 2 different vaults.
I modified the plugin to give me more log, and this is one example of the error log:
12/4/2023, 8:00:05 PM->Start watching
12/4/2023, 8:01:05 PM->direction_on_stat: private_to_shared
12/4/2023, 8:01:05 PM->e.syncKey: A_to_C
12/4/2023, 8:01:05 PM->e.direction: -->
12/4/2023, 8:01:05 PM->e.fromDB: [object Object]
12/4/2023, 8:01:05 PM->change.doc: shared/doc.md
12/4/2023, 8:01:05 PM->e.fromPrefix: shared/
12/4/2023, 8:01:05 PM->e.toDB: [object Object]
12/4/2023, 8:01:05 PM->e.toPrefix:
12/4/2023, 8:01:05 PM->e.decryptKey: kK***qg
12/4/2023, 8:01:05 PM->e.encryptKey:
12/4/2023, 8:01:05 PM->doc:A_to_C:private-->shared shared/doc.md (6-b8cac5a72b81494e984627780517244f) begin Transfer
12/4/2023, 8:01:05 PM->children: [object Object] - %f503528a3e5a3ee5a628e00507000000266fb19c74480fedbd007cec0e94604eqIEsLOm0zZAh9rxdvgcjpuiww1PjfDRE3B2z8blg4/gcL1Io7UcT0w==
12/4/2023, 8:01:05 PM->Couldn't decode! You should wrong the passphrases
12/4/2023, 8:01:05 PM->SyntaxError:Unexpected token % in JSON at position 0
12/4/2023, 8:01:05 PM->children: [object Object] - %f503528a3e5a3ee5a628e00515000000536054f66be1394d85c730c2f98e805eBFexWng5RAMGExinUv6Ua5wms3pX96+3lg==
12/4/2023, 8:01:05 PM->Couldn't decode! You should wrong the passphrases
12/4/2023, 8:01:05 PM->SyntaxError:Unexpected token % in JSON at position 0
12/4/2023, 8:01:05 PM->doc:A_to_C:private-->shared shared/doc.md (6-b8cac5a72b81494e984627780517244f): Warning! could not encrypt and decrypt doc, skipped
I verified that the password and passphrase in the config are the same one used in the obisidian-livesync plugin.
I am running on a RaspberryPi 4 arm64, if it makes any difference. I test run the function testCrypt() and it returns successfully.
I also tried your new tool livesync-bridge and had the same passphrases issue.
Any suggestion where/how to debug the issue any further?
Hi. I am having issue with the passphrases.
I have one instance of CouchDB running with 3 separated databases: A, B, and C. Each of them has their own credential. In livesync-classroom, my config is as below:
Databases A and B are used in obsidian-livesync plugins for 2 different vaults.
I modified the plugin to give me more log, and this is one example of the error log:
I verified that the password and passphrase in the config are the same one used in the obisidian-livesync plugin.
I am running on a RaspberryPi 4 arm64, if it makes any difference. I test run the function
testCrypt()and it returns successfully.I also tried your new tool
livesync-bridgeand had the same passphrases issue.Any suggestion where/how to debug the issue any further?