Fixing SyncTeX errors in Server Pro 2.0.0 and 2.0.1
Unfortunately Server Pro in its versions 2.0.0
and 2.0.1
has been released with a problem with SyncTeX functionality, causing the server to return a 400
error every time we try to sync the position between a document and the generated pdf.
This problem is present only when using Sandboxed Compiles.
It's possible to fix the issue with a workaround that involves:
- The addition of a new environment variable to
sharelatex
container indocker-compose.yml
- Executing a command after
sharelatex
container has been initiated.
We need to add a new SYNCTEX_BIN_HOST_PATH
, pointing to a synctex
executable in the same host directory mounted as /var/lib/sharelatex
inside the container. This means that if the volume is mounted as:
volumes:
- /var/sharelatex_data:/var/lib/sharelatex
Then the new environment variable should be:
SYNCTEX_BIN_HOST_PATH: "/var/sharelatex_data/synctex"
Once we've restarted the sharelatex
container after adding the environment variable we need to execute the following command:
docker exec sharelatex cp /var/www/sharelatex/clsi/bin/synctex /var/lib/sharelatex/synctex
Once that's done, we should start seeing 200
responses when syncing the position between document and pdf.
Executing again this command shouldn't be required after a service restart.
- Quickstart Guide (Overleaf Toolkit)
- Hardware Requirements
- Database & Dependencies
- Creating and managing users
- General configuration
- Configuring Email
- SSL & Nginx reverse proxy
- Data and Backups
- Configuring Headers, Footers & Logo
- Password Restrictions
- i18n Languages
- Logging
- Common Config Options
- F.A.Q
- Troubleshooting
- Full Project History Migration