vrtmrz / obsidian-livesync

MIT License
4.69k stars 151 forks source link

When I use https+domain, it show "Checking configuration failed" after clicking check-button #450

Closed Mr-qing233 closed 3 months ago

Mr-qing233 commented 3 months ago

Abstract

When I use https+domain, it show "Checking configuration failed" after clicking check-button. But using http+ip work successfully. Besides, I can browse the CouchDB Web Backstage normally. 1717853584029

Expected behaviour

Actually happened

Reproducing procedure

  1. Configure LiveSync as in the attached material. (Typing URI with https+domain. Username and password is correct)
  2. Click the check button
  3. Appear the error message Checking configuration failed

Report from the LiveSync

Report from hatch ``` 2024/6/8 21:31:33->Cache initialized 300 / 250000000000 2024/6/8 21:31:33->loading plugin 2024/6/8 21:31:33->Self-hosted LiveSync v0.23.13 0.23.13 2024/6/8 21:31:33->xxhash for plugin initialised 2024/6/8 21:31:33->Waiting for ready... 2024/6/8 21:31:33->Opening Database... 2024/6/8 21:31:33->Database is now ready. 2024/6/8 21:31:40->Checking database configuration 2024/6/8 21:31:40->Checking configuration failed 2024/6/8 21:31:40->Error:net::ERR_CONNECTION_CLOSED 2024/6/8 21:31:56->Checking database configuration 2024/6/8 21:31:56->Checking configuration failed 2024/6/8 21:31:56->Error:net::ERR_CONNECTION_CLOSED 2024/6/8 21:35:21->Log window opened ```

Screenshots

1717853584029 1717853556044

holtwick commented 3 months ago

Same here :( Also with working setup in version 0.20.

Mr-qing233 commented 3 months ago

Same here :( Also with working setup in version 0.20.

Maybe it is associated with the new version of the Obsidian in this days? What Obsidian version are you using? My version is v1.6.2.

Mr-qing233 commented 3 months ago

It shows this error message in DevTools.

desktop-97285bc74b725b06:2024/6/9 19:23:09->Error:net::ERR_CONNECTION_CLOSED
plugin:obsidian-livesync:45664 desktop-97285bc74b725b06:2024/6/9 19:23:15->Checking database configuration
plugin:obsidian-livesync:45664 desktop-97285bc74b725b06:2024/6/9 19:23:15->Checking configuration failed
plugin:obsidian-livesync:45662 Error: net::ERR_CONNECTION_CLOSED
    at SimpleURLLoaderWrapper.<anonymous> (node:electron/js2c/browser_init:2:108519)
    at SimpleURLLoaderWrapper.emit (node:events:517:28)
holtwick commented 3 months ago

Same here :( Also with working setup in version 0.20.

Maybe it is associated with the new version of the Obsidian in this days? What Obsidian version are you using? My version is v1.6.2.

I use 1.6.3 on macOS. I had a vault where it worked with 1.6.3. As far as I remember the livesync version was something like 0.20. After upgrading livesync I got the error message.

Mr-qing233 commented 3 months ago

Same here :( Also with working setup in version 0.20.

Maybe it is associated with the new version of the Obsidian in this days? What Obsidian version are you using? My version is v1.6.2.

I use 1.6.3 on macOS. I had a vault where it worked with 1.6.3. As far as I remember the livesync version was something like 0.20. After upgrading livesync I got the error message.

Maybe we should try other versions? My version is 0.23.13. It should show the detail error, let me know which configuration is error.

I have seen this project. Should we use this?

Mr-qing233 commented 3 months ago

I have finished this problem. It is related to Chinese Internet Policy. You must registered in the Ministry of Industry and Information Technology and after verification.

这个问题的原因在于域名必须先通过工信部备案审核,才可以正常使用该服务。未通过审核前,尽管可以正常访问该网页,但是实际上应用无法使用。

holtwick commented 3 months ago

Mine was also a firewall issue related to https://www.obdev.at/products/littlesnitch/index.html configuration 🤦‍♂️ Now everything works great.

ericober commented 1 month ago

Mine was also a firewall issue related to https://www.obdev.at/products/littlesnitch/index.html configuration 🤦‍♂️ Now everything works great.

I'm having very similar issues on MacOS. Any chance you can elloborate on how you fixed/modied your firewall. Was it your MacOS firewall?

holtwick commented 1 month ago

I just had a general "recject" rule on the Obsidian. I "allowed" another server, I used before for synching. I just "allowed" all connections and then it worked.