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

Datadirectory gets overwritten which poses a problem with fpm's chroot option set #18971

Closed
jeroenlaylo opened this issue Jan 18, 2020 · 2 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug needs info

Comments

@jeroenlaylo
Copy link

I run a Nextcloud instance with chroot enabled for PHP-FPM. This causes an issue; the interpreter for web-based usage is fpm, whereas the cronjobs are executed from the cli interpreter, which doesn't support the chroot option.

I have worked around this by editing the data directory, which is occasionally overwritten by Nextcloud, causing the cronjobs to fail.

Steps to reproduce

  1. Enable the chroot functionality of PHP-FPM.
  2. Open config.php and edit the datadirectory variable like 'datadirectory' => ((php_sapi_name() == 'cli') ? '/var/www' : '') . '/nextcloud-data',.
  3. Set the cronjob as per the official documentation.

Expected behaviour

I expect the datadirectory variable to remain untouched.

Actual behaviour

Updates (both minor and major) change the datadirectory variable to exclude the custom sapi rewrite. This happens since at least v15.

@jeroenlaylo jeroenlaylo added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Jan 18, 2020
@kesselb
Copy link
Contributor

kesselb commented Jan 18, 2020

Sounds like #10904. Would that work for you?

@jeroenlaylo
Copy link
Author

Sounds like #10904. Would that work for you?

Yes, thank you! Fix implemented!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug needs info
Projects
None yet
Development

No branches or pull requests

2 participants