sync server on freebsd: doesn't sync?

Tarek Ziade tarek at mozilla.com
Wed Oct 5 06:01:44 PDT 2011


On 10/05/2011 11:57 AM, alexander lunyov wrote:
> Error on launch:
>
>    File "/usr/local/share/www/sync/server-full/deps/server-core/services/baseapp.py",
> line 276
>      raise
>          ^
> SyntaxError: invalid syntax
>
> the code of baseapp.py now looks like this:
>
>          try:
>              #result = function(request, **params)
>              try:
>                  result = function(request, **params)
>              except TypeError:
>                  print(request.environ)
>                  print(str(params)
>                  raise
>
>          except BackendError as err:
>
> What have i done wrong?

oopps, missing parenthesis at the end of print(str(params))

> --
> your sweet isn't ready yet
>
>
>
> On Wed, Oct 5, 2011 at 1:35 PM, Tarek Ziade<tarek at mozilla.com>  wrote:
>> On 10/05/2011 07:03 AM, alexander lunyov wrote:
>>> TypeError: get_collection() keywords must be strings
>>>
>> Weird. I don't understand how you can get this error, the GET log looks
>> legit.
>>
>> Can you change in baseapp.py this line (at line 270):
>>
>>     result = function(request, **params)
>>
>> by
>>
>>     try:
>>         result = function(request, **params)
>>     except TypeError:
>>         print(request.environ)
>>         print(str(params)
>>         raise
>>
>> Then restart paster. This will give us more info on the incoming request
>>
>> Tarek
>>> In about:sync-log i see errors:
>>>
>>> 1317790568145   Sync.Collection DEBUG   mesg: GET fail 500
>>>
>>> http://xxxx.ru:5000/1.1/26vdnfnfyraofzzdxp6xzc5rctvntcrx/storage/clients?full=1
>>> 1317790568145   Sync.Collection DEBUG   GET fail 500
>>>
>>> http://xxxx.ru:5000/1.1/26vdnfnfyraofzzdxp6xzc5rctvntcrx/storage/clients?full=1
>>> 1317790568146   Sync.Service    DEBUG   clients failed: "application
>>> error:
>>> crash id 4e91315f41d2f35e675c6b02eb9f0435" No traceback available
>>> 1317790568146   Sync.Service    INFO    Updating enabled engines: 0
>>> clients.
>>> 1317790568149   Sync.Engine.Bookmarks   DEBUG   Engine syncIDs:
>>> WAbgRpHrgcrH,a17KryJyTUYd
>>> 1317790568149   Sync.Engine.Bookmarks   DEBUG   Resetting bookmarks last
>>> sync time
>>> 1317790568150   Sync.Engine.Bookmarks   DEBUG   First sync, uploading all
>>> items
>>> 1317790568430   Sync.Engine.Bookmarks   INFO    32 outgoing items
>>> pre-reconciliation
>>> 1317790568817   Sync.Collection DEBUG   mesg: GET fail 500
>>>
>>> http://xxxx.ru:5000/1.1/26vdnfnfyraofzzdxp6xzc5rctvntcrx/storage/bookmarks?full=1
>>> 1317790568817   Sync.Collection DEBUG   GET fail 500
>>>
>>> http://xxxx.ru:5000/1.1/26vdnfnfyraofzzdxp6xzc5rctvntcrx/storage/bookmarks?full=1
>>> 1317790568819   Sync.Service    DEBUG   bookmarks failed: "application
>>> error:
>>> crash id e5f6e2ec190161b76e853aafc86de01b" No traceback available
>>> 1317790568819   Sync.Service    INFO    Aborting sync
>>>
>>> Help?
>>>
>>> --
>>> your sweet isn't ready yet
>>> _______________________________________________
>>> Services-dev mailing list
>>> Services-dev at mozilla.org
>>> https://mail.mozilla.org/listinfo/services-dev
>>
>> --
>> Tarek Ziade - Mozilla Services
>>
>> _______________________________________________
>> Services-dev mailing list
>> Services-dev at mozilla.org
>> https://mail.mozilla.org/listinfo/services-dev
>>


-- 
Tarek Ziade - Mozilla Services



More information about the Services-dev mailing list