Fix “object from LD_PRELOAD cannot be preloaded” error

Recently my Gitlab installation broke with this error:

ERROR: ld.so: object '/opt/gitlab/embedded/lib/libjemalloc.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
2022-04-18_11:18:30.73820 /usr/bin/env: '/opt/gitlab/embedded/bin/bundle': Permission denied

After some hours of debugging, this was the solution: Change /opt directory permissions from 0750 to 0755… Yeah. Maybe this little tidbit helps you avoid those hours. You’re welcome.


Posted

in

,

by

Tags: