I don't know if cstats completely failed, or if it just raised this error. I think this is really a case of charm data changing and cstats doesn't know how to handle it. I see this error because manage.jujucharms.com is sending me all the exceptions.
Traceback (most recent call last):
File "/home/webops_deploy/charmworld/charmworld/jobs/cstat.py", line 57, in <module>
sys.exit(main())
File "/home/webops_deploy/charmworld/charmworld/jobs/cstat.py", line 53, in main
log))
File "/home/webops_deploy/charmworld/charmworld/jobs/cstat.py", line 34, in update_counts
charm_source.save(charm)
File "/home/webops_deploy/charmworld/charmworld/models.py", line 1243, in save
self.index_client.delete_charm(charm)
File "/home/webops_deploy/charmworld/charmworld/search.py", line 354, in delete_charm
self._delete_item(charm_id, CHARM)
File "/home/webops_deploy/charmworld/charmworld/search.py", line 349, in _delete_item
self._client.delete(self.index_name, doctype, id_, refresh=True)
File "/home/webops_deploy/charmworld/local/lib/python2.7/site-packages/pyelasticsearch/client.py", line 96, in decorate
return func(*args, query_params=query_params, **kwargs)
File "/home/webops_deploy/charmworld/local/lib/python2.7/site-packages/pyelasticsearch/client.py", line 410, in delete
query_params=query_params)
File "/home/webops_deploy/charmworld/local/lib/python2.7/site-packages/pyelasticsearch/client.py", line 254, in send_request
self._raise_exception(resp, prepped_response)
File "/home/webops_deploy/charmworld/local/lib/python2.7/site-packages/pyelasticsearch/client.py", line 268, in _raise_exception
raise error_class(response.status_code, error_message)
pyelasticsearch.exceptions.ElasticHttpNotFoundError: (404, {u'_type': u'charm', u'ok': True, u'_index': u'charms-21643', u'_version': 1, u'found': False, u'_id': u'~emamdouh/oneiric/php5-fpm'})