[Bug]: Unable to update configuration: conflict between new type (mixed) and old type (array) #47898
Open
5 of 8 tasks
Labels
0. Needs triage
Pending check for reproducibility or if it fits our roadmap
29-feedback
bug
feature: occ
Bug description
I have normally made configuration changes on nextcloud via the occ config:import command i.e.
sudo -u www-data php occ config:import config.json
However after upgrading from 29.0.0 and above, the command keeps failing with the following error
At first the issue looked similar to this but it did not get fixed by upgrading to the latest version.
I am currently running 29.0.6
I also attempted to debug the issue by exporting the current configuration and re-importing it i.e.
This produced un-ending value type errors like:
Based on some comments on the Nextcloud forum, using the config:import command was mentioned as deprecated but could not find it explicitly mentioned in the release notes.
Any help would be much appreciated
Steps to reproduce
1.Define configuration in a json file and grant necessary permissions
2. Go to the the nextcloud config directory
3.Try to import your configuration as defined in the json file using the occ command
Expected behavior
I was trying to persist preview_* configuration settings since preview_max_(y/x) defaults to null. wanted to set this at 2048
Adding the preview setting to my configuration file and running the command should be sufficient
Nextcloud Server version
29
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Nginx
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Updated from a MINOR version (ex. 28.0.1 to 28.0.2)
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: