Open xBlady opened 1 year ago
Thank you for opening this issue! The settings look good. Could you please capture the network pane of the DevTools while the error has happened? It should be indicated as a red line. Some more information about the DevTools is written here.
The same problem happened to me. I recreated the CouchDB on fly.io and synchronization was probably completed. But then, replication was not activated. The log is below.
023/6/18 1:54:09->LiveSync begin... 2023/6/18 1:54:09->Replication activated 2023/6/18 1:54:14->TypeError:Failed to fetch
On DevTool, 502 error returned.
I think that's server plan limitations and a huge, few GB vault that caused problem, anyone tested this while having a premium paid server plan?
my vault size is just 256mb and I've tried to do it again with the new fly.io account, but it didn't work as well. I went through the process with this doc (https://github.com/vrtmrz/obsidian-livesync/blob/main/docs/setup_flyio.md), and initial synchronization looked going well.
Thank you all for the detail! Could you please check the metrics on the dashboard on fly.io? Perhaps memory had been exhausted. (Sometimes CouchDB uses a lot of memory to filter documents) Adding swap memory may improve this. Could you please try adding the command which enables that as like below:
fallocate -l 512M /swapfile
chmod 0600 /swapfile
mkswap /swapfile
echo 10 > /proc/sys/vm/swappiness
swapon /swapfile
echo 1 > /proc/sys/vm/overcommit_memory
docker-entrypoint.sh
would be appropriate. I made a sample as a colab notebook. Would you mind if I ask you to check this?
https://gist.github.com/vrtmrz/37c3efd7842e49947aaaa7f665e5020a
I tried the colab, and it did sync successfully this time!
Thanks for the help :)
I've tried the process written in colab notebook, and it looks working well. But currently, is the plugin not working on mobile Obsidian? I can't set up it from scratch on my iPhone. anyway, thank you for your support!
@tyamanak Sorry for being late! I am so happy to hear that the plugin working! However, the plugin should be able to be configured from a mobile device, even if it is the initial setting. Would you mind If I ask you about the trouble which is preventing configuration?
Hello!
Sync was working for a while and then started giving errors. Report below/
Actually happened
TypeError ...
(captured in the attached log, around LL.10-LL.12)----remote config---- cors: credentials: "true" origins: app://obsidian.md,capacitor://localhost,http://localhost chttpd: bind_address: any enable_cors: "true" max_http_request_size: "4294967296" port: "5984" require_valid_user: "true" admins: π πΈπ·π΄πΆππΈπ· vendor: name: The Apache Software Foundation feature_flags: partitioned||*: "true" chttpd_auth: hash_algorithms: sha256, sha require_valid_user: "true" 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" uuid: π πΈπ·π΄πΆππΈπ· view_index_dir: ./data
---- Plug-in config --- couchDB_URI: self-hosted couchDB_USER: π πΈπ·π΄πΆππΈπ· couchDB_PASSWORD: π πΈπ·π΄πΆππΈπ· couchDB_DBNAME: π πΈπ·π΄πΆππΈπ· liveSync: false syncOnSave: false syncOnStart: true savingDelay: 200 lessInformationInLog: false gcDelay: 300 versionUpFlash: "" minimumChunkSize: 20 longLineThreshold: 250 showVerboseLog: true suspendFileWatching: false trashInsteadDelete: true periodicReplication: true periodicReplicationInterval: 60 syncOnFileOpen: true encrypt: true passphrase: π πΈπ·π΄πΆππΈπ· usePathObfuscation: true doNotDeleteFolder: false resolveConflictsByNewerFile: false batchSave: true deviceAndVaultName: "" usePluginSettings: false showOwnPlugins: false showStatusOnEditor: true usePluginSync: false autoSweepPlugins: false autoSweepPluginsPeriodic: false notifyPluginOrSettingUpdated: false checkIntegrityOnSave: false batch_size: 50 batches_limit: 40 useHistory: false disableRequestURI: false 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: true configPassphraseStore: "" encryptedPassphrase: π πΈπ·π΄πΆππΈπ· encryptedCouchDBConnection: π πΈπ·π΄πΆππΈπ· permitEmptyPassphrase: false useIndexedDBAdapter: true useTimeouts: false writeLogToTheFile: false doNotPaceReplication: false hashCacheMaxCount: 300 hashCacheMaxAmount: 50 concurrencyOfReadChunksOnline: 100 minimumIntervalOfReadChunksOnline: 333