vrtmrz / obsidian-livesync

MIT License
5.11k stars 166 forks source link

iphone decrption failed #354

Closed cheng3969 closed 9 months ago

cheng3969 commented 11 months ago

Hi, Im using ios 17.1.2, and got this issue, could you please help? Thank you!

Abstract

cant sync on iphone

Expected behaviour

Actually happened

  1. Configure LiveSync on 2 pcs, both works fine
  2. Open setup url on iphone, nothing happens
  3. set up iphone manually, and get above error.

Report materials

Report from the LiveSync

Report from hatch ``` ----remote config---- cors: credentials: "true" headers: accept, authorization, content-type, origin, referer max_age: "3600" methods: GET, PUT, POST, HEAD, DELETE origins: app://obsidian.md,capacitor://localhost,http://localhost chttpd: bind_address: any max_http_request_size: "4294967296" port: "5984" require_valid_user: "true" admins: "𝑅𝐸𝐷𝐴𝐢𝑇𝐸𝐷" vendor: name: The Apache Software Foundation feature_flags: partitioned||*: "true" chttpd_auth: authentication_redirect: /_utils/session.html hash_algorithms: sha256, sha require_valid_user: "true" ssl: cert_file: /etc/couchdb/cert/cert.pem enable: "true" key_file: /etc/couchdb/cert/key.pem indexers: couch_mrview: "true" prometheus: additional_port: "false" bind_address: 127.0.0.1 port: "17986" httpd: WWW-Authenticate: Basic realm="couchdb" bind_address: 127.0.0.1 enable_cors: "true" port: "5986" smoosh: state_dir: ./data couch_httpd_auth: authentication_db: "𝑅𝐸𝐷𝐴𝐢𝑇𝐸𝐷" secret: "𝑅𝐸𝐷𝐴𝐢𝑇𝐸𝐷" authentication_redirect: "𝑅𝐸𝐷𝐴𝐢𝑇𝐸𝐷" couchdb_engines: couch: couch_bt_engine couchdb: database_dir: ./data max_document_size: "50000000" single_node: "true" uuid: "𝑅𝐸𝐷𝐴𝐢𝑇𝐸𝐷" view_index_dir: ./data ---- Plug-in config --- version:0.19.23 couchDB_URI: self-hosted couchDB_USER: "𝑅𝐸𝐷𝐴𝐢𝑇𝐸𝐷" couchDB_PASSWORD: "𝑅𝐸𝐷𝐴𝐢𝑇𝐸𝐷" couchDB_DBNAME: "𝑅𝐸𝐷𝐴𝐢𝑇𝐸𝐷" liveSync: true syncOnSave: false syncOnStart: false savingDelay: 200 lessInformationInLog: false gcDelay: 0 versionUpFlash: "" minimumChunkSize: 20 longLineThreshold: 250 showVerboseLog: false suspendFileWatching: false trashInsteadDelete: true periodicReplication: false periodicReplicationInterval: 60 syncOnFileOpen: false encrypt: true passphrase: "𝑅𝐸𝐷𝐴𝐢𝑇𝐸𝐷" usePathObfuscation: true doNotDeleteFolder: false resolveConflictsByNewerFile: false batchSave: false deviceAndVaultName: "" usePluginSettings: false showOwnPlugins: false showStatusOnEditor: true usePluginSync: false autoSweepPlugins: false autoSweepPluginsPeriodic: false notifyPluginOrSettingUpdated: false checkIntegrityOnSave: false batch_size: 50 batches_limit: 40 useHistory: true disableRequestURI: true skipOlderFilesOnSync: true checkConflictOnlyOnOpen: false syncInternalFiles: false syncInternalFilesBeforeReplication: false syncInternalFilesIgnorePatterns: \/node_modules\/, \/\.git\/, \/obsidian-livesync\/ syncInternalFilesInterval: 60 additionalSuffixOfDatabaseName: "" ignoreVersionCheck: false lastReadUpdates: 19 deleteMetadataOfDeletedFiles: false syncIgnoreRegEx: "" syncOnlyRegEx: "" customChunkSize: 100 readChunksOnline: true watchInternalFileChanges: true automaticallyDeleteMetadataOfDeletedFiles: 0 disableMarkdownAutoMerge: false writeDocumentsIfConflicted: false useDynamicIterationCount: false syncAfterMerge: false configPassphraseStore: "" encryptedPassphrase: "𝑅𝐸𝐷𝐴𝐢𝑇𝐸𝐷" encryptedCouchDBConnection: "𝑅𝐸𝐷𝐴𝐢𝑇𝐸𝐷" permitEmptyPassphrase: false useIndexedDBAdapter: true useTimeouts: false writeLogToTheFile: false doNotPaceReplication: false hashCacheMaxCount: 300 hashCacheMaxAmount: 50 concurrencyOfReadChunksOnline: 100 minimumIntervalOfReadChunksOnline: 333 hashAlg: xxhash64 suspendParseReplicationResult: false doNotSuspendOnFetching: false useIgnoreFiles: false ignoreFiles: .gitignore syncOnEditorSave: false pluginSyncExtendedSetting: {} ```
dlphnkck commented 10 months ago

