gitea: Snap on Raspberry Pi (Raspbian), 500 error page, related to `libarmmem-${PLATFORM}.so` and `/etc/ld.so.preload`
Gitea Version
All snap Gitea on Raspbian
Description
After installation, Gitea seems working, however, when git clone/push or view from web, Gitea reports 500 error.
The error in logs is:
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored
There is a workaround in comments.
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 18 (12 by maintainers)
Ok, fixed.
It seems Gitea does not need (for the tests I have done) that libarmmem-${PLATFORM}.so module.
First I have tried using the /usr/lib/arm-linux-gnueabihf/libarmmem-v7l.so, in the /etc/ld.so.preload conf file (related to the arch of this Raspberry Pi), then restarted Gitea and no progress.
So, just as a try, I just commented that single line in /etc/ld.so.preload: now the migration/cloning/creation repo processes works as expected (and blazing fast). Checked these processes on gitea.log in tail -f mode and no errors as output during the execution.
For me, for now, this issues can be closed (and informing other users on this approach, if they want to try it).
Many thanks for the log related suggestion (I did not change console to file in the app.ini).
In any case I will monitor the situation on Gitea to see if other functions will not work.
Kind regards.
Note: https://forum.snapcraft.io/t/snapd-on-raspbian-stretch/1419 this is only a problem due to Raspbian having incorrect files.
Yep, the issue is not related directly to Gitea (at the beginning of this thread I was thinking it was related to it, but later I realized that it was related, in my case, to the following .so loaded into /etc/ld.so.preload:
/usr/lib/arm-linux-gnueabihf/libarmmem-v7l.so
I have just commented it and restarted gitea in snap. No more error 500 and mirroring issues.