MiKTeX / docker-miktex

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

Sorry, but pdflatex did not succeed #26

Closed lukasz-karolewski closed 3 years ago

lukasz-karolewski commented 3 years ago

using latest docker image, and newly created volume.

docker volume create --name miktex
docker run -it --rm \
  -v miktex:/miktex/.miktex \
  -v `pwd`:/miktex/work \
  -e MIKTEX_GID=$(id -g) \
  -e MIKTEX_UID=$(id -u) \
  miktex/miktex \
  pdflatex test.tex

This is pdfTeX, Version 3.14159265-2.6-1.40.20 (MiKTeX 2.9.6980)

Sorry, but pdflatex did not succeed.

The log file hopefully contains the information to get MiKTeX going again:

/miktex/.miktex/texmfs/data/miktex/log/pdflatex.log

2021-04-15 17:56:03,189Z INFO pdflatex - starting with command line: pdflatex test.tex 2021-04-15 17:56:03,190Z INFO pdflatex - running 'initexmf' to refresh the file name database 2021-04-15 17:56:03,678Z INFO pdflatex - running 'initexmf' to create font map files 2021-04-15 17:56:04,095Z INFO pdflatex - allowing known shell commands 2021-04-15 17:56:04,095Z INFO pdflatex - enabling input (output) from (to) processes 2021-04-15 17:56:04,098Z INFO pdflatex - going to create file: pdflatex.fmt 2021-04-15 17:56:11,540Z ERROR pdflatex - /usr/bin/initexmf did not succeed; exitCode: 1 2021-04-15 17:56:11,540Z ERROR pdflatex - output: 2021-04-15 17:56:11,540Z ERROR pdflatex - 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

2021-04-15 17:56:11,540Z FATAL pdflatex - The memory dump file could not be found. 2021-04-15 17:56:11,540Z FATAL pdflatex - Info: fileName="pdflatex.fmt" 2021-04-15 17:56:11,540Z FATAL pdflatex - Source: Libraries/MiKTeX/TeXAndFriends/texmfapp.cpp 2021-04-15 17:56:11,540Z FATAL pdflatex - Line: 689 2021-04-15 17:56:11,540Z INFO pdflatex - finishing with exit code 1

santunioni commented 3 years ago

I have exactly the same problem and I didn't make a work around yet.

lukasz-karolewski commented 3 years ago

I've ended up building local image from dockerfile

docker build . -t miktex/miktex

and it all worked

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.

msrumon commented 2 months ago

I've ended up building local image from dockerfile

docker build . -t miktex/miktex

and it all worked

I'm sorry, can you explain it a bit more please? I'm having this exact same issue. I used Docker Compose though.

volumes:
  miktex:

services:
  main:
    image: miktex/miktex
    volumes:
      - miktex:/var/lib/miktex
      - .:/miktex/work
    command:
      - pdflatex
      - xet.tex

xet.tex contains:

\documentclass{article}

\begin{document}
  Hello, World!
\end{document}

Then, docker compose up shows:

[+] Running 3/3
 ✔ Network xet_default   Created                                                                                                                                                                     0.1s 
 ✔ Volume "xet_miktex"   Created                                                                                                                                                                     0.0s 
 ✔ Container xet-main-1  Created                                                                                                                                                                     1.0s 
Attaching to main-1
main-1  | This is pdfTeX, Version 3.141592653-2.6-1.40.25 (MiKTeX 23.10) (preloaded format=pdflatex.fmt)
main-1  |  restricted \write18 enabled.
main-1  | 
main-1  | Sorry, but pdflatex did not succeed.
main-1  | 
main-1  | The log file hopefully contains the information to get MiKTeX going again:
main-1  | 
main-1  |   /var/lib/miktex/.miktex/texmfs/data/miktex/log/pdflatex.log
main-1 exited with code 1

pdflatex.log says:

2024-05-14 09:19:03,912Z INFO  pdflatex - this process (1) started by "unknown process" in directory /miktex/work with command line: pdflatex xet.tex
2024-05-14 09:19:03,912Z INFO  pdflatex - this is MiKTeX-PDFTEX 4.16.0 (1.40.25) (MiKTeX 23.10)
2024-05-14 09:19:03,912Z INFO  pdflatex - allowing known shell commands
2024-05-14 09:19:03,927Z INFO  pdflatex - going to create file: pdflatex.fmt
2024-05-14 09:19:03,977Z INFO  pdflatex.core - forking...
2024-05-14 09:19:07,693Z ERROR pdflatex - /usr/bin/miktex did not succeed; exitCode: 1
2024-05-14 09:19:07,693Z ERROR pdflatex - output:
2024-05-14 09:19:07,693Z ERROR pdflatex - Building format 'pdflatex' with engine 'pdftex'...

Sorry, but: The installed file does not exist.

2024-05-14 09:19:07,693Z FATAL pdflatex.core - The memory dump file could not be found.
2024-05-14 09:19:07,693Z FATAL pdflatex.core - Data: fileName="pdflatex.fmt"
2024-05-14 09:19:07,693Z FATAL pdflatex.core - Source: Libraries/MiKTeX/TeXAndFriends/texmfapp.cpp:697
2024-05-14 09:19:07,693Z FATAL pdflatex - The memory dump file could not be found.
2024-05-14 09:19:07,694Z FATAL pdflatex - Info: fileName="pdflatex.fmt"
2024-05-14 09:19:07,694Z FATAL pdflatex - Source: Libraries/MiKTeX/TeXAndFriends/texmfapp.cpp
2024-05-14 09:19:07,694Z FATAL pdflatex - Line: 697
2024-05-14 09:19:07,699Z INFO  pdflatex - this process (1) finishes with exit code 1
2024-05-14 09:19:07,706Z WARN  pdflatex - minor issue: It has been a long time since you have checked for MiKTeX updates.

Thanks in advance for your time and effort.