RuntimeError: sendfile582: Input/output error

To any future users who encounter this or a similar issue and are using docker: take a look at this thread, where another solution was found.