Connection error on cache update

ZenPhoto v1.6.8 with Collections v2.2 Theme

Having resolved my issue with the Collections theme, I then went on to refresh the cache on the system. There had been a few issues for my NAS photo store and with the new theme in place I thought it was worthwhile. The Cache Manager plugin showed that I would be creating cache entries for:

Apply Default thumb size (or manual crop)
Apply Default sized image size
all sizes for admin
all sizes for Collections

All started well with lots of green ticks but then I started to get red errors. Looking at the log file I could see lots and lots of errors like:

ERROR: cURL request failed: Could not resolve host: cmdock-w1

{121:Mon, 18 Aug 2025 11:31:14 GMT}

CMDock-W1 is server where I run my Docker installation of Nginx, PHP and ZenPhoto. Its been like this for years without any problems until today.

Restarting docker instance and then restarting the cache process showed me lots of places where the cache had been corrected, more green ticks for a while and then more errors.

Any thoughts ?

Thanks

Chris

Comments

  • ceejayemm Member
    edited August 18

    If it helps I have a snippet of the Nginx/PHP server errors, repeated many, many times for each photo. How do I upload it to this ticket ?

    Chris

  • acrylian Administrator, Developer

    Sorry, I have no knowledge about Docker. Zenphoto works with a normal setup server normally. We use MAMP on Mac for local testing.

    We actually test with Apache so are not aware about Nginx having anything special. Nginx requires specific modrewrite setup if I recall right. There is something old on our user guide somewhere.

    How do I upload it to this ticket ?

    Well, this is not a ticket actually. It's our forum. You cannot upload here. You have to upload somewhere else and link to it. Or you use our Github issue tickets.

    The cache manager has two modes. The classic one of printing images directly and the cURL mode using requests. For some reason on some servers one mode works better than the other. There is also a third party cache plugin which is already older and we have no actual knowledge about it or if it still works. See our site's extensions.

    Technically you don't need to pre-cache as Zenphoto will do it on request.

  • SOLVED

    Changing the CacheManager plugin setting from cURL to Classic resolved this problem.

    Thanks

    Chris

Sign In or Register to comment.