[Tex/LaTex] Error: MikTex console already running

miktex

When I try opening the MikTex console I get an error window saying "MiKTeX Console is already running". I tried closing literally every program, and I still get it. I opened Task Manager to see if it showed up there, but no. I tried restarting my laptop. I tried running the console as an administrator, but I get the same message. Any help? Thank you.

Best Answer

When I was in this situation, I found that MiKTeX had generated a file named miktex-console.lock in my user folder (C:\Users\MyUsername for Windows users). Deleting the file permitted the application to run.

It appears that the MiKTeX console, for whatever ridiculous reason, does not simply check for other instances of the miktex-console.exe process, and instead generates this "miktex-console.lock" file when launched. Deleting the offending file whenever it is created lets you run as many MiKTeX console instances as you like.

This is horrifically bad design.