Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pdflatex broken on docker image 23.10 #1431

Open
1 task done
pjmolina opened this issue Jan 15, 2024 · 8 comments
Open
1 task done

pdflatex broken on docker image 23.10 #1431

pjmolina opened this issue Jan 15, 2024 · 8 comments

Comments

@pjmolina
Copy link

pjmolina commented Jan 15, 2024

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
Copy link

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

@pjmolina pjmolina changed the title pdflatex broken on docker image 2.30 pdflatex broken on docker image 23.10 Jan 25, 2024
@StEvUgnIn
Copy link

Thanks @pjmolina

@CerqueiraMatheus
Copy link

Any workaround available on this?

Copy link

This issue has been marked as stale due to inactivity.

@pjmolina
Copy link
Author

Any plans for a fixed version?

@FlorianAlbert
Copy link

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.

Copy link

This issue has been marked as stale due to inactivity.

@pjmolina
Copy link
Author

Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants