NextcloudPi is working but "Internet Check No" and no access to apps

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

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 :heart:

Nextcloud version (eg, 18.0.2): 18.0.5.1
Operating system and version (eg, Ubuntu 20.04): Debian GNU/Linux 10 \n \l
NextCloudPi version v1.26.2

The issue you are facing:
Two issues
First: I have the internet check as a NO message in my NextCloudPi panel. Suspect it is related to second issue.

Nextcloud check	ok
Nextcloud version	18.0.5.1
HTTPD service	up
PHP service	up
MariaDB service	up
Redis service	up
Postfix service	up
internet check	no
port check 80	open
port check 443	open

Second issue is that I can not connect to appstore:

Warning	appstoreFetcher	Could not connect to appstore: cURL error 28: Operation timed out after 10000 milliseconds with 65536 out of 5161947 bytes received (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)	
2020-07-20T16:15:18+1000
Warning	appstoreFetcher	Could not connect to appstore: cURL error 28: Operation timed out after 10000 milliseconds with 2111400 out of 5161947 bytes received (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)	
2020-07-20T09:34:46+1000
Warning	appstoreFetcher	Could not connect to appstore: cURL error 28: Operation timed out after 10000 milliseconds with 1736704 out of 5161947 bytes received (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)	
2020-07-20T09:34:45+1000
Warning	appstoreFetcher	Could not connect to appstore: cURL error 28: Operation timed out after 10000 milliseconds with 279400 out of 5161947 bytes received (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)	
2020-07-20T09:33:15+1000

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

Steps to replicate it:

  1. Fresh install of NCP

Note, I can successfully login and access the server (running on a NUC PC) from outside my home so the ddns is working and the rest of the NCP install worked OK, the nextcloud scan reports an A+.

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

<?php
$CONFIG = array (
  'trusted_domains' => 
  array (
    0 => 'localhost',
    5 => 'nextcloudpi.local',
    7 => 'nextcloudpi',
    8 => 'nextcloudpi.lan',
  ),
  'datadirectory' => '/home/www/ncdata',
  'dbtype' => 'mysql',
  'version' => '18.0.5.1',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'ncadmin',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
  ),
  'tempdirectory' => '/home/www/ncdata/tmp',
  'mail_smtpmode' => 'smtp',
  'mail_domain' => 'gmail.com',
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'jpeg_quality' => '60',
  'overwriteprotocol' => 'https',
  'loglevel' => '2',
  'log_type' => 'file',
  'maintenance' => false,
  'logfile' => '/home/www/ncdata/nextcloud.log',
  'htaccess.RewriteBase' => '/',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpauth' => 1,
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtphost' => 'smtp.gmail.com',
  'mail_smtpport' => '587',
  'mail_smtpsecure' => 'tls',
);

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

jonathan@nas:~$ sudo tail /var/log/apache2/nc-error.log
[Sun Jul 19 15:51:54.010017 2020] [ssl:error] [pid 700:tid 140554851890304] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=nas / issuer: CN=nas / serial: ***** / notbefore: Jul 19 05:05:08 2020 GMT / notafter: Jul 17 05:05:08 2030 GMT]
[Sun Jul 19 15:51:54.010034 2020] [ssl:error] [pid 700:tid 140554851890304] AH02604: Unable to configure certificate localhost:443:0 for stapling
[Sun Jul 19 16:16:47.447491 2020] [ssl:warn] [pid 700:tid 140554851890304] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jul 19 16:16:47.447586 2020] [ssl:error] [pid 700:tid 140554851890304] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=nas / issuer: CN=nas / serial: **** / notbefore: Jul 19 05:05:08 2020 GMT / notafter: Jul 17 05:05:08 2030 GMT]
[Sun Jul 19 16:16:47.447597 2020] [ssl:error] [pid 700:tid 140554851890304] AH02604: Unable to configure certificate localhost:443:0 for stapling
[Sun Jul 19 16:17:10.860727 2020] [ssl:warn] [pid 700:tid 140554851890304] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jul 19 16:17:10.860823 2020] [ssl:error] [pid 700:tid 140554851890304] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=nas / issuer: CN=nas / serial: **** / notbefore: Jul 19 05:05:08 2020 GMT / notafter: Jul 17 05:05:08 2030 GMT]
[Sun Jul 19 16:17:10.860834 2020] [ssl:error] [pid 700:tid 140554851890304] AH02604: Unable to configure certificate localhost:443:0 for stapling
[Sun Jul 19 17:01:19.008423 2020] [ssl:error] [pid 987:tid 140090400335616] (EAI 2)Name or service not known: [client 127.0.0.1:51944] AH01972: could not resolve address of OCSP responder ocsp.int-x3.letsencrypt.org
[Sun Jul 19 17:01:19.008477 2020] [ssl:error] [pid 987:tid 140090400335616] AH01941: stapling_renew_response: responder error

jonathan@nas:~$ sudo tail /var/log/apache2/error.log
[Mon Jul 20 19:41:05.034048 2020] [authz_host:error] [pid 916:tid 139801209972480] [client 192.168.20.19:56596] AH01753: access check of 'localhost' to /img/wizard.svg failed, reason: unable to get the remote host name, referer: https://****.net:4443/css/ncp.css
[Mon Jul 20 19:41:05.034153 2020] [authz_host:error] [pid 916:tid 139801209972480] [client 192.168.20.19:56596] AH01753: access check of 'localhost' to /img/files.svg failed, reason: unable to get the remote host name, referer: https://****.net:4443/css/ncp.css
[Mon Jul 20 19:41:05.034272 2020] [authz_host:error] [pid 916:tid 139801209972480] [client 192.168.20.19:56596] AH01753: access check of 'localhost' to /img/info-white.svg failed, reason: unable to get the remote host name, referer: https://****.net:4443/css/ncp.css
[Mon Jul 20 19:41:05.149071 2020] [authz_host:error] [pid 916:tid 139801058903808] [client 192.168.20.19:56596] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name
[Mon Jul 20 19:41:05.322312 2020] [authz_host:error] [pid 916:tid 139801209972480] [client 192.168.20.19:56596] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Mon Jul 20 19:41:11.017975 2020] [authz_host:error] [pid 916:tid 139801209972480] [client 192.168.20.19:56596] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Mon Jul 20 19:41:11.050459 2020] [authz_host:error] [pid 916:tid 139801209972480] [client 192.168.20.19:56596] AH01753: access check of 'localhost' to /img/download.svg failed, reason: unable to get the remote host name
[Mon Jul 20 19:41:11.056886 2020] [authz_host:error] [pid 916:tid 139801209972480] [client 192.168.20.19:56596] AH01753: access check of 'localhost' to /img/delete.svg failed, reason: unable to get the remote host name
[Mon Jul 20 19:41:11.081573 2020] [authz_host:error] [pid 916:tid 139801209972480] [client 192.168.20.19:56596] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Mon Jul 20 19:53:41.783176 2020] [authz_host:error] [pid 916:tid 139801109260032] [client 192.168.20.19:56596] AH01753: access check of 'localhost' to /img/info.svg failed, reason: unable to get the remote host name, referer: https://****.net:4443/css/ncp.css

Welcome to Nextcloud. I hope you have got a reason for using Nextcloudpi ( https://ownyourbits.com/nextcloudpi/) and not a normal installation ( https://www.howtoforge.com/tutorial/how-to-install-nextcloud-on-debian-10 ) on Debian 10. Or do you use a Pi ?

I think there is no internet access. Please use a command line and:

ping www.google.de
host www.google.de
traceroute www.google.de

NextcloudPi was a single script installer which was perfect for me. I had it working on a Pi but then put it on a NUC for the extra power. I already tried the docker in ubuntu but ran in to errors.

I can log in to the debian desktop gnome environment and browse the internet just fine. Also I can access the nextcloud instance from the outside. furthermore, scan.nextcloud.com reports an A+ security.

Hi all,
I may not have been very clear with my request,

  1. I would like to know why Nextcloud believes it can’t access the internet, and how to fix. Even despite what I have posted above that I can access it just fine from outside my home.
  2. I would like to fix the errors relating to connecting to the appstore.

Thanks so much!