View more context

 

taoceanz

Am seeing a lot of these in the logs [2019-09-04 01:14:02] error-log.WARNING: cURL error 6: Could not resolve host: empty (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) [] []

taoceanz

That error appears after loading the site via a browser

taoceanz

The behaviour of the site I'm working on is very strange. Loading the site is showing all pages from the database, it's possible to login to the admin section and edit pages, but the public facing pages aren't loading correctly. Links are loading with the docker id as the domain name so nothing loads. When I try to debug, it throws exceptions from PhpFilesCache which have no message, then prints out an HTTPResponse_Exception with the entire html content from the page it's supposed to be rendering but with 404 status code.

taoceanz

Stuff like this

  1. Exception in /usr/share/nginx/html/vendor/symfony/cache/Simple/PhpFilesCache.php:37 Stack trace: #0 [internal function]: Symfony\Component\Cache\Simple\PhpFilesCache->__construct('classmanifest', 0, '/tmp/silverstri...') #1 /usr/share/nginx/html/vendor/silverstripe/framework/src/Core/Cache/ManifestCacheFactory.php(83): ReflectionClass->newInstanceArgs(Array) #2 /usr/share/nginx/html/vendor/silverstripe/framework/src/Core/Cache/DefaultCacheFactory.php(69): SilverStripe\Core\Cache\ManifestCacheFactory->createCache('Symfony\Compone...', Array) #3 /usr/share/nginx/html/vendor/silverstripe/framework/src/Core/Cache/ManifestCacheFactory.php(49): SilverStripe\Core\Cache\DefaultCacheFactory->create('Psr\SimpleCache...', Array) #4 /usr/share/nginx/html/vendor/silverstripe/framework/src/Core/Manifest/ClassManifest.php(201): SilverStripe\Core\Cache\ManifestCacheFactory->create('Psr\SimpleCache...', Array) #5 /usr/share/nginx/html/vendor/silverstripe/framework/src/Core/Manifest/ClassManifest.php(241): SilverStripe\Core\Manifest\ClassManifest->buildCache(false) #6 /usr/share/nginx/html/vendor/silverstripe/framework/src/Core/Startup/ScheduledFlushDiscoverer.php(36): SilverStripe\Core\Manifest\ClassManifest->isFlushScheduled()

taoceanz

Login page will load correctly, but nothing else aside from the admin section

taoceanz

Looks like some project code is causing site init to fail but way before any error can be thrown that remotely relates to the actual issue. I've pinned it down by using the container with a fresh ss install and the simple theme then incrementally adding project code to find which files and methods break it.

taoceanz

It looks like a container issue but pretty sure it's misconfigured project code that's caused the issue. Particular Widgets.

phyzical

cache issues related to what user runs the flush vs the one that uses maybe?