Exporting Projects Script Erroring
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start with the documented docker-compose command and reproduce the failure in modules/server-ce-scripts/scripts/export-user-projects.mjs. Trace the DELETE request through services/web/app/src/Features/DocumentUpdater/DocumentUpdaterHandler.mjs and /overleaf/libraries/fetch-utils/index.js. Done means the script exports all projects without the request-failed error.
Written by the indexing model from the issue text.
Description
Hi all,
I want to be able to access my files from another location on my server, as such I found this script online:
bin/docker-compose exec sharelatex /bin/bash -ce "cd /overleaf/services/web && node modules/server-ce-scripts/scripts/export-user-projects.mjs --export-all --output-dir=/var/lib/overleaf/data/exports"
from here: https://docs.overleaf.com/on-premises/maintenance/data-and-backups/exporting-projects
when I run this I get:
{"name":"default","hostname":"36cdbd5d3dbb","pid":480,"level":40,"msg":"graceful shutdown: started shutdown sequence","time":"2025-12-05T00:05:10.140Z","v":0}
{"name":"default","hostname":"36cdbd5d3dbb","pid":480,"level":30,"stage":"optionalBeforeStoppingTraffic","msg":"graceful shutdown: run handlers","time":"2025-12-05T00:05:10.140Z","v":0}
{"name":"default","hostname":"36cdbd5d3dbb","pid":480,"level":40,"msg":"graceful shutdown: closing http server","time":"2025-12-05T00:05:11.140Z","v":0}
{"name":"default","hostname":"36cdbd5d3dbb","pid":480,"level":30,"stage":"requiredBeforeDrainingConnections","msg":"graceful shutdown: run handlers","time":"2025-12-05T00:05:11.141Z","v":0}
{"name":"default","hostname":"36cdbd5d3dbb","pid":480,"level":30,"stage":"connectionDrainer","msg":"graceful shutdown: run handlers","time":"2025-12-05T00:05:11.141Z","v":0}
{"name":"default","hostname":"36cdbd5d3dbb","pid":480,"level":30,"stage":"optionalAfterDrainingConnections","msg":"graceful shutdown: run handlers","time":"2025-12-05T00:05:11.146Z","v":0}
{"name":"default","hostname":"36cdbd5d3dbb","pid":480,"level":30,"msg":"graceful shutdown: ready to exit","time":"2025-12-05T00:05:11.146Z","v":0}
{"name":"default","hostname":"36cdbd5d3dbb","pid":480,"level":50,"err":{"message":"request failed","name":"RequestFailedError","stack":"RequestFailedError: request failed\n at fetchNothing (/overleaf/libraries/fetch-utils/index.js:83:11)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.flushProjectToMongoAndDelete (file:///overleaf/services/web/app/src/Features/DocumentUpdater/DocumentUpdaterHandler.mjs:54:3)\n at async exportUserProjectsToZip (file:///overleaf/services/web/modules/server-ce-scripts/scripts/export-user-projects.mjs:90:5)\n at async exportAllUsersProjects (file:///overleaf/services/web/modules/server-ce-scripts/scripts/export-user-projects.mjs:157:5)\n at async main (file:///overleaf/services/web/modules/server-ce-scripts/scripts/export-user-projects.mjs:201:7)","info":{"url":"http://127.0.0.1:3003/project/6931f84cbbe21d24c8bad40f","method":"DELETE","status":500}},"msg":"Error in export-user-projects script","time":"2025-12-05T00:05:11.147Z","v":0}
I have just done a fresh install for unrelated reasons so the fix is not updating overleaf toolkit.
I have changed the overleaf port from default, and set listen ip to 0.0.0.0, other than that I have made no config changes.
Does anyone know why this script isn't working?
Or another way to export the files (.tex, .aux, etc.) from all projects from the host device.
Many thanks
- Dominant language
- Shell
- Stars
- 1.3k
- Forks
- 310
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from overleaf/toolkit
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
All issues in overleaf/toolkit
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
community-scripts/ProxmoxVE#17425 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
danielmiessler/LifeOS#2218 ·
-
docs(agents): strengthen the no-backslash-escaped-backticks rule with an issue-creation example Open
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
technical-debt
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
ll7/robot_sf_ll7#9560 ·
-
package-update
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
oSoWoSo/vOid_Community_repOsitory#148 · 1 comment ·