Comments (9)
@thany I had similar issue and found out it was because of the attachment files.
You should check the configuration with nginx to allow the sync for bigger file size.
Try to put this in nginx conf and restart the service:
client_max_body_size 100M;
from obsidian-livesync.
Hi. I am not familiar with the LiveSync plugin, but I have a question.
Is the LiveSync plugin version up-to-date?
Debug info
1: Self-hosted LiveSync v0.19.23
The current LiveSync plugin latest is v0.21.5. (Releases ยท vrtmrz/obsidian-livesync)
I apologize if this is not relevant.
from obsidian-livesync.
It is up-to-date now ๐
But it didn't help to resolve the issue, unfortunately.
from obsidian-livesync.
I have couchdb running in a docker container, and cannot find a nginx config anywhere. Can you point out where I'm supposed to add that config line exactly?
At the filesystem root, find | grep nginx
yields 0 results.
Btw, couchdb is an Apache project, so why would they use nginx for the webserver part? ๐
Oh and also, if filesize is the problem, then should it not be able to connect to couchdb in the first place? Because before that happens, it has no chance of even trying to send any file.
from obsidian-livesync.
I use Nginx for the reverse proxy to access livesync server via a domain name.
Maybe this is a difference issue of mine.
from obsidian-livesync.
And sure I can enable CORS in couchdb itself, but then two more questions would arise:
- What domain should I fill in to allow? Because I'm obviously not going to allow everything. Couchdb admin says to has to start with http/https, but Obsidian is not a website.
- Obsidian is a desktop application, so why would it need CORS in the first place? cmiiw, but CORS is meant communication from javascript on a website to another domain. But in this case, there's no domain to be had...
from obsidian-livesync.
I am really sorry, and, thank you all for your patience and cooperation!
And sure I can enable CORS in couchdb itself, but then two more questions would arise:
We should enable CORS in CouchDB and leave handlings to it. CouchDB will pick a suitable origin for each request from configured values. Each platform uses a different origin.
app://obsidian.md
,capacitor://localhost
andhttp://localhost
should be set. This can be configurable by theCheck
button; from theCheck database configuration
of the setting dialogue in Self-hosted LiveSync on Obsidian. (I think that this button could beDoctor
as in some traditions).
Note: it could not be configurable from the Web UI. We have to configure it by using REST API or editing INI files.- I have been so surprised as same on you. Obsidian is built on the web technology. The desktop version uses
app://obsidian.md
for the origin. (app
is not the actual protocol scheme, but a real one.) This can be revealed by evaluatingwindow.location.origin
in DevTools. As noted above, this varies from platform to platform.
from obsidian-livesync.
- This can be configurable by the
Check
button; from theCheck database configuration
of the setting dialogue in Self-hosted LiveSync on Obsidian.
Except the problem is that it too, will throw the same CORS error. But it can be added forcibly on the "Main config" page in the couchdb admin config. Not sure if that's a "healthy" thing to do, because the requirement for http/https is probably there for a reason.
Either way, I don't believe Obsidian should behave like it's a faux website. I'm not sure where this should be fixed if possible. Is it a bug in Obisidan, or maybe in Electron?
from obsidian-livesync.
Thank you for your good point! I have looked into it again, to find what should it be to the origin
.
Then, I collected some information. Let me share it.
CouchDB can accept origins which have non-HTTP schemes neither via HTTP API nor the ini file. A CORS origin could have them, this would be based on old-fashioned CORS specification (RFC-6454 and RFC-3986).
RFC-3986 seems to be refined as URL Living Standard, these are defined as special-scheme in it.
Therefore, this could be the problem of Fauxton; which is the web-frontend of CouchDB. However, it is web-frontend and may be designed that way as far as I looking at issues on their repo.
On the other hand, iOS and Electron use non special-scheme.
iOS (Based on Capacitor) seems to use capacitor://localhost
as this. I could not find the exact source of the information, but Electron uses app://
in their sample
This might mean that it seems to be well-designed in each their area; even though if they makes very complicated situation for us.
I hope that my information will help us!
from obsidian-livesync.
Related Issues (20)
- TypeError: wasm function signature contains illegal type on Android Tablet HOT 2
- Efficient RAM usage on obsidian-docker HOT 3
- Doesn't sync right after setup. What could be wrong?
- Inconsistent encryption HOT 2
- unable to setup Customization Sync HOT 12
- MinIO Sync: The authorization mechanism you have used is not supported. Please use AWS4-HMAC-SHA256. HOT 1
- Android: live sync long startup HOT 7
- How to backup (both couchdb and file storage) to files HOT 3
- [Question] What are the issues with IBM Cloudant? HOT 2
- Is huggingface a possible platform for deployment? HOT 5
- Conflict management hits back again HOT 6
- memory leakage HOT 1
- Configuration mismatching between the clients? v0.23.12 HOT 5
- plugin started to corrupt data in 0.23.12 HOT 8
- When I use https+domain, it show "Checking configuration failed" after clicking check-button HOT 7
- webclip cannot sync HOT 2
- Settings/Hidden file sync HOT 1
- ibm over fly.io: an observation HOT 1
- error mounting "/opt/docker-compose/couchdb/local.ini" HOT 3
- Can't update remote settings (URI, user, etc) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obsidian-livesync.