Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Add arm64 compatible docker-compose for sqlite-tika #1354

Closed
wants to merge 11 commits into from
Closed

Add arm64 compatible docker-compose for sqlite-tika #1354

wants to merge 11 commits into from

Conversation

iwishiwasaneagle
Copy link

@iwishiwasaneagle iwishiwasaneagle commented Sep 30, 2021

As per this discussion, #1256, the Tika docker-compose variants weren't working as apache/tika only supports amd64 and not arm64. I forked the apache/tika-docker repo and build for both amd64 and arm64 https://github.com/iwishiwasaneagle/tika-docker.

This PR just adds a docker-compose using the new arm64 compatible Tika image + updates to the docs.

@iwishiwasaneagle iwishiwasaneagle changed the title Add arm64 compatible docker-compose Add arm64 compatible docker-compose for sqlite-tika Sep 30, 2021
@smseidl
Copy link

smseidl commented Oct 10, 2021

Tried to use this image tonight and got this error:

pi@pi3:~/paperlessng $ docker pull iwishiwasaneagle/apache-tika-arm
Using default tag: latest
latest: Pulling from iwishiwasaneagle/apache-tika-arm
no matching manifest for linux/arm/v7 in the manifest list entries

@smseidl
Copy link

smseidl commented Oct 10, 2021

@iwishiwasaneagle - I was going to create an issue for you, but wasn't able to... please see error above.

@iwishiwasaneagle
Copy link
Author

iwishiwasaneagle commented Oct 10, 2021 via email

@iwishiwasaneagle
Copy link
Author

@iwishiwasaneagle - I was going to create an issue for you, but wasn't able to... please see error above.

@smseidl without knowing too much about Tika, it's due to 64-bit not compiling. Check this stackoverflow thread out for more info on armv7 vs arm64.

More info that's lead me to this conclusion:

  1. The amr64, armv7 and amd64 github action build failed here
  2. I removed armv7 from the github action workflow file in this commit
  3. The following build succeeded
  4. Original apache/tika docker image only supports amd64 and no other architecture

If you know of a fix, please let me know! Currently I have this running flawelessly on a RaspberryPi 4 (arm64) but I understand people might want to use the RPi 3b+ (armv7).

@smseidl
Copy link

smseidl commented Oct 10, 2021 via email

@iwishiwasaneagle
Copy link
Author

@sbrl

So that docker image is for Tika 1.24.1. I've tried building versions < 2.0.0 for linux/arm/v7 and that also didn't seem to work. I guess the root issue is within apache/tika-docker and I don't have the time to get that all to run correctly. All that aside, I would consider the RPi 3b+ to be under powered for the paperless + tika anyway.

@smseidl
Copy link

smseidl commented Oct 11, 2021

@iwishiwasaneagle - I am using a RPi 4B with 4 GB Ram, and using the Raspberry Light OS.... is there a different OS you recommend for a headless install?

@iwishiwasaneagle
Copy link
Author

@iwishiwasaneagle - I am using a RPi 4B with 4 GB Ram, and using the Raspberry Light OS.... is there a different OS you recommend for a headless install?

Oh... Well I guess maybe it's then to do with the OS? I use the ubuntu server image (been very stable and fast for me) https://ubuntu.com/download/raspberry-pi. I assumed that newer versions of raspbian would enable arm64 support. My uname -a output is below.

Just FYI for any contributors to the repo, I specifically omitted armv7 from the updated docs for this reason originally https://github.com/jonaswinkler/paperless-ng/pull/1354/files#diff-b0b89f41ca376dee302b0354603ee4a994e16c428dadfb23f2c24d19353b3df5R3


ubuntu@ubuntu:~$ uname -a
Linux ubuntu 5.11.0-1019-raspi #20-Ubuntu SMP PREEMPT Tue Sep 21 15:23:42 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux

@smseidl
Copy link

smseidl commented Oct 11, 2021 via email

@smseidl
Copy link

smseidl commented Dec 7, 2021

I did update from Raspberry OS Light (32 bit) to Ubuntu 64 bit, and then I was able to use this

tika:
    image: iwishiwasaneagle/apache-tika-arm
    restart: unless-stopped

@iwishiwasaneagle
Copy link
Author

I did update from Raspberry OS Light (32 bit) to Ubuntu 64 bit, and then I was able to use this

tika:
    image: iwishiwasaneagle/apache-tika-arm
    restart: unless-stopped

Glad it's working!

@jonaswinkler any update?

iwishiwasaneagle and others added 5 commits March 21, 2022 08:59
@iwishiwasaneagle
Copy link
Author

Closed in paperless-ngx/paperless-ngx#479

tribut pushed a commit to tribut/paperless-ng that referenced this pull request Aug 18, 2022
…ion-chains

Bugfix: Chain exceptions during exception handling
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants