jonaswinkler / paperless-ng

A supercharged version of paperless: scan, index and archive all your physical documents
https://paperless-ng.readthedocs.io/en/latest/
GNU General Public License v3.0
5.38k stars 352 forks source link

[BUG] Tika container cannot start on Raspberry Pi4 #1528

Closed FredNov closed 2 years ago

FredNov commented 2 years ago

Describe the bug Tika container constantly restarting.

To Reproduce Steps to reproduce the behavior:

  1. Download docker-compose.postgres-tika.yml
  2. docker-compose up
  3. Container starts and then immediately exits with the following error

command docker logs -f paperless-tika-1 shows

standard_init_linux.go:228: exec user process caused: exec format error standard_init_linux.go:228: exec user process caused: exec format error standard_init_linux.go:228: exec user process caused: exec format error standard_init_linux.go:228: exec user process caused: exec format error standard_init_linux.go:228: exec user process caused: exec format error

Expected behavior The container should be up and running

Relevant information

nbently commented 2 years ago

This is probably because the tika images aren't built for arm (RPi architecture). Check out https://github.com/abhilesh/apache-tika-arm. It looks like they created these tika images specifically so tika would work with paperless-ng on an RPi. Looks like they also made available some template files for running paperless on an RPi: https://github.com/abhilesh/self-hosted_docker_setups/tree/main/paperless-ng.

Edit: Caveat that it's always good to build your own docker images in lieu of running things you find on the internet (for security reasons).