MiKTeX / docker-miktex

the Docker image for running MiKTeX
41 stars 28 forks source link

FATAL miktex-makefmt - miktex-xetex failed on xelatex.ini. #10

Closed KOLANICH closed 3 years ago

KOLANICH commented 5 years ago

https://gitlab.com/KOLANICH/Article-2015-Dull-captaincy-or-the-way-Tor-Project-fights-browser-fingerprinting/-/jobs/166730715

xelatex -disable-installer -enable-etex -enable-mltex -enable-write18 -c-style-errors -interaction=scrollmode "./readme.en.tex" ``` xelatex: warning: running with administrator privileges initexmf: warning: Option --admin should be specified when running this program with administrator privileges initexmf: warning: Option --admin should be specified when running this program with administrator privileges This is XeTeX, Version 3.14159265-2.6-0.999991 (MiKTeX 2.9.6980) Sorry, but xelatex did not succeed. The log file hopefully contains the information to get MiKTeX going again: /miktex/.miktex/texmfs/data/miktex/log/xelatex.log ```
/miktex/.miktex/texmfs/data/miktex/log/xelatex.log ``` 2019-02-24 23:00:23,367Z INFO xelatex - starting with command line: xelatex -help 2019-02-24 23:00:23,367Z WARN xelatex - running with administrator privileges 2019-02-24 23:00:23,368Z INFO xelatex - running 'initexmf' to refresh the file name database 2019-02-24 23:00:24,360Z INFO xelatex - running 'initexmf' to create font map files 2019-02-24 23:00:25,168Z INFO xelatex - allowing known shell commands 2019-02-24 23:00:25,168Z INFO xelatex - enabling input (output) from (to) processes 2019-02-24 23:00:25,169Z INFO xelatex - finishing with exit code 0 2019-02-24 23:00:25,258Z INFO xelatex - starting with command line: xelatex -disable-installer -enable-etex -enable-mltex -enable-write18 -c-style-errors -interaction=scrollmode ./readme.en.tex 2019-02-24 23:00:25,258Z WARN xelatex - running with administrator privileges 2019-02-24 23:00:25,259Z INFO xelatex - running 'initexmf' to refresh the file name database 2019-02-24 23:00:26,415Z INFO xelatex - running 'initexmf' to create font map files 2019-02-24 23:00:27,232Z INFO xelatex - allowing known shell commands 2019-02-24 23:00:27,232Z INFO xelatex - enabling input (output) from (to) processes 2019-02-24 23:00:27,232Z INFO xelatex - allowing all shell commands 2019-02-24 23:00:27,236Z INFO xelatex - going to create file: xelatex.fmt 2019-02-24 23:00:28,094Z ERROR xelatex - /usr/bin/initexmf did not succeed; exitCode: 1 2019-02-24 23:00:28,094Z ERROR xelatex - output: 2019-02-24 23:00:28,094Z ERROR xelatex - initexmf: warning: Option --admin should be specified when running this program with administrator privileges Sorry, but "MiKTeX Configuration Utility" did not succeed. The log file hopefully contains the information to get MiKTeX going again: /miktex/.miktex/texmfs/data/miktex/log/initexmf.log 2019-02-24 23:00:28,095Z FATAL xelatex - The memory dump file could not be found. 2019-02-24 23:00:28,095Z FATAL xelatex - Info: fileName="xelatex.fmt" 2019-02-24 23:00:28,095Z FATAL xelatex - Source: Libraries/MiKTeX/TeXAndFriends/texmfapp.cpp 2019-02-24 23:00:28,095Z FATAL xelatex - Line: 689 2019-02-24 23:00:28,095Z INFO xelatex - finishing with exit code 1 ```
cat /miktex/.miktex/texmfs/data/miktex/log/initexmf.log ``` 2019-02-24 23:00:22,944Z INFO initexmf - starting: MiKTeX Configuration Utility 2.9.6975 (MiKTeX 2.9.6980) 2019-02-24 23:00:22,944Z INFO initexmf - Operating on the private (per-user) MiKTeX setup 2019-02-24 23:00:22,944Z INFO initexmf - starting with command line: initexmf --report 2019-02-24 23:00:23,330Z INFO initexmf - finishing with exit code 0 2019-02-24 23:00:23,721Z INFO initexmf - starting: MiKTeX Configuration Utility 2.9.6975 (MiKTeX 2.9.6980) 2019-02-24 23:00:23,721Z INFO initexmf - Operating on the private (per-user) MiKTeX setup 2019-02-24 23:00:23,721Z INFO initexmf - starting with command line: initexmf --enable-installer --quiet --update-fndb 2019-02-24 23:00:23,722Z INFO initexmf - Creating fndb for user root directory (/miktex/.miktex/texmfs/config)... 2019-02-24 23:00:23,727Z INFO initexmf - Creating fndb for user root directory (/miktex/.miktex/texmfs/data)... 2019-02-24 23:00:23,728Z INFO initexmf - Creating fndb for user root directory (/miktex/.miktex/texmfs/install)... 2019-02-24 23:00:23,728Z INFO initexmf - Skipping common root directory (/var/lib/miktex-texmf)... 2019-02-24 23:00:23,728Z INFO initexmf - Skipping common root directory (/var/cache/miktex-texmf)... 2019-02-24 23:00:23,728Z INFO initexmf - Skipping common root directory (/usr/local/share/miktex-texmf)... 2019-02-24 23:00:24,357Z INFO initexmf - finishing with exit code 0 2019-02-24 23:00:24,774Z INFO initexmf - starting: MiKTeX Configuration Utility 2.9.6975 (MiKTeX 2.9.6980) 2019-02-24 23:00:24,774Z INFO initexmf - Operating on the private (per-user) MiKTeX setup 2019-02-24 23:00:24,774Z INFO initexmf - starting with command line: initexmf --enable-installer --quiet --mkmaps 2019-02-24 23:00:24,775Z INFO initexmf - running: mkfntmap --enable-installer --miktex-disable-maintenance 2019-02-24 23:00:25,159Z INFO initexmf - finishing with exit code 0 2019-02-24 23:00:25,723Z INFO initexmf - starting: MiKTeX Configuration Utility 2.9.6975 (MiKTeX 2.9.6980) 2019-02-24 23:00:25,723Z INFO initexmf - Operating on the private (per-user) MiKTeX setup 2019-02-24 23:00:25,723Z INFO initexmf - starting with command line: initexmf --enable-installer --quiet --update-fndb 2019-02-24 23:00:25,751Z INFO initexmf - Creating fndb for user root directory (/miktex/.miktex/texmfs/config)... 2019-02-24 23:00:25,752Z INFO initexmf - Creating fndb for user root directory (/miktex/.miktex/texmfs/data)... 2019-02-24 23:00:25,753Z INFO initexmf - Creating fndb for user root directory (/miktex/.miktex/texmfs/install)... 2019-02-24 23:00:25,753Z INFO initexmf - Skipping common root directory (/var/lib/miktex-texmf)... 2019-02-24 23:00:25,753Z INFO initexmf - Skipping common root directory (/var/cache/miktex-texmf)... 2019-02-24 23:00:25,753Z INFO initexmf - Skipping common root directory (/usr/local/share/miktex-texmf)... 2019-02-24 23:00:26,411Z INFO initexmf - finishing with exit code 0 2019-02-24 23:00:26,831Z INFO initexmf - starting: MiKTeX Configuration Utility 2.9.6975 (MiKTeX 2.9.6980) 2019-02-24 23:00:26,831Z INFO initexmf - Operating on the private (per-user) MiKTeX setup 2019-02-24 23:00:26,831Z INFO initexmf - starting with command line: initexmf --enable-installer --quiet --mkmaps 2019-02-24 23:00:26,831Z INFO initexmf - running: mkfntmap --enable-installer --miktex-disable-maintenance 2019-02-24 23:00:27,224Z INFO initexmf - finishing with exit code 0 2019-02-24 23:00:27,666Z INFO initexmf - starting: MiKTeX Configuration Utility 2.9.6975 (MiKTeX 2.9.6980) 2019-02-24 23:00:27,666Z INFO initexmf - Operating on the private (per-user) MiKTeX setup 2019-02-24 23:00:27,666Z INFO initexmf - starting with command line: initexmf --disable-installer --dump-by-name=xelatex --engine=xetex 2019-02-24 23:00:27,667Z INFO initexmf - running: miktex-makefmt --engine=xetex --dest-name=xelatex --no-dump xelatex.ini --disable-installer --miktex-disable-maintenance 2019-02-24 23:00:28,075Z ERROR initexmf - sub-process error output has been saved to '/miktex/.miktex/texmfs/data/miktex/log/miktex-makefmt_2019-02-24-230028.out' 2019-02-24 23:00:28,090Z FATAL initexmf - The executed process did not succeed. 2019-02-24 23:00:28,090Z FATAL initexmf - Info: exitCode="1", fileName="/usr/bin/miktex-makefmt" 2019-02-24 23:00:28,090Z FATAL initexmf - Source: 2019-02-24 23:00:28,090Z FATAL initexmf - Line: 0 ```
/miktex/.miktex/texmfs/data/miktex/log/miktex-makefmt.log ``` 2019-02-24 23:00:27,802Z INFO miktex-makefmt - starting with command line: miktex-makefmt --engine=xetex --dest-name=xelatex --no-dump xelatex.ini --disable-installer --miktex-disable-maintenance 2019-02-24 23:00:27,802Z WARN miktex-makefmt - running with administrator privileges 2019-02-24 23:00:27,803Z INFO makefmt - found input file: /usr/local/share/miktex-texmf/tex/latex/latexconfig/xelatex.ini 2019-02-24 23:00:27,803Z INFO makefmt - Creating the xelatex format file... 2019-02-24 23:00:27,803Z INFO makefmt - Running miktex-xetex... 2019-02-24 23:00:27,803Z INFO makefmt - running: miktex-xetex --miktex-disable-installer --miktex-disable-maintenance --initialize --interaction=nonstopmode --halt-on-error --alias=xelatex --job-name=xelatex --enable-etex xelatex.ini 2019-02-24 23:00:28,072Z FATAL miktex-makefmt - miktex-xetex failed on xelatex.ini. 2019-02-24 23:00:28,072Z FATAL miktex-makefmt - miktex-xetex failed on xelatex.ini. 2019-02-24 23:00:28,072Z FATAL miktex-makefmt - Info: 2019-02-24 23:00:28,072Z FATAL miktex-makefmt - Source: 2019-02-24 23:00:28,072Z FATAL miktex-makefmt - Line: 0 ```
DCRichards commented 4 years ago

