MiKTeX / miktex

the MiKTeX source code
https://miktex.org
Other
801 stars 95 forks source link

pdflatex broken on docker image 23.10 #1431

Open pjmolina opened 10 months ago

pjmolina commented 10 months ago

pdflatex seems to be broken on docker image 23.10

Minimal repro:

Basic command sample to compile with pdflatex (as provided by docs):

docker run -ti -v miktex:/var/lib/miktex -v `pwd`:/miktex/work -e MIKTEX_UID=`id -u` miktex/miktex:essential pdflatex main.tex

Expected output

Compile any working main.tex to PDF. This command was working with previous versions of the docker image. Now broken on version 23.10.

Actual output

This is pdfTeX, Version 3.141592653-2.6-1.40.25 (MiKTeX 23.10) (preloaded format=pdflatex.fmt)
 restricted \write18 enabled.

Sorry, but pdflatex did not succeed.

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

  /var/lib/miktex/.miktex/texmfs/data/miktex/log/pdflatex.log

File /var/lib/miktex/.miktex/texmfs/data/miktex/log/pdflatex.log is missing.

Errors on /var/lib/miktex/.miktex/texmfs/data/miktex/log/initextmf.log

2023-10-06 08:41:56,008Z WARN  initexmf.packagemanager - dependency problem: showframe is required by _miktex-latex-packages
2023-10-06 08:41:56,008Z WARN  initexmf.packagemanager - dependency problem: thailatex is required by _miktex-latex-packages

x5

2023-10-06 08:42:00,655Z ERROR initexmf.core - Something is wrong with the PATH:
2023-10-06 08:42:00,655Z ERROR initexmf.core - /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2023-10-06 08:42:00,656Z ERROR initexmf.core - Something is wrong with the PATH:
2023-10-06 08:42:00,656Z ERROR initexmf.core - /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

Errors on /var/lib/miktex/.miktex/texmfs/data/miktex/log/miktex.log

2024-01-15 19:32:12,167Z ERROR miktex - sub-process error output has been saved to '/var/lib/miktex/.miktex/texmfs/data/miktex/log/miktex-makefmt_2024-01-15-193212.out'
2024-01-15 19:32:12,167Z FATAL miktex - The installed file does not exist.
2024-01-15 19:32:12,167Z FATAL miktex - Info: fileName="/var/lib/miktex/.miktex/texmfs/install/tex/latex/00miktex/pdflatex.ini"
2024-01-15 19:32:12,167Z FATAL miktex - Source: Libraries/MiKTeX/Core/Session/findfile.cpp
2024-01-15 19:32:12,167Z FATAL miktex - Line: 61

Hypothesis: Looks like some files for pdflatex are missing in the docker image.

I was trying to reproduce the difference with respect to the previous docker image version, however, looks like they were deleted. Only version 23.10 seems to be available on docker-hub.

miktex-report:

ReportDate: 2024-01-15 19:54:27
CurrentVersion: 23.10
SetupDate: 2023-10-06 08:42:00
SetupVersion: 23.10
Configuration: Regular
GitInfo: 3f4a6a7 / 2023-10-04 18:18:19
OS: Linux 5.15.133.1-microsoft-standard-WSL2 #1 SMP Thu Oct 5 21:02:42 UTC 2023 x86_64
SharedSetup: no
LinkTargetDirectory: /var/lib/miktex/bin
PathOkay: yes
LastUpdateCheck: 2023-10-06 08:42:05
LastUpdate: 2023-10-06 08:42:09
LastUpdateDb: 2023-10-06 08:42:05
SystemAdmin: no
RootPrivileges: no
AdminMode: no
Root0: /var/lib/miktex/.miktex/texmfs/config
Root1: /var/lib/miktex/.miktex/texmfs/data
Root2: /var/lib/miktex/.miktex/texmfs/install
UserInstall: /var/lib/miktex/.miktex/texmfs/install
UserConfig: /var/lib/miktex/.miktex/texmfs/config
UserData: /var/lib/miktex/.miktex/texmfs/data  
StEvUgnIn commented 9 months ago

I would like to report the same problem with the latest image revision: 23.10

StEvUgnIn commented 6 months ago

Thanks @pjmolina

CerqueiraMatheus commented 4 months ago

Any workaround available on this?

github-actions[bot] commented 1 month ago

This issue has been marked as stale due to inactivity.

pjmolina commented 1 month ago

Any plans for a fixed version?

FlorianAlbert commented 1 month ago

I just found a workaround for me that when calling miktex packages update before the pdflatex call inside of the container it works. Although somehow when creating my own image based on the MiKTeX image, calling it on build in the Dockerfile doesn't work, so it has to be called later inside the container.