"No preview is available for this document"

I’m getting “No preview is available” on my production setup for any document I’m trying to view. I started with the “example” documents; but also uploaded PDFs or otherwise say there’s no preview. Firefox’s console shows no errors, downloading the document works fine. This is a rather plain production environment, semi-scripted setup, one user. As it’s a new environment, I can imagine that I just forgot something (as I did before). ALEPH_UI_URL=http://localhost:8080/ and I’m seeing the Aleph site through an ssh connection with -L8080:localhost:8080, so that’s not the culprit.

Also, a newly setup dev environment on another host does show previews.

What could be wrong here? Both (dev and production) are Aleph 3.17.0. To setup, I only ran sysctl -w vm.max_map_count=262144; docker-compose up, in another terminal docker-compose run --rm shell aleph upgrade, then ran aleph crawldir /aleph/contrib/testdata, made a user with aleph createuser and that’s about it.

I think your best bet here is to check the docker logs for anything going wrong when you are making those requests to preview pdf files as well as checking your browser network tab for any potential 404s or similar network errors.

Hmm, OK, I found out what was wrong - I set up ARCHIVE_PATH as a host (i.e. not docker) storage path. I’m a bit confused as to why Aleph doesn’t yell at me when I try to upload documents in this environment - it does index them but afterwards cannot show them, apparently.