I’ve tried to test the recently released “Static Site Export” module.
I don’t seem to be able to create any static website. After setting a path (a full server path) to the export folder in the module configuration, when I try to create a static site I inevitably get some variation of the following error:
2025-08-30T11:37:08+00:00 ERR (3): ErrorException: stream_socket_client(): Unable to connect to : (Failed to parse address ":") in /var/www/html/vendor/laminas/laminas-http/src/Client/Adapter/Socket.php:323
Stack trace:
#0 [internal function]: Laminas\Stdlib\ErrorHandler::addError(2, 'stream_socket_c...', '/var/www/html/v...', 323)
#1 /var/www/html/vendor/laminas/laminas-http/src/Client/Adapter/Socket.php(323): stream_socket_client(':', 0, '', 10, 4, Resource id #2211)
#2 /var/www/html/vendor/laminas/laminas-http/src/Client.php(1465): Laminas\Http\Client\Adapter\Socket->connect(NULL, NULL, false)
#3 /var/www/html/vendor/laminas/laminas-http/src/Client.php(965): Laminas\Http\Client->doRequest(Object(Laminas\Uri\Http), 'GET', false, Array, '')
#4 /var/www/html/volume/modules/StaticSiteExport/src/Job/ExportStaticSite.php(463): Laminas\Http\Client->send()
#5 /var/www/html/volume/modules/StaticSiteExport/src/Job/ExportStaticSite.php(212): StaticSiteExport\Job\ExportStaticSite->createAssetBundle(201)
#6 /var/www/html/volume/modules/StaticSiteExport/src/Job/ExportStaticSite.php(79): StaticSiteExport\Job\ExportStaticSite->createAssetsSection()
#7 /var/www/html/application/src/Job/DispatchStrategy/Synchronous.php(34): StaticSiteExport\Job\ExportStaticSite->perform()
#8 /var/www/html/volume/modules/Common/src/Job/Dispatcher.php(27): Omeka\Job\DispatchStrategy\Synchronous->send(Object(Omeka\Entity\Job))
#9 /var/www/html/application/data/scripts/perform-job.php(66): Common\Job\Dispatcher->send(Object(Omeka\Entity\Job), Object(Omeka\Job\DispatchStrategy\Synchronous))
#10 {main}
Next Laminas\Http\Client\Adapter\Exception\RuntimeException: Unable to connect to :0 . Error #0: stream_socket_client(): Unable to connect to : (Failed to parse address ":") in /var/www/html/vendor/laminas/laminas-http/src/Client/Adapter/Socket.php:335
Stack trace:
#0 /var/www/html/vendor/laminas/laminas-http/src/Client.php(1465): Laminas\Http\Client\Adapter\Socket->connect(NULL, NULL, false)
#1 /var/www/html/vendor/laminas/laminas-http/src/Client.php(965): Laminas\Http\Client->doRequest(Object(Laminas\Uri\Http), 'GET', false, Array, '')
#2 /var/www/html/volume/modules/StaticSiteExport/src/Job/ExportStaticSite.php(463): Laminas\Http\Client->send()
#3 /var/www/html/volume/modules/StaticSiteExport/src/Job/ExportStaticSite.php(212): StaticSiteExport\Job\ExportStaticSite->createAssetBundle(201)
#4 /var/www/html/volume/modules/StaticSiteExport/src/Job/ExportStaticSite.php(79): StaticSiteExport\Job\ExportStaticSite->createAssetsSection()
#5 /var/www/html/application/src/Job/DispatchStrategy/Synchronous.php(34): StaticSiteExport\Job\ExportStaticSite->perform()
#6 /var/www/html/volume/modules/Common/src/Job/Dispatcher.php(27): Omeka\Job\DispatchStrategy\Synchronous->send(Object(Omeka\Entity\Job))
#7 /var/www/html/application/data/scripts/perform-job.php(66): Common\Job\Dispatcher->send(Object(Omeka\Entity\Job), Object(Omeka\Job\DispatchStrategy\Synchronous))
#8 {main}
I’m perhaps most puzzled by the (Failed to parse address ":") reference, as the address “:” doesn’t seem meaningful, and if I don’t get what address it’s trying to reach or what the issue really is, then I struggle to introduce remedial solutions (port forwarding, custom socket path, etc.)
But perhaps, I’m just misunderstanding what is really going on here, so any hints would be warmly welcome.
I’m running this locally with Docker compose (basically, with this docker-compose.yml and this image).
The installation works completely fine in any other respect.
Again, I appreciate this is likely related to the way I deploy Omeka S locally, but just some hints about what it it is that is not working here may well help me in finding a good solution.