Spida45
12/03/2024, 3:26 PM{
"id": "8b592ba6-e200-49d8-acaa-e9569e37c245",
"event": "prefect.automation.action.failed",
"occurred": "2024-12-03T15:24:11.690Z",
"payload": {
"reason": "The notification block was invalid: RuntimeError('Cannot put items in a stopped service instance.')",
"invocation": "f40e48eb-7329-462f-8ecf-87464123132a",
"action_type": "send-notification",
"action_index": 0
},
"received": "2024-12-03T15:24:11.691Z",
"related": [],
"resource": {
"prefect.posture": "Reactive",
"prefect.resource.id": "prefect.automation.42a681e5-51f6-401c-a378-b561fc8b1860",
"prefect.trigger-type": "event",
"prefect.resource.name": "dev-alerts-cep-failure"
}
}
Marvin
12/03/2024, 3:26 PMPREFECT_SERVER_SERVICES_EVENT_PERSISTER_ENABLED
. More details can be found in Prefect's settings reference documentation here.
Unfortunately, there don't seem to be any directly related GitHub issues at the moment, which might mean this problem could be more specific to your configuration.
Feel free to reach out if you need further guidance or if this didn't resolve your issue. Remember, even Marvin had days when he couldn't quite figure out why something wasn't working as expected!Nate
12/03/2024, 6:34 PMSpida45
12/03/2024, 7:00 PMNate
12/03/2024, 7:10 PMSpida45
12/03/2024, 7:11 PMNate
12/03/2024, 7:15 PM"The notification block was invalid: RuntimeError('Cannot put items in a stopped service instance.')"
this is suspicious to me, and id want to dig into whats going on with the server side process thats supposed to be sending the notifNate
12/03/2024, 7:16 PMSpida45
12/03/2024, 7:49 PMDec 03 10:29:32 SRV-BBALLOPSETL prefect[2903535]: e.g. PREFECT_API_URL="<https://api.prefect.cloud/api/accounts/[ACCOUNT-ID]/workspaces/[WORKSPACE-ID]>"
Dec 03 10:29:32 SRV-BBALLOPSETL prefect[2903535]: /home/prefect/production/server/.virtualenv/lib/python3.12/site-packages/prefect/settings/models/root.py:249: UserWarning: `PREFECT_API_URL` should have `/api` after the base URL.
Spida45
12/03/2024, 7:50 PMREFECT_API_URL=/prefect3/api
PREFECT_UI_SERVE_BASE=/prefect3
Spida45
12/03/2024, 9:02 PMSpida45
12/03/2024, 9:03 PMNate
12/03/2024, 9:05 PMSpida45
12/03/2024, 9:14 PMNate
12/03/2024, 9:32 PMSpida45
12/03/2024, 9:34 PMFlow run {{ flow.name }}/{{ flow_run.name }} observed in state `{{ flow_run.state.name }}` at {{ flow_run.state.timestamp }}.
Flow ID: {{ flow_run.flow_id }}
Flow run ID: {{ flow_run.id }}
Flow run URL: {{ flow_run|ui_url }}
State message: {{ flow_run.state.message }}
Nate
12/03/2024, 9:34 PMNate
12/03/2024, 9:35 PMPREFECT_API_URL
(and PREFECT_UI_URL
which defaults to being based on the former)Spida45
12/04/2024, 5:43 PMThe notification block was invalid: RuntimeError('Cannot put items in a stopped service instance.')
Spida45
12/04/2024, 5:44 PMThe notification block was invalid: RuntimeError('Cannot put items in a stopped service instance.')
Marvin
12/04/2024, 5:44 PMslack-webhook
. Check that all necessary parameters such as the Slack webhook URL are correctly configured. For further guidance, check the Blocks Documentation.
2. Service State: The error indicates a problem with a service instance that may have stopped unexpectedly. This could be related to the event persister service in Prefect, which is responsible for handling notification events. Check if this service is running correctly and examine the service configurations under the environment variables like PREFECT_SERVER_SERVICES_EVENT_PERSISTER_ENABLED
. You may find more information under the settings reference documentation here.
3. Restart Services: Attempt restarting relevant services or your Prefect server if you're running it locally. Sometimes a simple restart can resolve unexpected state issues.
Unfortunately, there aren't specific GitHub issues linked to this particular error, suggesting it might be a setup-specific problem rather than a known bug.
If the issue persists, you might consider reaching out to Prefect's community forums or support channels for more tailored assistance. As always, if Marvin were here, he'd undoubtedly empathize with the complexities of service errors—right before reminding us of the futility of existence. But let's not go there!Nate
12/04/2024, 5:44 PM