Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restserver docker image issues - NoSuchFieldError: EPOCH #1712

Closed
jberggg opened this issue Aug 22, 2022 · 1 comment · Fixed by #1713
Closed

Restserver docker image issues - NoSuchFieldError: EPOCH #1712

jberggg opened this issue Aug 22, 2022 · 1 comment · Fixed by #1713
Labels
bug Something isn't working or in unexpected ways docker All things regarding docker setup

Comments

@jberggg
Copy link

jberggg commented Aug 22, 2022

As discussed in the docspell matrix channel the rest-server of my docspell installation crashes completely if I do certain item searches:

Aug 21 19:35:46 cargoship docspell-restserver[222584]: java.lang.NoSuchFieldError: EPOCH
Aug 21 19:35:46 cargoship docspell-restserver[222584]:         at docspell.store.queries.QItem$.$anonfun$findRelatedItems$2(QItem.scala:138)
Aug 21 19:35:46 cargoship podman-docspell-restserver-start[222442]: java.lang.NoSuchFieldError: EPOCH
Aug 21 19:35:46 cargoship podman-docspell-restserver-start[222442]:         at docspell.store.queries.QItem$.$anonfun$findRelatedItems$2(QItem.scala:138)
Aug 21 19:35:46 cargoship podman-docspell-restserver-start[222442]:         at cats.free.Free.$anonfun$step$1(Free.scala:55)
Aug 21 19:35:46 cargoship podman-docspell-restserver-start[222442]:         at cats.free.Free.step(Free.scala:56)
Aug 21 19:35:46 cargoship podman-docspell-restserver-start[222442]:         at cats.free.Free.$anonfun$foldMap$1(Free.scala:143)
Aug 21 19:35:46 cargoship podman-docspell-restserver-start[222442]:         at cats.data.KleisliFlatMap.$anonfun$tailRecM$2(Kleisli.scala:665)
Aug 21 19:35:46 cargoship podman-docspell-restserver-start[222442]:         at cats.StackSafeMonad.tailRecM(StackSafeMonad.scala:37)
Aug 21 19:35:46 cargoship docspell-restserver[222584]:         at cats.free.Free.$anonfun$step$1(Free.scala:55)
Aug 21 19:35:46 cargoship podman-docspell-restserver-start[222442]:         at cats.StackSafeMonad.tailRecM$(StackSafeMonad.scala:36)
Aug 21 19:35:46 cargoship podman-docspell-restserver-start[222442]:         at cats.effect.IO$$anon$4.tailRecM(IO.scala:1498)
Aug 21 19:35:46 cargoship podman-docspell-restserver-start[222442]:         at cats.StackSafeMonad.$anonfun$tailRecM$1(StackSafeMonad.scala:38)
Aug 21 19:35:46 cargoship podman-docspell-restserver-start[222442]:         at cats.effect.IOFiber.succeeded(IOFiber.scala:1185)
Aug 21 19:35:46 cargoship podman-docspell-restserver-start[222442]:         at cats.effect.IOFiber.runLoop(IOFiber.scala:268)
Aug 21 19:35:46 cargoship podman-docspell-restserver-start[222442]:         at cats.effect.IOFiber.autoCedeR(IOFiber.scala:1393)
Aug 21 19:35:46 cargoship podman-docspell-restserver-start[222442]:         at cats.effect.IOFiber.run(IOFiber.scala:146)
Aug 21 19:35:46 cargoship podman-docspell-restserver-start[222442]:         at cats.effect.unsafe.WorkerThread.run(WorkerThread.scala:425)
Aug 21 19:35:46 cargoship docspell-restserver[222584]:         at cats.free.Free.step(Free.scala:56)
Aug 21 19:35:46 cargoship docspell-restserver[222584]:         at cats.free.Free.$anonfun$foldMap$1(Free.scala:143)
Aug 21 19:35:46 cargoship docspell-restserver[222584]:         at cats.data.KleisliFlatMap.$anonfun$tailRecM$2(Kleisli.scala:665)
Aug 21 19:35:46 cargoship docspell-restserver[222584]:         at cats.StackSafeMonad.tailRecM(StackSafeMonad.scala:37)
Aug 21 19:35:46 cargoship docspell-restserver[222584]:         at cats.StackSafeMonad.tailRecM$(StackSafeMonad.scala:36)
Aug 21 19:35:46 cargoship docspell-restserver[222584]:         at cats.effect.IO$$anon$4.tailRecM(IO.scala:1498)
Aug 21 19:35:46 cargoship docspell-restserver[222584]:         at cats.StackSafeMonad.$anonfun$tailRecM$1(StackSafeMonad.scala:38)
Aug 21 19:35:46 cargoship docspell-restserver[222584]:         at cats.effect.IOFiber.succeeded(IOFiber.scala:1185)
Aug 21 19:35:46 cargoship docspell-restserver[222584]:         at cats.effect.IOFiber.runLoop(IOFiber.scala:268)
Aug 21 19:35:46 cargoship docspell-restserver[222584]:         at cats.effect.IOFiber.autoCedeR(IOFiber.scala:1393)
Aug 21 19:35:46 cargoship docspell-restserver[222584]:         at cats.effect.IOFiber.run(IOFiber.scala:146)
Aug 21 19:35:46 cargoship docspell-restserver[222584]:         at cats.effect.unsafe.WorkerThread.run(WorkerThread.scala:425)``` 

I run the docspell/restserver:v0.38.0 image on ARM but same happens with latest tag.

@eikek pointed out that this could be an incompatibility issue with jdk8. One would need to update the docker image to contain jdk11. This caused some troubles in the past according to @eikek that's why the images have jdk8 installed. I will give it a go but don't expect too much, I'm very low on time at the moment.

@eikek
Copy link
Owner

eikek commented Aug 22, 2022

Thanks for reporting! The issue mentioned regarding problems related to the jdk is #1417. This problem here only applies to the arm64 docker images. The others use jdk11.

@eikek eikek added bug Something isn't working or in unexpected ways docker All things regarding docker setup labels Aug 22, 2022
@eikek eikek added this to the Docspell 0.39.0 milestone Aug 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working or in unexpected ways docker All things regarding docker setup
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants