requarks / wiki-v1

Legacy version (1.x) of Wiki.js
https://wiki.js.org
GNU Affero General Public License v3.0
100 stars 75 forks source link

Uploading some JPEG files breaks git sync #180

Open fpagnoux opened 5 years ago

fpagnoux commented 5 years ago

Actual behavior

When I update a specific JPEG file like this one[https://drive.google.com/file/d/1PQEfej2oB8XnLJrKBV_8lBFSf5dXhYhR/view?usp=sharing], the following happens:

The root error probably comes from this issue which is not related to Wiki.js. But the fact that uploading an image ends up breaking the git sync is not really not ideal... Syncing with Git was one of the key features that made me choose Wiki.js, and it'd help if it was more robust and uncoupled from image processing.

Expected behavior

An issue processing an image should ideally not impact git synchronization

Steps to reproduce the behavior

See details above

colo13c commented 4 years ago

Hi, how do you fix it? I have the same issue and I dont know how to resolve it. Thanks anyway.

fpagnoux commented 4 years ago

I think I identified the problematic JPG, and re-uploaded them. That fixed the git sync for a while but then it broke again, not sure why. To avoid data losses I ended up adding a cron job that runs a git push every hour on the server. Sad to say but the git sync on wiki.js v1 is really not reliable. Not sure if things got better in the new version.