Skip to content
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

Catalog not working with mongodb backend #19

Open
ulrikpedersen opened this issue Jul 28, 2023 · 2 comments
Open

Catalog not working with mongodb backend #19

ulrikpedersen opened this issue Jul 28, 2023 · 2 comments
Assignees
Labels
bug Something isn't working waiting Work paused

Comments

@ulrikpedersen
Copy link
Owner

The catalog that is returned when requesting the "mongo" catalog from bluesky: catalog = databroker.catalog["mongo"] do not work. It throws exceptions with any subsequent interaction with the catalog object.

In ophyd_inter_setup.py I had to comment out the line and not use the mongodb backend: catalog = databroker.temp().v2

This works but is a work-around and we should figure out why the mongodb backend does not work and fix it. Probably a configuration issue.

@ulrikpedersen ulrikpedersen added the bug Something isn't working label Jul 28, 2023
@8ryn 8ryn added the in progress Work on issue in progress label Jul 31, 2023
@8ryn
Copy link
Collaborator

8ryn commented Jul 31, 2023

I have been unable to replicate this bug so far.

This is strange given that the mongodb backend is running within the docker compose environment and the blueksy script is running in a docker environment too meaning that no aspect should be dependent on the local system.
In my tests I simply commented out catalog = databroker.temp().v2, uncommented catalog = databroker.catalog["mongo"] and rebuilt the docker container. This then worked without any exceptions and the runs saved within mongodb persisted between bluesky sessions.

If the bluesky script was being run locally rather than within its docker container then additional setup would be required for the databroker. This can be achieved by simply copying mongo.yml to ~/.config/databroker/
This instruction has been added to the latest docs on my documentation updates branch.

@8ryn 8ryn removed the in progress Work on issue in progress label Jul 31, 2023
@8ryn
Copy link
Collaborator

8ryn commented Jul 31, 2023

I have also been unable to replicate this issue on a virtual machine with a fresh tomoscan setup according to the user instructions. As such I won't work on this further unless the issue is seen again.

@8ryn 8ryn added the waiting Work paused label Jul 31, 2023
@8ryn 8ryn assigned ulrikpedersen and unassigned 8ryn Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting Work paused
Projects
None yet
Development

No branches or pull requests

2 participants