Skip to content

prefix redis channels with redis db id (updated v1.4.0) - #673

Open
neil-lcv-cs wants to merge 4 commits into
nextcloud:mainfrom
neil-lcv-cs:redis-prefix-2
Open

neil-lcv-cs wants to merge 4 commits into
nextcloud:mainfrom
neil-lcv-cs:redis-prefix-2

Conversation

@neil-lcv-cs

Copy link
Copy Markdown

Basically #202 merged with upstream changes and conflicts resolved.

Ideally this should be modified to follow @ldidry’s suggestion to use NEXTCLOUD_URL as a DB prefix (see the review), though I lack knowledge in PHP and Nextcloud’s inner workings to know how to get this variable from PHP. Feel free to contribute!

@neil-lcv-cs

Copy link
Copy Markdown
Author

I’ve been using this in production for a few high-traffic servers (using dbindex in config.php) and it works great.

@github-actions

github-actions Bot commented Dec 9, 2025

Copy link
Copy Markdown

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

@neil-lcv-cs neil-lcv-cs changed the title prefix redis channels with redis db id (updated v1.2.1) prefix redis channels with redis db id (updated v1.3.0) Mar 11, 2026
@neil-lcv-cs

Copy link
Copy Markdown
Author

Updated the PR to latest master commit, thus adding support for NC33.

Signed-off-by: neil-lcv-cs <142019916+neil-lcv-cs@users.noreply.github.com>
@neil-lcv-cs

Copy link
Copy Markdown
Author

PR updated to latest master, merge conflict fixed. Compatible NC34.

@neil-lcv-cs neil-lcv-cs changed the title prefix redis channels with redis db id (updated v1.3.0) prefix redis channels with redis db id (updated v1.3.3) Jul 19, 2026
@neil-lcv-cs neil-lcv-cs changed the title prefix redis channels with redis db id (updated v1.3.3) prefix redis channels with redis db id (updated v1.4.0) Sep 1, 2026
@ASerbinski

ASerbinski commented Oct 19, 2026 •

Copy link
Copy Markdown

***>>> Nevermind, I found the issue, I forgot to apply the php changes.

Hi @neil-lcv-cs ; I'm trying to test this commit and having trouble getting it to work with my nextcloud instances.

I checked out v1.4.1 and it compiles and runs fine for me, just obviously still including the issue that this patch is supposed to correct. However when I cherry pick your commit 3b1e6a7 , I get the following error when running the notify_push self test:

# sudo -u apache ./occ notify_push:self-test
✓ redis is configured
🗴 push server is not receiving redis messages (received 64940513, got 0)

My redis configs...
First instance:

'redis' =>
  array (
    'host' => 'localhost',
    'port' => 6379,
    'timeout' => 3,
    'dbindex' => 0,
  ),

Second instance:

'redis' =>
  array (
    'host' => 'localhost',
    'port' => 6379,
    'timeout' => 3,
    'dbindex' => 2,
  ),

Is there some additional configuration required?

@neil-lcv-cs

neil-lcv-cs commented Oct 20, 2026 •

Copy link
Copy Markdown
Author

Is there some additional configuration required?

Did you configure your redis instance to allow multiple databases?

Start your redis instance using the --databases parameter followed by the number of databases you want (e.g. --databases 255). It should help.

Also ensure that both the Rust client and the PHP server are using the forked version.

EDIT: nevermind, I just saw you found the issue.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants