Support intro
Sorry to hear you’re facing problems
help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.
In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
example
Or for longer, use three backticks above and below the code snippet:
longer
example
here
Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can
Nextcloud version (eg, 20.0.5): 25
Operating system and version (eg, Ubuntu 20.04): 22.04
Apache or nginx version (eg, Apache 2.4.25): 2.4.52
PHP version (eg, 7.4): 8.1-fpm
The issue you are facing:
I have NC behind an NGINX Reverse Proxy, which is handling HTTPS/SSL with a wildcard cert for my domain.
I have followed an excellent install tutorial Markus Weingartner, but omitted setting up ssl on my install due to the reverse proxy I already have (nginx).
The NC instance is up and stably running.
I need to set the correct trusted proxy statements in my config.php
I also need to solve an error from the install which is preventing the instance from accessing the appstore, or anything else for that matter. The error from logging is “Could not connect to appstore: cURL error 7: Failed to connect to apps.nextcloud.com port 443”
Clearly NC is not communicating correctly, and I do not know how to resolve that.
Appreciate any help in advance.
PHP modules installed are:
php8.1-cli php8.1-common php8.1-mbstring php8.1-gd php8.1-imagick php8.1-intl php8.1-bz2 php8.1-xml php8.1-pgsql php8.1-zip php8.1-dev php8.1-curl php8.1-fpm redis-server php8.1-redis php8.1-smbclient php8.1-ldap php8.1-bcmath php8.1-gmp libmagickcore-6.q16-6-extra
Apache Config:
<VirtualHost *:80>
ServerName xxxx.xxxx.net
ServerAdmin xxxx@big.nebbles.net
DocumentRoot /var/www/html/nextcloud
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
The output of your Nextcloud log in Admin > Logging:
Could not connect to appstore: cURL error 7: Failed to connect to apps.nextcloud.com port 443 after 3078 ms: No route to host (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://apps.nextcloud.com/api/v1/apps.json
The output of your config.php file in `/path/to/nextcloud` (make sure you remove any identifiable information!):
‘<?php
$CONFIG = array (
‘instanceid’ => ‘xxxxxxxxxxxxxxx’,
‘passwordsalt’ => ‘xxxxxxxxxxxxxx’,
‘secret’ => ‘xxxxxxxxxxxx’,
‘trusted_domains’ =>
array (
0 => ‘xxx.xxx.net’,
),
‘datadirectory’ => ‘/nextcloud_data’,
‘dbtype’ => ‘pgsql’,
‘version’ => ‘25.0.0.18’,
‘overwrite.cli.url’ => ‘http://big.nebbles.net’,
‘dbname’ => ‘nextclouddb’,
‘dbhost’ => ‘localhost’,
‘dbport’ => ‘’,
‘dbtableprefix’ => ‘oc_’,
‘dbuser’ => ‘xxxxxxxxxxx’,
‘dbpassword’ => ‘xxxxxxxxxxxx’,
‘installed’ => true,
‘memcache.local’ => ‘\OC\Memcache\Redis’,
‘memcache.locking’ => ‘\OC\Memcache\Redis’,
‘redis’ =>
array (
‘host’ => ‘localhost’,
‘port’ => 6379,
),
‘default_phone_region’ => ‘US’,
‘mail_smtpmode’ => ‘smtp’,
‘mail_smtpsecure’ => ‘tls’,
‘mail_sendmailmode’ => ‘smtp’,
‘mail_from_address’ => ‘nic’,
‘mail_domain’ => ‘nebbles.net’,
‘mail_smtpauthtype’ => ‘LOGIN’,
‘mail_smtpauth’ => 1,
‘mail_smtphost’ => ‘xxxxxxxxxxxxxxx’,
‘mail_smtpport’ => ‘587’,
‘mail_smtpname’ => ‘nic@nebbles.net’,
‘mail_smtppassword’ => ‘xxxxxxxxxxxxxxx’,
‘updater.secret’ => ‘xxxxxxxxxxxxxxxx’,
‘maintenance’ => false,
‘theme’ => ‘’,
‘loglevel’ => 2,
);’
…
The output of your Apache/nginx/system log in /var/log/____
:
'[Tue Nov 01 04:25:10.308759 2022] [mpm_event:notice] [pid 20313:tid 140441007122304] AH00489: Apache/2.4.52 (Ubuntu) configured -- resuming normal operations
[Tue Nov 01 04:25:10.308844 2022] [core:notice] [pid 20313:tid 140441007122304] AH00094: Command line: '/usr/sbin/apache2'
[Tue Nov 01 04:49:44.612484 2022] [mpm_event:notice] [pid 20313:tid 140441007122304] AH00492: caught SIGWINCH, shutting down gracefully
[Tue Nov 01 04:50:25.688376 2022] [mpm_event:notice] [pid 797:tid 140243880286080] AH00489: Apache/2.4.52 (Ubuntu) configured -- resuming normal operations
[Tue Nov 01 04:50:25.688584 2022] [core:notice] [pid 797:tid 140243880286080] AH00094: Command line: '/usr/sbin/apache2'
[Tue Nov 01 05:15:42.820607 2022] [mpm_event:notice] [pid 797:tid 140243880286080] AH00492: caught SIGWINCH, shutting down gracefully
[Tue Nov 01 05:15:42.915716 2022] [mpm_event:notice] [pid 20200:tid 139778974488448] AH00489: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Tue Nov 01 05:15:42.915855 2022] [core:notice] [pid 20200:tid 139778974488448] AH00094: Command line: '/usr/sbin/apache2'
[Tue Nov 01 05:27:31.805194 2022] [mpm_event:notice] [pid 20200:tid 139778974488448] AH00493: SIGUSR1 received. Doing graceful restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Tue Nov 01 05:27:31.810366 2022] [mpm_event:notice] [pid 20200:tid 139778974488448] AH00489: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Tue Nov 01 05:27:31.810372 2022] [core:notice] [pid 20200:tid 139778974488448] AH00094: Command line: '/usr/sbin/apache2'
[Tue Nov 01 05:37:32.138497 2022] [mpm_event:notice] [pid 20200:tid 139778974488448] AH00492: caught SIGWINCH, shutting down gracefully
[Tue Nov 01 05:37:32.188378 2022] [mpm_event:notice] [pid 20883:tid 140679489603456] AH00489: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Tue Nov 01 05:37:32.188469 2022] [core:notice] [pid 20883:tid 140679489603456] AH00094: Command line: '/usr/sbin/apache2'
[Tue Nov 01 06:04:47.954881 2022] [mpm_event:notice] [pid 20883:tid 140679489603456] AH00492: caught SIGWINCH, shutting down gracefully
[Tue Nov 01 06:04:49.426539 2022] [mpm_event:notice] [pid 22814:tid 140462167373696] AH00489: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Tue Nov 01 06:04:49.426673 2022] [core:notice] [pid 22814:tid 140462167373696] AH00094: Command line: '/usr/sbin/apache2'
[Tue Nov 01 06:56:44.952303 2022] [mpm_event:notice] [pid 22814:tid 140462167373696] AH00492: caught SIGWINCH, shutting down gracefully
[Tue Nov 01 06:56:47.384281 2022] [mpm_event:notice] [pid 25335:tid 140395842615168] AH00489: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Tue Nov 01 06:56:47.384379 2022] [core:notice] [pid 25335:tid 140395842615168] AH00094: Command line: '/usr/sbin/apache2'
[Tue Nov 01 23:42:21.496553 2022] [proxy_fcgi:error] [pid 25337:tid 140395358971456] [client 192.168.10.30:61309] AH01071: Got error 'Primary script unknown'
[Tue Nov 01 23:42:26.889178 2022] [proxy_fcgi:error] [pid 25336:tid 140395132466752] [client 192.168.10.30:12535] AH01071: Got error 'Primary script unknown'