Comments (8)
@ldehner @KnightWolf-50 I had the same problem and managed to """"fix"""" it by simply skipping the doc version recovery script during the startup.
I added this line to my custom Dockerfile
RUN mv /etc/my_init.d/910_initiate_doc_version_recovery /910_initiate_doc_version_recovery.backup
from overleaf.
Would you mind confirming the version of Overleaf CE you're using?
from overleaf.
@mserranom I am using sharelatex/sharelatext:latest
from overleaf.
I am having the exact same issue.
@ldehner did you find a solution?
from overleaf.
@KnightWolf-50 - sadly no, and nobody of the dev team seems to care. Any updates on your side?
=> maybe like the issue so it maybe gets some attention
I think that the solution would be to erase all mongo db instances, but I dont want to do this everytime it crashes. The whole data storage system isn't very good in my opinion, with everything just stored in mongo. Because I was afraid of something like this, I built myself a workflow which downloads the files after compile. But something like this can't happen in my opinion. At least I hoped for some support
from overleaf.
@ldehner I managed to get it working again, but as you mentioned, it required erasing the Mongo database. Fortunately, I had backups of all my projects, so in the end it was a hassle but I didn't lose any data.
from overleaf.
Thank you so much @bockulator. Thats kinda sketchy but also kinda genius. Actually Overleaf should implement a parameter to set if startup should skip it.. I am using unraid thus I had to do following:
# Create a directory for the custom Dockerfile
mkdir custom-sharelatex
cd custom-sharelatex
# Create and edit the Dockerfile
cat <<EOF > Dockerfile
# Start from the official ShareLaTeX image
FROM sharelatex/sharelatex
# Move the recovery script to skip it during startup
RUN mv /etc/my_init.d/910_initiate_doc_version_recovery /910_initiate_doc_version_recovery.backup
# Any additional customization can be added here
EOF
# Build the custom Docker image
docker build -t custom-sharelatex .
docker run -d \
--network br0 \
--ip 192.168.178.30 \
-p 80:80 \
-v /mnt/user/Overleaf/:/var/lib/overleaf \
-e OVERLEAF_APP_NAME="Overleaf" \
-e OVERLEAF_NAV_TITLE="Overleaf" \
-e OVERLEAF_SITE_URL="https://your-overleaf-instance.example.com" \
-e OVERLEAF_ADMIN_EMAIL="[email protected]" \
-e OVERLEAF_REDIS_HOST="192.168.178.27" \
-e OVERLEAF_REDIS_PORT="6379" \
-e OVERLEAF_REDIS_PASS='your_redis_password' \
-e OVERLEAF_MONGO_URL="mongodb://192.168.178.29" \
-e OVERLEAF_BEHIND_PROXY="true" \
-e OVERLEAF_SESSION_SECRET="your_random_string" \
-e OVERLEAF_SECURE_COOKIE="1" \
-e OVERLEAF_RESTRICT_INVITES_TO_EXISTING_ACCOUNTS="false" \
-e OVERLEAF_ALLOW_PUBLIC_ACCESS="true" \
-e OVERLEAF_ALLOW_ANONYMOUS_READ_AND_WRITE_SHARING="false" \
-e OVERLEAF_EMAIL_SMTP_HOST="smtp.example.com" \
-e OVERLEAF_EMAIL_SMTP_PORT="465" \
-e OVERLEAF_EMAIL_SMTP_USER="[email protected]" \
-e OVERLEAF_EMAIL_SMTP_PASS='your_smtp_password' \
-e OVERLEAF_EMAIL_FROM_ADDRESS="[email protected]" \
--name overleafV2 \
custom-sharelatex
from overleaf.
I'm happy I could help! Note though that some data may be corrupted. A clean re-install is probably the best way forward.
from overleaf.
Related Issues (20)
- How to Recover Files from a Local Deployment of Overleaf HOT 2
- Problems with config/variables.env when upgrading to 5.0.3CE HOT 2
- error "/etc/my_init.d/500_check_db_access.sh failed with status 1" HOT 3
- Alternatives to MongoDB 5.0?
- Recreating Sharelatex after Changing Settings HOT 1
- Simple feature: Hide line numbers
- MongoServerError: Transaction numbers are only allowed on a replica set member or mongos HOT 2
- Patch files for 5.0.4 not available HOT 1
- data-panel-group-id="4" freezes up after clicking pdf scroll bar, requires page reload
- [Feature Request] Enable to display 4-byte characters in the editor HOT 1
- Support \frametitle in outline
- make build-community fails with ERROR: "docker buildx build" requires exactly 1 argument. HOT 1
- How to edit docker-compose.yml with installation done using overleaf-toolkit? HOT 1
- Slide title doesn't appear in file outline if preceded by whitespace
- Release Notes 4.x.x: Wrong command given: `docker-compose exec -it` → `docker exec -it` HOT 6
- redis 5 → 6.2: Container fails to start with `Fatal: Can't initialize Background Jobs.` HOT 5
- Accessing the Javascript object of codemirror
- Reduce number of Docker image layers introduced through hotfixes
- Add environment variables for all services ports
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 overleaf.