Open hanm2019 opened 2 years ago
Hi @hanm2019 !
Could you do the following please?
bin/doctor
, and paste the output herebin/error-logs
, and paste the output hereThanks!
bin/doctor
is :
====== Overleaf Doctor ======
- Host Information
- Linux
- Output of 'lsb_release -a':
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
- Dependencies
- bash
- status: present
- version info: 4.4.20(1)-release
- docker
- status: present
- version info: Docker version 20.10.8, build 3967b7d
- docker-compose
- status: present
- version info: docker-compose version 1.29.2, build 5becea4c
- realpath
- status: present
- version info: realpath (GNU coreutils) 8.28
- perl
- status: present
- version info: 5.026001
- awk
- status: present
- version info: GNU Awk 4.1.4, API: 1.1 (GNU MPFR 4.0.1, GNU MP 6.1.2)
- openssl
- status: present
- version info: OpenSSL 1.1.1 11 Sep 2018
- Docker Daemon
- status: DOWN !
====== Configuration ======
- config/version
- status: present
- version: 2.7.0
- config/overleaf.rc
- status: present
- values
- SHARELATEX_DATA_PATH: data/sharelatex
- SERVER_PRO: false
- SHARELATEX_PORT: 80
- MONGO_ENABLED: true
- MONGO_DATA_PATH: data/mongo
- REDIS_ENABLED: true
- REDIS_DATA_PATH: data/redis
- NGINX_ENABLED: false
- NGINX_CONFIG_PATH: config/nginx/nginx.conf
- TLS_PRIVATE_KEY_PATH: config/nginx/certs/overleaf_key.pem
- TLS_CERTIFICATE_PATH: config/nginx/certs/overleaf_certificate.pem
- config/variables.env
- status: present
====== Warnings ======
! Docker daemon is not running
====== End ======
bin/error-logs
is empty
So, one thing I notice is the warning:
====== Warnings ======
! Docker daemon is not running
Is the docker service running? Can you run bin/up
and bring up the overleaf services?
If that's all working, one last thing to check: look in ./data/sharelatex/data/compiles/<project>
, and check for an output.log
file. This might tell us what is going wrong in the compiler.
EDIT: Oh, also, try running bin/logs -f clsi
while you are compiling the project, and check for any log entries that look like errors.
when I run bin/doctor
with sudo
, the docker daemon is up, and no warning.
I look in ./data/sharelatex/data/compiles/<project>
, but do not found the output.log, but output.stdout
Latexmk: applying rule 'xelatex'...
Latexmk: Errors, in force_mode: so I tried finishing targets
then I run bin/logs -f clsi
{"name":"clsi","hostname":"b121a9625b25","pid":164,"level":30,"project_id":"612f346c9fb608008d4ec920","user_id":"61205ed913793000875b3119","msg":"syncing resources to disk","time":"2021-09-01T08:26:04.119Z","v":0}
{"name":"clsi","hostname":"b121a9625b25","pid":164,"level":30,"project_id":"612f346c9fb608008d4ec920","user_id":"61205ed913793000875b3119","msg":"incremental sync","time":"2021-09-01T08:26:04.119Z","v":0}
{"name":"clsi","hostname":"b121a9625b25","pid":164,"level":30,"state":"d013b62bf03c727e236ae46c0f2ae4f54f4d47b0","oldState":"stateHash:d013b62bf03c727e236ae46c0f2ae4f54f4d47b0","basePath":"/var/lib/sharelatex/data/compiles/612f346c9fb608008d4ec920-61205ed913793000875b3119","stateMatches":true,"msg":"checking sync state","time":"2021-09-01T08:26:04.120Z","v":0}
{"name":"clsi","hostname":"b121a9625b25","pid":164,"level":30,"args":["/var/lib/sharelatex/data/compiles/612f346c9fb608008d4ec920-61205ed913793000875b3119","(","-name",".cache","-o","-name",".archive","-o","-name",".project-*",")","-prune","-o","-type","f","-print"],"msg":"running find command","time":"2021-09-01T08:26:04.120Z","v":0}
{"name":"clsi","hostname":"b121a9625b25","pid":164,"level":30,"project_id":"612f346c9fb608008d4ec920","user_id":"61205ed913793000875b3119","time_taken":15,"msg":"written files to disk","time":"2021-09-01T08:26:04.134Z","v":0}
{"name":"clsi","hostname":"b121a9625b25","pid":164,"level":30,"compileDir":"/var/lib/sharelatex/data/compiles/612f346c9fb608008d4ec920-61205ed913793000875b3119","mainFile":"main.tex","usesTikzExternalize":false,"usesPsTool":false,"msg":"checked for packages needing main file as output.tex","time":"2021-09-01T08:26:04.135Z","v":0}
{"name":"clsi","hostname":"b121a9625b25","pid":164,"level":30,"directory":"/var/lib/sharelatex/data/compiles/612f346c9fb608008d4ec920-61205ed913793000875b3119","compiler":"xelatex","timeout":180000,"mainFile":"main.tex","environment":{"CHKTEX_OPTIONS":"-nall -e9 -e10 -w15 -w16","CHKTEX_ULIMIT_OPTIONS":"-t 5 -v 64000"},"flags":[],"msg":"starting compile","time":"2021-09-01T08:26:04.135Z","v":0}
{"name":"clsi","hostname":"b121a9625b25","pid":164,"level":30,"project_id":"612f346c9fb608008d4ec920-61205ed913793000875b3119","command":["latexmk","-cd","-f","-jobname=output","-auxdir=/var/lib/sharelatex/data/compiles/612f346c9fb608008d4ec920-61205ed913793000875b3119","-outdir=/var/lib/sharelatex/data/compiles/612f346c9fb608008d4ec920-61205ed913793000875b3119","-synctex=1","-interaction=batchmode","-xelatex","/var/lib/sharelatex/data/compiles/612f346c9fb608008d4ec920-61205ed913793000875b3119/main.tex"],"directory":"/var/lib/sharelatex/data/compiles/612f346c9fb608008d4ec920-61205ed913793000875b3119","msg":"running command","time":"2021-09-01T08:26:04.135Z","v":0}
{"name":"clsi","hostname":"b121a9625b25","pid":164,"level":40,"msg":"timeouts and sandboxing are not enabled with CommandRunner","time":"2021-09-01T08:26:04.135Z","v":0}
{"name":"clsi","hostname":"b121a9625b25","pid":164,"level":30,"code":12,"signal":null,"project_id":"612f346c9fb608008d4ec920-61205ed913793000875b3119","msg":"command exited","time":"2021-09-01T08:26:04.267Z","v":0}
{"name":"clsi","hostname":"b121a9625b25","pid":164,"level":30,"project_id":"612f346c9fb608008d4ec920","user_id":"61205ed913793000875b3119","time_taken":137,"stats":{"latexmk-errors":1,"latex-runs":0,"latex-runs-with-errors":0,"latex-runs-0":1,"latex-runs-with-errors-0":1},"timings":{},"loadavg":[0.06,0.13,0.16],"msg":"done compile","time":"2021-09-01T08:26:04.273Z","v":0}
{"name":"clsi","hostname":"b121a9625b25","pid":164,"level":30,"args":["/var/lib/sharelatex/data/compiles/612f346c9fb608008d4ec920-61205ed913793000875b3119","(","-name",".cache","-o","-name",".archive","-o","-name",".project-*",")","-prune","-o","-type","f","-print"],"msg":"running find command","time":"2021-09-01T08:26:04.273Z","v":0}
{"name":"clsi","hostname":"b121a9625b25","pid":164,"level":40,"project_id":"612f346c9fb608008d4ec920","outputFiles":[{"path":"output.synctex.gz","type":"gz","build":"17ba077167a-94b3ddb5d3164384"},{"path":"output.fls","type":"fls","build":"17ba077167a-94b3ddb5d3164384"},{"path":"output.fdb_latexmk","type":"fdb_latexmk","build":"17ba077167a-94b3ddb5d3164384"},{"path":"output.aux","type":"aux","build":"17ba077167a-94b3ddb5d3164384"},{"path":"output.blg","type":"blg","build":"17ba077167a-94b3ddb5d3164384"},{"path":"output.bbl","type":"bbl","build":"17ba077167a-94b3ddb5d3164384"},{"path":"output.stdout","type":"stdout","build":"17ba077167a-94b3ddb5d3164384"}],"msg":"project failed to compile successfully, no output.pdf generated","time":"2021-09-01T08:26:04.293Z","v":0}
{"name":"clsi","hostname":"b121a9625b25","pid":164,"level":30,"req":{"url":"/project/612f346c9fb608008d4ec920/user/61205ed913793000875b3119/compile","method":"POST","remote-addr":"127.0.0.1","content-length":"1188"},"res":{"statusCode":200},"response-time":192,"msg":"POST /project/612f346c9fb608008d4ec920/user/61205ed913793000875b3119/compile","time":"2021-09-01T08:26:04.295Z","v":0}
{"name":"clsi","hostname":"b121a9625b25","pid":164,"level":30,"cache":"/var/lib/sharelatex/data/output/612f346c9fb608008d4ec920-61205ed913793000875b3119/generated-files","dir":"17ba070d32d-716119b1e1db1fe4","msg":"removed expired cache dir","time":"2021-09-01T08:26:04.297Z","v":0}
{"name":"clsi","hostname":"b121a9625b25","pid":164,"level":30,"req":{"url":"/project/612f346c9fb608008d4ec920/status","method":"POST","remote-addr":"127.0.0.1","content-length":"0"},"res":{"statusCode":200},"response-time":1,"msg":"POST /project/612f346c9fb608008d4ec920/status","time":"2021-09-01T08:26:04.300Z","v":0}
in the report , I think
{"name":"clsi","hostname":"b121a9625b25","pid":164,"level":30,"project_id":"612f346c9fb608008d4ec920-61205ed913793000875b3119","command":["latexmk","-cd","-f","-jobname=output","-auxdir=/var/lib/sharelatex/data/compiles/612f346c9fb608008d4ec920-61205ed913793000875b3119","-outdir=/var/lib/sharelatex/data/compiles/612f346c9fb608008d4ec920-61205ed913793000875b3119","-synctex=1","-interaction=batchmode","-xelatex","/var/lib/sharelatex/data/compiles/612f346c9fb608008d4ec920-61205ed913793000875b3119/main.tex"],"directory":"/var/lib/sharelatex/data/compiles/612f346c9fb608008d4ec920-61205ed913793000875b3119","msg":"running command","time":"2021-09-01T08:26:04.135Z","v":0}
{"name":"clsi","hostname":"b121a9625b25","pid":164,"level":40,"msg":"timeouts and sandboxing are not enabled with CommandRunner","time":"2021-09-01T08:26:04.135Z","v":0}
{"name":"clsi","hostname":"b121a9625b25","pid":164,"level":30,"code":12,"signal":null,"project_id":"612f346c9fb608008d4ec920-61205ed913793000875b3119","msg":"command exited","time":"2021-09-01T08:26:04.267Z","v":0}
{"name":"clsi","hostname":"b121a9625b25","pid":164,"level":30,"project_id":"612f346c9fb608008d4ec920","user_id":"61205ed913793000875b3119","time_taken":137,"stats":{"latexmk-errors":1,"latex-runs":0,"latex-runs-with-errors":0,"latex-runs-0":1,"latex-runs-with-errors-0":1},"timings":{},"loadavg":[0.06,0.13,0.16],"msg":"done compile","time":"2021-09-01T08:26:04.273Z","v":0}
maybe useful to debug it
I meet the same problem💔.
I meet the same problem💔.
I use tuetenk0pp/sharelatex-full image to fix this problem
Maybe the reason is the texlive in sharelatex container not support xelatex. Reference this issue, I run these command in container to solve this problem. https://github.com/overleaf/overleaf/issues/703#issuecomment-571502872
` sudo docker exec -it sharelatex /bin/bash # enter the container
tlmgr option repository https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet # 清华的软件源,速度更快,大陆使用
tlmgr update --self && tlmgr install scheme-full `
But I have another problem. when restart containers, files in container will miss, and sharelatex service fail. Maybe the reason is due to some processes are start in Dockerfile with runsv. After container restart, these files modified by runsv will lose and go wrong. Someone can fix this bugs?
Maybe the reason is the texlive in sharelatex container not support xelatex. Reference this issue, I run these command in container to solve this problem. https://github.com/overleaf/overleaf/issues/703#issuecomment-571502872
` sudo docker exec -it sharelatex /bin/bash # enter the container
tlmgr option repository https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet # 清华的软件源,速度更快,大陆使用
tlmgr update --self && tlmgr install scheme-full `
But I have another problem. when restart containers, files in container will miss, and sharelatex service fail. Maybe the reason is due to some processes are start in Dockerfile with runsv. After container restart, these files modified by runsv will lose and go wrong. Someone can fix this bugs?
met the same problem... working on final thesis
Steps to Reproduce
Expected Behaviour
compile success
Observed Behaviour
get Error:
Compile Error. Sorry, your LaTeX code couldn't compile for some reason. Please check the errors below for details, or view the raw log.
Context
Technical Info