No Internet connection

Raspberry Pi 3
Nextcloud version 12.0.3
Operating system Raspbian GNU/Linux 9.1 (stretch)
Apache version 2.4.25 (Raspbian)
PHP version 7.0.19-1

I have internet connection.
I can ping google no problem.
I can enter https:192.168.1.80 or alistairscloud.org, and I have the login screen.

But I cannot set up letsencrypt as it says I haven’t.

This server has no working Internet connection: Multiple endpoints could not be reached. This means that some of the features like mounting external storage, notifications about updates or installation of third-party apps will not work. Accessing files remotely and sending of notification emails might not work, either. We suggest to enable Internet connection for this server if you want to have all features.

What file is telling it Github.com, and where is it saying 192.168.1.64?

Error internet_connection_check GuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host: www.github.com 2017-11-11T00:35:55+0000
Error internet_connection_check GuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host: www.google.com 2017-11-11T00:35:55+0000
Error internet_connection_check GuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host: www.nextcloud.com 2017-11-11T00:35:55+0000
Error internet_connection_check GuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host: www.github.com 2017-11-11T00:35:28+0000
Error internet_connection_check GuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host: www.google.com 2017-11-11T00:35:28+0000
Error internet_connection_check GuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host: www.nextcloud.com 2017-11-11T00:35:28+0000
Warning core Login failed: ‘pi’ (Remote IP: ‘192.168.1.64’) 2017-11-11T00:23:22+0000
Warning core Login failed: ‘pi’ (Remote IP: ‘192.168.1.64’) 2017-11-11T00:23:13+0000

This is now a full week I’ve been trying to get Nextcloud to work.
I am now bald.

Where should I go from here?

I think some apps are installed from github. Can you ping github.com?

Could be a network/DNS problem, though it is strange that you can ping google in this case. Did you follow a special tutorial?

I pinged Google using 8.8.8.8
I didn’t use names.
Both Google and Github come up with:

ping: “whatever”.com: Temporary failure in name resolution

I did not follow any instructions other than the official Github Wiki.

If it’s any help:

pi@alistairscloud:~ $ sudo service networking stop
pi@alistairscloud:~ $ sudo service ifplugd stop
Failed to stop ifplugd.service: Unit ifplugd.service not loaded.
pi@alistairscloud:~ $ sudo ifconfig eth0 up
eth0: ERROR while getting interface flags: No such device

pi@alistairscloud:~ $ sudo ifconfig eth0 192.168.1.80 netmask 255.255.255.0 up
SIOCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
eth0: ERROR while getting interface flags: No such device
pi@alistairscloud:~ $ netstat -nr
Kernel IP routing table
Destination___Gateway____Genmask____Flags___MSS Window__irtt__ Iface
0.0.0.0_____192.168.1.254___ 0.0.0.0______UG_______0_0_________0 enxb827eb5d8917
192.168.1.0___0.0.0.0
____ 255.255.255.0___ U________0_0_________0 enxb827eb5d8917

Forget it.
Another wipe & rebuild (the 5th so far).

My belief is that after setting up, everything goes well until I ask it to use all of the SD card. then it stops working.

After 2 rebuilds, I keep getting:
#0 /var/www/nextcloud/lib/private/Memcache/Redis.php(52): Redis->get(‘a3a6236d29c0602…’)
#1 /var/www/nextcloud/lib/autoloader.php(146): OC\Memcache\Redis->get(‘OC_User’)
#2 [internal function]: OC\Autoloader->load(‘OC_User’)
#3 /var/www/nextcloud/lib/private/Log/File.php(101): spl_autoload_call(‘OC_User’)
#4 [internal function]: OC\Log\File::write(‘PHP’, ‘Redis::connect(…’, 3)
#5 /var/www/nextcloud/lib/private/Log.php(307): call_user_func(Array, ‘PHP’, ‘Redis::connect(…’, 3)
#6 /var/www/nextcloud/lib/private/Log.php(165): OC\Log->log(3, ‘Redis::connect(…’, Array)
#7 /var/www/nextcloud/lib/private/Log/ErrorHandler.php(68): OC\Log->critical(‘Redis::connect(…’, Array)
#8 [internal function]: OC\Log\ErrorHandler::onShutdown()
#9 {main}
thrown in /var/www/nextcloud/lib/private/Memcache/Redis.php on line 52
directory An unhandled exception has been thrown:
RedisException: Redis server went away in /var/www/nextcloud/lib/private/Memcache/Redis.php:52
Stack trace:
#0 /var/www/nextcloud/lib/private/Memcache/Redis.php(52): Redis->get(‘a3a6236d29c0602…’)
#1 /var/www/nextcloud/lib/autoloader.php(146): OC\Memcache\Redis->get(‘OC_User’)
#2 [internal function]: OC\Autoloader->load(‘OC_User’)
#3 /var/www/nextcloud/lib/private/User/Session.php(211): spl_autoload_call(‘OC_User’)
#4 /var/www/nextcloud/lib/private/legacy/app.php(319): OC\User\Session->getUser()
#5 /var/www/nextcloud/lib/private/legacy/app.php(110): OC_App::getEnabledApps()
#6 /var/www/nextcloud/lib/base.php(673): OC_App::loadApps(Array)
#7 /var/www/nextcloud/lib/base.php(1086): OC::init()
#8 /var/www/nextcloud/console.php(56): require_once(’/var/www/nextcl…’)
#9 /var/www/nextcloud/occ(11): require_once(’/var/www not found

Now on my 6th try.
Same as above. Blank screen. Fails on letsencrypt. This time no extending the SD card.
What the hell is wrong?
Won’t anyone reply?

To you initial problem, there you didn’t set up a dns server correctly. A nameserver in /etc/resolv.conf would have solved the issue. Second time restarting redis, it could have been killed when the device runs out of resources. This time, I don’t know, you could try to extend the sd-card on a different system…

Sometimes when everything goes wrong, it is better to take a break and work on it later again.

O.K. Thanks.
So on the 7th wipe & rebuild,
I’ve not done dnsmasq
I’ve not done NFS (even though I have Linux machines)
I’ve not extended the SD card
And I did not do the upgrade that it asks for when I go into the nextcloud settings.
And it works!
(check alistairscloud.org)
But once I got Nextcloud just how I want it (i.e. working) I did an nc-backup onto the USB stick.

Now then…
If either the nc-upgrade or the SD extend cock something up, has the backup got EVERYTHING that would get it back to it’s previous working state, or shall I just leave it?