kamon-io / docker-grafana-graphite

Docker image with StatsD, Graphite, Grafana 2 and a Kamon Dashboard
Apache License 2.0
1.14k stars 495 forks source link

graphite error #65

Open hos7ein opened 8 years ago

hos7ein commented 8 years ago

hi after build image and run by this way :

`mkdir kamon-grafana-service cd kamon-grafana-service mkdir -p data/whisper mkdir -p data/elasticsearch mkdir -p data/grafana mkdir -p log/graphite mkdir -p log/elasticsearch chmod -R 777 *

docker run \ --detach \ --publish=80:80 \ --publish=81:81 \ --publish=8125:8125/udp \ --publish=8126:8126 \ --name kamon-grafana-dashboard \ --volume=$(pwd)/data/whisper:/opt/graphite/storage/whisper \ --volume=$(pwd)/data/elasticsearch:/var/lib/elasticsearch \ --volume=$(pwd)/data/grafana:/opt/grafana/data \ --volume=$(pwd)/log/graphite:/opt/graphite/storage/log \ --volume=$(pwd)/log/elasticsearch:/var/log/elasticsearch \ kamon/grafana_graphite`

This message is displayed by graphite :

Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 103, in get_response resolver_match = resolver.resolve(request.path_info) File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 321, in resolve sub_match = pattern.resolve(new_path) File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 223, in resolve return ResolverMatch(self.callback, args, kwargs, self.name) File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 230, in callback self._callback = get_callable(self._callback_str) File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 29, in wrapper result = func(*args) File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 97, in get_callable mod = import_module(mod_name) File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module import(name) File "/opt/graphite/webapp/graphite/browser/views.py", line 22, in from graphite.util import getProfile, getProfileByUsername, defaultUser, json File "/opt/graphite/webapp/graphite/util.py", line 36, in from graphite.logger import log File "/opt/graphite/webapp/graphite/logger.py", line 84, in log = GraphiteLogger() # import-shared logger instance File "/opt/graphite/webapp/graphite/logger.py", line 40, in init self.infoHandler = Rotater(self.infoLogFile,when="midnight",backupCount=1) File "/usr/lib/python2.7/logging/handlers.py", line 171, in init BaseRotatingHandler.init(self, filename, 'a', encoding, delay) File "/usr/lib/python2.7/logging/handlers.py", line 64, in init logging.FileHandler.init(self, filename, mode, encoding, delay) File "/usr/lib/python2.7/logging/init.py", line 903, in init StreamHandler.init(self, self._open()) File "/usr/lib/python2.7/logging/init.py", line 928, in _open stream = open(self.baseFilename, self.mode) IOError: [Errno 2] No such file or directory: '/opt/graphite/storage/log/webapp/info.log'

now after create webapp dir,this problem is solved! With this situation Is it correct Image and configuretion?

tnx

wakumaku commented 8 years ago

See #63 :)

akauppi commented 8 years ago

63 is merged. This issue is from February. Cleanup, anyone?