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

Error Nextcloud with Redis #1713

Closed
IsmaStifler opened this issue Nov 7, 2023 · 6 comments
Closed

Error Nextcloud with Redis #1713

IsmaStifler opened this issue Nov 7, 2023 · 6 comments

Comments

@IsmaStifler
Copy link

IsmaStifler commented Nov 7, 2023

Hi, I'm checking that when I enable redis, my external storage becomes inaccessible, even though it appears green, it doesn't show up in my files.

I understand what a bug with redis?

<?php
if (getenv('REDIS_HOST')) {
  $CONFIG = array(
    'memcache.distributed' => '\OC\Memcache\Redis',
    'memcache.locking' => '\OC\Memcache\Redis',
    'redis' => array(
      'host' => getenv('REDIS_HOST'),
      'password' => (string) getenv('REDIS_HOST_PASSWORD'),
    ),
  );

  if (getenv('REDIS_HOST_PORT') !== false) {
    $CONFIG['redis']['port'] = (int) getenv('REDIS_HOST_PORT');
  } elseif (getenv('REDIS_HOST')[0] != '/') {
    $CONFIG['redis']['port'] = 6379;
  }
}

Add to config.php

'filelocking.enabled' => true,
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => array(
'host' => 'localhost',
'port' => 6379,
'timeout' => 0.0,
'password' => '', // Optional, if not defined no password will be used.
),

@pabloeisenhut
Copy link

Seems to me like the port is wrong. you have to use the external port that was used in the Redis app. (At least port 9000)

@stavros-k
Copy link
Contributor

I'm not sure what the issue is here, our Nextcloud does not have a redis service built-in yet (#1304),
If its a configuration issue on Nextcloud, you should ask in the Nextcloud's support channel.

@IsmaStifler
Copy link
Author

I'm not sure what the issue is here, our Nextcloud does not have a redis service built-in yet (#1304), If its a configuration issue on Nextcloud, you should ask in the Nextcloud's support channel.

image

@IsmaStifler
Copy link
Author

IsmaStifler commented Nov 9, 2023

Seems to me like the port is wrong. you have to use the external port that was used in the Redis app. (At least port 9000)

yes, install the redis app allocate everything but like nothing, when I activate redis I can't access the external storage mounts, they become inaccessible

port 30036

@stavros-k
Copy link
Contributor

I still don't think the issue is on our Application.
I'd suggest you reach to Nextcloud's support channels

@stavros-k
Copy link
Contributor

Closing this, you can track addition of redis dependency in the linked issue above.

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

No branches or pull requests

3 participants