From 79a8769403d5e02383900af6c373d2926490cbc4 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Wed, 23 Jul 2025 16:57:16 +0200 Subject: webmap-raster@.service: Set RestrictAddressFamilies=AF_UNIX. This is needed for systemd/journal.py. --- Logging error --- Traceback (most recent call last): File "/usr/lib/python3/dist-packages/systemd/journal.py", line 617, in emit self.send(msg, File "/usr/lib/python3/dist-packages/systemd/journal.py", line 466, in send return sendv(*args) ^^^^^^^^^^^^ OSError: [Errno 97] Address family not supported by protocol Call stack: File "/usr/local/bin/webmap-import", line 814, in main() File "/usr/local/bin/webmap-import", line 679, in main processRaster(layername, layerdef, File "/usr/local/share/webmap/export_raster.py", line 84, in processRaster logging.info('Output directory "%s" is up to date, skipping', str(dst)) File "/usr/lib/python3.11/logging/__init__.py", line 2148, in info root.info(msg, *args, **kwargs) File "/usr/lib/python3.11/logging/__init__.py", line 1489, in info self._log(INFO, msg, args, **kwargs) File "/usr/lib/python3.11/logging/__init__.py", line 1634, in _log self.handle(record) File "/usr/lib/python3.11/logging/__init__.py", line 1644, in handle self.callHandlers(record) File "/usr/lib/python3.11/logging/__init__.py", line 1706, in callHandlers hdlr.handle(record) File "/usr/lib/python3.11/logging/__init__.py", line 978, in handle self.emit(record) File "/usr/lib/python3/dist-packages/systemd/journal.py", line 627, in emit self.handleError(record) Message: 'Output directory "%s" is up to date, skipping' Arguments: ('/var/www/webmap/raster/kskog',) --- files/etc/systemd/system/webmap-raster@.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/etc/systemd/system/webmap-raster@.service b/files/etc/systemd/system/webmap-raster@.service index 4947980..4b1819f 100644 --- a/files/etc/systemd/system/webmap-raster@.service +++ b/files/etc/systemd/system/webmap-raster@.service @@ -28,7 +28,7 @@ PrivateDevices=yes ProtectControlGroups=yes ProtectKernelModules=yes ProtectKernelTunables=yes -RestrictAddressFamilies=none +RestrictAddressFamilies=AF_UNIX ReadWritePaths=%t/lock/webmap ReadWritePaths=/var/www/webmap/raster PrivateTmp=yes -- cgit v1.2.3