Skip to content

[bug report] Nextcloud cron and redis not configured correctly #228

@dodrian

Description

@dodrian

🤪 Sanity check

  • I have searched and confirmed no existing open/closed issues exist for this bug

1️⃣ Description

Nextcloud recipe does not describe how to correctly setup redis and cron.

2️⃣ Expected Behaviour

Nextcloud should launch with Cron and Redis configured

3️⃣ Actual Behaviour

Redis must be configured by manually editing config.php (and I believe the instructions are incorrect as they just set connection details and do not set Redis as the cache provider)

Cron must be enabled in nextcloud settings (this is not in the recipe), and default cron script does not work.

4️⃣ Steps to Reproduce

Follow recipe instructions to setup Nextcloud

5️⃣ Possible solutions

In the nextcloud.env file add this line to enable redis by default:
REDIS_HOST=redis

To fix Cron:

  1. Cron service should have the same volumes mounted as nextcloud (it definitely needs the html and config volumes - I assume it needs the others too, as custom_apps can set their own scheduled jobs).
  2. Add the instruction to the recipe to change the "background jobs" config to cron at:
    https:///settings/admin#backgroundjobs

6️⃣ Relevant Information

Running nextcloud:24 docker image.

💬 Your Discord username

No response

💍 Engagement

  • Test the changes after a preview deploy and provide feedback
  • Solicit community input in Discord
  • Submit a PR for a fix myself 🏆

✅ Code of Conduct

  • I agree to follow this Geek Cookbook's Code of Conduct

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions