-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Custom config.php content in fpm chroot gets removed by nc #10904
Comments
Today NC told me that the last cronjob ran 15 days ago, ... so the above issue seems to occur even if you add the So, the only workaround I see at the moment is to remove write permission from config.php ... |
GitMate.io thinks possibly related issues are #10569 (get avatar custom status from user config), #3269 (Default config.php appstore), #8115 (NC mistaken PHP-FPM version 5.4.16 as PHP version), #1358 (config.php - Disable Remember Login), and #9726 (Add documentation to config.php for share_folder). |
place the condition in config/custom.config.php (create it), this should not be overwritten iirc. |
Works. Thank you! |
Hello there :), as suggest in the forums: https://help.nextcloud.com/t/custom-config-php-content-in-fpm-chroot-gets-removed-by-nc/34767
as described in the title, if 've a problem with my setup. Background:
Running NC via nginx & php-fpm using the php-fpm chroot option. Everythings works fine so far (eg. Webcron) except using operating system cron.
Because of the fpm chroot settings, php-fpm needs other path settings in config.php eg.
Works fine. But running (as nextcoud user)
will fail, because of the different filesystem structure seen by php-cli.
One solution often found on the web is to prepend the data & apps directory option with something like this:
(or setting something like $CUSTOM_ROOT = ... at the top of the config file for more readability)
Sadly this seems to be cleaned out by nc sanitize operations and the only way I see to stop that, is to set
but this also stops the Updater from working (need to change config.php manually).
So, long story short, is there any other way (like 'overwrite.cli.url' => )to respect the nc paths in a chrooted environment ?
Thanks in advance :slight_smile:
Michael
Steps to reproduce
'datadirectory' => ((php_sapi_name() != 'cli') ? '' : '/srv/users/nextcloud/chroot') . '/data'
Expected behaviour
Your manual changes stays untouched
Actual behaviour
Your manual changes gets cleaned out
Server configuration
Operating system: Gentoo Linux
Web server: nginx 1.14.0
Database: mysql Ver 15.1 Distrib 10.1.31-MariaDB, for Linux (x86_64) using readline 7.0
PHP version: PHP 7.1.18
Nextcloud version: 13.0.5
Updated from an older Nextcloud/ownCloud or fresh install: from 12.x
Where did you install Nextcloud from:
Signing status:
Signing status
``` No errors have been found. ```List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: -
Are you using encryption: no
Are you using an external user-backend, if yes which one: -
Logs
Cron error log
Cron error log
The text was updated successfully, but these errors were encountered: