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] Weird Docker Setup #372

Closed
1 task done
ItsMeRitch opened this issue Oct 17, 2023 · 7 comments
Closed
1 task done

[BUG] Weird Docker Setup #372

ItsMeRitch opened this issue Oct 17, 2023 · 7 comments

Comments

@ItsMeRitch
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

cron location should be /config/www/nextcloud/ however, apparently mine is:

/app/www/public/cron.php

Expected Behavior

In nextcloud admin interface, it says the cron is running fine however, I'm noticing that the trashbin isnt being emptied automatically (should be called by the cron). Upon checking my cron location, it wasn't in the normal place.

/var/lib/docker/volumes/nextcloudcfg/_data/crontabs# cat root

do daily/weekly/monthly maintenance

min hour day month weekday command

*/15 * * * * run-parts /etc/periodic/15min
0 * * * * run-parts /etc/periodic/hourly
0 2 * * * run-parts /etc/periodic/daily
0 3 * * 6 run-parts /etc/periodic/weekly
0 5 1 * * run-parts /etc/periodic/monthly

nextcloud cron

*/5 * * * * s6-setuidgid abc php -f /app/www/public/cron.php

Seems to be in a "public" folder - is this normal?

the folder also contains:

image

Steps To Reproduce

Screenshot of config from portainer:

image

image

Environment

Ubuntu 22 

Nextcloud running in docker using latest image with a separate container for the database.

CPU architecture

x86-64

Docker creation

ngl I can't even remember at this point - included screenshots above of portainer gui

Container logs

───────────────────────────────────────

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

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

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

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

User UID:    1000
User GID:    1000
───────────────────────────────────────

using keys found in /config/keys
After completing the web-based installer, restart the Nextcloud container to apply default memory caching and transactional file locking configurations.
Alternatively, you can apply your own configurations by editing /config/www/nextcloud/config/config.php following the documentation:
https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/caching_configuration.html
https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/files_locking_transactional.html
**** The following active confs have different version dates than the samples that are shipped. ****
**** This may be due to user customization or an update to the samples. ****
**** You should compare the following files to the samples in the same folder and update them. ****
**** Use the link at the top of the file to view the changelog. ****
┌────────────┬────────────┬────────────────────────────────────────────────────────────────────────┐
│  old date  │  new date  │ path                                                                   │
├────────────┼────────────┼────────────────────────────────────────────────────────────────────────┤
│ 2023-06-24 │ 2023-08-13 │ /config/nginx/ssl.conf                                                 │
└────────────┴────────────┴────────────────────────────────────────────────────────────────────────┘
[custom-init] No custom files found, skipping...
[ls.io-init] done.
error: failed to rename /config/log/nginx/access.log to /config/log/nginx/access.log.1: Permission denied
error: failed to rename /config/log/php/error.log to /config/log/php/error.log.1: Permission denied
error: failed to rename /config/log/nginx/access.log to /config/log/nginx/access.log.1: Permission denied
error: failed to rename /config/log/php/error.log to /config/log/php/error.log.1: Permission denied
@github-actions
Copy link

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@aptalca
Copy link
Member

aptalca commented Oct 17, 2023

https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/trashbin_configuration.html

default setting. keeps files and folders in the trash bin for 30 days and automatically deletes anytime after that if space is needed (note: files may not be deleted if space is not needed).

@ItsMeRitch
Copy link
Author

https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/trashbin_configuration.html

default setting. keeps files and folders in the trash bin for 30 days and automatically deletes anytime after that if space is needed (note: files may not be deleted if space is not needed).

This is what I have set :)

@aptalca
Copy link
Member

aptalca commented Oct 17, 2023

Then you see why it doesn't delete things.

Closing

@aptalca aptalca closed this as completed Oct 17, 2023
@LinuxServer-CI LinuxServer-CI moved this from Issues to Done in Issue & PR Tracker Oct 17, 2023
@ItsMeRitch
Copy link
Author

Then you see why it doesn't delete things.

Closing

doesn't answer my question - my storage is full and nextcloud should be deleting files if I have the setting above

@ItsMeRitch
Copy link
Author

@aptalca

Eventually figured out that its a bug with nextcloud. It does not use the physical storage space to calculate available space and the user must have a quota set (even if they are the only user). Recycle bin will not automatically empty when low on space if set on unlimited.

Regarding the original question of my ticket, can you assist with the following?

cron location should be /config/www/nextcloud/ however, apparently mine is:

/app/www/public/cron.php

Is that correct and safe?

@nemchik
Copy link
Member

nemchik commented Oct 18, 2023

Regarding the original question of my ticket, can you assist with the following?

cron location should be /config/www/nextcloud/ however, apparently mine is:

/app/www/public/cron.php

Is that correct and safe?

The cron location moved when we made a significant change to the image around the release of NextCloud 27.x
https://info.linuxserver.io/issues/2023-06-25-nextcloud/

/app/www/public/cron.php is correct and safe.

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

No branches or pull requests

3 participants