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

AssertionError while running dsa girder docker instance. #282

Closed
rashidpokkat opened this issue Jul 20, 2023 · 2 comments
Closed

AssertionError while running dsa girder docker instance. #282

rashidpokkat opened this issue Jul 20, 2023 · 2 comments

Comments

@rashidpokkat
Copy link

Im getting the below error when I'm trying to run the docker instance of dsa girder

Running in mode: production
Connecting to MongoDB: mongodb://mongodb:27017/girder?authSource=admin
Loaded plugin "homepage"
Loaded plugin "jobs"
Loaded plugin "ldap"
Loaded plugin "resource_path_tools"
Loaded plugin "user_quota"
Loaded plugin "virtual_folders"
Loaded plugin "girder_xtk_demo"
Loaded plugin "worker"
Loaded plugin "import_tracker"
Loaded plugin "slicer_cli_web"
Loaded tile source vips
Loaded tile source tiff
Loaded tile source test
Loaded tile source pil
Loaded tile source openslide
Loaded tile source openjpeg
Loaded tile source gdal
Loaded tile source deepzoom
Loaded tile source rasterio
Loaded tile source ometiff
Loaded tile source multi
Loaded tile source mapnik
Loaded tile source dicom
Loaded tile source tifffile
Loaded tile source bioformats
Loaded tile source nd2
Loaded plugin "large_image"
Traceback (most recent call last):
  File "/opt/digital_slide_archive/devops/dsa/provision.py", line 425, in <module>
    configureServer()
  File "/opt/girder/girder/utility/server.py", line 94, in configureServer
    plugin._loadPlugins(info, plugins)
  File "/opt/girder/girder/plugin.py", line 206, in _loadPlugins
    pluginObject.load(info)
  File "/opt/girder/girder/plugin.py", line 58, in wrapper
    self._return = func(self, *args, **kwargs)
  File "/opt/large_image/girder_annotation/girder_large_image_annotation/__init__.py", line 88, in load
    Annotation()._migrateDatabase()
  File "/opt/large_image/girder_annotation/girder_large_image_annotation/models/annotation.py", line 727, in _migrateDatabase
    self._migrateACL(annotation)
  File "/opt/large_image/girder_annotation/girder_large_image_annotation/models/annotation.py", line 767, in _migrateACL
    self.setPublic(annotation, folder.get('public'), save=False)
  File "/opt/girder/girder/models/model_base.py", line 993, in setPublic
    assert isinstance(public, bool)
AssertionError

It would be great if anybody can suggest me what to do to resolve this. Thank you.

@manthey
Copy link
Contributor

manthey commented Jul 24, 2023

Are you updating an old version? I think this is trying to update an old database entry to ensure it complies with the current schema. If that is the case, then some upgrade path isn't tested, and we can add a guard for this in girder_large_image_annotation.

@manthey
Copy link
Contributor

manthey commented Jul 24, 2023

Can you try again? I added a guard here girder/large_image#1243. Please reopen if this is still an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants