overleaf / overleaf/toolkit

bin/logs Script Fails to Display Logs on Host, Logs Only Accessible Inside Container Description

Open
#363 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
1.3k
Forks
310
Avg merge
3d 12h
Merged PRs (30d)
1

Description

I am using the Overleaf Toolkit to deploy Overleaf Community Edition (CE) via Docker. When attempting to view logs using the bin/logs script on the host machine (e.g., bin/logs -f web), the output is blank. However, I can find and view the log files (e.g., /var/log/overleaf/web.log) inside the container's shell after executing bin/shell. This indicates that logs are being generated but are not accessible via the bin/logs script as expected.

This issue hinders debugging and monitoring from the host machine, as I must manually enter the container to access logs. I believe this could be a configuration or scripting issue with the Toolkit's log retrieval mechanism.

as6325400@overleaf:~/overleaf-toolkit$ bin/logs web
as6325400@overleaf:~/overleaf-toolkit$ sudo bin/shell
root@60fd7209b119:/overleaf# ls -l /var/log/overleaf
total 220
-rw-r--r-- 1 root root    348 May 29 12:06 chat.log
-rw-r--r-- 1 root root  22994 May 29 12:06 clsi.log
-rw-r--r-- 1 root root    356 May 29 12:06 contacts.log
-rw-r--r-- 1 root root    808 May 29 13:05 cron-deactivate-projects.log
-rw-r--r-- 1 root root    404 May 29 12:20 cron-delete-projects.log
-rw-r--r-- 1 root root    772 May 29 12:15 cron-delete-users.log
-rw-r--r-- 1 root root   2868 May 29 13:00 cron-project-history-periodic-flush.log
-rw-r--r-- 1 root root   3232 May 29 12:06 docstore.log
-rw-r--r-- 1 root root    872 May 29 12:06 document-updater.log
-rw-r--r-- 1 root root   3530 May 29 12:06 filestore.log
-rw-r--r-- 1 root root   3856 May 29 12:06 history-v1.log
-rw-r--r-- 1 root root   1034 May 29 12:06 notifications.log
-rw-r--r-- 1 root root    370 May 29 12:06 project-history.log
-rw-r--r-- 1 root root    782 May 29 12:45 project-history-retry-hard.log
-rw-r--r-- 1 root root    743 May 29 12:30 project-history-retry-soft.log
-rw-r--r-- 1 root root  10829 May 29 12:38 real-time.log
-rw-r--r-- 1 root root   7102 May 29 12:38 web-api.log
-rw-r--r-- 1 root root 121835 May 29 13:01 web.log
root@60fd7209b119:/overleaf# 

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the bin/logs script and compare its log lookup with the /var/log/overleaf files visible after running bin/shell. Reproduce bin/logs web on the host and confirm that it returns the container's web.log contents; the issue is done when host-side log retrieval works, including follow mode.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.