-
-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid server connection and replication notifications #7
Comments
Thank you for asking. Did you tried 'Test' button in the setting dialog? Tooltip icon in status bar also be improved! |
Yes, of course. And I've already dealt with this issue. It might be worth adding an input mask to the field and refining the notifications text to make it clear that there's a problem with the database connection or replication. Right now you can enter any IP (no http, yes) and run replication/drop history/reset remote storage. And the plugin will tell you that everything is ok, the remote storage is updated/created, but it's not, of course, and it's confusing. I figured out how to connect to my database, but I have another problem. I get an error every time I replicate with no details ("Verbose log" is enabled): I've tried dropping the history or re-initializing the DB. When I execute "Drop history" another error appears, already with details: I am using my own Ubuntu server, in the authorization data I enter the admin/password pair which is set when installing CouchDB. What else am I missing or is this some kind of bug? P.S: In the sync log window I can not select and copy text, also the window cannot be resized, so I put a few screenshots :) |
Thank you for trying hard. I'm happy to heard 'connected'. And you right, sync log should be selectable. I'll fix it too. |
Thank you for your help. However, the clue turned out to be quite... unusual and funny :) Replication ends with an error if you rename the vault directory to test (exactly with a lowercase letter) or create a new one with that name. And my test vault was called exactly that! Any other directory (vault) name works fine and does not cause errors. On your test server (https://olstaste.vrtmrz.net/), I have not been able to test this behavior. Unable to connect with the authentication data I get on the site. Synchronization now works... But only on the desktop version 🙄. On android I can't connect to the server. Test connection ends with an error ("could not connect to..."). Of course, the authorization data is exactly the same as on the desktop. Perhaps it is related to the way the android version of the plugin handles the DB remote URI? I have it in the following format: http://0.0.0.0:5984/bdname (I use IP and port instead of domain name). |
Wow, vault name.. I'll test after. and, I'm relived to answer this, Android or iOS may couldn't connect to non-secure URI. |
I already have a self-signed certificate configured and I tried to enter the address with https. The result is the same, unfortunately 🥲 On the desktop everything is fine in both cases. |
Oh my.. I have the Rpi in the local. I'll try to reproduce, and search what is behind! |
I'm very sad, Reproduced. Do you have any domain? If you have one and with some technics, You can use Let's encrypt's certificate to local server(with local dns) |
Done. I set up a letscrypt certificate for the domain, https works fine. It didn't make any difference on the Android. The error is the same: "Сouldn't connect". |
Thank you for your try. but I'm really sorry for this. |
I've fixed most of what we're talking about, but Local CA is still there. |
Thanks for the plugin update! I also had an update of Obsidian itself yesterday (v 1.0.5). And after that on Android I have no problem connecting to the database! Finally. Still in the process of active testing (v 0.1.11). In general, so far the synchronization is not too stable and reliable. Quite often in the process errors of various kinds fly out (I will try to describe them later), which including spoil the structure of the storage. It is easy to catch them if you actively make changes on both devices and loading files (pictures, audio-records). At some point something breaks. Several times I had to use "Drop History". Sometimes I just have to close Obsidian, because replication hangs, it's impossible to start the next one ("Another replication in progress"). Also often errors occur when merging data from two devices. A few ideas on how to improve the plugin:
|
Thank you for testing and giving me ideas. And replication also had a few problems with past rough improvements. I made it simpler (But still be complicated..). I added a note into the "Corrupted data" section. but forgot about "Garbage collection". I'll fix it next version up. FYI: |
Thanks for the frequent updates to the plugin! The encryption feature is especially useful for me. Here is one example (happens quite often on plugin version 0.1.16): To clarify: after each plugin update I do a full history/DB drop to avoid bugs. And I use encryption. Feature ideas:
Thanks for the clarification. However, this mechanism causes the remote database to become incredibly bloated in size. Those files that take up 10mb locally in the database take up 45mb (especially if you edit files frequently or activate the live editing feature). And there is no way to clean these deleted documents (only manual database deletion helps). So far I had to use only manual replication to avoid clogging the database with deleted docs. |
Thank you too! I really appreciate it to you. May I ask what's the conflict? newlines? And the growing database is normal. All docs are preserved with their old 100 revisions. so if decrease this value.
I'll check this later, and it works effectively and if works fine, it wil be implemented Replication canel buttons is reasonable. |
It is almost implemented! wait for testing.
I implemented this as Command (Toggle All Sync), please try it. |
@gitmaker032 |
Thank you for the wonderful plugin! But there is one very inconvenient point. Notifications about the status of connection/replication. I use own DB server. In the plugin settings, you can enter ANY valid IP and it does not matter if CouchDB is installed, whether the authorization data are correct, the plugin always notifies - "CONNECTED TO IP". Moreover, synchronization is always supposedly successful. Replication always ends successfully. In reality, NOTHING happens with the remote storage, the data is not sent to the server correctly. Please make correct informative notifications about connection/actions status. For example: cannot connect to CouchDB, wrong login/password for authorization, cannot create DB (if not enough rights), etc. If there is no direct access to the server, it is very helpful to understand why it does not work.
Also missing is a tooltip for icons in the status bar (zzz, stop icon, etc). To better understand what exactly is going on.
The text was updated successfully, but these errors were encountered: