Missing files from the public directory

Version ie <v5.10.30>

Environment Docker

Checklist

  • NO - Can you replicate the issue on our v5 demo site https://demo.invoiceninja.com or Invoice Ninja?
  • YES - Have you searched existing issues?
  • YES - Have you inspected the logs in storage/logs/laravel.log for any errors?

Describe the bug

Suddenly the web version of the invoice ninja is not loading, with complaints for the following files - missing (from the browser console). See screenshot below.
Checked the public directory - it has no such files indeed. But then I see a ton of other files that start with index- and end with some hash/salt suffix.

Steps To Reproduce

I don’t know what caused this…

Expected Behavior

Additional context

Screenshots

Logs

Why do we have so many similar files in the public directory? And why could some files be missing suddenly?

How to clean up? Assuming this is some sort of update, how do we clean up older files?

So in order to fix this, I had to move /public directory, make a new public directory with 1500:1500 permissions. Recreate the container and copy contents of the new public to the old public.
Then swap it back - and it works.

Sounds like an update process that doesn’t work properly.
Didn’t find any hint about this in logs yet.

Glad to hear it, thanks for sharing the fix!

cc @ben

It’s not really a fix though. Just a workaround. I suspect the same thing might happen again.
Still don’t know what caused this.

I forgot to mention, the setup is using the dockerfiles/debian/docker-compose.yml at debian · invoiceninja/dockerfiles · GitHub as official guide in this case.