On the machine that has the resource (i.e. it’s showing up in the note it is attached to), does the resource also show up in the sync target? (In .resource/ directory)
Since the resources aren't syncing, I'm going to do this exercise on both machine A and B for two different resources:
I confirm that on machine A the following file exists in the resources folder:
f786aabe415d4f919bcaaa1a980866d6.png
I confirm that on machine B the following file exists in the resources folder:
fc0d871658244ba689e5720cf4a5e948.jpg
Just to reiterate, these files do not exist on each of the respective sync target machines.
If it does not, can you open database.sqlite in your profile directory, then the sync_items table and find the row that matches your resource ( SELECT * FROM sync_items WHERE item_id = "YOUR_RESOURCE_ID"
? If it’s there can you post the row here? (the resource ID is what’s showing up in your note, where the resource should be embedded).
For machine A:
sqlite> SELECT * FROM sync_items WHERE item_id = "f786aabe415d4f919bcaaa1a980866d6";
37|2|1544930113491|4|f786aabe415d4f919bcaaa1a980866d6|0||0
sqlite> SELECT * FROM resources WHERE id = "f786aabe415d4f919bcaaa1a980866d6";
f786aabe415d4f919bcaaa1a980866d6|e7171beaf8219e5e57368a5121f21264.png|image/png||1544930113491|1544930113491|1544930113491|1544930113491|png||0|0
For machine B:
sqlite> SELECT * FROM sync_items WHERE item_id = "fc0d871658244ba689e5720cf4a5e948";
51|2|1544991984066|4|fc0d871658244ba689e5720cf4a5e948|0||0
sqlite> SELECT * FROM resources WHERE id = "fc0d871658244ba689e5720cf4a5e948";
fc0d871658244ba689e5720cf4a5e948|direct.jpg|image/jpeg||1544991984066|1544991984066|1544991984066|1544991984066|jpg||0|0
On machine A there is nothing in log.txt pertaining to file f786...66d6; however, on machine B I found the following entries:
2018-12-15 19:18:38: "DecryptionWorker: error for: f786aabe415d4f919bcaaa1a980866d6 (resources)", "Err
or: Error: ENOENT: no such file or directory, open '/home/swdrumm/.config/joplin-desktop/resources/f786aabe415d4f919bcaaa1a980866d6.crypted'. Path: /home/swdrumm/.config/joplin-desktop/resources/f786aabe415d4f919bcaaa1a980866d6.crypted
Code: ENOENT
Error: Error: ENOENT: no such file or directory, open '/home/swdrumm/.config/joplin-desktop/resources/f786aabe415d4f919bcaaa1a980866d6.crypted'. Path: /home/swdrumm/.config/joplin-desktop/resources/f786aabe415d4f919bcaaa1a980866d6.crypted
at FsDriverNode.fsErrorToJsError_ (/tmp/.mount_Jopline2DeVg/app/resources/app/lib/fs-driver-node.js:10:16)
at FsDriverNode.open (/tmp/.mount_Jopline2DeVg/app/resources/app/lib/fs-driver-node.js:137:15)
at <anonymous>", "{"id":"f786aabe415d4f919bcaaa1a980866d6","title":"","mime":"","filename":"","created_time":1544930317535,"updated_time":1544930113491,"user_created_time":1544930317535,"user_updated_time":1544930113491,"file_extension":"","encryption_cipher_text":"JED0100002201a68bd74e6f4e4622b0730c13f43b2387000286{\"iv\":\"VsbujEMtVY+DwXWEOzhGnA==\",\"v\":1,\"iter\":1000,\"ks\":128,\"ts\":64,\"mode\":\"ocb2\",\"adata\":\"\",\"cipher\":\"aes\",\"salt\":\"YfRubb8VN34=\",\"ct\":\"KsQFLTpvlPfhrQibMlmj0Z1B/lydkOlD0TqTB/jitZknt1rv3KIQtZ0dC5jih03OtN+IbxdP259AF65VKNfhgFRIhGeZkXZKxYl26nVcZ8k45pxoPuY+lVRxWdBwNSpH3umaOQtwF4tToT5NILFzwjeJgz2M3Qw1rtLOi4xeNOtrPZQyKkZx0CDalZ5uTl+y9r9kDAXguoKq2uLtsTpurdWCyKX+hlsYE0gIesQdfdTwIBwUZMtNHh9PqjZkk/UevkrP/qyk3IlZFoPRHaDFcQMTuCTZZewQ9MO5+M+fun2MmkW340ds83X7vHKUx9yeDEgKDh4IczIaIbh/3074ViVpFSIlniJYgyLMuEB9uyv5tLvauRBdCcuAxWlSzWyG7uBBtpK/bcGRO8crFKwxHKG2QSJmWuzgEADl2XuMzvBf8RawwCj8SAGo5zv0+99h1orCALElbsTk8YGos8pyKv1d3SQrkk0JVt9PpOYHEH5NjllJSvC+EbO4rWY=\"}","encryption_applied":1,"encryption_blob_encrypted":0,"type_":4}"
2018-12-15 19:18:38: "DecryptionWorker: completed decryption."
...and yes, there are .crypted files for each file in the resource folders of machine A and B.
What next?