I solved my problem, but I would like to know why it appeared in the first place.
The following code is a MWE of the code I had. It worked for quite long until I updated a lot of my software on my computer. After that it just did not work anymore and with the errors I couldn't directly find the solution.
\documentclass{scrbook}
\usepackage{tikz}
\usetikzlibrary{external}
\tikzexternalize
\begin{document}
\tikzsetnextfilename{.tikz_external/fig1}%
\begin{tikzpicture}
\draw (0,0 ) -- (1,1);
\end{tikzpicture}
\end{document}
If you notice, I used to store all externalized figure stuff in the folder .tikz_external
. After a long while I noticed that this is the problem. If I delete the point in the folder name, everything works again.
Now I would like to know why this behavior changed. Furthermore, even after finding the problem, I found nothing about that behavior. Is this not described anywhere?
edit: I'm using the latest MikTex distribution (2.9.6360).
the error ist
! I can't write on file `.tikz_external/fig1.md5'.
<to be read again>
\relax
l.10 \end{tikzpicture}
Please type another output file name
! Emergency stop.
<to be read again>
\relax
l.10 \end{tikzpicture}
*** (job aborted, file error in nonstop mode)
from this error, I just knew pdflatex can't write on the file but not why. And as I said, before I updated the distribution everything worked as expected.