Open sowjanyakch opened 1 month ago
I don't know of anywhere we invoke commands via sh
for basic filesystem functions, particularly the config. We'd just do all that inline.
The Nextcloud node becomes unusable when it attempts to update the enterprise license, resulting in the following errors:
Why/where is it attempting to update the license?
occ trashbin:cleanup command should be executed without causing permission errors or rendering the node inoperable
Is this truly specific to trashbin:cleanup
... Or is it any occ
command?
They have their config marked as read-only so the config folder not being writeable kind of makes sense.
It does look like a shell script that attempts to manipulate the config is failing due to permissions issues.
Are they wrapping occ
in a shell script or something?
Are they wrapping
occ
in a shell script or something?
Good catch!
In the reported setup the configuration file is usually read only at the file system level and only made writable when needed through an script, which then restores the file to read only. The script also switches config_is_read_only
between true
and false
as needed.
However, for some unknown reason it seems that the configuration file was set again as read only at the file system level without setting 'config_is_read_only' => true
first (when the issue happened, it was later set when the configuration was provided), which is what caused the instance to be unusable (because if the configuration file is not writable but 'config_is_read_only' => true
is not set an error will be shown even when opening a page).
It is unlikely that changes in the permissions of the configuration file were caused by the occ command or the update of the enterprise license, though 🤔
⚠️ This issue respects the following points: ⚠️
Bug description
user discovered a critical problem while running the occ trashbin:cleanup command for a user with many files and folders. The Nextcloud node becomes unusable when it attempts to update the enterprise license, resulting in the following errors:
Steps to reproduce
-
Expected behavior
occ trashbin:cleanup command should be executed without causing permission errors or rendering the node inoperable
Nextcloud Server version
29
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
Apache (supported)
Database engine version
MySQL
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
List of activated Apps
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
No response