[/details]
Nextcloud version the latest:
Operating system and version NextCloudPi_RPi_03-28-20/_:
Apache or nginx version Apache:
PHP version 7.3:
The issue you are facing:
The initialisation fails with this SQL statement 1045. i can’t get it to work after nc-init anymore
Is this the first time you’ve seen this error? (Y/N):No
Steps to replicate it:
- fresh install and try NC-INIT (NCP-CONFIG >> CONFIG >> NC-INIT)
- this will produce the same result and same error on my raspberry pi 4(multiple times tried with two different images (raspbian and nextcloudpi curl installation and the nextcloudpi installation from the image)
The output of your Nextcloud log in Admin > Logging:
Error while trying to create admin user: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [1045] Access denied for user 'nextcloudu'@'localhost' (using password: YES)
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
[PHP]
engine = On
short_open_tag = Off
precision = 14
output_buffering = 4096
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func =
serialize_precision = -1
disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
disable_classes =
zend.enable_gc = On
expose_php = Off
max_execution_time = 30
max_input_time = 60
memory_limit = 128M
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
display_errors = Off
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
html_errors = On
variables_order = "GPCS"
request_order = "GP"
register_argc_argv = Off
auto_globals_jit = On
post_max_size = 8M
auto_prepend_file =
auto_append_file =
default_mimetype = "text/html"
default_charset = "UTF-8"
doc_root =
user_dir =
sys_temp_dir = /var/www/nextcloud/data/tmp
enable_dl = Off
file_uploads = On
upload_tmp_dir = /var/www/nextcloud/data/tmp
upload_max_filesize = 2M
max_file_uploads = 20
allow_url_fopen = On
allow_url_include = Off
default_socket_timeout = 60
[CLI Server]
cli_server.color = On
[Date]
[filter]
[iconv]
[imap]
[intl]
[sqlite3]
[Pcre]
[Pdo]
[Pdo_mysql]
pdo_mysql.default_socket=
[Phar]
[mail function]
smtp_port = 25
mail.add_x_header = Off
[ODBC]
odbc.allow_persistent = On
odbc.check_persistent = On
odbc.max_persistent = -1
odbc.max_links = -1
odbc.defaultlrl = 4096
odbc.defaultbinmode = 1
[Interbase]
ibase.allow_persistent = 1
ibase.max_persistent = -1
ibase.max_links = -1
ibase.timestampformat = "%Y-%m-%d %H:%M:%S"
ibase.dateformat = "%Y-%m-%d"
ibase.timeformat = "%H:%M:%S"
[MySQLi]
mysqli.max_persistent = -1
mysqli.allow_persistent = On
mysqli.max_links = -1
mysqli.default_port = 3306
mysqli.default_socket =
mysqli.default_host =
mysqli.default_user =
mysqli.default_pw =
mysqli.reconnect = Off
[mysqlnd]
mysqlnd.collect_statistics = On
mysqlnd.collect_memory_statistics = Off
[OCI8]
[PostgreSQL]
pgsql.allow_persistent = On
pgsql.auto_reset_persistent = Off
pgsql.max_persistent = -1
pgsql.max_links = -1
pgsql.ignore_notice = 0
pgsql.log_notice = 0
[bcmath]
bcmath.scale = 0
[browscap]
[Session]
session.save_handler = files
session.use_strict_mode = 0
session.use_cookies = 1
session.use_only_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.cookie_httponly =
session.cookie_samesite =
session.serialize_handler = php
session.gc_probability = 0
session.gc_divisor = 1000
session.gc_maxlifetime = 1440
session.referer_check =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
session.sid_length = 26
session.trans_sid_tags = "a=href,area=href,frame=src,form="
session.sid_bits_per_character = 5
[Assertion]
zend.assertions = -1
[COM]
[mbstring]
[gd]
[exif]
[Tidy]
tidy.clean_output = Off
[soap]
soap.wsdl_cache_enabled=1
soap.wsdl_cache_dir="/tmp"
soap.wsdl_cache_ttl=86400
soap.wsdl_cache_limit = 5
[sysvshm]
[ldap]
ldap.max_links = -1
[dba]
[opcache]
[curl]
[openssl]
The output of your Apache/nginx/system log in /var/log/____
:
[Sun May 03 07:02:42.415762 2020] [authz_host:error] [pid 1261:tid 2864677920] [client 192.168.1.6:49070] AH01753: access check of 'localhost' to /img/info.svg failed, reason: unable to get $
[Sun May 03 07:03:21.248294 2020] [authz_host:error] [pid 1261:tid 2864677920] [client 192.168.1.6:49070] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to $
[Sun May 03 07:03:46.281557 2020] [authz_host:error] [pid 1261:tid 2864677920] [client 192.168.1.6:49196] AH01753: access check of 'localhost' to /img/red-circle.svg failed, reason: unable t$
[Sun May 03 07:28:30.669440 2020] [mpm_event:notice] [pid 928:tid 3069633040] AH00493: SIGUSR1 received. Doing graceful restart
[Sun May 03 07:28:30.693167 2020] [ssl:warn] [pid 928:tid 3069633040] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun May 03 07:28:30.693337 2020] [ssl:error] [pid 928:tid 3069633040] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / ser$
[Sun May 03 07:28:30.693354 2020] [ssl:error] [pid 928:tid 3069633040] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun May 03 07:28:30.694293 2020] [mpm_event:notice] [pid 928:tid 3069633040] AH00489: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1d configured -- resuming normal operations
[Sun May 03 07:28:30.694337 2020] [core:notice] [pid 928:tid 3069633040] AH00094: Command line: '/usr/sbin/apache2'