Cannot sync contacts on iOS - not signed

Nextcloud version (eg, 29.0.5): 28.0.5
Operating system and version (eg, Ubuntu 29.04): Armbian 24.5.1 bookworm
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.59-1
PHP version (eg, 8.3): PHP 8.1.29

The issue you are facing:

When I download the configuration profile from the web interface iOS complains that it is not signed. I also get an error which says "The operation couldn’t be completed. (DAAccountValidationDomain error 102.)

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Download certifiacte
  2. Install it on iPhone

The output of your Nextcloud log in Admin > Logging:

NextCloudPi logs

[ nc-limits ] (Thu May 2 01:00:14 AM UTC 2024)
+ configure
++ get_total_mem
+++ free -b
+++ sed -n 2p
+++ awk '{ print $2 }'
++ local total_mem=4240850944
++ local MAX_32BIT=4096000000
++ [[ aarch64 == \a\r\m\v\7 ]]
++ echo 4240850944
+ local TOTAL_MEM=4240850944
+ file /bin/bash
+ grep 64-bit
+ local AUTOMEM=3180638208
+ local require_fpm_restart=false
+ local CONF=/etc/php/8.1/fpm/conf.d/90-ncp.ini
++ cat /etc/php/8.1/fpm/conf.d/90-ncp.ini
+ local 'CONF_VALUE=; disable .user.ini files for performance and
workaround NC update bugs user_ini.filename =

; from Nextcloud .user.ini
upload_max_filesize=10G
post_max_size=10G
memory_limit=768M
mbstring.func_overload=0
always_populate_raw_post_data=-1
default_charset='\''UTF-8'\''
output_buffering=0