Hi. I'm also new to the LiveSync plugin.

  1. Have you set up your own HTTP and CouchDB server instead of using Fly.io or IBM Cloudant?
  2. The latest LiveSync plugin is v0.21.5<-v0.19.23 update. But I don't think it matters much this time.
  3. I suspect the SSL configuration may be causing issuees because you can sync between PCs, but not from the iPhone only.

    I noticed that the certificate has been set up. Are there any issues with Check database configuration? Settings for Self-hosted LiveSync.β†’Remote Database configuration β†’Check database configuration β†’Press Check button

As a beginner, this is all I can suggest. I apologize for not being able to help you further.

cheng3969 commented 10 months ago

Hi. I'm also new to the LiveSync plugin.

  1. Have you set up your own HTTP and CouchDB server instead of using Fly.io or IBM Cloudant?
  2. The latest LiveSync plugin is v0.21.5<-v0.19.23 update. But I don't think it matters much this time.
  3. I suspect the SSL configuration may be causing issuees because you can sync between PCs, but not from the iPhone only. I noticed that the certificate has been set up. Are there any issues with Check database configuration? Settings for Self-hosted LiveSync.β†’Remote Database configuration β†’Check database configuration β†’Press Check button

As a beginner, this is all I can suggest. I apologize for not being able to help you further.

Hi, 1.Yes, ive set up my own HTTP and CouchDB server 2.Im using v0.21.5 3.There isnt a "check" button in "remote database configuration.

I apology for the last reply and thank you for your suggestions and willingness to help.

dlphnkck commented 10 months ago

Sorry for the delay.

  1. The following screen appears.

Settings for Self-hosted LiveSync.β†’Remote Database configurationΒ β†’Check database configurationΒ β†’PressΒ CheckΒ button

Image from Gyazo

  1. Execution Result Image from Gyazo

That is all. I wish you good luck.

cheng3969 commented 10 months ago

Yes, I checked and got the same results as you do. Ive tried remove enverything and reinstall, but it doesnt work. Thank you.

vrtmrz commented 10 months ago

Sorry for being late! I know that you have configured so, however, would you mind if I ask you to check again if both of your passphrases are the same?
And, also check the use dynamic iteration count is disabled.

However, I am wondering why the set-up URI was not working well. Has the lockdown mode been enabled by any chance?

cheng3969 commented 10 months ago

Sorry for being late! I know that you have configured so, however, would you mind if I ask you to check again if both of your passphrases are the same? And, also check the use dynamic iteration count is disabled.

However, I am wondering why the set-up URI was not working well. Has the lockdown mode been enabled by any chance?

Hi, Im sure passphrases are the same.I forgot if β€˜use dynamic iteration count’ is disabled. But i managed to fix this by reinstall and delete all local files Thank you for your reply.

vrtmrz commented 9 months ago

Sorry for the inconvenience, I am very relieved to hear that the issue has been solved. Thank you for your reporting!