I am not 100% certain where to post this issue. After some debugging and research, I hope this the right place.
Since updating to v34.0.1 I get this error roughly once per hour when running the cron job (the job is triggered every 5 min):
I was not able to determine where this ps call comes from inside the cron job. It could be one of the apps. This setup has been running without major problems for years.
This is how I call my cron job:
docker exec nextcloud-nextcloud-1 php -f /var/www/html/cron.php
At the end of this post, you can find my configuration.
Any help is greatly appreciated!
Docker Compose
services:
nextcloud:
image: nextcloud:fpm-custom
user: 3001:3001
restart: always
build: .
environment:
- PUID=3001
- PGID=3001
- UMASK=077
- TZ=Europe/Berlin
- POSTGRES_HOST=/var/run/postgres/.s.PGSQL.5432
- POSTGRES_PASSWORD=$NEXTCLOUD_POSTGRES_PASSWORD
- POSTGRES_DB=nextcloud
- POSTGRES_USER=nextcloud
- REDIS_HOST=redis
volumes:
- type: bind
read_only: False
source: /mnt/SSD/apps/nextcloud
target: /var/www/html
bind:
create_host_path: False
propagation: rprivate
- type: bind
read_only: False
source: /mnt/SSD/apps/sockets/nextcloud
target: /var/run/nextcloud
bind:
create_host_path: False
propagation: rprivate
- type: bind
read_only: True
source: /mnt/SSD/apps/sockets/postgres
target: /var/run/postgres
bind:
create_host_path: False
propagation: rprivate
tmpfs:
- /tmp_cache:uid=3001,gid=3001
networks:
- postgres-net
- redis-net
- nextcloud-net
Custom Dockerfile
FROM nextcloud:34.0.1-fpm
RUN chown -R 3001:3001 /usr/local/etc/php/
RUN chown -R 3001:3001 /usr/local/etc/php-fpm.d
RUN mkdir -p /var/run/nextcloud
RUN chown -R 3001:3001 /var/run/nextcloud
# Configure php and php-fpm (https://www.c-rieger.de/nextcloud-installationsanleitung-apache2/) and (https://spot13.com/pmcalculator/)
COPY --chown=3001:3001 php-override.ini /usr/local/etc/php/conf.d/zzz-docker-custom.ini
COPY --chown=3001:3001 php-fpm-override.conf /usr/local/etc/php-fpm.d/zzz-docker-custom.conf
ENTRYPOINT ["/entrypoint.sh"]
CMD ["php-fpm"]
Custom php-fpm-override
pm.max_children = 512
pm.start_servers = 64
pm.min_spare_servers = 64
pm.max_spare_servers = 256
pm.max_requests = 4096
user = 3001
group = 3001
listen = /var/run/nextcloud/nextcloud-php.sock
listen.owner = 3001
listen.group = 3001
Custom php-override
memory_limit = 2048M
output_buffering = Off
max_execution_time = 3600
max_input_time = 3600
post_max_size = 10240M
upload_max_filesize = 10240M
date.timezone = Europe/Berlin
session.cookie_secure = True
opcache.enable=1
opcache.enable_cli=1
opcache.memory_consumption=128
opcache.interned_strings_buffer=32
opcache.max_accelerated_files=10000
opcache.revalidate_freq=60
opcache.save_comments=1
opcache.jit=1255
opcache.jit_buffer_size=128M
allow_url_fopen = 1
apc.enable_cli = 1
Output of occ config:list system
{
"system": {
"htaccess.RewriteBase": "\/",
"memcache.local": "\\OC\\Memcache\\APCu",
"apps_paths": [
{
"path": "\/var\/www\/html\/apps",
"url": "\/apps",
"writable": false
},
{
"path": "\/var\/www\/html\/custom_apps",
"url": "\/custom_apps",
"writable": true
}
],
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"forwarded_for_headers": [
"HTTP_X_FORWARDED",
"HTTP_FORWARDED_FOR",
"HTTP_X_FORWARDED_FOR"
],
"trusted_domains": [
"***"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "pgsql",
"version": "34.0.1.2",
"overwrite.cli.url": "***",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"default_phone_region": "DE",
"trusted_proxies": "***REMOVED SENSITIVE VALUE***",
"overwritehost": "***",
"overwriteprotocol": "https",
"theme": "",
"loglevel": 2,
"maintenance": false,
"mail_smtpmode": "smtp",
"mail_sendmailmode": "smtp",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtpauthtype": "LOGIN",
"mail_smtpauth": 1,
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "465",
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"memcache.distributed": "\\OC\\Memcache\\Redis",
"memcache.locking": "\\OC\\Memcache\\Redis",
"cache_path": "\/tmp_cache",
"trashbin_retention_obligation": "auto, 14",
"defaultapp": "",
"enabledPreviewProviders": [
"OC\\Preview\\Imaginary",
"OC\\Preview\\MP3",
"OC\\Preview\\TXT",
"OC\\Preview\\MarkDown",
"OC\\Preview\\OpenDocument",
"OC\\Preview\\Krita"
],
"preview_imaginary_url": "***REMOVED SENSITIVE VALUE***",
"preview_format": "webp",
"mail_smtpsecure": "ssl",
"debug": false,
"maintenance_window_start": 1,
"data-fingerprint": "be9ba5cbdc6e5a191478e38da3580101",
"app_install_overwrite": [],
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"password": "***REMOVED SENSITIVE VALUE***",
"port": 6379
}
}
}
Output of occ app:list
Enabled:
- activity: 7.0.0
- admin_audit: 1.24.0
- app_api: 34.0.0
- appstore: 1.0.0
- bruteforcesettings: 7.0.0
- calendar: 6.5.1
- circles: 34.0.0
- cloud_federation_api: 1.18.0
- comments: 1.24.0
- contacts: 8.7.3
- contactsinteraction: 1.15.0
- dashboard: 7.14.0
- dav: 1.39.0
- federatedfilesharing: 1.24.0
- federation: 1.24.0
- files: 2.6.0
- files_downloadlimit: 5.2.0-dev.0
- files_external: 1.26.0
- files_lock: 34.0.0
- files_pdfviewer: 7.0.0-dev.0
- files_reminders: 1.7.0
- files_sharing: 1.26.0
- files_trashbin: 1.24.0
- files_versions: 1.27.0
- firstrunwizard: 7.0.0-dev.0
- groupfolders: 22.0.2
- integration_immich: 1.3.1
- logreader: 7.0.0
- lookup_server_connector: 1.22.0
- nextcloud_announcements: 6.0.0
- notifications: 7.0.0-dev.1
- notify_push: 1.3.3
- oauth2: 1.22.0
- office: 1.0.0
- password_policy: 6.0.0-dev.0
- photos: 7.0.0
- privacy: 6.0.0-dev.1
- profile: 1.3.0
- provisioning_api: 1.24.0
- recommendations: 7.0.0
- related_resources: 5.0.0-dev.0
- richdocuments: 11.0.1
- serverinfo: 6.0.0
- settings: 1.17.0
- sharebymail: 1.24.0
- survey_client: 6.0.0-dev.0
- systemtags: 1.24.0
- tasks: 0.18.1
- text: 8.0.0
- theming: 2.9.0
- twofactor_backupcodes: 1.23.0
- twofactor_totp: 16.0.0
- twofactor_webauthn: 2.7.0
- updatenotification: 1.24.0
- user_oidc: 8.10.1
- user_status: 1.14.0
- viewer: 7.0.0-dev.0
- weather_status: 1.14.0
- webhook_listeners: 1.6.0
- whiteboard: 1.5.9
- workflowengine: 2.16.0
Disabled:
- encryption: 2.22.0 (installed 2.21.0)
- integration_overleaf: 2.0.1 (installed 2.0.1)
- previewgenerator: 5.13.0 (installed 5.13.0)
- support: 6.0.0 (installed 2.0.0)
- suspicious_login: 12.0.0-dev.0 (installed 7.0.0)
- twofactor_nextcloud_notification: 8.0.0
- user_ldap: 1.25.0
I am not 100% certain where to post this issue. After some debugging and research, I hope this the right place.
Since updating to v34.0.1 I get this error roughly once per hour when running the cron job (the job is triggered every 5 min):
I was not able to determine where this ps call comes from inside the cron job. It could be one of the apps. This setup has been running without major problems for years.
This is how I call my cron job:
docker exec nextcloud-nextcloud-1 php -f /var/www/html/cron.phpAt the end of this post, you can find my configuration.
Any help is greatly appreciated!
Docker Compose
Custom Dockerfile
Custom php-fpm-override
Custom php-override
Output of
occ config:list system{ "system": { "htaccess.RewriteBase": "\/", "memcache.local": "\\OC\\Memcache\\APCu", "apps_paths": [ { "path": "\/var\/www\/html\/apps", "url": "\/apps", "writable": false }, { "path": "\/var\/www\/html\/custom_apps", "url": "\/custom_apps", "writable": true } ], "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "forwarded_for_headers": [ "HTTP_X_FORWARDED", "HTTP_FORWARDED_FOR", "HTTP_X_FORWARDED_FOR" ], "trusted_domains": [ "***" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "pgsql", "version": "34.0.1.2", "overwrite.cli.url": "***", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "default_phone_region": "DE", "trusted_proxies": "***REMOVED SENSITIVE VALUE***", "overwritehost": "***", "overwriteprotocol": "https", "theme": "", "loglevel": 2, "maintenance": false, "mail_smtpmode": "smtp", "mail_sendmailmode": "smtp", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtpauthtype": "LOGIN", "mail_smtpauth": 1, "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "465", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "memcache.distributed": "\\OC\\Memcache\\Redis", "memcache.locking": "\\OC\\Memcache\\Redis", "cache_path": "\/tmp_cache", "trashbin_retention_obligation": "auto, 14", "defaultapp": "", "enabledPreviewProviders": [ "OC\\Preview\\Imaginary", "OC\\Preview\\MP3", "OC\\Preview\\TXT", "OC\\Preview\\MarkDown", "OC\\Preview\\OpenDocument", "OC\\Preview\\Krita" ], "preview_imaginary_url": "***REMOVED SENSITIVE VALUE***", "preview_format": "webp", "mail_smtpsecure": "ssl", "debug": false, "maintenance_window_start": 1, "data-fingerprint": "be9ba5cbdc6e5a191478e38da3580101", "app_install_overwrite": [], "redis": { "host": "***REMOVED SENSITIVE VALUE***", "password": "***REMOVED SENSITIVE VALUE***", "port": 6379 } } }Output of
occ app:listEnabled:
Disabled: