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

script maintenance.sh fails on 22.01 #14972

Closed
martinwolst opened this issue Nov 11, 2022 · 1 comment
Closed

script maintenance.sh fails on 22.01 #14972

martinwolst opened this issue Nov 11, 2022 · 1 comment
Assignees
Labels
area/database Galaxy's database or data access layer kind/bug

Comments

@martinwolst
Copy link

The bug
Running the maintenence.sh script fails with:

Traceback (most recent call last):
  File "scripts/cleanup_datasets/cleanup_datasets.py", line 542, in <module>
    main()
  File "scripts/cleanup_datasets/cleanup_datasets.py", line 129, in main
    delete_datasets(app, cutoff_time, args.remove_from_disk, info_only=args.info_only, force_retry=args.force_retry)
  File "scripts/cleanup_datasets/cleanup_datasets.py", line 284, in delete_datasets
    library_dataset_ids_query = sa.select((app.model.LibraryDataset.table.c.id,
AttributeError: type object 'LibraryDataset' has no attribute 'table'

Galaxy Version: 22.01
Commit: d75c0fd

To Reproduce - running in dry-run mode
switch to the galaxy user and:
source /srv/galaxy/venv/bib/activate
export GALAXY_CONFIG_FILE=/srv/galaxy/config/galaxy.yml
cd /srv/galaxy/server
bash scripts/maintenance.sh

Expected behaviour
Script runs to clean up data(base)

@jdavcs
Copy link
Member

jdavcs commented Jan 14, 2023

Fixed in #15222

@jdavcs jdavcs closed this as completed Jan 14, 2023
@jdavcs jdavcs added this to Done in Backend Working Group Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/database Galaxy's database or data access layer kind/bug
Development

No branches or pull requests

3 participants