toolkit icon indicating copy to clipboard operation
toolkit copied to clipboard

get Error with XeLatex

Open hanm2019 opened this issue 4 years ago • 10 comments

Steps to Reproduce

  1. start the overleaf instance 2.create a example project
  2. compile with XeLatex

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

  • Browser Name and version: chrome 92.0.4515.159
  • Operating System and version (desktop or mobile): ubuntu 16.04, docker:20.10.8,
redis                     5.0       15e36694d7df   3 days ago      98.4MB
mongo                     4.0       9650de099aeb   2 weeks ago     430MB
sharelatex/sharelatex     2.7.0     9ca6a3256fb6   7 weeks ago     4.21GB

hanm2019 avatar Aug 21 '21 02:08 hanm2019

Hi @hanm2019 !

Could you do the following please?

  • Run bin/doctor, and paste the output here
  • Run bin/error-logs, and paste the output here

Thanks!

JuneKelly avatar Aug 24 '21 14:08 JuneKelly

bin/doctoris :

====== 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

hanm2019 avatar Aug 25 '21 08:08 hanm2019

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.

JuneKelly avatar Aug 31 '21 12:08 JuneKelly

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

hanm2019 avatar Sep 01 '21 08:09 hanm2019

I meet the same problem💔.

xiafanglongfei avatar Jan 03 '22 13:01 xiafanglongfei

I meet the same problem💔.

I use tuetenk0pp/sharelatex-full image to fix this problem

hanm2019 avatar Jan 10 '22 02:01 hanm2019

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?

solidcc2 avatar Mar 22 '22 12:03 solidcc2

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

0xJchen avatar Apr 27 '22 16:04 0xJchen

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?

I meet the same problem. Have you found any solutions?

xiazhongyv avatar Sep 20 '24 15:09 xiazhongyv

no, i install it out of container.

------------------ 原始邮件 ------------------ 发件人: "Zhongyu @.>; 发送时间: 2024年9月20日(星期五) 晚上11:30 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [overleaf/toolkit] get Error with XeLatex (#69)

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?

I meet the same problem. Have you found any solutions?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

solidcc2 avatar Sep 20 '24 16:09 solidcc2