The /var/log/watchmaker/watchmaker.log
Log-File¶
This file tracks the top-level execution of the watchmaker
configuration-utility. This file should always exist, unless:
The provisioning-administrator has checked for the log before the utility has been downloaded and an execution-attempted. This typically happens if a
watchmaker
-execution is attempted late in a complex provisioning-processAn execution-attempt wholly failed. In this case, check the logs for the
watchmaker
-calling service or process (e.g.cloud-init
)The provisioning-administrator has not invoked
watchmaker
in accordance with thewatchmaker
project’s usage-guidance: if a different logging-location was specified (e.g., by adding a flag/argument like--log-dir=/tmp/watchmaker
), the provisioning-administrator would need to check the alternately-specified logging-location.The provisioning-administrator invoked the
watchmaker
-managed content directly (e.g., usingsalt-call -c /srv/watchmaker/salt
). In this scenario, only the content-execution may have been logged (whether logging was captured and where would depend on how the direct-execution was requested).
Typical Errors¶
Bad specification of remotely-hosted configuration file. This will typically come with an HTTP 404 error similar to:
botocore.exceptions.ClientError: An error occurred (404) when calling the HeadObject operation: Not Found
Ensure that the requested URI for the remotely-hosted configuration file is valid.
Attempt to use a protected, remotely-hosted configuration-file. This will typically come win an HTTP 403 error. Most typically, this happens when the requested configuration-file exists on a protected network share and the requesting-process doesn’t have permission to access it.
botocore.exceptions.ClientError: An error occurred (403) when calling the HeadObject operation: Forbidden
Ensure that
watchmaker
has adequate permissions to access the requested, remotely-hosted configuration file.Remotely-hosted configuration file is specified as an
s3://
URI without installation ofboto3
Python module. This will typically come with an error similar to:2023-06-22 14:26:59,192 [backoff][INFO ][4908]: Backing off urlopen_retry(...) for 0.6s (urllib.error.URLError: <urlopen error unknown url type: s3>) 2023-06-22 14:26:59,803 [backoff][ERROR][4908]: Giving up urlopen_retry(...) after 5 tries (urllib.error.URLError: <urlopen error unknown url type: s3>) 2023-06-22 14:26:59,803 [watchmaker.config][CRITICAL][4908]: Could not read config file from the provided value "s3://<BUKKIT>/<PREFIX>/config.yaml"! Check that the config is available.
Ensure that the
boto3
Python module has been installed prior to attempting to executewatchmaker