Closed Bug 622864 Opened 14 years ago Closed 14 years ago

KeyError: 1 in get_collection_timestamps

Categories

(Cloud Services Graveyard :: Server: Sync, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: Atoll, Assigned: tarek)

Details

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/services/util.py", line 402, in __call__
    return self.app(environ, start_response)
  File "/usr/lib/python2.6/site-packages/paste/translogger.py", line 68, in __call__
    return self.application(environ, replacement_start_response)
  File "/usr/lib/python2.6/site-packages/webob/dec.py", line 147, in __call__
    resp = self.call_func(req, *args, **self.kwargs)
  File "/usr/lib/python2.6/site-packages/webob/dec.py", line 208, in call_func
    return self.func(req, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/services/baseapp.py", line 160, in __call__
    result = function(request, **params)
  File "/usr/lib/python2.6/site-packages/syncstorage/controller.py", line 117, in get_collections
    collections = storage.get_collection_timestamps(user_id)
  File "/usr/lib/python2.6/site-packages/syncstorage/storage/memcachedsql.py", line 437, in get_collection_timestamps
    self).get_collection_timestamps(user_id)
  File "/usr/lib/python2.6/site-packages/syncstorage/storage/sql.py", line 364, in get_collection_timestamps
    for coll_id, stamp in res])
  File "/usr/lib/python2.6/site-packages/syncstorage/storage/sql.py", line 378, in _collid2name
    return self._user_collections[user_id][collection_id]
KeyError: 1



[storage]
backend = memcached
sqluri = mysql://weaverw:PASSWORD_REMOVED@weave-stage-db01/weave0
standard_collections = false
use_quota = true
quota_size = 5120
pool_size = 100
pool_recycle = 3600
reset_on_return = true
cache_servers = weave-stage-web01:11211
Assignee: nobody → tarek
Please switch standard_collections to true and try again.

Just to make sure: is this the full [storage] section ? you seem to miss the hosts option, which is used for the sharding. see the web01 dev box.
Also please upgrade stage with the latest bumped rpm versions. Once this is done I'll activate stage in Hudson.
(In reply to comment #1)
> Please switch standard_collections to true and try again.
> 
> Just to make sure: is this the full [storage] section ? you seem to miss the
> hosts option, which is used for the sharding. see the web01 dev box.

Setting to true.  I missed the "display_config" and "hosts" sections, sorry.  I emailed you a tarball of all staging configs (setup/storage/reg/sreg), could you please review them for obvious errors?
I will review the files. 

Can you also make sure that stage is not updated on tip but on the latest rpm tag instead ?
Closing this as Richard was able to make it work yesterday after updating the code and the config.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
verified per last comment
Status: RESOLVED → VERIFIED
Product: Cloud Services → Cloud Services Graveyard
You need to log in before you can comment on or make changes to this bug.