Hi,

I have some problems with the cleanup scripts...
I seem to have a dataset_instance that is "None" and if it tries to delete that you obviously get an error. (See below..>I added the print statement, but the line is the same)...

I wonder how I could get a dataset with a None definition and how can I clean up the database for this?

Thanks,

Thon



 sh < purge_libraries.sh
Traceback (most recent call last):
  File "./scripts/cleanup_datasets/cleanup_datasets.py", line 527, in <module>
    if __name__ == "__main__": main()
  File "./scripts/cleanup_datasets/cleanup_datasets.py", line 122, in main
    purge_libraries( app, cutoff_time, options.remove_from_disk, info_only = options.info_only, force_retry = options.force_retry )
  File "./scripts/cleanup_datasets/cleanup_datasets.py", line 217, in purge_libraries
    _purge_folder( library.root_folder, app, remove_from_disk, info_only = info_only )
  File "./scripts/cleanup_datasets/cleanup_datasets.py", line 500, in _purge_folder
    _purge_folder( sub_folder, app, remove_from_disk, info_only = info_only )
  File "./scripts/cleanup_datasets/cleanup_datasets.py", line 500, in _purge_folder
    _purge_folder( sub_folder, app, remove_from_disk, info_only = info_only )
  File "./scripts/cleanup_datasets/cleanup_datasets.py", line 500, in _purge_folder
    _purge_folder( sub_folder, app, remove_from_disk, info_only = info_only )
  File "./scripts/cleanup_datasets/cleanup_datasets.py", line 498, in _purge_folder
    _purge_dataset_instance( ldda, app, remove_from_disk, info_only = info_only ) #mark a DatasetInstance as deleted, clear associated files, and mark the Dataset as deleted if it is deletable
  File "./scripts/cleanup_datasets/cleanup_datasets.py", line 376, in _purge_dataset_instance
    print('dataset_instance.id: {0}'.format(dataset_instance.id))
AttributeError: 'NoneType' object has no attribute 'id'
(galaxy_env)[svcgalaxy@srv151 cleanup_datasets]$ sh < purge_libraries.sh

___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:

  http://lists.bx.psu.edu/

Reply via email to