Open patrickjahns opened 6 years ago
GitMate.io thinks the contributor most likely able to help you is @PVince81.
Possibly related issues are https://github.com/owncloud/core/issues/9736 (OwnCloud periodically resetting it's "set" config to default/installation config), https://github.com/owncloud/core/issues/24324 (Owncloud not restore), https://github.com/owncloud/core/issues/5734 (ownCloud 6b3 installation failed : Fatal error), https://github.com/owncloud/core/issues/19196 (Can't set cookie in middleware when ownCloud is not installed in a folder), and https://github.com/owncloud/core/issues/7848 (Installation).
hmm, so this means the instance id is not generated during install but in a later request ??!
Yes - unfortunately. This is bad - as the config.php will not contain the instanceid right after installation.
Worst case in a scale out, every application server generates their own instanceid 😱
When installing ownCloud (via cli), the instanceid is not directly set.
This causes issue, when one wants to install ownCloud and set the configuration into a readonly mode (
'config_is_read_only '=> true
) directly afterwards.The only place where we set the intanceId is at: https://github.com/owncloud/core/blob/a615bfdee0a2613517dea23f38d6c6ecafc9e470/lib/private/legacy/util.php#L1130-L1137
Steps to reproduce
'config_is_read_only' => true
inconfig.php
Expected behaviour
ownCloud works
Actual behaviour