integralstor / integralstor_gridcell

Gluster/ZFS based open source scale-out storage system
1 stars 3 forks source link

KeyError at /show/dashboard/ #55

Closed kiranfractal closed 9 years ago

kiranfractal commented 9 years ago

http://192.168.1.244/show/dashboard/

This error is happening when one admin user loggedin and another user tries to loggin from another machine.

KeyError at /show/dashboard/

'status_str'

Request Method: GET Request URL: http://192.168.1.244/show/dashboard/ Django Version: 1.6.8 Exception Type: KeyError Exception Value:

'status_str'

Exception Location: /usr/lib/python2.6/site-packages/fractalio/system_info.py in load_system_config, line 85 Python Executable: /usr/bin/uwsgi Python Version: 2.6.6 Python Path:

['.', '', '/usr/lib/python2.6/site-packages/gfapi-0.0.1-py2.6.egg', '/usr/lib/python2.6/site-packages/gunicorn-19.1.1-py2.6.egg', '/usr/lib/python2.6/site-packages/setuptools-11.3.1-py2.6.egg', '/usr/lib64/python26.zip', '/usr/lib64/python2.6', '/usr/lib64/python2.6/plat-linux2', '/usr/lib64/python2.6/lib-tk', '/usr/lib64/python2.6/lib-old', '/usr/lib64/python2.6/lib-dynload', '/usr/lib64/python2.6/site-packages', '/usr/lib/python2.6/site-packages']

Server time: Tue, 27 Jan 2015 14:15:28 +0530 Traceback Switch to copy-and-paste view

/usr/lib/python2.6/site-packages/django/core/handlers/base.py in get_response

                        response = wrapped_callback(request, *callback_args, **callback_kwargs)

    ...
▶ Local vars
/usr/lib/python2.6/site-packages/django/contrib/auth/decorators.py in _wrapped_view

                    return view_func(request, *args, **kwargs)

    ...
▶ Local vars
/usr/lib/python2.6/site-packages/django/contrib/auth/decorators.py in _wrapped_view

                    return view_func(request, *args, **kwargs)

    ...
▶ Local vars
./integral_view/views/common.py in show

        si = system_info.load_system_config()

    ...
▶ Local vars
/usr/lib/python2.6/site-packages/fractalio/system_info.py in load_system_config

          #  d[k]["in_cluster"] = True

    ...
▶ Local vars

Request information GET

No GET data POST

No POST data FILES

No FILES data COOKIES Variable Value sessionid

'kwualgdupdyk97nr86384nv7t1y0sfid'

META Variable Value wsgi.multiprocess

True

HTTP_REFERER

'http://192.168.1.244/'

SCRIPT_NAME

u''

REQUEST_METHOD

'GET'

PATH_INFO

u'/show/dashboard/'

SERVER_PROTOCOL

'HTTP/1.1'

QUERY_STRING

''

CONTENT_LENGTH

''

HTTP_USER_AGENT

'Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:35.0) Gecko/20100101 Firefox/35.0'

HTTP_CONNECTION

'keep-alive'

HTTP_COOKIE

'sessionid=kwualgdupdyk97nr86384nv7t1y0sfid'

SERVER_NAME

'integralview.fractalio.lan'

REMOTE_ADDR

'192.168.1.54'

wsgi.url_scheme

'http'

SERVER_PORT

'80'

uwsgi.node

'primary.fractalio.lan'

DOCUMENT_ROOT

'/etc/nginx/html'

wsgi.input

<uwsgi._Input object at 0x3371df8>

HTTP_HOST

'192.168.1.244'

wsgi.multithread

False

REQUEST_URI

'/show/dashboard/'

HTTP_ACCEPT

'text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8'

wsgi.version

(1, 0)

wsgi.run_once

False

wsgi.errors

<open file 'wsgi_errors', mode 'w' at 0x22be930>

REMOTE_PORT

'48082'

HTTP_ACCEPT_LANGUAGE

'en-US,en;q=0.5'

uwsgi.version

'2.0.9'

CONTENT_TYPE

''

wsgi.file_wrapper

''

HTTP_ACCEPT_ENCODING

'gzip, deflate'

Settings Using settings module integral_view.settings Setting Value USE_L10N

True

USE_THOUSAND_SEPARATOR

False

CSRF_COOKIE_SECURE

False

LANGUAGE_CODE

'en-us'

ROOT_URLCONF

'integral_view.urls'

LOGIN_URL

'/login/'

DEFAULT_CHARSET

'utf-8'

SESSION_SERIALIZER

'django.contrib.sessions.serializers.JSONSerializer'

STATIC_ROOT

''

DB_LOCATION

'/opt/fractalio/run/db'

ALLOWED_HOSTS

['*']

MESSAGE_STORAGE

'django.contrib.messages.storage.fallback.FallbackStorage'

EMAIL_SUBJECT_PREFIX

'[Django] '

FILE_UPLOAD_PERMISSIONS

None

STATICFILES_FINDERS

('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder')

SESSION_CACHE_ALIAS

'default'

SESSION_COOKIE_DOMAIN

None

SESSION_COOKIE_NAME

'sessionid'

ADMIN_FOR

()

TIME_INPUT_FORMATS

('%H:%M:%S', '%H:%M:%S.%f', '%H:%M')

DATABASES

{'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.sqlite3', 'HOST': '', 'NAME': '/opt/fractalio/run/db/integral_view_auth.db', 'OPTIONS': {}, 'PASSWORD': u'****', 'PORT': '', 'TEST_CHARSET': None, 'TEST_COLLATION': None, 'TEST_MIRROR': None, 'TEST_NAME': None, 'TIME_ZONE': 'UTC', 'USER': ''}}

SERVER_EMAIL

'root@localhost'

FILE_UPLOAD_HANDLERS

('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler')

DEFAULT_CONTENT_TYPE

'text/html'

APPEND_SLASH

True

FIRST_DAY_OF_WEEK

0

DATABASE_ROUTERS

[]

YEAR_MONTH_FORMAT

'F Y'

STATICFILES_STORAGE

'django.contrib.staticfiles.storage.StaticFilesStorage'

CACHES

{'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}

SESSION_COOKIE_PATH

'/'

MIDDLEWARE_CLASSES

('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware')

USE_I18N

True

THOUSAND_SEPARATOR

','

SECRET_KEY

u'****'

LANGUAGE_COOKIE_NAME

'django_language'

DEFAULT_INDEX_TABLESPACE

''

TRANSACTIONS_MANAGED

False

LOGGING_CONFIG

'django.utils.log.dictConfig'

SEND_BROKEN_LINK_EMAILS

False

TEMPLATE_LOADERS

('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader')

WSGI_APPLICATION

'integral_view.wsgi.application'

STATIC_DIR_PATH

'/opt/fractalio/integral_view/integral_view/static'

TEMPLATE_DEBUG

True

X_FRAME_OPTIONS

'SAMEORIGIN'

AUTHENTICATION_BACKENDS

('django.contrib.auth.backends.ModelBackend',)

FORCE_SCRIPT_NAME

None

USE_X_FORWARDED_HOST

False

SIGNING_BACKEND

'django.core.signing.TimestampSigner'

SESSION_COOKIE_SECURE

False

APP_DEBUG

False

CSRF_COOKIE_DOMAIN

None

FILE_CHARSET

'utf-8'

DEBUG

True

SESSION_FILE_PATH

None

DEFAULT_FILE_STORAGE

'django.core.files.storage.FileSystemStorage'

INSTALLED_APPS

('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.admin', 'django.contrib.admindocs', 'integral_view')

LANGUAGES_BIDI

('he', 'ar', 'fa', 'ur')

COMMENTS_ALLOW_PROFANITIES

False

STATICFILES_DIRS

('/opt/fractalio/integral_view/integral_view/static',)

PREPEND_WWW

False

SECURE_PROXY_SSL_HEADER

None

SESSION_COOKIE_HTTPONLY

True

DEBUG_PROPAGATE_EXCEPTIONS

False

MONTH_DAY_FORMAT

'F j'

MANAGERS

()

SESSION_EXPIRE_AT_BROWSER_CLOSE

False

TIME_FORMAT

'P'

AUTH_USER_MODEL

'auth.User'

DATE_INPUT_FORMATS

('%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y')

CSRF_COOKIE_NAME

'csrftoken'

EMAIL_HOST_PASSWORD

u'****'

PASSWORD_RESET_TIMEOUT_DAYS

u'****'

CACHE_MIDDLEWARE_ALIAS

'default'

SESSION_SAVE_EVERY_REQUEST

False

NUMBER_GROUPING

0

SESSION_ENGINE

'django.contrib.sessions.backends.db'

CSRF_FAILURE_VIEW

'django.views.csrf.csrf_failure'

CSRF_COOKIE_PATH

'/'

LOGIN_REDIRECT_URL

'/accounts/profile/'

DECIMAL_SEPARATOR

'.'

IGNORABLE_404_URLS

()

LOCALE_PATHS

()

TEMPLATE_STRING_IF_INVALID

''

LOGOUT_URL

'/accounts/logout/'

EMAIL_USE_TLS

False

FIXTURE_DIRS

()

EMAIL_HOST

'localhost'

DATE_FORMAT

'N j, Y'

MEDIA_ROOT

''

TEMPLATE_DIR_PATH

'/opt/fractalio/integral_view/integral_view/templates'

DEFAULT_EXCEPTION_REPORTER_FILTER

'django.views.debug.SafeExceptionReporterFilter'

ADMINS

()

FORMAT_MODULE_PATH

None

DEFAULT_FROM_EMAIL

'webmaster@localhost'

MEDIA_URL

''

DATETIME_FORMAT

'N j, Y, P'

TEMPLATE_DIRS

('/opt/fractalio/integral_view/integral_view/templates',)

SITE_ID

1

DISALLOWED_USER_AGENTS

()

ALLOWED_INCLUDE_ROOTS

()

LOGGING

{'disable_existing_loggers': True, 'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}}, 'formatters': {'standard': {'format': '%(asctime)s [%(levelname)s] %(message)s'}}, 'handlers': {'file': {'backupCount': 5, 'class': 'logging.handlers.RotatingFileHandler', 'filename': '/var/log/fractalio/integral_view.log', 'formatter': 'standard', 'level': 'DEBUG', 'maxBytes': 5242880}, 'mail_admins': {'class': 'django.utils.log.AdminEmailHandler', 'filters': ['require_debug_false'], 'level': 'ERROR'}}, 'loggers': {'': {'handlers': ['file'], 'level': 'INFO', 'propagate': True}, 'django.request': {'handlers': ['file'], 'level': 'INFO', 'propagate': False}}, 'version': 1}

SHORT_DATE_FORMAT

'm/d/Y'

TEST_RUNNER

'django.test.runner.DiscoverRunner'

CACHE_MIDDLEWARE_KEY_PREFIX

u'****'

TIME_ZONE

'Asia/Calcutta'

FILE_UPLOAD_MAX_MEMORY_SIZE

2621440

EMAIL_BACKEND

'django.core.mail.backends.smtp.EmailBackend'

DEFAULT_TABLESPACE

''

TEMPLATE_CONTEXT_PROCESSORS

('django.contrib.auth.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media', 'django.core.context_processors.static', 'django.core.context_processors.tz', 'django.contrib.messages.context_processors.messages', 'django.core.context_processors.request')

SESSION_COOKIE_AGE

1209600

SETTINGS_MODULE

'integral_view.settings'

USE_ETAGS

False

LANGUAGES

(('af', 'Afrikaans'), ('ar', 'Arabic'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese'))

FILE_UPLOAD_TEMP_DIR

None

INTERNAL_IPS

()

STATIC_URL

'/static/'

EMAIL_PORT

25

USE_TZ

True

SHORT_DATETIME_FORMAT

'm/d/Y P'

PASSWORD_HASHERS

u'****'

ABSOLUTE_URL_OVERRIDES

{}

CACHE_MIDDLEWARE_SECONDS

600

CSRF_COOKIE_HTTPONLY

False

DATETIME_INPUT_FORMATS

('%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y')

EMAIL_HOST_USER

''

PROFANITIES_LIST

u'****'

You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 500 page.

ramaseshan commented 9 years ago

This is still a work in progress. So hold in.

fractalram commented 9 years ago

Shd be fixed now.

kiranfractal commented 9 years ago

Verified and resolved in the current build.