I am also seeing this, as part of a series of errors resulting in xelatex not running. Any updates on this?

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

vincentb1 commented 3 years ago

@KOLANICH I have the same issue. I am progressing through it. It seems that the way forward is that you have to get all the needed packages like l3kernel.tar.lzma etc from some place (eg by wget https://ctan.crest.fr/tex-archive/systems/win32/miktex/tm/packages/l3kernel.tar.lzma), and tar xvf them to /usr/local/share/miktex-texmf, not to /miktex/.miktex/texmfs/install. Then call initexmf --admin --enable-installer --update-fndb, and then initexmf --admin --enable-installer --dump-by-name=xelatex --engine=xetex.

I still have the issue, but as I am adding the missing packages, it seems that I am going forward. I let you know, if I can get it working.

KOLANICH commented 3 years ago

@vincentb1, thanks for working on it. I have solved the issue by just stopping using MikTex and just using distro-shipped (I use Ubuntu) packages based on texlive. Though I haven't updated the GitLab pipeline mentioned. In fact MikTex was chosen for GitLab CI because it has an official ready-to-use Docker image. But now I am not using GitLab anymore.

vincentb1 commented 3 years ago

@KOLANICH Just to let you know that I finally managed to get it working. See this thread https://groups.google.com/g/fr.comp.text.tex/c/aIrrpWS3YiE for a discussion on it.

The root cause why it does not work is that the xetex on the MiKTeX docker is somehow older than the LaTeX kernel, and it does not compile because it does not support the \input{filename.tex} convention but only the traditional \input filename.tex (braces replaced by spaces).

So to make it work you just have to do the following:

1) download alll these packages from a MiKTeX repo, and update FNDB by initexmf --admin --enable-installer --default-paper-size=a4 --update-fndb

l3kernel.tar.lzma 
l3packages.tar.lzma 
cm.tar.lzma 
unicode-data.tar.lzma 
miktex-xetex.tar.lzma 
miktex-zzdb1-2.9.tar.lzma 
lm.tar.lzma 
latex-fonts.tar.lzma

2) hacks files expl3.ltx & xparse.ltx to use the traditional \input (braceless, argument space delimited), there is one occurence in each file.

3) initexmf --admin --enable-installer --dump-by-name=xelatex --engine=xetex and that's it.

KOLANICH commented 3 years ago

Thank you.

nklyshko commented 3 years ago

@vincentb1 Can you provide fixed Dockerfile with actions you've described?

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.