-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config loading more debugging information #775
Comments
@stan-dot your link is now expired
Is this all the logs said or an abbreviation? I note it's missing a log level ( |
ran into the same thing at i20-1 - indentation error where we could use a verifiable schema checker to ensure this is caught early. options include: manual diff util, JSON schema versioned, external yaml linter, ci/cd verification with a script, or some tool like (https://github.com/karuppiah7890/helm-schema-gen) this tool would check whether a |
@stan-dot Before we get into solutions I'd like to get my head around the problem. Please could you provide complete logs or a set of steps to reproduce. |
to reproduce:
|
another instance at i20-1 |
Deliberately break stomp config to reproduce a bug, see DiamondLightSource/blueapi#775 (comment) Will revert after testing.
@stan-dot I can partially reproduce, I did this: epics-containers/p46-services@aa421fb Here are my logs: The error message says that the fields Printing the source from which the configuration is loaded in the error would be a good idea, I agree. How useful is that alone to you?
I'm not sure how this is related, it's not a config/pydantic error, blueapi seems to be unable to import a function from dodal. Are these the logs you meant to post? |
the dodal import for I'd like a printout of the loaded config yes, |
Okay, so acceptance criteria:
|
might add a json schema from blueapi and reference it in the helm template (?) |
At i18 cluster blueapi fails but the pod does not crash. the error logs do not say 1) where is the config loaded from 2) which part of the config is invalid (rest, stomp, etc etc),
This might be some indentation error in the deployment
yaml
s somewhere.https://k8s-i18-dashboard.diamond.ac.uk/#/log/i18-beamline/i18-blueapi-0/pod?namespace=i18-beamline&container=blueapi
Steps To Reproduce
Logs from
blueapi
in
i18-blueapi-0
Matplotlib created a temporary cache directory at /tmp/matplotlib-p02eagla because the default path (/.config/matplotlib) is not a writable directory; it is highly recommended to set the MPLCONFIGDIR environment variable to a writable directory, in particular to speed up the import of Matplotlib and to better support multiprocessing.
2025-01-10 14:46:39,528 INFO: Started server process [1]
2025-01-10 14:46:39,528 INFO: Waiting for application startup.
2025-01-10 14:46:39,529 - Invalid type ApplicationConfig for attribute '_config' value. Expected one of ['bool', 'str', 'bytes', 'int', 'float'] or a sequence of those types
device and version
blueapi 0.6.1
Acceptance Criteria
The text was updated successfully, but these errors were encountered: