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

Editing the Nextcloud config.php in CasaOS changes ownership from "www-data" to "root" [Bug] #829

Closed
danieljonce opened this issue Jan 19, 2023 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@danieljonce
Copy link

danieljonce commented Jan 19, 2023

Describe the bug
After a fresh install of Nextcloud in CasaOS running on Debian everything works as expected until a change is made to config.php using the text editor in CasaOS

To Reproduce

  1. Install Nextcloud via CasaOS
  2. Verify it's working correctly
  3. Save a change to the /var/www/config/config.php file using the CasaOS text editor
  4. Refresh Nextcloud, it will now throw an error "Cannot write into "config" directory!"

Expected behavior
I expect the previous file ownership "www-data www-data" to persist after a file change but it is changed to "root root"

The two ways I've found to work around the issue:

  1. Use chown www-data:www-data var/www/html/config/config.php from the host OS console (not the Docker container) to change the ownership for config.php back to www-data www-data

OR

  1. Set the flag 'config_is_read_only' => true, in the config.php, which works temporarily but during Nextcloud updates the config.php file needs to be writeable.
@danieljonce danieljonce added the bug Something isn't working label Jan 19, 2023
@github-project-automation github-project-automation bot moved this to Need Triage (QA+PM) in CasaOS Issues Jan 27, 2023
@LinkLeong
Copy link
Collaborator

The problem of directory accumulation due to upgrade has been solved in 0.4.2

@jerrykuku jerrykuku moved this from Need Triage (QA+PM) to To be verified (QA) in CasaOS Issues Feb 7, 2023
@raller1028 raller1028 added this to the v0.4.2 milestone Feb 15, 2023
@raller1028
Copy link
Contributor

v0.4.2 has been released, if still have problem please reopen

@raller1028 raller1028 moved this from To be verified (QA) to Done in CasaOS Issues Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

3 participants