Closed arielcamus closed 12 years ago
Can you please tell me which version of Ubuntu is that.
Ubuntu 10.10
I've forgot to mention that the install script returned an error:
Starting MongoDB: mongodb. forked process: 15628 all output going to: /usr/local/mongodb/mongodb.log *\ Amon succesfully installed
started with pid 15639
Exception AttributeError: "'NoneType' object has no attribute 'exception'" in <bound method AmonDaemon.del of <main.AmonDaemon object at 0xb6f0ba0c>> ignored
* Starting Amon
* The web application is not running by default, you can start with sudo /etc/init.d/amon start
Exception AttributeError: "'NoneType' object has no attribute 'exception'" in <bound method AmonDaemon.del of <main.AmonDaemon object at 0xb6f0ba0c>> ignored
Restaring the Amon web application ...
pidfile /var/run/amon.pid does not exist. Daemon not running?
started with pid 15653
For troubleshooting instructions, please see the Amon User Guide : http://amon.cx/guide/
Can you please check if Mongo is running:
Mongos is running; the connection with mongo is successful. However, the returned error in /usr/local/amon/amond.log is:
ERROR:root:Saving process info failed Traceback (most recent call last): File "/etc/init.d/amond", line 61, in run backend.store_entries(process_info) File "/usr/local/lib/python2.6/dist-packages/amon-0.5-py2.6.egg/amon/backends/mongodb.py", line 78, in store_entries self.store_entry(value, key) File "/usr/local/lib/python2.6/dist-packages/amon-0.5-py2.6.egg/amon/backends/mongodb.py", line 66, in store_entry collection = self.get_collection(collection) File "/usr/local/lib/python2.6/dist-packages/amon-0.5-py2.6.egg/amon/backends/mongodb.py", line 51, in get_collection db = self.get_database() File "/usr/local/lib/python2.6/dist-packages/amon-0.5-py2.6.egg/amon/backends/mongodb.py", line 44, in get_database conn = self.get_connection() File "/usr/local/lib/python2.6/dist-packages/amon-0.5-py2.6.egg/amon/backends/mongodb.py", line 37, in get_connection self._connection = Connection(self.host, self.port) File "build/bdist.linux-i686/egg/pymongo/connection.py", line 325, in init self.__find_node() File "build/bdist.linux-i686/egg/pymongo/connection.py", line 604, in __find_node raise AutoReconnect(', '.join(errors)) AutoReconnect: could not connect to localhost:27017: [Errno 111] Connection refused
Can you try deleting the mongod.lock file It should be in /usr/local/mongodb/data/mongod.lock And then start Mongo again with sudo /etc/init.d/mongodb start
After running /etc/init.d/mongodb start, It gets stucked at:
forked process: 16932 all output going to: /usr/local/mongodb/mongodb.log
That happens sometimes with Mongo, but as you said -> you can still connect to it. Can you please try changing /etc/amon.conf
"mongo":{
"port":27017,
"host":"localhost"
}
to
"mongo":{
"port":27017,
"host":"127.0.0.1"
}
The same happens.
When I try to restart the service I always get the same message, even if I've been able to start the process:
sudo /etc/init.d/mongodb restart
Restarting MongoDB: No /usr/local/mongodb/bin/mongod found running; none killed. forked process: 17237 all output going to: /usr/local/mongodb/mongodb.log mongodb.
I've changed from localhost to 127.0.0.1 in amon.conf but it's still failing.
That's very strange. Is it the same error:
AutoReconnect: could not connect to localhost:27017: [Errno 111] Connection refused
Yep. It's strange that the error stills showing localhost:27017 even if I change to 127.0.0.1 in mongodb.conf and amon.conf
By the way, I'm working with an 64bits AWS EC2 instance.
Something stupid, but still could help. Are you restarting the daemons after making the changes sudo /etc/init.d.amond restart and sudo /etc/init.d/amon restart
Yes.
I've been seeing old logs. I've noticed that now the website returns the same error but I can't see new error lines in amond.log with:
AutoReconnect: could not connect to localhost:27017: [Errno 111] Connection refused
Next step, testing pymongo from the terminal :) Write python in the terminal and then:
from pymongo import Connection
connection = Connection()
If this doesn't work try with both localhost and 127.0.0.1
from pymongo import Connection
connection = Connection('localhost', 27017)
connection = Connection('127.0.0.1', 27017)
Should this return something? The three lines don't return anything.
It should fail if there is a problem with the connection
Probably I should spin an Amazon EC2 instance to see what is going on there. On EC2 -> are you installing the distros by yourself, or there are predefined images?
Can you please check if there is data in the mongo database. mongo in the terminal, then
use amon
db.amon_<Tab>
Calling db.amon_memory.count() returns 512
I found the problem. I am not checking for 64 bit architecture in the installer and the 32 bit mongodb doesnt work as expected on 64 bit OS. I am going to fix that, first thing in the morning.
Same 500 error here. Using 32bit mongodb (as my Ubuntu 11.10 is 32bit). I checked the database and it seems amond is working.
Here's the install log:
Creating config file /etc/default/sysstat with new version
update-alternatives: /usr/bin/sar (sar) を提供するために 自動モード で /usr/bin/sar.sysstat を使います。
libc-bin のトリガを処理しています ...
ldconfig deferred processing now taking place
gcc 4:4.6.1-2ubuntu5
python-dev 2.7.2-7ubuntu2
sysstat 10.0.1-1
** success!
running install
Checking .pth file support in /usr/local/lib/python2.7/dist-packages/
/usr/bin/python -E -c pass
TEST PASSED: /usr/local/lib/python2.7/dist-packages/ appears to support .pth files
running bdist_egg
running egg_info
creating amon.egg-info
writing requirements to amon.egg-info/requires.txt
writing amon.egg-info/PKG-INFO
writing top-level names to amon.egg-info/top_level.txt
writing dependency_links to amon.egg-info/dependency_links.txt
writing manifest file 'amon.egg-info/SOURCES.txt'
reading manifest file 'amon.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'amon.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-i686/egg
running install_lib
running build_py
creating build
creating build/lib.linux-i686-2.7
creating build/lib.linux-i686-2.7/amon
copying amon/defaults.py -> build/lib.linux-i686-2.7/amon
copying amon/__init__.py -> build/lib.linux-i686-2.7/amon
creating build/lib.linux-i686-2.7/amon/core
copying amon/core/settings.py -> build/lib.linux-i686-2.7/amon/core
copying amon/core/exceptions.py -> build/lib.linux-i686-2.7/amon/core
copying amon/core/__init__.py -> build/lib.linux-i686-2.7/amon/core
creating build/lib.linux-i686-2.7/amon/backends
copying amon/backends/mongodb.py -> build/lib.linux-i686-2.7/amon/backends
copying amon/backends/__init__.py -> build/lib.linux-i686-2.7/amon/backends
creating build/lib.linux-i686-2.7/amon/web
copying amon/web/settings.py -> build/lib.linux-i686-2.7/amon/web
copying amon/web/views.py -> build/lib.linux-i686-2.7/amon/web
copying amon/web/utils.py -> build/lib.linux-i686-2.7/amon/web
copying amon/web/template.py -> build/lib.linux-i686-2.7/amon/web
copying amon/web/devserver.py -> build/lib.linux-i686-2.7/amon/web
copying amon/web/server.py -> build/lib.linux-i686-2.7/amon/web
copying amon/web/api.py -> build/lib.linux-i686-2.7/amon/web
copying amon/web/__init__.py -> build/lib.linux-i686-2.7/amon/web
creating build/lib.linux-i686-2.7/amon/api
copying amon/api/exception.py -> build/lib.linux-i686-2.7/amon/api
copying amon/api/log.py -> build/lib.linux-i686-2.7/amon/api
copying amon/api/__init__.py -> build/lib.linux-i686-2.7/amon/api
creating build/lib.linux-i686-2.7/amon/system
copying amon/system/utils.py -> build/lib.linux-i686-2.7/amon/system
copying amon/system/daemon.py -> build/lib.linux-i686-2.7/amon/system
copying amon/system/collector.py -> build/lib.linux-i686-2.7/amon/system
copying amon/system/runner.py -> build/lib.linux-i686-2.7/amon/system
copying amon/system/__init__.py -> build/lib.linux-i686-2.7/amon/system
creating build/bdist.linux-i686
creating build/bdist.linux-i686/egg
creating build/bdist.linux-i686/egg/amon
creating build/bdist.linux-i686/egg/amon/core
copying build/lib.linux-i686-2.7/amon/core/settings.py -> build/bdist.linux-i686/egg/amon/core
copying build/lib.linux-i686-2.7/amon/core/exceptions.py -> build/bdist.linux-i686/egg/amon/core
copying build/lib.linux-i686-2.7/amon/core/__init__.py -> build/bdist.linux-i686/egg/amon/core
creating build/bdist.linux-i686/egg/amon/backends
copying build/lib.linux-i686-2.7/amon/backends/mongodb.py -> build/bdist.linux-i686/egg/amon/backends
copying build/lib.linux-i686-2.7/amon/backends/__init__.py -> build/bdist.linux-i686/egg/amon/backends
creating build/bdist.linux-i686/egg/amon/web
copying build/lib.linux-i686-2.7/amon/web/settings.py -> build/bdist.linux-i686/egg/amon/web
copying build/lib.linux-i686-2.7/amon/web/views.py -> build/bdist.linux-i686/egg/amon/web
copying build/lib.linux-i686-2.7/amon/web/utils.py -> build/bdist.linux-i686/egg/amon/web
copying build/lib.linux-i686-2.7/amon/web/template.py -> build/bdist.linux-i686/egg/amon/web
copying build/lib.linux-i686-2.7/amon/web/devserver.py -> build/bdist.linux-i686/egg/amon/web
copying build/lib.linux-i686-2.7/amon/web/server.py -> build/bdist.linux-i686/egg/amon/web
copying build/lib.linux-i686-2.7/amon/web/api.py -> build/bdist.linux-i686/egg/amon/web
copying build/lib.linux-i686-2.7/amon/web/__init__.py -> build/bdist.linux-i686/egg/amon/web
creating build/bdist.linux-i686/egg/amon/api
copying build/lib.linux-i686-2.7/amon/api/exception.py -> build/bdist.linux-i686/egg/amon/api
copying build/lib.linux-i686-2.7/amon/api/log.py -> build/bdist.linux-i686/egg/amon/api
copying build/lib.linux-i686-2.7/amon/api/__init__.py -> build/bdist.linux-i686/egg/amon/api
copying build/lib.linux-i686-2.7/amon/defaults.py -> build/bdist.linux-i686/egg/amon
creating build/bdist.linux-i686/egg/amon/system
copying build/lib.linux-i686-2.7/amon/system/utils.py -> build/bdist.linux-i686/egg/amon/system
copying build/lib.linux-i686-2.7/amon/system/daemon.py -> build/bdist.linux-i686/egg/amon/system
copying build/lib.linux-i686-2.7/amon/system/collector.py -> build/bdist.linux-i686/egg/amon/system
copying build/lib.linux-i686-2.7/amon/system/runner.py -> build/bdist.linux-i686/egg/amon/system
copying build/lib.linux-i686-2.7/amon/system/__init__.py -> build/bdist.linux-i686/egg/amon/system
copying build/lib.linux-i686-2.7/amon/__init__.py -> build/bdist.linux-i686/egg/amon
byte-compiling build/bdist.linux-i686/egg/amon/core/settings.py to settings.pyc
byte-compiling build/bdist.linux-i686/egg/amon/core/exceptions.py to exceptions.pyc
byte-compiling build/bdist.linux-i686/egg/amon/core/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-i686/egg/amon/backends/mongodb.py to mongodb.pyc
byte-compiling build/bdist.linux-i686/egg/amon/backends/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-i686/egg/amon/web/settings.py to settings.pyc
byte-compiling build/bdist.linux-i686/egg/amon/web/views.py to views.pyc
byte-compiling build/bdist.linux-i686/egg/amon/web/utils.py to utils.pyc
byte-compiling build/bdist.linux-i686/egg/amon/web/template.py to template.pyc
byte-compiling build/bdist.linux-i686/egg/amon/web/devserver.py to devserver.pyc
byte-compiling build/bdist.linux-i686/egg/amon/web/server.py to server.pyc
byte-compiling build/bdist.linux-i686/egg/amon/web/api.py to api.pyc
byte-compiling build/bdist.linux-i686/egg/amon/web/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-i686/egg/amon/api/exception.py to exception.pyc
byte-compiling build/bdist.linux-i686/egg/amon/api/log.py to log.pyc
byte-compiling build/bdist.linux-i686/egg/amon/api/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-i686/egg/amon/defaults.py to defaults.pyc
byte-compiling build/bdist.linux-i686/egg/amon/system/utils.py to utils.pyc
byte-compiling build/bdist.linux-i686/egg/amon/system/daemon.py to daemon.pyc
byte-compiling build/bdist.linux-i686/egg/amon/system/collector.py to collector.pyc
byte-compiling build/bdist.linux-i686/egg/amon/system/runner.py to runner.pyc
byte-compiling build/bdist.linux-i686/egg/amon/system/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-i686/egg/amon/__init__.py to __init__.pyc
installing package data to build/bdist.linux-i686/egg
running install_data
creating build/bdist.linux-i686/egg/amon/web/media
copying amon/web/media/Guardfile -> build/bdist.linux-i686/egg/amon/web/media
copying amon/web/media/Gemfile -> build/bdist.linux-i686/egg/amon/web/media
copying amon/web/media/Gemfile.lock -> build/bdist.linux-i686/egg/amon/web/media
copying amon/web/media/config.rb -> build/bdist.linux-i686/egg/amon/web/media
creating build/bdist.linux-i686/egg/amon/web/media/css
copying amon/web/media/css/screen.css -> build/bdist.linux-i686/egg/amon/web/media/css
copying amon/web/media/css/error.css -> build/bdist.linux-i686/egg/amon/web/media/css
copying amon/web/media/css/jquery-ui.css -> build/bdist.linux-i686/egg/amon/web/media/css
creating build/bdist.linux-i686/egg/amon/web/media/css/images
copying amon/web/media/css/images/ui-icons_222222_256x240.png -> build/bdist.linux-i686/egg/amon/web/media/css/images
copying amon/web/media/css/images/ui-icons_ffffff_256x240.png -> build/bdist.linux-i686/egg/amon/web/media/css/images
copying amon/web/media/css/images/ui-icons_ef8c08_256x240.png -> build/bdist.linux-i686/egg/amon/web/media/css/images
copying amon/web/media/css/images/ui-bg_flat_10_000000_40x100.png -> build/bdist.linux-i686/egg/amon/web/media/css/images
copying amon/web/media/css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png -> build/bdist.linux-i686/egg/amon/web/media/css/images
copying amon/web/media/css/images/ui-bg_glass_65_ffffff_1x400.png -> build/bdist.linux-i686/egg/amon/web/media/css/images
copying amon/web/media/css/images/ui-icons_ffd27a_256x240.png -> build/bdist.linux-i686/egg/amon/web/media/css/images
copying amon/web/media/css/images/ui-bg_glass_100_fdf5ce_1x400.png -> build/bdist.linux-i686/egg/amon/web/media/css/images
copying amon/web/media/css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png -> build/bdist.linux-i686/egg/amon/web/media/css/images
copying amon/web/media/css/images/ui-icons_228ef1_256x240.png -> build/bdist.linux-i686/egg/amon/web/media/css/images
copying amon/web/media/css/images/ui-bg_diagonals-thick_18_b81900_40x40.png -> build/bdist.linux-i686/egg/amon/web/media/css/images
copying amon/web/media/css/images/ui-bg_glass_100_f6f6f6_1x400.png -> build/bdist.linux-i686/egg/amon/web/media/css/images
copying amon/web/media/css/images/ui-bg_diagonals-thick_20_666666_40x40.png -> build/bdist.linux-i686/egg/amon/web/media/css/images
copying amon/web/media/css/images/ui-bg_gloss-wave_35_f6a828_500x100.png -> build/bdist.linux-i686/egg/amon/web/media/css/images
creating build/bdist.linux-i686/egg/amon/web/media/sass
copying amon/web/media/sass/screen.sass -> build/bdist.linux-i686/egg/amon/web/media/sass
copying amon/web/media/sass/error.sass -> build/bdist.linux-i686/egg/amon/web/media/sass
creating build/bdist.linux-i686/egg/amon/web/media/js
copying amon/web/media/js/form2object.js -> build/bdist.linux-i686/egg/amon/web/media/js
copying amon/web/media/js/jquery.relative-date.js -> build/bdist.linux-i686/egg/amon/web/media/js
copying amon/web/media/js/jquery.flot.js -> build/bdist.linux-i686/egg/amon/web/media/js
copying amon/web/media/js/date.format.min.js -> build/bdist.linux-i686/egg/amon/web/media/js
copying amon/web/media/js/jquery-ui.min.js -> build/bdist.linux-i686/egg/amon/web/media/js
copying amon/web/media/js/jquery-1.6.2.min.js -> build/bdist.linux-i686/egg/amon/web/media/js
copying amon/web/media/js/form2object.min.js -> build/bdist.linux-i686/egg/amon/web/media/js
copying amon/web/media/js/jquery-ui-timepicker-addon.js -> build/bdist.linux-i686/egg/amon/web/media/js
copying amon/web/media/js/spin.min.js -> build/bdist.linux-i686/egg/amon/web/media/js
creating build/bdist.linux-i686/egg/amon/web/media/images
copying amon/web/media/images/collapse.png -> build/bdist.linux-i686/egg/amon/web/media/images
copying amon/web/media/images/active_button.png -> build/bdist.linux-i686/egg/amon/web/media/images
copying amon/web/media/images/logo.png -> build/bdist.linux-i686/egg/amon/web/media/images
copying amon/web/media/images/green_bar.png -> build/bdist.linux-i686/egg/amon/web/media/images
copying amon/web/media/images/grey_bar.png -> build/bdist.linux-i686/egg/amon/web/media/images
copying amon/web/media/images/favicon.png -> build/bdist.linux-i686/egg/amon/web/media/images
copying amon/web/media/images/table_heading.png -> build/bdist.linux-i686/egg/amon/web/media/images
copying amon/web/media/images/tabs_separator.png -> build/bdist.linux-i686/egg/amon/web/media/images
copying amon/web/media/images/sidebar.png -> build/bdist.linux-i686/egg/amon/web/media/images
copying amon/web/media/images/exception_counter.png -> build/bdist.linux-i686/egg/amon/web/media/images
copying amon/web/media/images/left.png -> build/bdist.linux-i686/egg/amon/web/media/images
copying amon/web/media/images/red_bar.png -> build/bdist.linux-i686/egg/amon/web/media/images
copying amon/web/media/images/yellow_bar.png -> build/bdist.linux-i686/egg/amon/web/media/images
creating build/bdist.linux-i686/egg/amon/web/templates
copying amon/web/templates/blank.html -> build/bdist.linux-i686/egg/amon/web/templates
copying amon/web/templates/404.html -> build/bdist.linux-i686/egg/amon/web/templates
copying amon/web/templates/system.html -> build/bdist.linux-i686/egg/amon/web/templates
copying amon/web/templates/error.html -> build/bdist.linux-i686/egg/amon/web/templates
copying amon/web/templates/dashboard.html -> build/bdist.linux-i686/egg/amon/web/templates
copying amon/web/templates/base.html -> build/bdist.linux-i686/egg/amon/web/templates
copying amon/web/templates/processes.html -> build/bdist.linux-i686/egg/amon/web/templates
copying amon/web/templates/logs.html -> build/bdist.linux-i686/egg/amon/web/templates
copying amon/web/templates/exceptions.html -> build/bdist.linux-i686/egg/amon/web/templates
copying amon/web/templates/settings.html -> build/bdist.linux-i686/egg/amon/web/templates
creating build/bdist.linux-i686/egg/amon/web/templates/settings
copying amon/web/templates/settings/cleanup.html -> build/bdist.linux-i686/egg/amon/web/templates/settings
creating build/bdist.linux-i686/egg/amon/web/templates/partials
copying amon/web/templates/partials/logs_filter.html -> build/bdist.linux-i686/egg/amon/web/templates/partials
copying amon/web/templates/partials/settings_tabs.html -> build/bdist.linux-i686/egg/amon/web/templates/partials
creating build/bdist.linux-i686/egg/EGG-INFO
copying amon.egg-info/PKG-INFO -> build/bdist.linux-i686/egg/EGG-INFO
copying amon.egg-info/SOURCES.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying amon.egg-info/dependency_links.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying amon.egg-info/requires.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying amon.egg-info/top_level.txt -> build/bdist.linux-i686/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
amon.web.settings: module references __file__
creating dist
creating 'dist/amon-0.5-py2.7.egg' and adding 'build/bdist.linux-i686/egg' to it
removing 'build/bdist.linux-i686/egg' (and everything under it)
Processing amon-0.5-py2.7.egg
creating /usr/local/lib/python2.7/dist-packages/amon-0.5-py2.7.egg
Extracting amon-0.5-py2.7.egg to /usr/local/lib/python2.7/dist-packages
Adding amon 0.5 to easy-install.pth file
Installed /usr/local/lib/python2.7/dist-packages/amon-0.5-py2.7.egg
Processing dependencies for amon==0.5
Searching for pip
Reading http://pypi.python.org/simple/pip/
Reading http://pip.openplans.org
Reading http://www.pip-installer.org
Best match: pip 1.0.2
Downloading http://pypi.python.org/packages/source/p/pip/pip-1.0.2.tar.gz#md5=47ec6ff3f6d962696fe08d4c8264ad49
Processing pip-1.0.2.tar.gz
Running pip-1.0.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-cuPTo7/pip-1.0.2/egg-dist-tmp-TfrCdR
warning: no files found matching '*.html' under directory 'docs'
warning: no previously-included files matching '*.txt' found under directory 'docs/_build'
no previously-included directories found matching 'docs/_build/_sources'
Adding pip 1.0.2 to easy-install.pth file
Installing pip script to /usr/local/bin
Installing pip-2.7 script to /usr/local/bin
Installed /usr/local/lib/python2.7/dist-packages/pip-1.0.2-py2.7.egg
Searching for Jinja2>=2.4
Reading http://pypi.python.org/simple/Jinja2/
Reading http://jinja.pocoo.org/
Best match: Jinja2 2.6
Downloading http://pypi.python.org/packages/source/J/Jinja2/Jinja2-2.6.tar.gz#md5=1c49a8825c993bfdcf55bb36897d28a2
Processing Jinja2-2.6.tar.gz
Running Jinja2-2.6/setup.py -q bdist_egg --dist-dir /tmp/easy_install-YTfyf5/Jinja2-2.6/egg-dist-tmp-n5FnVE
warning: no previously-included files matching '*' found under directory 'docs/_build'
warning: no previously-included files matching '*.pyc' found under directory 'jinja2'
warning: no previously-included files matching '*.pyc' found under directory 'docs'
warning: no previously-included files matching '*.pyo' found under directory 'jinja2'
warning: no previously-included files matching '*.pyo' found under directory 'docs'
Adding Jinja2 2.6 to easy-install.pth file
Installed /usr/local/lib/python2.7/dist-packages/Jinja2-2.6-py2.7.egg
Searching for tornado>=2.0
Reading http://pypi.python.org/simple/tornado/
Reading http://www.tornadoweb.org/
Best match: tornado 2.1.1
Downloading https://github.com/downloads/facebook/tornado/tornado-2.1.1.tar.gz
Processing tornado-2.1.1.tar.gz
Running tornado-2.1.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-MB7ar7/tornado-2.1.1/egg-dist-tmp-h8NPT1
warning: no previously-included files matching '_auto2to3*' found anywhere in distribution
zip_safe flag not set; analyzing archive contents...
tornado.simple_httpclient: module references __file__
tornado.autoreload: module references __file__
tornado.test.httpserver_test: module references __file__
/usr/lib/python2.7/dist-packages/setuptools/command/bdist_egg.py:431: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
symbols = dict.fromkeys(iter_symbols(code))
tornado.test.web_test: module references __file__
Adding tornado 2.1.1 to easy-install.pth file
Installed /usr/local/lib/python2.7/dist-packages/tornado-2.1.1-py2.7.egg
Searching for pymongo==2.0
Reading http://pypi.python.org/simple/pymongo/
Reading http://github.com/mongodb/mongo-python-driver
Best match: pymongo 2.0
Downloading http://pypi.python.org/packages/source/p/pymongo/pymongo-2.0.tar.gz#md5=8cd04065b115dd186b18cb3e8e3025c6
Processing pymongo-2.0.tar.gz
Running pymongo-2.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ggQ50z/pymongo-2.0/egg-dist-tmp-KKs5s8
zip_safe flag not set; analyzing archive contents...
Adding pymongo 2.0 to easy-install.pth file
Installed /usr/local/lib/python2.7/dist-packages/pymongo-2.0-py2.7-linux-i686.egg
Finished processing dependencies for amon==0.5
update-rc.d: warning: /etc/init.d/amond missing LSB keyword 'required-start'
update-rc.d: warning: /etc/init.d/amond missing LSB keyword 'required-stop'
*** Amon succesfully installed
started with pid 14276
*** Starting Amon
*** The web application is not running by default, you can start with `sudo /etc/init.d/amon start`
Restaring the Amon web application ...
pidfile /var/run/amon.pid does not exist. Daemon not running?
started with pid 14293
For troubleshooting instructions, please see the Amon User Guide :
http://amon.cx/guide/
To uninstall Amon, `curl uninstall.amon.cx | sh`
Here's the error log:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/tornado-2.1.1-py2.7.egg/tornado/web.py", line 954, in _execute
getattr(self, self.request.method.lower())(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/amon-0.5-py2.7.egg/amon/web/views.py", line 74, in get
unread_values=self.unread_values
File "/usr/local/lib/python2.7/dist-packages/amon-0.5-py2.7.egg/amon/web/template.py", line 221, in render
return template.render(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/Jinja2-2.6-py2.7.egg/jinja2/environment.py", line 894, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/local/lib/python2.7/dist-packages/amon-0.5-py2.7.egg/amon/web/templates/dashboard.html", line 1, in top-level template code
{% extends "base.html" %}
File "/usr/local/lib/python2.7/dist-packages/amon-0.5-py2.7.egg/amon/web/templates/base.html", line 28, in top-level template code
{% block content %}
File "/usr/local/lib/python2.7/dist-packages/amon-0.5-py2.7.egg/amon/web/templates/dashboard.html", line 54, in block "content"
<span class="progress" style='width: {{ swap_free|progress_width(last_check.memory.swaptotal, 'medium') }}'></span>
File "/usr/local/lib/python2.7/dist-packages/amon-0.5-py2.7.egg/amon/web/template.py", line 132, in progress_width
percentage = float(value)/float(total) * 100
ZeroDivisionError: float division by zero
Can you please check if the swap memory values are in the database? Write mongo in the terminal and then:
use amon
db.amon_memory.find()
and see if there is a swap field there
The first 20 documents show:
{ "_id" : ObjectId("4edceb5ebf9ab83d17000004"), "memtotal" : 1665, "swaptotal" : 0, "swapfree" : 0, "memfree" : 46, "time" : 1323101022 } { "_id" : ObjectId("4edceb9abf9ab83d1700000a"), "memtotal" : 1665, "swaptotal" : 0, "swapfree" : 0, "memfree" : 48, "time" : 1323101082 } { "_id" : ObjectId("4edcebd6bf9ab83d17000010"), "memtotal" : 1665, "swaptotal" : 0, "swapfree" : 0, "memfree" : 48, "time" : 1323101142 } { "_id" : ObjectId("4edcec12bf9ab83d17000016"), "memtotal" : 1665, "swaptotal" : 0, "swapfree" : 0, "memfree" : 48, "time" : 1323101202 } { "_id" : ObjectId("4edcec4fbf9ab83d1700001c"), "memtotal" : 1665, "swaptotal" : 0, "swapfree" : 0, "memfree" : 56, "time" : 1323101263 } { "_id" : ObjectId("4edcec8bbf9ab83d17000022"), "memtotal" : 1665, "swaptotal" : 0, "swapfree" : 0, "memfree" : 134, "time" : 1323101323 } { "_id" : ObjectId("4edcecc7bf9ab83d17000028"), "memtotal" : 1665, "swaptotal" : 0, "swapfree" : 0, "memfree" : 66, "time" : 1323101383 } { "_id" : ObjectId("4edced03bf9ab83d1700002e"), "memtotal" : 1665, "swaptotal" : 0, "swapfree" : 0, "memfree" : 45, "time" : 1323101443 } { "_id" : ObjectId("4edced15bf9ab83df0000004"), "last" : 1, "time" : 1323101461 } { "_id" : ObjectId("4edced15bf9ab83df0000009"), "last" : 1, "time" : 1323101461 } { "_id" : ObjectId("4edced1bbf9ab83df7000004"), "last" : 1, "time" : 1323101466 } { "_id" : ObjectId("4edced1bbf9ab83dfd000009"), "last" : 1, "time" : 1323101467 } { "_id" : ObjectId("4edced1bbf9ab83df7000009"), "last" : 1, "time" : 1323101467 } { "_id" : ObjectId("4edced1bbf9ab83dfe000009"), "memtotal" : 1665, "swaptotal" : 0, "swapfree" : 0, "memfree" : 175, "time" : 1323101467 } { "_id" : ObjectId("4edced57bf9ab83dfe00000f"), "memtotal" : 1665, "swaptotal" : 0, "swapfree" : 0, "memfree" : 201, "time" : 1323101527 } { "_id" : ObjectId("4edced93bf9ab83dfe000015"), "memtotal" : 1665, "swaptotal" : 0, "swapfree" : 0, "memfree" : 197, "time" : 1323101587 } { "_id" : ObjectId("4edcedcfbf9ab83dfe00001b"), "memtotal" : 1665, "swaptotal" : 0, "swapfree" : 0, "memfree" : 197, "time" : 1323101647 } { "_id" : ObjectId("4edcee0cbf9ab83dfe000021"), "memtotal" : 1665, "swaptotal" : 0, "swapfree" : 0, "memfree" : 187, "time" : 1323101708 } { "_id" : ObjectId("4edcee48bf9ab83dfe000027"), "memtotal" : 1665, "swaptotal" : 0, "swapfree" : 0, "memfree" : 180, "time" : 1323101768 } { "_id" : ObjectId("4edcee84bf9ab83dfe00002d"), "memtotal" : 1665, "swaptotal" : 0, "swapfree" : 0, "memfree" : 185, "time" : 1323101828 }
Thank you so much :) I will fix that right away
2 more questions, do you have a swap partition and is that still the Amazon EC2 instance?
Yes and yes
Thank you. Fix coming up in several minuites
Can you try curl install.amon.cx | sh again. I've updated the templates, so it should work properly now
Great job Martin! It's working now
It's working! Thank you! Not sure why but on my Ubuntu swap is call tmpfs.
Woohoo! I was getting the same error on Ubuntu, and re-curl install.amon.cx | sh
fixed it for me too.
I'm still experiencing the problem at the top of this thread.
progress_width percentage = float(value)/float(total) * 100 ValueError: invalid literal for float(): 3.36+02
I'm running the latest stable version (2.0.1) of mongodb (manual install). I have just run your install script, restarted things but I'm still getting that error.
> db.amon_memory.find()
{ "_id" : ObjectId("4edf4e29876b077ca5000004"), "last" : 1, "time" : 1323257384 }
{ "_id" : ObjectId("4edf4e29876b077ca5000009"), "last" : 1, "time" : 1323257385 }
{ "_id" : ObjectId("4edf4e29876b077cac000009"), "last" : 1, "time" : 1323257385 }
{ "_id" : ObjectId("4edf4e29876b077cad000009"), "memtotal" : 12032, "swaptotal" : 0, "swapfree" : 0, "memfree" : 90, "time" : 1323257385 }
{ "_id" : ObjectId("4edf4e66876b077cad000012"), "memtotal" : 12032, "swaptotal" : 0, "swapfree" : 0, "memfree" : 95, "time" : 1323257446 }
{ "_id" : ObjectId("4edf4ea4876b077cad00001b"), "memtotal" : 12032, "swaptotal" : 0, "swapfree" : 0, "memfree" : 110, "time" : 1323257507 }
I am almost there with the next version, which is a little bit more generous to missing/incomplete data :) Can you please share your setup - OS, vps provider( amazon, rackspace, local ) ,architecture ( 32/64 bit )
It's Ubuntu 11.04 running on one of my own servers with an x86_64 intel cpu and 12GB memory.
You can try again and update Amon. It should say 0.5.4 on the top
It's working now thanks.
Hi,
I've installed Amon but when I visit 127.0.0.1:2464 I get the following error:
Error 500
Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/tornado-2.1.1-py2.6.egg/tornado/web.py", line 954, in _execute getattr(self, self.request.method.lower())(_args, _kwargs) File "/usr/local/lib/python2.6/dist-packages/amon-0.5-py2.6.egg/amon/web/views.py", line 74, in get unread_values=self.unread_values File "/usr/local/lib/python2.6/dist-packages/amon-0.5-py2.6.egg/amon/web/template.py", line 221, in render return template.render(_args, _kwargs) File "/usr/local/lib/python2.6/dist-packages/Jinja2-2.6-py2.6.egg/jinja2/environment.py", line 894, in render return self.environment.handle_exception(exc_info, True) File "/usr/local/lib/python2.6/dist-packages/amon-0.5-py2.6.egg/amon/web/templates/dashboard.html", line 1, in top-level template code {% extends "base.html" %} File "/usr/local/lib/python2.6/dist-packages/amon-0.5-py2.6.egg/amon/web/templates/base.html", line 28, in top-level template code {% block content %} File "/usr/local/lib/python2.6/dist-packages/amon-0.5-py2.6.egg/amon/web/templates/dashboard.html", line 54, in block "content" File "/usr/local/lib/python2.6/dist-packages/amon-0.5-py2.6.egg/amon/web/template.py", line 132, in progress_width percentage = float(value)/float(total) * 100 ZeroDivisionError: float division