Problem with self.object_store.exists in set_dataset_sizes.py
Hi all, I've just updated our Galaxy to the current release 26920e20157f which now includes quota support. This means I need to run set_dataset_sizes.py in order to record the current usage, as explained here: http://wiki.g2.bx.psu.edu/Admin/Disk%20Quotas However, I have run into a problem: $ sudo -u galaxy python2.6 scripts/set_dataset_sizes.py Loading Galaxy model... Processing 3011 datasets... Completed 0% Traceback (most recent call last): File "scripts/set_dataset_sizes.py", line 45, in <module> dataset.set_total_size() File "lib/galaxy/model/__init__.py", line 702, in set_total_size if self.object_store.exists(self, extra_dir=self._extra_files_path or "dataset_%d_files" % self.id, dir_only=True): AttributeError: 'NoneType' object has no attribute 'exists' According to the comments in that file, self.object_store should be initialized in mapping.py (method init) by app.py - apparently that isn't happening. Has anyone else seen this? Thanks, Peter
On Feb 10, 2012, at 7:06 AM, Peter Cock wrote:
Hi all,
I've just updated our Galaxy to the current release 26920e20157f which now includes quota support. This means I need to run set_dataset_sizes.py in order to record the current usage, as explained here: http://wiki.g2.bx.psu.edu/Admin/Disk%20Quotas
However, I have run into a problem:
$ sudo -u galaxy python2.6 scripts/set_dataset_sizes.py Loading Galaxy model... Processing 3011 datasets... Completed 0% Traceback (most recent call last): File "scripts/set_dataset_sizes.py", line 45, in <module> dataset.set_total_size() File "lib/galaxy/model/__init__.py", line 702, in set_total_size if self.object_store.exists(self, extra_dir=self._extra_files_path or "dataset_%d_files" % self.id, dir_only=True): AttributeError: 'NoneType' object has no attribute 'exists'
According to the comments in that file, self.object_store should be initialized in mapping.py (method init) by app.py - apparently that isn't happening.
Has anyone else seen this?
Yup, fixed in da8591377954. --nate
Thanks,
Peter ___________________________________________________________ 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:
participants (2)
-
Nate Coraor
-
Peter Cock