friendica / docker

Docker image for Friendica
https://friendi.ca
GNU Affero General Public License v3.0
50 stars 19 forks source link

Debian Bookworm has problems with memcached #261

Closed ne20002 closed 2 months ago

ne20002 commented 3 months ago

After installing the current dev version from hub.docker.com I get a few warnings about extensions not being loaded (I haven't faced this with my local tests so it seems as if I might have missed something).

PHP Warning:  PHP Startup: Unable to load dynamic library 'gd.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20220829/gd.so (libpng16.so.16: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20220829/gd.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20220829/gd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

PHP Warning:  PHP Startup: Unable to load dynamic library 'imagick' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20220829/imagick (/usr/local/lib/php/extensions/no-debug-non-zts-20220829/imagick: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20220829/imagick.so (libMagickWand-6.Q16.so.6: cannot open shared object file: No such file or directory)) in Unknown on line 0

PHP Warning:  PHP Startup: Unable to load dynamic library 'memcached' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20220829/memcached (/usr/local/lib/php/extensions/no-debug-non-zts-20220829/memcached: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20220829/memcached.so (libmemcached.so.11: cannot open shared object file: No such file or directory)) in Unknown on line 0

PHP Warning:  PHP Startup: Unable to load dynamic library 'zip.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20220829/zip.so (libzip.so.4: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20220829/zip.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20220829/zip.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

The only problem I see is that images are not displayed in the web interface. I don't see any issues when using Tusky as client. The memcache may also affect performance.

The changes to the Dockerfile is just an update

I already added

zlib1g-dev \
libssl-dev \

to the packages installed as those have been missed and needed to be installed with the update to php 8.2 (as described here.

Any help on this issue is most welcome.

ne20002 commented 3 months ago

looking for the first file, it is there:

root@friendica:/var/www/html# ls -la /usr/local/lib/php/extensions/no-debug-non-zts-20220829/
total 8404
drwxr-xr-x 1 root root    4096 Aug 26 22:27 .
drwxr-xr-x 1 root root    4096 Aug 13 04:06 ..
-rw-r--r-- 1 root root  426864 Aug 26 22:26 apcu.so
-rwxr-xr-x 1 root root   14552 Aug 26 22:25 ctype.so
-rwxr-xr-x 1 root root   92888 Aug 26 22:25 exif.so
-rwxr-xr-x 1 root root  419056 Aug 26 22:25 gd.so
-rwxr-xr-x 1 root root   80888 Aug 26 22:25 gmp.so
-rw-r--r-- 1 root root 1351288 Aug 26 22:27 imagick.so
-rwxr-xr-x 1 root root  604944 Aug 26 22:26 intl.so
-rwxr-xr-x 1 root root  101720 Aug 26 22:25 ldap.so
-rw-r--r-- 1 root root  524672 Aug 26 22:26 memcached.so
-rwxr-xr-x 1 root root 1030424 Aug 26 22:25 opcache.so
-rwxr-xr-x 1 root root   47832 Aug 26 22:25 pcntl.so
-rwxr-xr-x 1 root root   35448 Aug 26 22:24 pdo_mysql.so
-rw-r--r-- 1 root root 3634896 Aug 26 22:26 redis.so
-rwxr-xr-x 1 root root  113944 Aug 13 04:06 sodium.so
-rwxr-xr-x 1 root root   93496 Aug 26 22:25 zip.so
root@friendica:/var/www/html# 

I'm currently a bit confused on the no-debug-non-zts-20220829 part

But all four missing files are there. Either the first or second load shall find the file.

ne20002 commented 3 months ago

I'm not sure if this is related to #262 but it's worth a test. It's not related.

ne20002 commented 2 months ago

I have updated my setup and reproduce the problem locally now. The Alpine image is not affected, it's clearly a problem with bookworm, there are many posts online related.

ne20002 commented 2 months ago

PR #14412 will align the dev container setup with the docker setup. This should help finding the problem with memcached in bookworm.