; slow transfers will be killed after this time
max_execution_time=3600
max_input_time=3600'
++ tmpl_php_max_memory
+++ get_total_mem
++++ free -b
++++ sed -n 2p
++++ awk '{ print $2 }'
+++ local total_mem=4240850944
+++ local MAX_32BIT=4096000000
+++ [[ aarch64 == \a\r\m\v\7 ]]
+++ echo 4240850944
++ local TOTAL_MEM=4240850944
+++ find_app_param nc-limits MEMORYLIMIT
+++ local script=nc-limits
+++ local param_id=MEMORYLIMIT
++++ basename nc-limits .sh
+++ local ncp_app=nc-limits
+++ local cfg_file=/usr/local/etc/ncp-config.d/nc-limits.cfg
++++ find_app_param_num nc-limits MEMORYLIMIT
++++ local script=nc-limits
++++ local param_id=MEMORYLIMIT
+++++ basename nc-limits .sh
++++ local ncp_app=nc-limits
++++ local cfg_file=/usr/local/etc/ncp-config.d/nc-limits.cfg
++++ [[ -f /usr/local/etc/ncp-config.d/nc-limits.cfg ]]
+++++ cat /usr/local/etc/ncp-config.d/nc-limits.cfg
++++ local 'cfg={
"id": "nc-limits",
"name": "Nc-limits",
"title": "nc-limits",
"description": "Configure system limits for NextcloudPi",
"info": "Examples: 200M or 2G. Write 0 for autoconfig",
"infotitle": "",
"params": [
{
"id": "MAXFILESIZE",
"name": "Maximum file size",
"value": "10G",
"default": "10G",
"suggest": "10G"
},
{
"id": "MEMORYLIMIT",
"name": "Memory limit",
"value": "0",
"default": "0",
"suggest": "0"
},
{
"id": "PHPTHREADS",
"name": "PHP threads",
"value": "0",
"default": "0",
"suggest": "0"
},
{
"id": "REDISMEM",
"name": "Redis memory",
"value": "0",
"default": "0",
"suggest": "0"
}
]
}'
+++++ jq '.params | length'
++++ local len=4
++++ (( i = 0 ))
++++ (( i < len ))
+++++ jq -r '.params[0].id'
++++ local p_id=MAXFILESIZE
++++ [[ MEMORYLIMIT == \M\A\X\F\I\L\E\S\I\Z\E ]]
++++ (( i++ ))
++++ (( i < len ))
+++++ jq -r '.params[1].id'
++++ local p_id=MEMORYLIMIT
++++ [[ MEMORYLIMIT == \M\E\M\O\R\Y\L\I\M\I\T ]]
++++ echo 1
++++ return 0
+++ local p_num=1
+++ jq -r '.params[1].value'
++ local MEMORYLIMIT=0
++ [[ 0 == \0 ]]
++ echo -n 3180638208
+ echo 'Using 3180638208 for PHP max memory'
Using 3180638208 for PHP max memory
+ install_template php/90-ncp.ini.sh /etc/php/8.1/fpm/conf.d/90-ncp.ini
+ local template=php/90-ncp.ini.sh
+ local target=/etc/php/8.1/fpm/conf.d/90-ncp.ini
++ mktemp
+ local bkp=/tmp/tmp.r3qLY9CV4b
+ echo 'Installing template '\''php/90-ncp.ini.sh'\''...'
Installing template 'php/90-ncp.ini.sh'...
++ dirname /etc/php/8.1/fpm/conf.d/90-ncp.ini
+ mkdir -p /etc/php/8.1/fpm/conf.d
+ [[ -f /etc/php/8.1/fpm/conf.d/90-ncp.ini ]]
+ cp -a /etc/php/8.1/fpm/conf.d/90-ncp.ini /tmp/tmp.r3qLY9CV4b
+ [[ '' == \-\-\d\e\f\a\u\l\t\s ]]
+ bash /usr/local/etc/ncp-templates/php/90-ncp.ini.sh
+ rm /tmp/tmp.r3qLY9CV4b
++ cat /etc/php/8.1/fpm/conf.d/90-ncp.ini
+ [[ ; disable .user.ini files for performance and workaround NC update
bugs user_ini.filename =

; from Nextcloud .user.ini
upload_max_filesize=10G
post_max_size=10G
memory_limit=768M
mbstring.func_overload=0
always_populate_raw_post_data=-1
default_charset='UTF-8'
output_buffering=0

; slow transfers will be killed after this time
max_execution_time=3600
max_input_time=3600 == \;\ \d\i\s\a\b\l\e\ \.\u\s\e\r\.\i\n\i\
\f\i\l\e\s\ \f\o\r\ \p\e\r\f\o\r\m\a\n\c\e\ \a\n\d\
\w\o\r\k\a\r\o\u\n\d\ \N\C\ \u\p\d\a\t\e\ \b\u\g\s\
\u\s\e\r\_\i\n\i\.\f\i\l\e\n\a\m\e\ \=\ \ \;\ \f\r\o\m\
\N\e\x\t\c\l\o\u\d\ \.\u\s\e\r\.\i\n\i\
\u\p\l\o\a\d\_\m\a\x\_\f\i\l\e\s\i\z\e\=\1\0\G\
\p\o\s\t\_\m\a\x\_\s\i\z\e\=\1\0\G\
\m\e\m\o\r\y\_\l\i\m\i\t\=\3\1\8\0\6\3\8\2\0\8\
\m\b\s\t\r\i\n\g\.\f\u\n\c\_\o\v\e\r\l\o\a\d\=\0\
\a\l\w\a\y\s\_\p\o\p\u\l\a\t\e\_\r\a\w\_\p\o\s\t\_\d\a\t\a\=\-\1\
\d\e\f\a\u\l\t\_\c\h\a\r\s\e\t\=\'\U\T\F\-\8\'\
\o\u\t\p\u\t\_\b\u\f\f\e\r\i\n\g\=\0\ \
\;\ \s\l\o\w\ \t\r\a\n\s\f\e\r\s\ \w\i\l\l\ \b\e\ \k\i\l\l\e\d\
\a\f\t\e\r\ \t\h\i\s\ \t\i\m\e\
\m\a\x\_\e\x\e\c\u\t\i\o\n\_\t\i\m\e\=\3\6\0\0\
\m\a\x\_\i\n\p\u\t\_\t\i\m\e\=\3\6\0\0 ]]
+ require_fpm_restart=true
+ local CONF=/etc/php/8.1/fpm/pool.d/www.conf
++ cat /etc/php/8.1/fpm/pool.d/www.conf
+ CONF_VALUE='; Start a new pool named '\''www'\''.
; the variable $pool can be used in any directive and will be replaced
by the ; pool name ('\''www'\'' here)
[www]

; Per pool prefix
; It only applies on the following directives:
; - '\''access.log'\''
; - '\''slowlog'\''
; - '\''listen'\'' (unixsocket)
; - '\''chroot'\''
; - '\''chdir'\''
; - '\''php_values'\''
; - '\''php_admin_values'\''
; When not set, the global prefix (or /usr) applies instead.
; Note: This directive can also be relative to the global prefix.
; Default Value: none
;prefix = /path/to/pools/$pool

; The address on which to accept FastCGI requests.
; Valid syntaxes are:
; '\''ip.add.re.ss:port'\'' - to listen on a TCP socket to a specific
IPv4 address on ; a specific port;
; '\''[ip:6:addr:ess]:port'\'' - to listen on a TCP socket to a
specific IPv6 address on ; a specific port;
; '\''port'\'' - to listen on a TCP socket to all addresses
; (IPv6 and IPv4-mapped) on a specific port;
; '\''/path/to/unix/socket'\'' - to listen on a unix socket.
; Note: This value is mandatory.
listen = /run/php/php8.1-fpm.sock

; Set listen(2) backlog.
; Default Value: 511 (-1 on FreeBSD and OpenBSD)
;listen.backlog = 511


; The URI to view the FPM status page. If this value is not set, no URI
will be ; recognized as a status page. It shows the following
information: ; pool - the name of the pool;
; process manager - static, dynamic or ondemand;
; start time - the date and time FPM has started;
; start since - number of seconds since FPM has started;
; accepted conn - the number of request accepted by the pool;
; listen queue - the number of request in the queue of pending
; connections (see backlog in listen(2));
; max listen queue - the maximum number of requests in the queue
; of pending connections since FPM has started;
; listen queue len - the size of the socket queue of pending
connections; ; idle processes - the number of idle processes;
; active processes - the number of active processes;
; total processes - the number of idle + active processes;
; max active processes - the maximum number of active processes since
FPM ; has started;
; max children reached - number of times, the process limit has been
reached, ; when pm tries to start more children (works only for
; pm '\''dynamic'\'' and '\''ondemand'\'');
; Value are updated in real time.
; Example output:
; pool: www
; process manager: static
; start time: 01/Jul/2011:17:53:49 +0200
; start since: 62636
; accepted conn: 190460
; listen queue: 0
; max listen queue: 1
; listen queue len: 42
; idle processes: 4
; active processes: 11
; total processes: 15
; max active processes: 12
; max children reached: 0
;
; By default the status page output is formatted as text/plain. Passing
either ; '\''html'\'', '\''xml'\'' or '\''json'\'' in the query string
will return the corresponding ; output syntax. Example:
; http://www.foo.bar/status
; http://www.foo.bar/status?json
; http://www.foo.bar/status?html
; http://www.foo.bar/status?xml
;
; By default the status page only outputs short status. Passing
'\''full'\'' in the ; query string will also return status for each
pool process. ; Example:
; http://www.foo.bar/status?full
; http://www.foo.bar/status?json&full
; http://www.foo.bar/status?html&full
; http://www.foo.bar/status?xml&full
; The Full status returns for each process:
; pid - the PID of the process;
; state - the state of the process (Idle, Running, ...);
; start time - the date and time the process has started;
; start since - the number of seconds since the process has started;
; requests - the number of requests the process has served;
; request duration - the duration in µs of the requests;
; request method - the request method (GET, POST, ...);
; request URI - the request URI with the query string;
; content length - the content length of the request (only with POST);
; user - the user (PHP_AUTH_USER) (or '\''-'\'' if not set);
; script - the main script called (or '\''-'\'' if not set);
; last request cpu - the %cpu the last request consumed
; it'\''s always 0 if the process is not in Idle state
; because CPU calculation is done when the request
; processing has terminated;
; last request memory - the max amount of memory the last request
consumed ; it'\''s always 0 if the process is not in Idle state
; because memory calculation is done when the request
; processing has terminated;
; If the process is in Idle state, then informations are related to the
; last request the process has served. Otherwise informations are
related to ; the current request being served.

; Default Value: nothing is defined by default except the values in
php.ini and ; specified at startup with the -d argument
;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f
www@my.domain.com ;php_flag[display_errors] = off
;php_admin_value[error_log] = /var/log/fpm-php.www.log
;php_admin_flag[log_errors] = on
;php_admin_value[memory_limit] = 32M'
++ tmpl_php_threads
+++ get_total_mem
++++ free -b
++++ awk '{ print $2 }'
++++ sed -n 2p
+++ local total_mem=4240850944
+++ local MAX_32BIT=4096000000
+++ [[ aarch64 == \a\r\m\v\7 ]]
+++ echo 4240850944
++ local TOTAL_MEM=4240850944
+++ find_app_param nc-limits PHPTHREADS
+++ local script=nc-limits
+++ local param_id=PHPTHREADS
++++ basename nc-limits .sh
+++ local ncp_app=nc-limits
+++ local cfg_file=/usr/local/etc/ncp-config.d/nc-limits.cfg
++++ find_app_param_num nc-limits PHPTHREADS
++++ local script=nc-limits
++++ local param_id=PHPTHREADS
+++++ basename nc-limits .sh
++++ local ncp_app=nc-limits
++++ local cfg_file=/usr/local/etc/ncp-config.d/nc-limits.cfg
++++ [[ -f /usr/local/etc/ncp-config.d/nc-limits.cfg ]]
+++++ cat /usr/local/etc/ncp-config.d/nc-limits.cfg
++++ local 'cfg={
"id": "nc-limits",
"name": "Nc-limits",
"title": "nc-limits",
"description": "Configure system limits for NextcloudPi",
"info": "Examples: 200M or 2G. Write 0 for autoconfig",
"infotitle": "",
"params": [
{
"id": "MAXFILESIZE",
"name": "Maximum file size",
"value": "10G",
"default": "10G",
"suggest": "10G"
},
{
"id": "MEMORYLIMIT",
"name": "Memory limit",
"value": "0",
"default": "0",
"suggest": "0"
},
{
"id": "PHPTHREADS",
"name": "PHP threads",
"value": "0",
"default": "0",
"suggest": "0"
},
{
"id": "REDISMEM",
"name": "Redis memory",
"value": "0",
"default": "0",
"suggest": "0"
}
]
}'
+++++ jq '.params | length'
++++ local len=4
++++ (( i = 0 ))
++++ (( i < len ))
+++++ jq -r '.params[0].id'
System config value trusted_domains => 3 set to string nextcloudpi
++++ local p_id=MAXFILESIZE
++++ [[ PHPTHREADS == \M\A\X\F\I\L\E\S\I\Z\E ]]
++++ (( i++ ))
++++ (( i < len ))
+++++ jq -r '.params[1].id'
++++ local p_id=MEMORYLIMIT
++++ [[ PHPTHREADS == \M\E\M\O\R\Y\L\I\M\I\T ]]
++++ (( i++ ))
++++ (( i < len ))
+++++ jq -r '.params[2].id'
++++ local p_id=PHPTHREADS
++++ [[ PHPTHREADS == \P\H\P\T\H\R\E\A\D\S ]]
++++ echo 2
++++ return 0
+++ local p_num=2
+++ jq -r '.params[2].value'
++ local PHPTHREADS=0
++ [[ 0 -eq 0 ]]
++ PHPTHREADS=40
++ [[ 40 -lt 16 ]]
++ echo -n 40
+ echo 'Using 40 PHP threads'
Using 40 PHP threads
+ install_template php/pool.d.www.conf.sh
/etc/php/8.1/fpm/pool.d/www.conf
+ local template=php/pool.d.www.conf.sh
+ local target=/etc/php/8.1/fpm/pool.d/www.conf
++ mktemp
+ local bkp=/tmp/tmp.NA0jq3bVDM
+ echo 'Installing template '\''php/pool.d.www.conf.sh'\''...'
Installing template 'php/pool.d.www.conf.sh'...
++ dirname /etc/php/8.1/fpm/pool.d/www.conf
+ mkdir -p /etc/php/8.1/fpm/pool.d
+ [[ -f /etc/php/8.1/fpm/pool.d/www.conf ]]
+ cp -a /etc/php/8.1/fpm/pool.d/www.conf /tmp/tmp.NA0jq3bVDM
+ [[ '' == \-\-\d\e\f\a\u\l\t\s ]]
+ bash /usr/local/etc/ncp-templates/php/pool.d.www.conf.sh
System config value overwrite.cli.url set to string https://nextcloudpi/
+ rm /tmp/tmp.NA0jq3bVDM
++ cat /etc/php/8.1/fpm/pool.d/www.conf
+ [[ ; Start a new pool named 'www'.
; the variable $pool can be used in any directive and will be replaced
by the ; pool name ('www' here)
[www]

; Per pool prefix
; It only applies on the following directives:
; - 'access.log'
; - 'slowlog'
; - 'listen' (unixsocket)
; - 'chroot'
; - 'chdir'
; - 'php_values'
; - 'php_admin_values'
; When not set, the global prefix (or /usr) applies instead.
; Note: This directive can also be relative to the global prefix.
; Default Value: none
;prefix = /path/to/pools/$pool

; Unix user/group of the child processes. This can be used only if the
master ; process running user is root. It is set after the child
process is created. ; The user and group can be specified either by
their name or by their numeric ; IDs.
; Note: If the user is root, the executable needs to be started with
; --allow-to-run-as-root option to work.
; Default Values: The user is set to master process running user by
default. ; If the group is not set, the user's group is used.
user = www-data
group = www-data

; The address on which to accept FastCGI requests.
; Valid syntaxes are:
; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4
address on ; a specific port;
; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6
address on ; a specific port;
; 'port' - to listen on a TCP socket to all addresses
; (IPv6 and IPv4-mapped) on a specific port;
; '/path/to/unix/socket' - to listen on a unix socket.
; Note: This value is mandatory.
listen = /run/php/php8.1-fpm.sock

; Set listen(2) backlog.
; Default Value: 511 (-1 on FreeBSD and OpenBSD)
;listen.backlog = 511


[server]
# innodb settings
skip-name-resolve
innodb_buffer_pool_size = 256M
innodb_buffer_pool_instances = 1
innodb_flush_log_at_trx_commit = 2
innodb_log_buffer_size = 32M
innodb_max_dirty_pages_pct = 90
innodb_log_file_size = 32M

# disable query cache
query_cache_type = 0
query_cache_size = 0

# other
tmp_table_size= 64M
max_heap_table_size= 64M'
+ install_template mysql/91-ncp.cnf.sh
/etc/mysql/mariadb.conf.d/91-ncp.cnf
+ local template=mysql/91-ncp.cnf.sh
+ local target=/etc/mysql/mariadb.conf.d/91-ncp.cnf
++ mktemp
+ local bkp=/tmp/tmp.kTbZIawI8l
+ echo 'Installing template '\''mysql/91-ncp.cnf.sh'\''...'
Installing template 'mysql/91-ncp.cnf.sh'...
++ dirname /etc/mysql/mariadb.conf.d/91-ncp.cnf
+ mkdir -p /etc/mysql/mariadb.conf.d
+ [[ -f /etc/mysql/mariadb.conf.d/91-ncp.cnf ]]
+ cp -a /etc/mysql/mariadb.conf.d/91-ncp.cnf /tmp/tmp.kTbZIawI8l
+ [[ '' == \-\-\d\e\f\a\u\l\t\s ]]
+ bash /usr/local/etc/ncp-templates/mysql/91-ncp.cnf.sh
+ rm /tmp/tmp.kTbZIawI8l
++ cat /etc/mysql/mariadb.conf.d/91-ncp.cnf
+ [[ [mysqld]
transaction_isolation = READ-COMMITTED
innodb_large_prefix=true
innodb_file_per_table=1
innodb_file_format=barracuda
max_allowed_packet=256M

[server]
# innodb settings
skip-name-resolve
innodb_buffer_pool_size = 256M
innodb_buffer_pool_instances = 1
innodb_flush_log_at_trx_commit = 2
innodb_log_buffer_size = 32M
innodb_max_dirty_pages_pct = 90
innodb_log_file_size = 32M

# disable query cache
query_cache_type = 0
query_cache_size = 0

# other
tmp_table_size= 64M
max_heap_table_size= 64M == \[\m\y\s\q\l\d\]\
\t\r\a\n\s\a\c\t\i\o\n\_\i\s\o\l\a\t\i\o\n\ \=\
\R\E\A\D\-\C\O\M\M\I\T\T\E\D\
\i\n\n\o\d\b\_\l\a\r\g\e\_\p\r\e\f\i\x\=\t\r\u\e\
\i\n\n\o\d\b\_\f\i\l\e\_\p\e\r\_\t\a\b\l\e\=\1\
\i\n\n\o\d\b\_\f\i\l\e\_\f\o\r\m\a\t\=\b\a\r\r\a\c\u\d\a\
\m\a\x\_\a\l\l\o\w\e\d\_\p\a\c\k\e\t\=\2\5\6\M\ \
\[\s\e\r\v\e\r\]\
\#\ \i\n\n\o\d\b\ \s\e\t\t\i\n\g\s\
\s\k\i\p\-\n\a\m\e\-\r\e\s\o\l\v\e\
\i\n\n\o\d\b\_\b\u\f\f\e\r\_\p\o\o\l\_\s\i\z\e\ \=\
\1\0\0\9\8\8\1\0\8\8\
\i\n\n\o\d\b\_\b\u\f\f\e\r\_\p\o\o\l\_\i\n\s\t\a\n\c\e\s\ \=\ \1\
\i\n\n\o\d\b\_\f\l\u\s\h\_\l\o\g\_\a\t\_\t\r\x\_\c\o\m\m\i\t\ \=\ \2\
\i\n\n\o\d\b\_\l\o\g\_\b\u\f\f\e\r\_\s\i\z\e\ \=\ \3\2\M\
\i\n\n\o\d\b\_\m\a\x\_\d\i\r\t\y\_\p\a\g\e\s\_\p\c\t\ \=\ \9\0\
\i\n\n\o\d\b\_\l\o\g\_\f\i\l\e\_\s\i\z\e\ \=\ \3\2\M\ \
\#\ \d\i\s\a\b\l\e\ \q\u\e\r\y\ \c\a\c\h\e\
\q\u\e\r\y\_\c\a\c\h\e\_\t\y\p\e\ \=\ \0\
\q\u\e\r\y\_\c\a\c\h\e\_\s\i\z\e\ \=\ \0\
\
\#\ \o\t\h\e\r\
\t\m\p\_\t\a\b\l\e\_\s\i\z\e\=\ \6\4\M\
\m\a\x\_\h\e\a\p\_\t\a\b\l\e\_\s\i\z\e\=\ \6\4\M ]]
+ service mariadb restart
+ [[ true == \t\r\u\e ]]
+ local CONF=/etc/redis/redis.conf
+ bash -c 'sleep 3; source /usr/local/etc/library.sh; clear_opcache;
service php8.1-fpm restart' ++ awk '{ print $2 }'
++ grep '^maxmemory' /etc/redis/redis.conf
+ local 'CURRENT_REDIS_MEM=allkeys-lru
3gb'
+ [[ 0 != \a\l\l\k\e\y\s\-\l\r\u\
\3\g\b ]]
+ sed -i 's|^maxmemory .*|maxmemory 0|' /etc/redis/redis.conf
+ chown redis:redis /etc/redis/redis.conf
+ service redis-server restart
[ nc-limits ] (Wed Jun 19 08:17:08 PM UTC 2024)
+ configure
++ get_total_mem
+++ free -b
+++ sed -n 2p
+++ awk '{ print $2 }'
++ local total_mem=4181987328
++ local MAX_32BIT=4096000000
++ [[ aarch64 == \a\r\m\v\7 ]]
++ echo 4181987328
+ local TOTAL_MEM=4181987328
+ file /bin/bash
+ grep 64-bit
+ local AUTOMEM=3136490496
+ local require_fpm_restart=false
+ local CONF=/etc/php/8.1/fpm/conf.d/90-ncp.ini
++ cat /etc/php/8.1/fpm/conf.d/90-ncp.ini
+ local 'CONF_VALUE=; disable .user.ini files for performance and
workaround NC update bugs user_ini.filename =

; from Nextcloud .user.ini
upload_max_filesize=10G
post_max_size=10G
memory_limit=3180638208
mbstring.func_overload=0
always_populate_raw_post_data=-1
default_charset='\''UTF-8'\''
output_buffering=0

; slow transfers will be killed after this time
max_execution_time=3600
max_input_time=3600'
++ tmpl_php_max_memory
+++ get_total_mem
++++ free -b
++++ sed -n 2p
++++ awk '{ print $2 }'
+++ local total_mem=4181987328
+++ local MAX_32BIT=4096000000
+++ [[ aarch64 == \a\r\m\v\7 ]]
+++ echo 4181987328
++ local TOTAL_MEM=4181987328
+++ find_app_param nc-limits MEMORYLIMIT
+++ local script=nc-limits
+++ local param_id=MEMORYLIMIT
++++ basename nc-limits .sh
+++ local ncp_app=nc-limits
+++ local cfg_file=/usr/local/etc/ncp-config.d/nc-limits.cfg
++++ find_app_param_num nc-limits MEMORYLIMIT
++++ local script=nc-limits
++++ local param_id=MEMORYLIMIT
+++++ basename nc-limits .sh
++++ local ncp_app=nc-limits
++++ local cfg_file=/usr/local/etc/ncp-config.d/nc-limits.cfg
++++ [[ -f /usr/local/etc/ncp-config.d/nc-limits.cfg ]]
+++++ cat /usr/local/etc/ncp-config.d/nc-limits.cfg
++++ local 'cfg={
"id": "nc-limits",
"name": "Nc-limits",
"title": "nc-limits",
"description": "Configure system limits for NextcloudPi",
"info": "Examples: 200M or 2G. Write 0 for autoconfig",
"infotitle": "",
"params": [
{
"id": "MAXFILESIZE",
"name": "Maximum file size",
"value": "10G",
"default": "10G",
"suggest": "10G"
},
{
"id": "MEMORYLIMIT",
"name": "Memory limit",
"value": "0",
"default": "0",
"suggest": "0"
},
{
"id": "PHPTHREADS",
"name": "PHP threads",
"value": "0",
"default": "0",
"suggest": "0"
},
{
"id": "REDISMEM",
"name": "Redis memory",
"value": "0",
"default": "0",
"suggest": "0"
}
]
}'
+++++ jq '.params | length'
++++ local len=4
++++ (( i = 0 ))
++++ (( i < len ))
+++++ jq -r '.params[0].id'
++++ local p_id=MAXFILESIZE
++++ [[ MEMORYLIMIT == \M\A\X\F\I\L\E\S\I\Z\E ]]
++++ (( i++ ))
++++ (( i < len ))
+++++ jq -r '.params[1].id'
++++ local p_id=MEMORYLIMIT
++++ [[ MEMORYLIMIT == \M\E\M\O\R\Y\L\I\M\I\T ]]
++++ echo 1
++++ return 0
+++ local p_num=1
+++ jq -r '.params[1].value'
++ local MEMORYLIMIT=0
++ [[ 0 == \0 ]]
++ echo -n 3136490496
+ echo 'Using 3136490496 for PHP max memory'
Using 3136490496 for PHP max memory
+ install_template php/90-ncp.ini.sh /etc/php/8.1/fpm/conf.d/90-ncp.ini
+ local template=php/90-ncp.ini.sh
+ local target=/etc/php/8.1/fpm/conf.d/90-ncp.ini
++ mktemp
+ local bkp=/tmp/tmp.B7kXoLExqi
+ echo 'Installing template '\''php/90-ncp.ini.sh'\''...'
Installing template 'php/90-ncp.ini.sh'...
++ dirname /etc/php/8.1/fpm/conf.d/90-ncp.ini
+ mkdir -p /etc/php/8.1/fpm/conf.d
+ [[ -f /etc/php/8.1/fpm/conf.d/90-ncp.ini ]]
+ cp -a /etc/php/8.1/fpm/conf.d/90-ncp.ini /tmp/tmp.B7kXoLExqi
+ [[ '' == \-\-\d\e\f\a\u\l\t\s ]]
+ bash /usr/local/etc/ncp-templates/php/90-ncp.ini.sh
+ rm /tmp/tmp.B7kXoLExqi
++ cat /etc/php/8.1/fpm/conf.d/90-ncp.ini
+ [[ ; disable .user.ini files for performance and workaround NC update
bugs user_ini.filename =

; from Nextcloud .user.ini
upload_max_filesize=10G
post_max_size=10G
memory_limit=3180638208
mbstring.func_overload=0
always_populate_raw_post_data=-1
default_charset='UTF-8'
output_buffering=0

; slow transfers will be killed after this time
max_execution_time=3600
max_input_time=3600 == \;\ \d\i\s\a\b\l\e\ \.\u\s\e\r\.\i\n\i\
\f\i\l\e\s\ \f\o\r\ \p\e\r\f\o\r\m\a\n\c\e\ \a\n\d\
\w\o\r\k\a\r\o\u\n\d\ \N\C\ \u\p\d\a\t\e\ \b\u\g\s\
\u\s\e\r\_\i\n\i\.\f\i\l\e\n\a\m\e\ \=\ \ \;\ \f\r\o\m\
\N\e\x\t\c\l\o\u\d\ \.\u\s\e\r\.\i\n\i\
\u\p\l\o\a\d\_\m\a\x\_\f\i\l\e\s\i\z\e\=\1\0\G\
\p\o\s\t\_\m\a\x\_\s\i\z\e\=\1\0\G\
\m\e\m\o\r\y\_\l\i\m\i\t\=\3\1\3\6\4\9\0\4\9\6\
\m\b\s\t\r\i\n\g\.\f\u\n\c\_\o\v\e\r\l\o\a\d\=\0\
\a\l\w\a\y\s\_\p\o\p\u\l\a\t\e\_\r\a\w\_\p\o\s\t\_\d\a\t\a\=\-\1\
\d\e\f\a\u\l\t\_\c\h\a\r\s\e\t\=\'\U\T\F\-\8\'\
\o\u\t\p\u\t\_\b\u\f\f\e\r\i\n\g\=\0\ \
\;\ \s\l\o\w\ \t\r\a\n\s\f\e\r\s\ \w\i\l\l\ \b\e\ \k\i\l\l\e\d\
\a\f\t\e\r\ \t\h\i\s\ \t\i\m\e\
\m\a\x\_\e\x\e\c\u\t\i\o\n\_\t\i\m\e\=\3\6\0\0\
\m\a\x\_\i\n\p\u\t\_\t\i\m\e\=\3\6\0\0 ]]
+ require_fpm_restart=true
+ local CONF=/etc/php/8.1/fpm/pool.d/www.conf
++ cat /etc/php/8.1/fpm/pool.d/www.conf
+ CONF_VALUE='[www]
user = www-data
group = www-data
listen = /run/php/php8.1-fpm.sock
listen.owner = www-data
listen.group = www-data
pm = static
pm.max_children = 40
pm.start_servers = 4
pm.min_spare_servers = 4
pm.max_spare_servers = 8
pm.status_path = /status
slowlog = log/$pool.log.slow'
++ tmpl_php_threads
+++ get_total_mem
++++ free -b
++++ sed -n 2p
++++ awk '{ print $2 }'
+++ local total_mem=4181987328
+++ local MAX_32BIT=4096000000
+++ [[ aarch64 == \a\r\m\v\7 ]]
+++ echo 4181987328
++ local TOTAL_MEM=4181987328
+++ find_app_param nc-limits PHPTHREADS
+++ local script=nc-limits
+++ local param_id=PHPTHREADS
++++ basename nc-limits .sh
+++ local ncp_app=nc-limits
+++ local cfg_file=/usr/local/etc/ncp-config.d/nc-limits.cfg
++++ find_app_param_num nc-limits PHPTHREADS
++++ local script=nc-limits
++++ local param_id=PHPTHREADS
+++++ basename nc-limits .sh
++++ local ncp_app=nc-limits
++++ local cfg_file=/usr/local/etc/ncp-config.d/nc-limits.cfg
++++ [[ -f /usr/local/etc/ncp-config.d/nc-limits.cfg ]]
+++++ cat /usr/local/etc/ncp-config.d/nc-limits.cfg
++++ local 'cfg={
"id": "nc-limits",
"name": "Nc-limits",
"title": "nc-limits",
"description": "Configure system limits for NextcloudPi",
"info": "Examples: 200M or 2G. Write 0 for autoconfig",
"infotitle": "",
"params": [
{
"id": "MAXFILESIZE",
"name": "Maximum file size",
"value": "10G",
"default": "10G",
"suggest": "10G"
},
{
"id": "MEMORYLIMIT",
"name": "Memory limit",
"value": "0",
"default": "0",
"suggest": "0"
},
{
"id": "PHPTHREADS",
"name": "PHP threads",
"value": "0",
"default": "0",
"suggest": "0"
},
{
"id": "REDISMEM",
"name": "Redis memory",
"value": "0",
"default": "0",
"suggest": "0"
}
]
}'
+++++ jq '.params | length'
++++ local len=4
++++ (( i = 0 ))
++++ (( i < len ))
+++++ jq -r '.params[0].id'
++++ local p_id=MAXFILESIZE
++++ [[ PHPTHREADS == \M\A\X\F\I\L\E\S\I\Z\E ]]
++++ (( i++ ))
++++ (( i < len ))
+++++ jq -r '.params[1].id'
++++ local p_id=MEMORYLIMIT
++++ [[ PHPTHREADS == \M\E\M\O\R\Y\L\I\M\I\T ]]
++++ (( i++ ))
++++ (( i < len ))
+++++ jq -r '.params[2].id'
++++ local p_id=PHPTHREADS
++++ [[ PHPTHREADS == \P\H\P\T\H\R\E\A\D\S ]]
++++ echo 2
++++ return 0
+++ local p_num=2
+++ jq -r '.params[2].value'
++ local PHPTHREADS=0
++ [[ 0 -eq 0 ]]
++ PHPTHREADS=39
++ [[ 39 -lt 16 ]]
++ echo -n 39
+ echo 'Using 39 PHP threads'
Using 39 PHP threads
+ install_template php/pool.d.www.conf.sh
/etc/php/8.1/fpm/pool.d/www.conf
+ local template=php/pool.d.www.conf.sh
+ local target=/etc/php/8.1/fpm/pool.d/www.conf
++ mktemp
+ local bkp=/tmp/tmp.kaWlKY3JUB
+ echo 'Installing template '\''php/pool.d.www.conf.sh'\''...'
Installing template 'php/pool.d.www.conf.sh'...
++ dirname /etc/php/8.1/fpm/pool.d/www.conf
+ mkdir -p /etc/php/8.1/fpm/pool.d
+ [[ -f /etc/php/8.1/fpm/pool.d/www.conf ]]
+ cp -a /etc/php/8.1/fpm/pool.d/www.conf /tmp/tmp.kaWlKY3JUB
+ [[ '' == \-\-\d\e\f\a\u\l\t\s ]]
+ bash /usr/local/etc/ncp-templates/php/pool.d.www.conf.sh
+ rm /tmp/tmp.kaWlKY3JUB
++ cat /etc/php/8.1/fpm/pool.d/www.conf
+ [[ [www]
user = www-data
group = www-data
listen = /run/php/php8.1-fpm.sock
listen.owner = www-data
listen.group = www-data
pm = static
pm.max_children = 40
pm.start_servers = 4
pm.min_spare_servers = 4
pm.max_spare_servers = 8
pm.status_path = /status
slowlog = log/$pool.log.slow == \[\w\w\w\]\
\u\s\e\r\ \=\ \w\w\w\-\d\a\t\a\
\g\r\o\u\p\ \=\ \w\w\w\-\d\a\t\a\
\l\i\s\t\e\n\ \=\ \/\r\u\n\/\p\h\p\/\p\h\p\8\.\1\-\f\p\m\.\s\o\c\k\
\l\i\s\t\e\n\.\o\w\n\e\r\ \=\ \w\w\w\-\d\a\t\a\
\l\i\s\t\e\n\.\g\r\o\u\p\ \=\ \w\w\w\-\d\a\t\a\
\p\m\ \=\ \s\t\a\t\i\c\
\p\m\.\m\a\x\_\c\h\i\l\d\r\e\n\ \=\ \3\9\
\p\m\.\s\t\a\r\t\_\s\e\r\v\e\r\s\ \=\ \4\
\p\m\.\m\i\n\_\s\p\a\r\e\_\s\e\r\v\e\r\s\ \=\ \4\
\p\m\.\m\a\x\_\s\p\a\r\e\_\s\e\r\v\e\r\s\ \=\ \8\
\p\m\.\s\t\a\t\u\s\_\p\a\t\h\ \=\ \/\s\t\a\t\u\s\
\s\l\o\w\l\o\g\ \=\ \l\o\g\/\$\p\o\o\l\.\l\o\g\.\s\l\o\w ]]
+ require_fpm_restart=true
+ local CONF=/etc/mysql/mariadb.conf.d/91-ncp.cnf
++ cat /etc/mysql/mariadb.conf.d/91-ncp.cnf
+ CONF_VALUE='[mysqld]
transaction_isolation = READ-COMMITTED
innodb_large_prefix=true
innodb_file_per_table=1
innodb_file_format=barracuda
max_allowed_packet=256M

[server]
# innodb settings
skip-name-resolve
innodb_buffer_pool_size = 1009881088
innodb_buffer_pool_instances = 1
innodb_flush_log_at_trx_commit = 2
innodb_log_buffer_size = 32M
innodb_max_dirty_pages_pct = 90
innodb_log_file_size = 32M

# disable query cache
query_cache_type = 0
query_cache_size = 0

# other
tmp_table_size= 64M
max_heap_table_size= 64M'
+ install_template mysql/91-ncp.cnf.sh
/etc/mysql/mariadb.conf.d/91-ncp.cnf
+ local template=mysql/91-ncp.cnf.sh
+ local target=/etc/mysql/mariadb.conf.d/91-ncp.cnf
++ mktemp
+ local bkp=/tmp/tmp.69I485Fy5Q
+ echo 'Installing template '\''mysql/91-ncp.cnf.sh'\''...'
Installing template 'mysql/91-ncp.cnf.sh'...
++ dirname /etc/mysql/mariadb.conf.d/91-ncp.cnf
+ mkdir -p /etc/mysql/mariadb.conf.d
+ [[ -f /etc/mysql/mariadb.conf.d/91-ncp.cnf ]]
+ cp -a /etc/mysql/mariadb.conf.d/91-ncp.cnf /tmp/tmp.69I485Fy5Q
+ [[ '' == \-\-\d\e\f\a\u\l\t\s ]]
+ bash /usr/local/etc/ncp-templates/mysql/91-ncp.cnf.sh
+ rm /tmp/tmp.69I485Fy5Q
++ cat /etc/mysql/mariadb.conf.d/91-ncp.cnf
+ [[ [mysqld]
transaction_isolation = READ-COMMITTED
innodb_large_prefix=true
innodb_file_per_table=1
innodb_file_format=barracuda
max_allowed_packet=256M

[server]
# innodb settings
skip-name-resolve
innodb_buffer_pool_size = 1009881088
innodb_buffer_pool_instances = 1
innodb_flush_log_at_trx_commit = 2
innodb_log_buffer_size = 32M
innodb_max_dirty_pages_pct = 90
innodb_log_file_size = 32M

# disable query cache
query_cache_type = 0
query_cache_size = 0

[server]
# innodb settings
skip-name-resolve
innodb_buffer_pool_size = 995165184
innodb_buffer_pool_instances = 1
innodb_flush_log_at_trx_commit = 2
innodb_log_buffer_size = 32M
innodb_max_dirty_pages_pct = 90
innodb_log_file_size = 32M

# disable query cache
query_cache_type = 0
query_cache_size = 0

# other
tmp_table_size= 64M
max_heap_table_size= 64M'
+ install_template mysql/91-ncp.cnf.sh
/etc/mysql/mariadb.conf.d/91-ncp.cnf
+ local template=mysql/91-ncp.cnf.sh
+ local target=/etc/mysql/mariadb.conf.d/91-ncp.cnf
++ mktemp
+ local bkp=/tmp/tmp.JB7yVYKxbU
+ echo 'Installing template '\''mysql/91-ncp.cnf.sh'\''...'
Installing template 'mysql/91-ncp.cnf.sh'...
++ dirname /etc/mysql/mariadb.conf.d/91-ncp.cnf
+ mkdir -p /etc/mysql/mariadb.conf.d
+ [[ -f /etc/mysql/mariadb.conf.d/91-ncp.cnf ]]
+ cp -a /etc/mysql/mariadb.conf.d/91-ncp.cnf /tmp/tmp.JB7yVYKxbU
+ [[ '' == \-\-\d\e\f\a\u\l\t\s ]]
+ bash /usr/local/etc/ncp-templates/mysql/91-ncp.cnf.sh
+ rm /tmp/tmp.JB7yVYKxbU
++ cat /etc/mysql/mariadb.conf.d/91-ncp.cnf
+ [[ [mysqld]
transaction_isolation = READ-COMMITTED
innodb_large_prefix=true
innodb_file_per_table=1
innodb_file_format=barracuda
max_allowed_packet=256M

[server]
# innodb settings
skip-name-resolve
innodb_buffer_pool_size = 995165184
innodb_buffer_pool_instances = 1
innodb_flush_log_at_trx_commit = 2
innodb_log_buffer_size = 32M
innodb_max_dirty_pages_pct = 90
innodb_log_file_size = 32M

# disable query cache
query_cache_type = 0
query_cache_size = 0

# other
tmp_table_size= 64M
max_heap_table_size= 64M == \[\m\y\s\q\l\d\]\
\t\r\a\n\s\a\c\t\i\o\n\_\i\s\o\l\a\t\i\o\n\ \=\
\R\E\A\D\-\C\O\M\M\I\T\T\E\D\
\i\n\n\o\d\b\_\l\a\r\g\e\_\p\r\e\f\i\x\=\t\r\u\e\
\i\n\n\o\d\b\_\f\i\l\e\_\p\e\r\_\t\a\b\l\e\=\1\
\i\n\n\o\d\b\_\f\i\l\e\_\f\o\r\m\a\t\=\b\a\r\r\a\c\u\d\a\
\m\a\x\_\a\l\l\o\w\e\d\_\p\a\c\k\e\t\=\2\5\6\M\ \
\[\s\e\r\v\e\r\]\
\#\ \i\n\n\o\d\b\ \s\e\t\t\i\n\g\s\
\s\k\i\p\-\n\a\m\e\-\r\e\s\o\l\v\e\
\i\n\n\o\d\b\_\b\u\f\f\e\r\_\p\o\o\l\_\s\i\z\e\ \=\ \9\9\6\2\1\2\7\3\6\
\i\n\n\o\d\b\_\b\u\f\f\e\r\_\p\o\o\l\_\i\n\s\t\a\n\c\e\s\ \=\ \1\
\i\n\n\o\d\b\_\f\l\u\s\h\_\l\o\g\_\a\t\_\t\r\x\_\c\o\m\m\i\t\ \=\ \2\
\i\n\n\o\d\b\_\l\o\g\_\b\u\f\f\e\r\_\s\i\z\e\ \=\ \3\2\M\
\i\n\n\o\d\b\_\m\a\x\_\d\i\r\t\y\_\p\a\g\e\s\_\p\c\t\ \=\ \9\0\
\i\n\n\o\d\b\_\l\o\g\_\f\i\l\e\_\s\i\z\e\ \=\ \3\2\M\
\
\#\ \d\i\s\a\b\l\e\ \q\u\e\r\y\ \c\a\c\h\e\
\q\u\e\r\y\_\c\a\c\h\e\_\t\y\p\e\ \=\ \0\
\q\u\e\r\y\_\c\a\c\h\e\_\s\i\z\e\ \=\ \0\
\
\#\ \o\t\h\e\r\
\t\m\p\_\t\a\b\l\e\_\s\i\z\e\=\ \6\4\M\
\m\a\x\_\h\e\a\p\_\t\a\b\l\e\_\s\i\z\e\=\ \6\4\M ]]
+ service mariadb restart
+ [[ true == \t\r\u\e ]]
+ local CONF=/etc/redis/redis.conf
+ bash -c 'sleep 3; source /usr/local/etc/library.sh; clear_opcache;
service php8.1-fpm restart' ++ grep '^maxmemory' /etc/redis/redis.conf
++ awk '{ print $2 }'
+ local 'CURRENT_REDIS_MEM=allkeys-lru
0'
+ [[ 0 != \a\l\l\k\e\y\s\-\l\r\u\
\0 ]]
+ sed -i 's|^maxmemory .*|maxmemory 0|' /etc/redis/redis.conf
+ chown redis:redis /etc/redis/redis.conf
+ service redis-server restart

System config value trusted_domains => 3 set to string nextcloudpi
System config value overwrite.cli.url set to string https://nextcloudpi/
System config value trusted_proxies => 11 set to string 127.0.0.1
System config value trusted_proxies => 12 set to string ::1
System config value trusted_proxies => 14 set to string 192.168.178.72
192.168.178.73
Setup notify_push (attempt 1/5)
✓ redis is configured
✓ push server is receiving redis messages
✓ push server can load mount info from database
✓ push server can connect to the Nextcloud server
✓ push server is a trusted proxy
✓ push server is running the same version as the app
configuration saved
[ nc-limits ] (Wed Jun 19 09:00:38 PM UTC 2024)
+ configure
++ get_total_mem
+++ free -b
+++ sed -n 2p
+++ awk '{ print $2 }'
++ local total_mem=4186177536
++ local MAX_32BIT=4096000000
++ [[ aarch64 == \a\r\m\v\7 ]]
++ echo 4186177536
+ local TOTAL_MEM=4186177536
+ file /bin/bash
+ grep 64-bit
+ local AUTOMEM=3139633152
+ local require_fpm_restart=false
+ local CONF=/etc/php/8.1/fpm/conf.d/90-ncp.ini
++ cat /etc/php/8.1/fpm/conf.d/90-ncp.ini
+ local 'CONF_VALUE=; disable .user.ini files for performance and
workaround NC update bugs user_ini.filename =

; from Nextcloud .user.ini
upload_max_filesize=10G
post_max_size=10G
memory_limit=3139633152
mbstring.func_overload=0
always_populate_raw_post_data=-1
default_charset='\''UTF-8'\''
output_buffering=0

; slow transfers will be killed after this time
max_execution_time=3600
max_input_time=3600'
++ tmpl_php_max_memory
+++ get_total_mem
++++ free -b
++++ sed -n 2p
++++ awk '{ print $2 }'
+++ local total_mem=4186177536
+++ local MAX_32BIT=4096000000
+++ [[ aarch64 == \a\r\m\v\7 ]]
+++ echo 4186177536
++ local TOTAL_MEM=4186177536
+++ find_app_param nc-limits MEMORYLIMIT
+++ local script=nc-limits
+++ local param_id=MEMORYLIMIT
++++ basename nc-limits .sh
+++ local ncp_app=nc-limits
+++ local cfg_file=/usr/local/etc/ncp-config.d/nc-limits.cfg
++++ find_app_param_num nc-limits MEMORYLIMIT
++++ local script=nc-limits
++++ local param_id=MEMORYLIMIT
+++++ basename nc-limits .sh
++++ local ncp_app=nc-limits
++++ local cfg_file=/usr/local/etc/ncp-config.d/nc-limits.cfg
++++ [[ -f /usr/local/etc/ncp-config.d/nc-limits.cfg ]]
+++++ cat /usr/local/etc/ncp-config.d/nc-limits.cfg
++++ local 'cfg={
"id": "nc-limits",
"name": "Nc-limits",
"title": "nc-limits",
"description": "Configure system limits for NextcloudPi",
"info": "Examples: 200M or 2G. Write 0 for autoconfig",
"infotitle": "",
"params": [
{
"id": "MAXFILESIZE",
"name": "Maximum file size",
"value": "10G",
"default": "10G",
"suggest": "10G"
},
{
"id": "MEMORYLIMIT",
"name": "Memory limit",
"value": "0",
"default": "0",
"suggest": "0"
},
{
"id": "PHPTHREADS",
"name": "PHP threads",
"value": "0",
"default": "0",
"suggest": "0"
},
{
"id": "REDISMEM",
"name": "Redis memory",
"value": "0",
"default": "0",
"suggest": "0"
}
]
}'
+++++ jq '.params | length'
++++ local len=4
++++ (( i = 0 ))
++++ (( i < len ))
+++++ jq -r '.params[0].id'
++++ local p_id=MAXFILESIZE
++++ [[ MEMORYLIMIT == \M\A\X\F\I\L\E\S\I\Z\E ]]
++++ (( i++ ))
++++ (( i < len ))
+++++ jq -r '.params[1].id'
++++ local p_id=MEMORYLIMIT
++++ [[ MEMORYLIMIT == \M\E\M\O\R\Y\L\I\M\I\T ]]
++++ echo 1
++++ return 0
+++ local p_num=1
+++ jq -r '.params[1].value'
++ local MEMORYLIMIT=0
++ [[ 0 == \0 ]]
++ echo -n 3139633152
+ echo 'Using 3139633152 for PHP max memory'
Using 3139633152 for PHP max memory
+ install_template php/90-ncp.ini.sh /etc/php/8.1/fpm/conf.d/90-ncp.ini
+ local template=php/90-ncp.ini.sh
+ local target=/etc/php/8.1/fpm/conf.d/90-ncp.ini
++ mktemp
+ local bkp=/tmp/tmp.nZTM8BBxSw
+ echo 'Installing template '\''php/90-ncp.ini.sh'\''...'
Installing template 'php/90-ncp.ini.sh'...
++ dirname /etc/php/8.1/fpm/conf.d/90-ncp.ini
+ mkdir -p /etc/php/8.1/fpm/conf.d
+ [[ -f /etc/php/8.1/fpm/conf.d/90-ncp.ini ]]
+ cp -a /etc/php/8.1/fpm/conf.d/90-ncp.ini /tmp/tmp.nZTM8BBxSw
+ [[ '' == \-\-\d\e\f\a\u\l\t\s ]]
+ bash /usr/local/etc/ncp-templates/php/90-ncp.ini.sh
+ rm /tmp/tmp.nZTM8BBxSw
++ cat /etc/php/8.1/fpm/conf.d/90-ncp.ini
+ [[ ; disable .user.ini files for performance and workaround NC update
bugs user_ini.filename =

; from Nextcloud .user.ini
upload_max_filesize=10G
post_max_size=10G
memory_limit=3139633152
mbstring.func_overload=0
always_populate_raw_post_data=-1
default_charset='UTF-8'
output_buffering=0

; slow transfers will be killed after this time
max_execution_time=3600
max_input_time=3600 == \;\ \d\i\s\a\b\l\e\ \.\u\s\e\r\.\i\n\i\
\f\i\l\e\s\ \f\o\r\ \p\e\r\f\o\r\m\a\n\c\e\ \a\n\d\
\w\o\r\k\a\r\o\u\n\d\ \N\C\ \u\p\d\a\t\e\ \b\u\g\s\
\u\s\e\r\_\i\n\i\.\f\i\l\e\n\a\m\e\ \=\ \ \;\ \f\r\o\m\
\N\e\x\t\c\l\o\u\d\ \.\u\s\e\r\.\i\n\i\
\u\p\l\o\a\d\_\m\a\x\_\f\i\l\e\s\i\z\e\=\1\0\G\
\p\o\s\t\_\m\a\x\_\s\i\z\e\=\1\0\G\
\m\e\m\o\r\y\_\l\i\m\i\t\=\3\1\3\9\6\3\3\1\5\2\
\m\b\s\t\r\i\n\g\.\f\u\n\c\_\o\v\e\r\l\o\a\d\=\0\
\a\l\w\a\y\s\_\p\o\p\u\l\a\t\e\_\r\a\w\_\p\o\s\t\_\d\a\t\a\=\-\1\
\d\e\f\a\u\l\t\_\c\h\a\r\s\e\t\=\'\U\T\F\-\8\'\
\o\u\t\p\u\t\_\b\u\f\f\e\r\i\n\g\=\0\ \
\;\ \s\l\o\w\ \t\r\a\n\s\f\e\r\s\ \w\i\l\l\ \b\e\ \k\i\l\l\e\d\
\a\f\t\e\r\ \t\h\i\s\ \t\i\m\e\
\m\a\x\_\e\x\e\c\u\t\i\o\n\_\t\i\m\e\=\3\6\0\0\
\m\a\x\_\i\n\p\u\t\_\t\i\m\e\=\3\6\0\0 ]]
+ local CONF=/etc/php/8.1/fpm/pool.d/www.conf
++ cat /etc/php/8.1/fpm/pool.d/www.conf
+ CONF_VALUE='[www]
user = www-data
group = www-data
listen = /run/php/php8.1-fpm.sock
listen.owner = www-data
listen.group = www-data
pm = static
pm.max_children = 39
pm.start_servers = 4
pm.min_spare_servers = 4
pm.max_spare_servers = 8
pm.status_path = /status
slowlog = log/$pool.log.slow'
++ tmpl_php_threads
+++ get_total_mem
++++ free -b
++++ sed -n 2p
++++ awk '{ print $2 }'
+++ local total_mem=4186177536
+++ local MAX_32BIT=4096000000
+++ [[ aarch64 == \a\r\m\v\7 ]]
+++ echo 4186177536
++ local TOTAL_MEM=4186177536
+++ find_app_param nc-limits PHPTHREADS
+++ local script=nc-limits
+++ local param_id=PHPTHREADS
++++ basename nc-limits .sh
+++ local ncp_app=nc-limits
+++ local cfg_file=/usr/local/etc/ncp-config.d/nc-limits.cfg
++++ find_app_param_num nc-limits PHPTHREADS
++++ local script=nc-limits
++++ local param_id=PHPTHREADS
+++++ basename nc-limits .sh
++++ local ncp_app=nc-limits
++++ local cfg_file=/usr/local/etc/ncp-config.d/nc-limits.cfg
++++ [[ -f /usr/local/etc/ncp-config.d/nc-limits.cfg ]]
+++++ cat /usr/local/etc/ncp-config.d/nc-limits.cfg
++++ local 'cfg={
"id": "nc-limits",
"name": "Nc-limits",
"title": "nc-limits",
"description": "Configure system limits for NextcloudPi",
"info": "Examples: 200M or 2G. Write 0 for autoconfig",
"infotitle": "",
"params": [
{
"id": "MAXFILESIZE",
"name": "Maximum file size",
"value": "10G",
"default": "10G",
"suggest": "10G"
},
{
"id": "MEMORYLIMIT",
"name": "Memory limit",
"value": "0",
"default": "0",
"suggest": "0"
},
{
"id": "PHPTHREADS",
"name": "PHP threads",
"value": "0",
"default": "0",
"suggest": "0"
},
{
"id": "REDISMEM",
"name": "Redis memory",
"value": "0",
"default": "0",
"suggest": "0"
}
]
}'
+++++ jq '.params | length'
++++ local len=4
++++ (( i = 0 ))
++++ (( i < len ))
+++++ jq -r '.params[0].id'
++++ local p_id=MAXFILESIZE
++++ [[ PHPTHREADS == \M\A\X\F\I\L\E\S\I\Z\E ]]
++++ (( i++ ))
++++ (( i < len ))
+++++ jq -r '.params[1].id'
++++ local p_id=MEMORYLIMIT
++++ [[ PHPTHREADS == \M\E\M\O\R\Y\L\I\M\I\T ]]
++++ (( i++ ))
++++ (( i < len ))
+++++ jq -r '.params[2].id'
++++ local p_id=PHPTHREADS
++++ [[ PHPTHREADS == \P\H\P\T\H\R\E\A\D\S ]]
++++ echo 2
++++ return 0
+++ local p_num=2
+++ jq -r '.params[2].value'
++ local PHPTHREADS=0
++ [[ 0 -eq 0 ]]
++ PHPTHREADS=39
++ [[ 39 -lt 16 ]]
++ echo -n 39
+ echo 'Using 39 PHP threads'
Using 39 PHP threads
+ install_template php/pool.d.www.conf.sh
/etc/php/8.1/fpm/pool.d/www.conf
+ local template=php/pool.d.www.conf.sh
+ local target=/etc/php/8.1/fpm/pool.d/www.conf
++ mktemp
+ local bkp=/tmp/tmp.xCXbxvUZG8
+ echo 'Installing template '\''php/pool.d.www.conf.sh'\''...'
Installing template 'php/pool.d.www.conf.sh'...
++ dirname /etc/php/8.1/fpm/pool.d/www.conf
+ mkdir -p /etc/php/8.1/fpm/pool.d
+ [[ -f /etc/php/8.1/fpm/pool.d/www.conf ]]
+ cp -a /etc/php/8.1/fpm/pool.d/www.conf /tmp/tmp.xCXbxvUZG8
+ [[ '' == \-\-\d\e\f\a\u\l\t\s ]]
+ bash /usr/local/etc/ncp-templates/php/pool.d.www.conf.sh
+ rm /tmp/tmp.xCXbxvUZG8
++ cat /etc/php/8.1/fpm/pool.d/www.conf
+ [[ [www]
user = www-data
group = www-data
listen = /run/php/php8.1-fpm.sock
listen.owner = www-data
listen.group = www-data
pm = static
pm.max_children = 39
pm.start_servers = 4
pm.min_spare_servers = 4
pm.max_spare_servers = 8
pm.status_path = /status
slowlog = log/$pool.log.slow == \[\w\w\w\]\
\u\s\e\r\ \=\ \w\w\w\-\d\a\t\a\
\g\r\o\u\p\ \=\ \w\w\w\-\d\a\t\a\
\l\i\s\t\e\n\ \=\ \/\r\u\n\/\p\h\p\/\p\h\p\8\.\1\-\f\p\m\.\s\o\c\k\
\l\i\s\t\e\n\.\o\w\n\e\r\ \=\ \w\w\w\-\d\a\t\a\
\l\i\s\t\e\n\.\g\r\o\u\p\ \=\ \w\w\w\-\d\a\t\a\
\p\m\ \=\ \s\t\a\t\i\c\
\p\m\.\m\a\x\_\c\h\i\l\d\r\e\n\ \=\ \3\9\
\p\m\.\s\t\a\r\t\_\s\e\r\v\e\r\s\ \=\ \4\
\p\m\.\m\i\n\_\s\p\a\r\e\_\s\e\r\v\e\r\s\ \=\ \4\
\p\m\.\m\a\x\_\s\p\a\r\e\_\s\e\r\v\e\r\s\ \=\ \8\
\p\m\.\s\t\a\t\u\s\_\p\a\t\h\ \=\ \/\s\t\a\t\u\s\
\s\l\o\w\l\o\g\ \=\ \l\o\g\/\$\p\o\o\l\.\l\o\g\.\s\l\o\w ]]
+ local CONF=/etc/mysql/mariadb.conf.d/91-ncp.cnf
++ cat /etc/mysql/mariadb.conf.d/91-ncp.cnf
+ CONF_VALUE='[mysqld]
transaction_isolation = READ-COMMITTED
innodb_large_prefix=true
innodb_file_per_table=1
innodb_file_format=barracuda
max_allowed_packet=256M

[server]
# innodb settings
skip-name-resolve
innodb_buffer_pool_size = 996212736
innodb_buffer_pool_instances = 1
innodb_flush_log_at_trx_commit = 2
innodb_log_buffer_size = 32M
innodb_max_dirty_pages_pct = 90
innodb_log_file_size = 32M

# disable query cache
query_cache_type = 0
query_cache_size = 0

# other
tmp_table_size= 64M
max_heap_table_size= 64M'
+ install_template mysql/91-ncp.cnf.sh
/etc/mysql/mariadb.conf.d/91-ncp.cnf
+ local template=mysql/91-ncp.cnf.sh
+ local target=/etc/mysql/mariadb.conf.d/91-ncp.cnf
++ mktemp
+ local bkp=/tmp/tmp.KBbTpRTAil
+ echo 'Installing template '\''mysql/91-ncp.cnf.sh'\''...'
Installing template 'mysql/91-ncp.cnf.sh'...
++ dirname /etc/mysql/mariadb.conf.d/91-ncp.cnf
+ mkdir -p /etc/mysql/mariadb.conf.d
+ [[ -f /etc/mysql/mariadb.conf.d/91-ncp.cnf ]]
+ cp -a /etc/mysql/mariadb.conf.d/91-ncp.cnf /tmp/tmp.KBbTpRTAil
+ [[ '' == \-\-\d\e\f\a\u\l\t\s ]]
+ bash /usr/local/etc/ncp-templates/mysql/91-ncp.cnf.sh
+ rm /tmp/tmp.KBbTpRTAil
++ cat /etc/mysql/mariadb.conf.d/91-ncp.cnf
+ [[ [mysqld]
transaction_isolation = READ-COMMITTED
innodb_large_prefix=true
innodb_file_per_table=1
innodb_file_format=barracuda
max_allowed_packet=256M

[server]
# innodb settings
skip-name-resolve
innodb_buffer_pool_size = 996212736
innodb_buffer_pool_instances = 1
innodb_flush_log_at_trx_commit = 2
innodb_log_buffer_size = 32M
innodb_max_dirty_pages_pct = 90
innodb_log_file_size = 32M

# disable query cache
query_cache_type = 0
query_cache_size = 0

# other
tmp_table_size= 64M
max_heap_table_size= 64M == \[\m\y\s\q\l\d\]\
\t\r\a\n\s\a\c\t\i\o\n\_\i\s\o\l\a\t\i\o\n\ \=\
\R\E\A\D\-\C\O\M\M\I\T\T\E\D\
\i\n\n\o\d\b\_\l\a\r\g\e\_\p\r\e\f\i\x\=\t\r\u\e\
\i\n\n\o\d\b\_\f\i\l\e\_\p\e\r\_\t\a\b\l\e\=\1\
\i\n\n\o\d\b\_\f\i\l\e\_\f\o\r\m\a\t\=\b\a\r\r\a\c\u\d\a\
\m\a\x\_\a\l\l\o\w\e\d\_\p\a\c\k\e\t\=\2\5\6\M\ \
\[\s\e\r\v\e\r\]\
\#\ \i\n\n\o\d\b\ \s\e\t\t\i\n\g\s\
\s\k\i\p\-\n\a\m\e\-\r\e\s\o\l\v\e\
\i\n\n\o\d\b\_\b\u\f\f\e\r\_\p\o\o\l\_\s\i\z\e\ \=\ \9\9\6\2\1\2\7\3\6\
\i\n\n\o\d\b\_\b\u\f\f\e\r\_\p\o\o\l\_\i\n\s\t\a\n\c\e\s\ \=\ \1\
\i\n\n\o\d\b\_\f\l\u\s\h\_\l\o\g\_\a\t\_\t\r\x\_\c\o\m\m\i\t\ \=\ \2\
\i\n\n\o\d\b\_\l\o\g\_\b\u\f\f\e\r\_\s\i\z\e\ \=\ \3\2\M\
\i\n\n\o\d\b\_\m\a\x\_\d\i\r\t\y\_\p\a\g\e\s\_\p\c\t\ \=\ \9\0\
\i\n\n\o\d\b\_\l\o\g\_\f\i\l\e\_\s\i\z\e\ \=\ \3\2\M\
\
\#\ \d\i\s\a\b\l\e\ \q\u\e\r\y\ \c\a\c\h\e\
\q\u\e\r\y\_\c\a\c\h\e\_\t\y\p\e\ \=\ \0\
\q\u\e\r\y\_\c\a\c\h\e\_\s\i\z\e\ \=\ \0\
\
\#\ \o\t\h\e\r\
\t\m\p\_\t\a\b\l\e\_\s\i\z\e\=\ \6\4\M\
\m\a\x\_\h\e\a\p\_\t\a\b\l\e\_\s\i\z\e\=\ \6\4\M ]]
+ [[ false == \t\r\u\e ]]
+ local CONF=/etc/redis/redis.conf
++ grep '^maxmemory' /etc/redis/redis.conf
++ awk '{ print $2 }'
+ local 'CURRENT_REDIS_MEM=allkeys-lru
0'
+ [[ 0 != \a\l\l\k\e\y\s\-\l\r\u\
\0 ]]
+ sed -i 's|^maxmemory .*|maxmemory 0|' /etc/redis/redis.conf
+ chown redis:redis /etc/redis/redis.conf
+ service redis-server restart

System config value trusted_domains => 3 set to string nextcloudpi
System config value overwrite.cli.url set to string https://nextcloudpi/
System config value trusted_proxies => 11 set to string 127.0.0.1
System config value trusted_proxies => 12 set to string ::1
System config value trusted_proxies => 14 set to string 192.168.178.72
192.168.178.73
Setup notify_push (attempt 1/5)
Setup notify_push (attempt 2/5)
Setup notify_push (attempt 3/5)
Setup notify_push (attempt 4/5)
Setup notify_push (attempt 5/5)
✓ redis is configured
✓ push server is receiving redis messages
✓ push server can load mount info from database
✓ push server can connect to the Nextcloud server
✓ push server is a trusted proxy
✓ push server is running the same version as the app
configuration saved
[ letsencrypt ] (Wed Jun 19 21:02:36 UTC 2024)
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Account registered.
Requesting a certificate for cloud.letsgolaser.org
An unexpected error occurred:
AttributeError: can't set attribute
Ask for help or search for solutions at
https://community.letsencrypt.org. See the logfile
/var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more
details.

[ letsencrypt ] (Wed Jun 19 21:02:53 UTC 2024)
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for cloud.letsgolaser.org
An unexpected error occurred:
AttributeError: can't set attribute
Ask for help or search for solutions at
https://community.letsencrypt.org. See the logfile
/var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more
details.

[ letsencrypt ] (Wed Jun 19 21:03:02 UTC 2024)
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for cloud.letsgolaser.org
An unexpected error occurred:
AttributeError: can't set attribute
Ask for help or search for solutions at
https://community.letsencrypt.org. See the logfile
/var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more
details.

[ nc-admin ] (Wed Jun 19 21:12:30 UTC 2024)
Successfully reset password for ncp


[ nc-previews-auto ]
[ nc-nextcloud ] (Thu Jun 20 18:24:44 CEST 2024)
Downloading Nextcloud 28.0.5...
Installing Nextcloud 28.0.5...
Creating possible missing Directories
chmod Files and Directories
chown Directories
chmod/chown .htaccess
PHP Warning: include(/var/www/nextcloud/config/config.php): Failed to
open stream: No such file or directory in Command line code on line 1
PHP Warning: include(): Failed opening
'/var/www/nextcloud/config/config.php' for inclusion
(include_path='.:/usr/share/php') in Command line code on line 1 PHP
Warning: Undefined variable $CONFIG in Command line code on line 1 PHP
Warning: Trying to access array offset on value of type null in Command
line code on line 1 Installing template 'php/opcache.ini.sh'... PHP
Warning: include(/var/www/nextcloud/config/config.php): Failed to open
stream: No such file or directory in Command line code on line 1 PHP
Warning: include(): Failed opening
'/var/www/nextcloud/config/config.php' for inclusion
(include_path='.:/usr/share/php') in Command line code on line 1 PHP
Warning: Undefined variable $CONFIG in Command line code on line 1 PHP
Warning: Trying to access array offset on value of type null in Command
line code on line 1 PHP Warning: Undefined variable $CONFIG in Command
line code on line 1 PHP Warning: Trying to access array offset on value
of type null in Command line code on line 1 Setting up database...
Setting up Apache... Installing template 'nextcloud.conf.sh'... PHP
Warning: Undefined variable $CONFIG in Command line code on line 1 PHP
Warning: Trying to access array offset on value of type null in Command
line code on line 1 PHP Warning: Undefined variable $CONFIG in Command
line code on line 1 PHP Warning: Trying to access array offset on value
of type null in Command line code on line 1 PHP Warning: Undefined
array key "dbtableprefix" in Command line code on line 1 INFO: Metrics
enabled: no Apache self check: Syntax OK Site 001-nextcloud already
enabled Module proxy already enabled Considering dependency proxy for
proxy_http: Module proxy already enabled Module proxy_http already
enabled Considering dependency proxy for proxy_wstunnel: Module proxy
already enabled Module proxy_wstunnel already enabled
Installing template 'systemd/notify_push.service.sh'...
PHP Warning: Undefined array key "dbtableprefix" in Command line code
on line 1 Setting up system...
Don't forget to run nc-init

[ nc-prettyURL ] (Thu Jun 20 18:25:47 CEST 2024)
Nextcloud is not installed - only a limited number of commands are
available


There are no commands defined in the "config:system" namespace.


Nextcloud is not installed - only a limited number of commands are
available


There are no commands defined in the "config:system" namespace.


Nextcloud is not installed - only a limited number of commands are
available


There are no commands defined in the "config:system" namespace.


Nextcloud is not installed - only a limited number of commands are
available


There are no commands defined in the "maintenance:update" namespace.

Did you mean this?
maintenance


There has been an error.

[ nc-prettyURL ] (Thu Jun 20 18:26:00 CEST 2024)
Nextcloud is not installed - only a limited number of commands are
available


There are no commands defined in the "config:system" namespace.


Nextcloud is not installed - only a limited number of commands are
available


There are no commands defined in the "config:system" namespace.


Nextcloud is not installed - only a limited number of commands are
available


There are no commands defined in the "config:system" namespace.


Nextcloud is not installed - only a limited number of commands are
available


There are no commands defined in the "maintenance:update" namespace.

Did you mean this?
maintenance


There has been an error.

[ nc-admin ] (Thu Jun 20 19:57:12 CEST 2024)
Successfully reset password for ncp


[ nc-previews-auto ]
[ letsencrypt ] (Fri Jun 21 08:38:52 CEST 2024)
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for cloud.letsgolaser.org

Successfully received certificate.
Certificate is saved at:
/etc/letsencrypt/live/cloud.letsgolaser.org/fullchain.pem Key is saved
at: /etc/letsencrypt/live/cloud.letsgolaser.org/privkey.pem This
certificate expires on 2024-09-19. These files will be updated when the
certificate renews. Certbot has set up a scheduled task to
automatically renew this certificate in the background.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 - - - - If you like Certbot, please consider supporting our work by:
* Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
* Donating to EFF: https://eff.org/donate-le
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 - - - - Installing template 'nextcloud.conf.sh'...
INFO: Letsencrypt domain is cloud.letsgolaser.org
INFO: Metrics enabled: no
Apache self check:
Syntax OK
System config value trusted_domains => 11 set to string
 cloud.letsgolaser.org System config value trusted_domains => 3 set to
 string cloud.letsgolaser.org System config value overwrite.cli.url
 set to string https://cloud.letsgolaser.org/

[ nc-limits ] (Fri Jun 21 10:52:11 CEST 2024)
Using 3139633152 for PHP max memory
Installing template 'php/90-ncp.ini.sh'...
Using 39 PHP threads
Installing template 'php/pool.d.www.conf.sh'...
Installing template 'mysql/91-ncp.cnf.sh'...

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
 'passwordsalt' => '***************************',
 'secret' => '***************************************',
 'trusted_domains' => 
 array (
   0 => 'localhost',
   7 => 'nextcloudpi',
   5 => 'nextcloudpi.local',
   8 => 'nextcloudpi.lan',
   3 => '***********',
   11 => '***********',
   1 => '***********',
   14 => 'nextcloudpi',
   20 => '***********',
 ),
 'datadirectory' => '/opt/ncdata/data',
 'dbtype' => 'mysql',
 'version' => '28.0.5.1',
 'overwrite.cli.url' => '***********',
 'dbname' => 'nextcloud',
 'dbhost' => 'localhost',
 'dbport' => '',
 'dbtableprefix' => 'oc_',
 'mysql.utf8mb4' => true,
 'dbuser' => 'ncadmin',
 'dbpassword' => '***********',
 'installed' => true,
 'instanceid' => '***********',
 'memcache.local' => '\\OC\\Memcache\\Redis',
 'memcache.locking' => '\\OC\\Memcache\\Redis',
 'redis' => 
 array (
   'host' => '/var/run/redis/redis.sock',
   'port' => 0,
   'timeout' => 0.0,
   'password' => '***********',
 ),
 'tempdirectory' => '/opt/ncdata/data/tmp',
 'mail_smtpmode' => 'sendmail',
 'mail_smtpauthtype' => 'LOGIN',
 'mail_from_address' => 'noreply',
 'mail_domain' => 'nextcloudpi.com',
 'preview_max_x' => '2048',
 'preview_max_y' => '2048',
 'jpeg_quality' => '60',
 'overwriteprotocol' => 'https',
 'maintenance' => false,
 'logfile' => '/opt/ncdata/data/nextcloud.log',
 'trusted_proxies' => 
 array (
   11 => '127.0.0.1',
   12 => '::1',
   14 => '192.168.178.72
192.168.178.73',
 ),
 'loglevel' => '2',
 'log_type' => 'file',
 'htaccess.RewriteBase' => '/',
 'data-fingerprint' => '***********',
);

The output of your Apache/nginx/system log in /var/log/____:

[Fri Jun 21 11:55:22.992527 2024] [mpm_event:notice] [pid 211343:tid
281473758806048] AH00492: caught SIGWINCH, shutting down gracefully
[Fri Jun 21 11:55:26.352886 2024] [core:warn] [pid 211343:tid
281473758806048] AH00045: child process 211355 still did not exit,
sending a SIGTERM [Fri Jun 21 11:55:28.354975 2024] [core:warn] [pid
211343:tid 281473758806048] AH00045: child process 211355 still did not
exit, sending a SIGTERM [Fri Jun 21 11:55:30.357067 2024] [core:warn]
[pid 211343:tid 281473758806048] AH00045: child process 211355 still
did not exit, sending a SIGTERM [Fri Jun 21 11:55:32.359174 2024]
[core:error] [pid 211343:tid 281473758806048] AH00046: child process
211355 still did not exit, sending a SIGKILL [Fri Jun 21
11:55:33.418351 2024] [ssl:warn] [pid 214066:tid 281473137008672]
AH01882: Init: this version of mod_ssl was compiled against a newer
library (OpenSSL 3.0.13 30 Jan 2024 (OpenSSL 3.0.11 19 Sep 2023),
version currently loaded is 0x300000B0) - may result in undefined or
erroneous behavior [Fri Jun 21 11:55:33.424824 2024] [ssl:warn] [pid
214066:tid 281473137008672] AH01909: localhost:4443:0 server
certificate does NOT include an ID which matches the server name [Fri
Jun 21 11:55:33.443336 2024] [ssl:warn] [pid 214067:tid
281473137008672] AH01882: Init: this version of mod_ssl was compiled
against a newer library (OpenSSL 3.0.13 30 Jan 2024 (OpenSSL 3.0.11 19
Sep 2023), version currently loaded is 0x300000B0) - may result in
undefined or erroneous behavior [Fri Jun 21 11:55:33.447244 2024]
[ssl:warn] [pid 214067:tid 281473137008672] AH01909: localhost:4443:0
server certificate does NOT include an ID which matches the server name
[Fri Jun 21 11:55:33.457790 2024] [mpm_event:notice] [pid 214067:tid
281473137008672] AH00489: Apache/2.4.59 (Debian) OpenSSL/3.0.11
configured -- resuming normal operations [Fri Jun 21 11:55:33.457840
2024] [core:notice] [pid 214067:tid 281473137008672] AH00094: Command
line: '/usr/sbin/apache2'

Thank you very much in advance.

If I can deliver more info please say so!

At first a discrepance between the installied OpenSSL library and the one which has been used to compile mod_ssl has been identified. You should try to solve it by installing a newer OpenSSl library.

Next a connection should be established to “localhost:4443” but the installed TLS certificate doesn’t include the name “localhost”. You should update your configuration or install an updated certificate.

You should provide more detailed information how you are accessing your server of the network, if you’ve installed a local DNS, if the error appears when you try to access the server over the LAN or internet, etc.-, etc.

Hi j-ed,

thank you so much for your time and your response.

I will check the things you mention right away.

So I’m access Nextcloud via the domain that I’m pointing to the servers public IP address.

For accessing the NextcloudPi Panel, I have only found a way to access it throug “LOCAL-IP-ADDRESS”:4443 in my browser. Should I be able to access this from the internet with my domain as well?

The error didn’t appear specifically in the context of the CardDav issue. I was just providing the logs that where stated in the template. But I am happy to learn and if I can iron out some errors on the way the better.

So I’m access Nextcloud via the domain that I’m pointing to the servers public IP address.

Hm, that’s not fully answering my question. If you’re on your LAN and trying to access your server using its domain name which is assigned to the “external” ip address, it most likely will fail because on your LAN the ip address is different and routing to the internet and back most lilkely doesn’t work.
I prefer to have a DNS server installed on my LAN which resolves the Nextcloud domain name to your internal address. See e.g.

Hi j-ed,

I was answering to the best of my knowledge. Unfortunately I am quite new to all of this and the learning curve is quite steep.

Maybe you could rephrase it for a noob so I can try my best to answer properly.

btw installing the newest version of openssl (3.3.1) completely broke my nextcloud since openssh (and probably redis and other services too) was not compatible…

Need to fix a lot before I can get to the original problem.

I’m installing openssl-3.0.13 now and see if it works again.

ok the system is up and running again. I installed openssl 3.0.13 but the error in the apache logs still remains:

root@nextcloudpi:~# openssl version
OpenSSL 3.0.13 30 Jan 2024 (Library: OpenSSL 3.0.11 19 Sep 2023)
AH01882: Init: this version of mod_ssl was compiled against a newer library (OpenSSL 3.0.13 30 Jan 2024 (OpenSSL 3.0.11 19 Sep 2023), version currently loaded is 0x300000B0) - may result in undefined or erroneous behavior

Not sure how to fix this and if it is causing problems after all. I doubt that a slightly different version of openssl is causing problems. But if somebody knows how I’d be happy to apply a fix.

@j-ed
trying to answer your question:
I’m in my local network. From there I’m accessing the Nextcloudpi Panel because it doesn’t work through the domain name or the through the public IP. I guess this is intentional. I don’t know.
My Nextclout (Web)gui with the user login is accessable from the internet and from my local network but I exclusively access it from the internet.

I am not entirely sure why you linked that other post. I am not using different domains that point to my public IP. I have one domain and of course only one public IP.

I guess apache is showing that warning with the localhost:4443 because this is how I access the NCPI Panel. Not sure if this relates to the problem with the CardDav (and CalDav). I’m happy to solve this too though. Unfortunately I tried for a couple of hours and failed.

HTTPS works with the public domain.

SOLUTION:

Read the docs better or over and over again. I’ve totally missed, that I need a device password…

Could have saved me many hours…

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.