martinrusev/amon — Issue #32: Error with Ubuntu and encrypted home
Author: tsileo
Created: 2011-12-07 18:08:14+00:00
State: open

When I try to go to the dashboard, I see this error in the log :

```
ERROR:root:Saving system info failed
Traceback (most recent call last):
File "/etc/init.d/amond", line 54, in run
backend.store_entries(system_info)
File "/usr/local/lib/python2.7/dist-packages/amon-0.6_dev-py2.7.egg/amon/backends/mongodb.py", line 79, in store_entries
self.store_entry(value, key)
File "/usr/local/lib/python2.7/dist-packages/amon-0.6_dev-py2.7.egg/amon/backends/mongodb.py", line 70, in store_entry
collection.save(entry, safe=True)
File "/usr/local/lib/python2.7/dist-packages/pymongo-2.0-py2.7-linux-x86_64.egg/pymongo/collection.py", line 216, in save
return self.insert(to_save, manipulate, safe, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/pymongo-2.0-py2.7-linux-x86_64.egg/pymongo/collection.py", line 283, in insert
check_keys, safe, kwargs), safe)
InvalidDocument: key '/home/thomas/.Private' must not contain '.'
ERROR:root:Saving system info failed
Traceback (most recent call last):
File "/etc/init.d/amond", line 54, in run
backend.store_entries(system_info)
File "/usr/local/lib/python2.7/dist-packages/amon-0.6_dev-py2.7.egg/amon/backends/mongodb.py", line 79, in store_entries
self.store_entry(value, key)
File "/usr/local/lib/python2.7/dist-packages/amon-0.6_dev-py2.7.egg/amon/backends/mongodb.py", line 70, in store_entry
collection.save(entry, safe=True)
File "/usr/local/lib/python2.7/dist-packages/pymongo-2.0-py2.7-linux-x86_64.egg/pymongo/collection.py", line 216, in save
return self.insert(to_save, manipulate, safe, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/pymongo-2.0-py2.7-linux-x86_64.egg/pymongo/collection.py", line 283, in insert
check_keys, safe, kwargs), safe)
InvalidDocument: key '/home/thomas/.Private' must not contain '.'
```

A document key in MongoDB can't contain a dot, I think it happen when Amon try to save my disk usage statistics.