klo2k / nexus3-docker

ARM Docker image of Sonatype Nexus Repository Manager (NXRM) (Raspberry Pis - armv7l, aarch64)
GNU General Public License v3.0
109 stars 39 forks source link

failed to map segment from shared object #14

Closed hppyworld closed 2 years ago

hppyworld commented 2 years ago

There is a bug on raspberry pi arm64 ubuntu java.lang.UnsatisfiedLinkError: /nexus-data/tmp/jna1594202494393200442.tmp: /nexus-data/tmp/jna1594202494393200442.tmp: failed to map segment from shared object

Please tell me how to fix it. thanks

klo2k commented 2 years ago

I'm gonna need to dig my Ubuntu image out to check this out.

In the mean time, how did you get to this error?

hppyworld commented 2 years ago

I just simply run your image with docker compose and volumes are externally mounter to specific local path. On Raspberry Pi running Ubuntu arm 64

hppyworld commented 2 years ago

I found the issue took long time to understand it. Problem was fstab connected harddisk had no exec permission. user in fstab was overridding exec. So this strange issues happened in nexus. thanks. Its solved now.

klo2k commented 2 years ago

I'm glad you got to the bottom of this. Hopefully your solution will help others with the same problem.

Another thing to check would be ownership - especially when bind-mounting from host filesystem (I do that btw :slightly_smiling_face: ).

Make sure your host's directory is owned by 200:200 - the uid:gid nexus is running inside the container.

Alternatively, use actual docker-volume to avoid this hassle.