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

php-redis is crashing #2071

Closed
schreibubi opened this issue Sep 23, 2023 · 4 comments
Closed

php-redis is crashing #2071

schreibubi opened this issue Sep 23, 2023 · 4 comments

Comments

@schreibubi
Copy link

schreibubi commented Sep 23, 2023

Since an upgrade last week my nextcloud instance is crashing in php-redis:
[Sat Sep 23 18:05:25.143830 2023] [core:notice] [pid 1] AH00051: child pid 53 exit signal Segmentation fault (11>
Process 834558 (apache2) of user 100032 dumped core.

Stack trace of thread 54:
#0 0x00007f8f09250c69 n/a (/usr/local/lib/php/extensions/no-debug-non-zts-20220829/redis.so + 0x6bc69)
#1 0x000000000000000e n/a (n/a + 0x0)
ELF object binary architecture: AMD x86-64

I'm running nextcloud:latest as of today.

@robeatoz
Copy link

I encountered the same issue with my Nextcloud instance running on the image nextcloud:27.1.1-apache. As a temporary workaround, I've disabled Redis by commenting out the memcache.distributed and memcache.locking lines in the config.php file. Here's the relevant snippet:

  'memcache.local' => '\\OC\\Memcache\\APCu',
  // 'memcache.distributed' => '\\OC\\Memcache\\Redis',
  // 'memcache.locking' => '\\OC\\Memcache\\Redis',

By doing so, I've managed to stabilize my Nextcloud instance until a permanent fix is available.

@schreibubi
Copy link
Author

Thanks! Disabling both memcache settings got me back into a working state. I had to also disable these lines in redis.config.php, since I've been setting the REDIS_HOST variable..

@joshtrichards
Copy link
Member

This might need to be fixable by bumping up the underlying php image, which would bring in a bump from phpredis v6.0.0 to v6.0.1 and PHP to v8.2.11:

https://github.com/phpredis/phpredis/blob/develop/CHANGELOG.md#601---2023-09-23-github-pecl
https://www.php.net/ChangeLog-8.php#PHP_8_2

I'm particularly suspicious of phpredis/phpredis#2390

@J0WI
Copy link
Contributor

J0WI commented Oct 3, 2023

fef9785

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants