Project

General

Profile

Bug #14179

Error 500 :: Internal server error ::: ubuntu 14.04 Trusty

Added by wilfried ngongue about 4 years ago. Updated about 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature:

Description

------------------------ My Distribution
ubuntu 14.04 Trusty

I have the page error 500 ::: Internal server error for calamari.

--------- My OUTPUT -------
$ sudo dpkg -l | grep salt
ii salt-common 2014.7.5+ds-1ubuntu1 all shared libraries that salt requires for all packages
ii salt-master 2014.7.5+ds-1ubuntu1 all remote manager to administer servers via salt
ii salt-minion 2014.7.5+ds-1ubuntu1 all client package for salt, the distributed remote execution system

$ sudo supervisorctl status
carbon-cache RUNNING pid 1088, uptime 23:19:02
cthulhu RUNNING pid 27734, uptime 0:15:00

---------------------------- BUT
I get The 500 error page ::: Internal server error

calamarie.png View (30.5 KB) wilfried ngongue, 01/18/2016 01:16 PM

History

#1 Updated by Gregory Meno about 4 years ago

Would you please share what resource(URL) is causing this 500 ?
check in /var/log/calamari/calamari.log

#2 Updated by wilfried ngongue about 4 years ago

Gregory Meno wrote:

Would you please share what resource(URL) is causing this 500 ?
check in /var/log/calamari/calamari.log

My OUTPUT ON /var/log/calamari/calamari.log

  1. tail -f /var/log/calamari/calamari.log
    from calamari_rest.views.server_metadata import get_local_grains
    File "/opt/calamari/venv/lib/python2.7/site-packages/calamari_rest_api-0.1-py2.7.egg/calamari_rest/views/server_metadata.py", line 11, in <module>
    from calamari_common.salt_wrapper import master_config, create_loader, client_config, MasterPillarUtil
    File "/opt/calamari/venv/lib/python2.7/site-packages/calamari_common-0.1-py2.7.egg/calamari_common/salt_wrapper.py", line 21, in <module>
    handler = logging.FileHandler(config.get('cthulhu', 'log_path'))
    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 13] Permission denied: '/var/log/calamari/cthulhu.log'
    2016-01-05 02:00:42,721 - ERROR - django.request Internal Server Error: /
    Traceback (most recent call last):
    File "/opt/calamari/venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 103, in get_response
    resolver_match = resolver.resolve(request.path_info)
    File "/opt/calamari/venv/lib/python2.7/site-packages/django/core/urlresolvers.py", line 319, in resolve
    for pattern in self.url_patterns:
    File "/opt/calamari/venv/lib/python2.7/site-packages/django/core/urlresolvers.py", line 347, in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
    File "/opt/calamari/venv/lib/python2.7/site-packages/django/core/urlresolvers.py", line 342, in urlconf_module
    self._urlconf_module = import_module(self.urlconf_name)
    File "/opt/calamari/venv/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
    import(name)
    File "/opt/calamari/venv/lib/python2.7/site-packages/calamari_web-0.1-py2.7.egg/calamari_web/urls.py", line 20, in <module>
    url(r'^api/v1/', include('calamari_rest.urls.v1')),
    File "/opt/calamari/venv/lib/python2.7/site-packages/django/conf/urls/
    _init__.py", line 25, in include
    urlconf_module = import_module(urlconf_module)
    File "/opt/calamari/venv/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
    import(name)
    File "/opt/calamari/venv/lib/python2.7/site-packages/calamari_rest_api-0.1-py2.7.egg/calamari_rest/urls/v1.py", line 3, in <module>
    import calamari_rest.views.v1
    File "/opt/calamari/venv/lib/python2.7/site-packages/calamari_rest_api-0.1-py2.7.egg/calamari_rest/views/v1.py", line 38, in <module>
    from calamari_rest.views.server_metadata import get_local_grains
    File "/opt/calamari/venv/lib/python2.7/site-packages/calamari_rest_api-0.1-py2.7.egg/calamari_rest/views/server_metadata.py", line 11, in <module>
    from calamari_common.salt_wrapper import master_config, create_loader, client_config, MasterPillarUtil
    File "/opt/calamari/venv/lib/python2.7/site-packages/calamari_common-0.1-py2.7.egg/calamari_common/salt_wrapper.py", line 21, in <module>
    handler = logging.FileHandler(config.get('cthulhu', 'log_path'))
    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 13] Permission denied: '/var/log/calamari/cthulhu.log'

#3 Updated by wilfried ngongue about 4 years ago

I solved the Issue.. Just downgraded my SALT to SALT 2017.1. And Dashboard appeared

#4 Updated by wilfried ngongue about 4 years ago

I solved the Issue.. Just downgraded my SALT to SALT 2014.1. And Dashboard appeared

#5 Updated by Tatjana Dehler about 4 years ago

I ran into the same issue on Ubuntu 14.04 and Salt 2014-7.

I solved it by changing the permission of the /var/log/calamari directory:

sudo chown www-data:www-data -R /var/log/calamari/

Also available in: Atom PDF