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

[BUG] rootcerts.crt in /data directory casues disks to spins up (Unraid) #309

Closed
1 task done
Nomelas opened this issue May 10, 2023 · 4 comments
Closed
1 task done

Comments

@Nomelas
Copy link

Nomelas commented May 10, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

In Unraid, nextcloud has its own share. In Docker, the /data directory is mapped to this share to utilize the array for storage of user-data.

Aside from logs also being written here (which can be overwritten in the config file), there's another problematic file located in /data/files_external/rootcerts.crt

This file is opened periodically and should be in the /config directory, not the /data directory.

Expected Behavior

/data/files_external/rootcerts.crt moved to /config/files_external/rootcerts.crt to avoid disk spin up in Unraid.

Steps To Reproduce

  1. Create docker container in Unraid
  2. Nextcloud share using the array
  3. Disks spin up every time nextcloud reads /data/files_external/rootcerts.crt

Environment

- OS: Unraid 6.11.5
- How docker service was installed: Community Applications Template

CPU architecture

x86-64

Docker creation

Community Applications Template

Container logs

[migrations] started
[migrations] 01-nginx-site-confs-default: skipped
[migrations] done
usermod: no changes
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗ 
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝ 

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    99
User GID:    100
───────────────────────────────────────

using keys found in /config/keys
**** The following site-confs have extensions other than .conf ****
**** This may be due to user customization. ****
**** You should review the files and rename them to use the .conf extension or remove them. ****
**** nginx.conf will only include site-confs with the .conf extension. ****
/config/nginx/site-confs/default
[custom-init] No custom files found, skipping...
[ls.io-init] done.
@Nomelas
Copy link
Author

Nomelas commented May 10, 2023

looks like it is referenced here:

/config/www/nextcloud/lib/private/Security/CertificateManager.php:            $certPath = $path . 'rootcerts.crt';
/config/www/nextcloud/lib/private/Security/CertificateManager.php:            return $this->getPathToCertificates() . 'rootcerts.crt';

@aptalca
Copy link
Member

aptalca commented May 10, 2023

That's a Nextcloud thing. It should be reported to them.

@aptalca aptalca closed this as not planned Won't fix, can't repro, duplicate, stale May 10, 2023
@nemchik
Copy link
Member

nemchik commented May 11, 2023

I don't see a way to change this in the documentation for nextcloud's config. You could however try the following:

  • stop the nextcloud container
  • copy /mnt/user/somewhere_on_your_array/nextcloud_data/files_external/rootcerts.crt to /mnt/user/appdata/nextcloud/data/files_external/rootcerts.crt (you would need to create the folders first)
  • Add a volume to your nextcloud container to map /data/files_external/rootcerts.crt to /mnt/user/appdata/nextcloud/data/files_external/rootcerts.crt
  • start the container and see if it works as desired

While this may work, it is not the best way for it to work. The best way would be for nextcloud to have an option to configure where those files live.

@chrisborell
Copy link

looks like it is referenced here:

/config/www/nextcloud/lib/private/Security/CertificateManager.php:            $certPath = $path . 'rootcerts.crt';
/config/www/nextcloud/lib/private/Security/CertificateManager.php:            return $this->getPathToCertificates() . 'rootcerts.crt';

How did you end up resolving this? Experiencing the same issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants