Please report this on GitHub. This looks like a submission referencing
some non existent user. To be clear, you have migrated from Pootle
older than 2.6 to 2.7.x, isn't it?


Bye

2015-09-30 21:29 GMT+02:00 Dwayne Bailey <[email protected]>:
> On 30 September 2015 at 20:24, Bernardo Gonzalez Kriegel <
> [email protected]> wrote:
>
>> Hi,
>> doing a refresh stats on some of my projects, I found errors on some
>> projects and languages
>>
>> The message is (for this project 'sk' language )
>>
>> 2015-09-30 19:19:02,101 INFO Running refresh_stats over /sd/3.20/'s files
>> 2015-09-30 19:19:03,645 INFO Running refresh_stats over /sk/3.20/'s files
>> 2015-09-30 19:19:04,247 ERROR Failed to run refresh_stats over /sk/3.20/'s
>> files
>> Traceback (most recent call last):
>>   File
>>
>> "/var/www/pootle/env/local/lib/python2.7/site-packages/pootle/apps/pootle_app/management/commands/__init__.py",
>> line 60, in do_translation_project
>>     self.handle_all_stores(tp, **options)
>>   File
>>
>> "/var/www/pootle/env/local/lib/python2.7/site-packages/pootle/apps/pootle_app/management/commands/refresh_stats.py",
>> line 34, in handle_all_stores
>>     store.update_all_cache()
>>   File
>>
>> "/var/www/pootle/env/local/lib/python2.7/site-packages/pootle/core/mixins/treeitem.py",
>> line 516, in update_all_cache
>>     self.update_dirty_cache()
>>   File
>>
>> "/var/www/pootle/env/local/lib/python2.7/site-packages/pootle/core/mixins/treeitem.py",
>> line 509, in update_dirty_cache
>>     create_update_cache_job_wrapper(self, _dirty)
>>   File
>>
>> "/var/www/pootle/env/local/lib/python2.7/site-packages/pootle/core/mixins/treeitem.py",
>> line 696, in create_update_cache_job_wrapper
>>     instance._update_cache_job(keys, decrement=decrement)
>>   File
>>
>> "/var/www/pootle/env/local/lib/python2.7/site-packages/pootle/core/mixins/treeitem.py",
>> line 529, in _update_cache_job
>>     self.update_cached(key)
>>   File
>>
>> "/var/www/pootle/env/local/lib/python2.7/site-packages/pootle/core/mixins/treeitem.py",
>> line 49, in _statslog
>>     result = function(instance, *args, **kwargs)
>>   File
>>
>> "/var/www/pootle/env/local/lib/python2.7/site-packages/pootle/core/mixins/treeitem.py",
>> line 307, in update_cached
>>     self.set_cached_value(name, self._calc(name))
>>   File
>>
>> "/var/www/pootle/env/local/lib/python2.7/site-packages/pootle/core/mixins/treeitem.py",
>> line 207, in _calc
>>     return self._calc_last_action()
>>   File
>>
>> "/var/www/pootle/env/local/lib/python2.7/site-packages/pootle/core/mixins/treeitem.py",
>> line 166, in _calc_last_action
>>     [self._get_last_action()] +
>>   File
>>
>> "/var/www/pootle/env/local/lib/python2.7/site-packages/pootle/apps/pootle_store/models.py",
>> line 2361, in _get_last_action
>>     return sub.get_submission_info()
>>   File
>>
>> "/var/www/pootle/env/local/lib/python2.7/site-packages/pootle/apps/pootle_statistics/models.py",
>> line 276, in get_submission_info
>>     if self.submitter:
>>   File
>>
>> "/var/www/pootle/env/local/lib/python2.7/site-packages/django/db/models/fields/related.py",
>> line 572, in __get__
>>     rel_obj = qs.get()
>>   File
>>
>> "/var/www/pootle/env/local/lib/python2.7/site-packages/django/db/models/query.py",
>> line 357, in get
>>     self.model._meta.object_name)
>> DoesNotExist: User matching query does not exist.
>>
>
> Literally looks to me like the user does not exists.  Most of my installs
> never involve removing a user.  But I could imagine if a user has been
> removed that we could have data, e.g. a suggestion or a contribution, that
> relates to a user that is no longer in Pootle.  We only landed code in
> 2.7.2 that allows us to cleanup users.  In those cases we move purge users
> completely, removing all their contributions.  Or merge them into the
> 'nobody' user.
>
> So this is something we probably need to catch in the migration stage.
>
> I'll have to leave this with other Pootle devs to investigate with you as
> am about to travel for a week.
>
>
>> 2015-09-30 19:19:04,248 INFO Running refresh_stats over /sl/3.20/'s files
>> 2015-09-30 19:19:05,754 INFO Running refresh_stats over /sq/3.20/'s files
>> 20
>>
>> Tried to edit and reload ( update_stores ) language files, same output
>>
>> Bernardo
>>
>>
>> Bernardo Gonzalez Kriegel
>> [email protected]
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Translate-pootle mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/translate-pootle
>>
>
>
>
> --
> Dwayne
>
> *Translate*
> +27 12 460 1095 (work)
> ------------------------------------------------------------------------------
> _______________________________________________
> Translate-pootle mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/translate-pootle

------------------------------------------------------------------------------
_______________________________________________
Translate-pootle mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/translate-pootle

Reply via email to