raphaelreyna / latte

Programatic document generation as a HTTP service. Render PDFs using LaTeX templates and JSON.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

{"error":"getwd: no such file or directory"}

nermolov opened this issue · comments

Occasionally the system gets into a state where it always starts returning {"error":"getwd: no such file or directory"} instead of PDF files until the daemon is restarted. I'd take a stab at fixing the issue but I'm unable to reproduce it consistently, does anybody have any ideas on what could be the cause?

Sounds like maybe files aren't being closed and so eventually LaTTe has too many file descriptors open. I'm not sure if that would lead to that error message though.

The next LaTTe update will be focused on improved logging so hopefully we can get some more info on this.

Do you have an idea of how long LaTTe was running for before this error came up?

Also, thanks for the bug report!

i've just now successfully reproduced this twice, the first time after generating ~1600 pdfs, the second time after 108 (with 4 scripts running in parallel)

some requests go through sporadically after the first error, and a few requests returned "404 page not found"

@shmibs could you share the script you used to reproduce this?

ah sure, here, though it's nothing special: https://gist.github.com/shmibs/749bc35b492af14776d90e7478a3e854

just a small template with lipsum and a randomised title / author

some requests go through sporadically after the first error, and a few requests returned "404 page not found"

hmm this is interesting...
Can LaTTe still be pinged at /ping after this happens? If successful, it should just return PONG

yes!