After you run cells in a Custom Calculations notebook in Customer Data Platform (CDP), notebook execution fails with a ConnectionError. The error message references an internal network address and resembles the following text:
ConnectionError: host=169.254.169.254, path=/latest/api/token
Network is unreachable
Calculations do not complete, and notebook output is not written to CDP.
Cause
CDP Custom Calculations notebooks run on Amazon Web Services (AWS) infrastructure. The notebooks use an internal link-local address (169.254.169.254) to reach the Instance Metadata Service (IMDS), which provides credentials and configuration to notebook instances at runtime.
Under certain conditions, the connection between the notebook instance and the IMDS endpoint becomes unavailable. This is an infrastructure-level issue and is not caused by notebook code or user configuration. Acquia Engineering is investigating the root cause of recurring instances.
Resolution
Note
Only Acquia Support can restart the Custom Calculations Notebook service. Users cannot perform this restart.
To resolve this error, contact Acquia Support to request a restart of the Custom Calculations Notebook service for your environment. After the service restart completes, notebook execution resumes normally.
If you experience this issue again after a restart, open a new support ticket and reference your previous case so that Acquia Support can track recurrences.
To help publish information faster, this documentation uses AI-assisted drafting alongside human technical review. If you spot an inaccuracy or need to verify a critical implementation, please contact your Acquia representative or Acquia Support directly.