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 local datasource throws internal server error #84

Open alrutten opened 7 years ago

alrutten commented 7 years ago

i built the container using docker-compose up -d if i go to the UI and check the local Graphite datasource i get an internal server error.

if i go to port 81 (Graphite web port) i see the following. did i misunderstand how to build and use the container?: 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 <module> from graphite.util import getProfile, getProfileByUsername, defaultUser, json File "/opt/graphite/webapp/graphite/util.py", line 36, in <module> from graphite.logger import log File "/opt/graphite/webapp/graphite/logger.py", line 84, in <module> 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'

alrutten commented 7 years ago

sorry, found #63.

akauppi commented 7 years ago

@alrutten Did #63 fix your problem? If so, can this issue be closed?

alrutten commented 7 years ago

it did! I just built a knew image and didn't have to create the dir manually for the container to run.

thank you,

anne

On Sun, Oct 30, 2016 at 10:35 AM, Asko Kauppi notifications@github.com wrote:

@alrutten https://github.com/alrutten Did #63 https://github.com/kamon-io/docker-grafana-graphite/pull/63 fix your problem? If so, can this issue be closed?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kamon-io/docker-grafana-graphite/issues/84#issuecomment-257141117, or mute the thread https://github.com/notifications/unsubscribe-auth/AGF77gMoRBA4ik7hiQU_UVauJfEhTqpjks5q5GT-gaJpZM4Kb6up .

.