GithubHelp home page GithubHelp logo

Comments (8)

bockulator avatar bockulator commented on June 23, 2024 2

@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.

mserranom avatar mserranom commented on June 23, 2024

Would you mind confirming the version of Overleaf CE you're using?

from overleaf.

ldehner avatar ldehner commented on June 23, 2024

@mserranom I am using sharelatex/sharelatext:latest

from overleaf.

KnightWolf-50 avatar KnightWolf-50 commented on June 23, 2024

I am having the exact same issue.
@ldehner did you find a solution?

from overleaf.

ldehner avatar ldehner commented on June 23, 2024

@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.

KnightWolf-50 avatar KnightWolf-50 commented on June 23, 2024

@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.

ldehner avatar ldehner commented on June 23, 2024

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.

bockulator avatar bockulator commented on June 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.