[tahoe-lafs-trac-stream] [tahoe-lafs] #1724: S3 backend: /storage page gives AttributeError: 'NoneType' object has no attribute 'get_state'
tahoe-lafs
trac at tahoe-lafs.org
Thu Nov 29 21:05:18 UTC 2012
#1724: S3 backend: /storage page gives AttributeError: 'NoneType' object has no
attribute 'get_state'
------------------------------+-----------------------------------------
Reporter: davidsarah | Owner: davidsarah
Type: defect | Status: closed
Priority: minor | Milestone: undecided
Component: code-storage | Version: 1.9.0-s3branch
Resolution: wontfix | Keywords: s3-backend lae crawlers wui
Launchpad Bug: |
------------------------------+-----------------------------------------
Changes (by davidsarah):
* status: assigned => closed
* resolution: => wontfix
Old description:
> The 'Storage Server' page ({{{/storage}}}) of a node running the S3
> backend gives a nevow traceback with the following exception:
> {{{
> /home/customer/LAFS_source/src/allmydata/web/storage.py, line 90 in
> data_last_complete_bucket_count
> 88
> 89 def data_last_complete_bucket_count(self, ctx, data):
> 90 s = self.storage.bucket_counter.get_state()
> 91 count = s.get("last-complete-bucket-count")
> <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute
> 'get_state'
> }}}
>
> This happens because the S3 backend doesn't support crawlers, so it
> doesn't initialize the bucket_counter state. This doesn't affect the LAE
> servers because they don't run a web interface, but it should be fixed in
> order to merge the S3 backend.
New description:
The 'Storage Server' page ({{{/storage}}}) of a node running the S3
backend gives a nevow traceback with the following exception:
{{{
/home/customer/LAFS_source/src/allmydata/web/storage.py, line 90 in
data_last_complete_bucket_count
88
89 def data_last_complete_bucket_count(self, ctx, data):
90 s = self.storage.bucket_counter.get_state()
91 count = s.get("last-complete-bucket-count")
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute
'get_state'
}}}
This happens because the S3 backend doesn't support crawlers, so it
doesn't initialize the bucket_counter state. This doesn't affect the LAE
servers because they don't run a web interface, but it should be fixed in
order to merge the S3 backend.
--
Comment:
The leasedb+cloud backend merge supports crawlers, so this ticket is
unneeded.
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1724#comment:2>
tahoe-lafs <https://tahoe-lafs.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list