← Back to team overview

openstack team mailing list archive

Re: Openstack Dashboard Error

 

Hi-

I have turned ON the debug info. Please find the debug info below.

TypeError at /syspanel/

string indices must be integers, not str

 Request Method: GET  Request URL: http://10.232.90.82/syspanel/  Django
Version: 1.3.1  Exception Type: TypeError  Exception Value:

string indices must be integers, not str

 Exception Location: /usr/lib/python2.7/dist-packages/novaclient/base.py in
_list, line 76  Python Executable: /usr/bin/python  Python Version:
2.7.3  Python
Path:

['/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../..',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages/PIL',
 '/usr/lib/python2.7/dist-packages/gtk-2.0',
 '/usr/share/openstack-dashboard/',
 '/usr/share/openstack-dashboard/openstack_dashboard']

 Server time: Tue, 26 Jun 2012 10:44:57 +0530
 Traceback Switch to copy-and-paste view <http://10.232.90.82/syspanel/#>

   - /usr/lib/python2.7/dist-packages/django/core/handlers/base.py in
   get_response
   1.

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

      ...
    ▶ Local vars <http://10.232.90.82/syspanel/#>
   - /usr/lib/python2.7/dist-packages/horizon/decorators.py in dec
   1.

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

      ...
    ▶ Local vars <http://10.232.90.82/syspanel/#>
   - /usr/lib/python2.7/dist-packages/horizon/decorators.py in dec
   1.

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

      ...
    ▶ Local vars <http://10.232.90.82/syspanel/#>
   - /usr/lib/python2.7/dist-packages/horizon/decorators.py in dec
   1.

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

      ...
    ▶ Local vars <http://10.232.90.82/syspanel/#>
   - /usr/lib/python2.7/dist-packages/horizon/decorators.py in dec
   1.

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

      ...
    ▶ Local vars <http://10.232.90.82/syspanel/#>
   - /usr/lib/python2.7/dist-packages/horizon/decorators.py in dec
   1.

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

      ...
    ▶ Local vars <http://10.232.90.82/syspanel/#>
   - /usr/lib/python2.7/dist-packages/django/views/generic/base.py in view
   1.

                  return self.dispatch(request, *args, **kwargs)

      ...
    ▶ Local vars <http://10.232.90.82/syspanel/#>
   - /usr/lib/python2.7/dist-packages/django/views/generic/base.py in
   dispatch
   1.

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

      ...
    ▶ Local vars <http://10.232.90.82/syspanel/#>
   - /usr/lib/python2.7/dist-packages/horizon/tables/views.py in get
   1.

              handled = self.construct_tables()

      ...
    ▶ Local vars <http://10.232.90.82/syspanel/#>
   - /usr/lib/python2.7/dist-packages/horizon/tables/views.py in
   construct_tables
   1.

                  handled = self.handle_table(table)

      ...
    ▶ Local vars <http://10.232.90.82/syspanel/#>
   - /usr/lib/python2.7/dist-packages/horizon/tables/views.py in
   handle_table
   1.

              data = self._get_data_dict()

      ...
    ▶ Local vars <http://10.232.90.82/syspanel/#>
   - /usr/lib/python2.7/dist-packages/horizon/tables/views.py in
   _get_data_dict
   1.

                  self._data = {self.table_class._meta.name: self.get_data()}

      ...
    ▶ Local vars <http://10.232.90.82/syspanel/#>
   - /usr/lib/python2.7/dist-packages/horizon/usage/views.py in get_data
   1.

              self.usage.summarize(*self.usage.get_date_range())

      ...
    ▶ Local vars <http://10.232.90.82/syspanel/#>
   - /usr/lib/python2.7/dist-packages/horizon/usage/base.py in summarize
   1.

                                        _('Unable to retrieve usage
information.'))

      ...
    ▶ Local vars <http://10.232.90.82/syspanel/#>
   - /usr/lib/python2.7/dist-packages/horizon/usage/base.py in summarize
   1.

                      self.usage_list = self.get_usage_list(start, end)

      ...
    ▶ Local vars <http://10.232.90.82/syspanel/#>
   - /usr/lib/python2.7/dist-packages/horizon/usage/base.py in
   get_usage_list
   1.

              return api.usage_list(self.request, start, end)

      ...
    ▶ Local vars <http://10.232.90.82/syspanel/#>
   - /usr/lib/python2.7/dist-packages/horizon/api/nova.py in usage_list
   1.

          return [Usage(u) for u in
novaclient(request).usage.list(start, end, True)]

      ...
    ▶ Local vars <http://10.232.90.82/syspanel/#>
   - /usr/lib/python2.7/dist-packages/novaclient/v1_1/usage.py in list
   1.

                          "tenant_usages")

      ...
    ▶ Local vars <http://10.232.90.82/syspanel/#>
   - /usr/lib/python2.7/dist-packages/novaclient/base.py in _list
   1.

              data = body[response_key]

      ...
    ▶ Local vars <http://10.232.90.82/syspanel/#>

   Request information GET

No GET data
POST

No POST data
FILES

No FILES data
COOKIES  Variable Value   csrftoken

'92f1ea75bc0bf304e5e1a5d670389018'

 sessionid

'eeb963c2a70c3f9c454e3f1dcfcdf295'

  META  Variable Value   mod_wsgi.listener_port

'80'

 HTTP_COOKIE

'csrftoken=92f1ea75bc0bf304e5e1a5d670389018;
sessionid=eeb963c2a70c3f9c454e3f1dcfcdf295'

 mod_wsgi.listener_host

''

 SERVER_SOFTWARE

'Apache/2.2.22 (Ubuntu)'

 SCRIPT_NAME

u''

 mod_wsgi.handler_script

''

 SERVER_SIGNATURE

'<address>Apache/2.2.22 (Ubuntu) Server at 10.232.90.82 Port 80</address>\n'

 REQUEST_METHOD

'GET'

 PATH_INFO

u'/syspanel/'

 SERVER_PROTOCOL

'HTTP/1.1'

 QUERY_STRING

''

 HTTP_USER_AGENT

'Mozilla/5.0 (Windows NT 5.1; rv:13.0) Gecko/20100101 Firefox/13.0.1'

 HTTP_CONNECTION

'keep-alive'

 SERVER_NAME

'10.232.90.82'

 REMOTE_ADDR

'10.232.84.191'

 mod_wsgi.request_handler

'wsgi-script'

 wsgi.url_scheme

'http'

 PATH_TRANSLATED

'/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi/syspanel/'

 SERVER_PORT

'80'

 wsgi.multiprocess

True

 mod_wsgi.input_chunked

'0'

 SERVER_ADDR

'10.232.90.82'

 DOCUMENT_ROOT

'/var/www'

 mod_wsgi.process_group

''

 SCRIPT_FILENAME

'/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'

 SERVER_ADMIN

'webmaster@localhost'

 wsgi.input

<mod_wsgi.Input object at 0x7fd8ac4dd1f0>

 HTTP_HOST

'10.232.90.82'

 wsgi.multithread

True

 mod_wsgi.callable_object

'application'

 REQUEST_URI

'/syspanel/'

 HTTP_ACCEPT

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

 wsgi.version

(1, 1)

 GATEWAY_INTERFACE

'CGI/1.1'

 wsgi.run_once

False

 wsgi.errors

<mod_wsgi.Log object at 0x7fd8ac4dd270>

 REMOTE_PORT

'2424'

 HTTP_ACCEPT_LANGUAGE

'en-us,en;q=0.5'

 mod_wsgi.version

(3, 3)

 mod_wsgi.application_group

'127.0.1.1|'

 mod_wsgi.script_reloading

'1'

 wsgi.file_wrapper

''

 CSRF_COOKIE

'92f1ea75bc0bf304e5e1a5d670389018'

 HTTP_ACCEPT_ENCODING

'gzip, deflate'

  Settings Using settings module openstack_dashboard.settings  Setting Value
USE_L10N

False

 USE_THOUSAND_SEPARATOR

False

 LANGUAGE_CODE

'en'

 ROOT_URLCONF

'openstack_dashboard.urls'

 MANAGERS

()

 ACCOUNT_ACTIVATION_DAYS

7

 STATIC_ROOT

'/usr/share/openstack-dashboard/static'

 TEST_DATABASE_CHARSET

None

 MESSAGE_STORAGE

'django.contrib.messages.storage.cookie.CookieStorage'

 DATABASE_HOST

''

 IGNORABLE_404_STARTS

('/cgi-bin/', '/_vti_bin', '/_vti_inf')

 SEND_BROKEN_LINK_EMAILS

False

 URL_VALIDATOR_USER_AGENT

'Django/1.3.1 (http://www.djangoproject.com)'

 STATICFILES_FINDERS

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

 SESSION_COOKIE_DOMAIN

None

 SESSION_COOKIE_NAME

'sessionid'

 CREDENTIAL_AUTHORIZATION_DAYS

'5'

 COMMENTS_MODERATORS_GROUP

None

 TIME_INPUT_FORMATS

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

 DATABASES

{'default': {'ENGINE': 'django.db.backends.dummy',
             'HOST': '',
             'NAME': '',
             'OPTIONS': {},
             'PASSWORD': '********************',
             'PORT': '',
             'TEST_CHARSET': None,
             'TEST_COLLATION': None,
             'TEST_MIRROR': None,
             'TEST_NAME': None,
             'TIME_ZONE': None,
             'USER': ''}}

 SITE_BRANDING

'OpenStack'

 TEST_DATABASE_NAME

None

 FILE_UPLOAD_PERMISSIONS

None

 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.memcached.CacheClass',
             'LOCATION': '127.0.0.1:11211'}}

 SERVER_EMAIL

'root@localhost'

 SESSION_COOKIE_PATH

'/'

 USE_X_FORWARDED_HOST

False

 IGNORABLE_404_ENDS

('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico', '.php')

 MIDDLEWARE_CLASSES

('django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'openstack_dashboard.middleware.DashboardLogUnhandledExceptionsMiddleware',
 'horizon.middleware.HorizonMiddleware',
 'django.middleware.doc.XViewMiddleware',
 'django.middleware.locale.LocaleMiddleware')

 USE_I18N

True

 THOUSAND_SEPARATOR

','

 SECRET_KEY

'********************'

 LANGUAGE_COOKIE_NAME

'django_language'

 FILE_UPLOAD_TEMP_DIR

None

 TRANSACTIONS_MANAGED

False

 LOGGING_CONFIG

'django.utils.log.dictConfig'

 TEMPLATE_LOADERS

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

 TEMPLATE_DEBUG

True

 CSRF_COOKIE_NAME

'csrftoken'

 ENABLE_VNC

True

 TEST_DATABASE_COLLATION

None

 FORCE_SCRIPT_NAME

None

 CACHE_BACKEND

'memcached://127.0.0.1:11211/'

 DEFAULT_CHARSET

'utf-8'

 SESSION_COOKIE_SECURE

False

 LOCAL_PATH

'/usr/share/openstack-dashboard/openstack_dashboard/local'

 CSRF_COOKIE_DOMAIN

None

 FILE_CHARSET

'utf-8'

 DEBUG

True

 USE_SSL

False

 SESSION_FILE_PATH

None

 DEFAULT_FILE_STORAGE

'django.core.files.storage.FileSystemStorage'

 INSTALLED_APPS

['openstack_dashboard',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django_nose',
 'horizon',
 'horizon.dashboards.nova',
 'horizon.dashboards.syspanel',
 'horizon.dashboards.settings']

 LANGUAGES_BIDI

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

 DATABASE_ENGINE

''

 EMAIL_HOST_USER

''

 DATABASE_NAME

''

 COMMENTS_FIRST_FEW

0

 TOTAL_CLOUD_RAM_GB

10

 PREPEND_WWW

False

 SESSION_COOKIE_HTTPONLY

False

 DATABASE_PORT

''

 DEBUG_PROPAGATE_EXCEPTIONS

False

 PROD

False

 MONTH_DAY_FORMAT

'F j'

 LOGIN_URL

'/auth/login'

 SESSION_EXPIRE_AT_BROWSER_CLOSE

True

 OPENSTACK_KEYSTONE_URL

'http://127.0.0.1:5000/v2.0'

 TIME_FORMAT

'P'

 HORIZON_CONFIG

{'ajax_queue_limit': 10,
 'dashboards': ('nova', 'syspanel', 'settings'),
 'default_dashboard': 'nova',
 'user_home': 'openstack_dashboard.views.user_home'}

 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')

 AUTHENTICATION_BACKENDS

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

 EMAIL_HOST_PASSWORD

'********************'

 PASSWORD_RESET_TIMEOUT_DAYS

'********************'

 CACHE_MIDDLEWARE_ALIAS

'default'

 ROOT_PATH

'/usr/share/openstack-dashboard/openstack_dashboard'

 SESSION_SAVE_EVERY_REQUEST

False

 ADMIN_MEDIA_PREFIX

'/static/admin/'

 NUMBER_GROUPING

0

 SESSION_ENGINE

'django.contrib.sessions.backends.cache'

 CSRF_FAILURE_VIEW

'django.views.csrf.csrf_failure'

 COMMENTS_SKETCHY_USERS_GROUP

None

 LOGIN_REDIRECT_URL

'/'

 LOGGING

{'disable_existing_loggers': False,
 'handlers': {'console': {'class': 'logging.StreamHandler', 'level': 'INFO'},
              'null': {'class': 'django.utils.log.NullHandler',
                       'level': 'DEBUG'}},
 'loggers': {'django.db.backends': {'handlers': ['null'], 'propagate': False},
             'horizon': {'handlers': ['console'], 'propagate': False},
             'keystoneclient': {'handlers': ['console'], 'propagate': False},
             'nose.plugins.manager': {'handlers': ['console'],
                                      'propagate': False},
             'novaclient': {'handlers': ['console'], 'propagate': False}},
 'version': 1}

 CACHE_MIDDLEWARE_KEY_PREFIX

''

 LOCALE_PATHS

()

 TEMPLATE_STRING_IF_INVALID

''

 ENABLE_JUJU_PANEL

True

 COMMENTS_ALLOW_PROFANITIES

False

 LOGOUT_URL

'/accounts/logout/'

 EMAIL_USE_TLS

False

 TEMPLATE_DIRS

('/usr/share/openstack-dashboard/openstack_dashboard/templates',)

 FIXTURE_DIRS

()

 EMAIL_HOST

'localhost'

 DATE_FORMAT

'N j, Y'

 MEDIA_ROOT

'/usr/share/openstack-dashboard/media'

 ADMINS

()

 FORMAT_MODULE_PATH

None

 DEFAULT_FROM_EMAIL

'webmaster@localhost'

 STATICFILES_DIRS

('/usr/share/openstack-dashboard/openstack_dashboard/static',)

 MEDIA_URL

'/media/'

 DATETIME_FORMAT

'N j, Y, P'

 EMAIL_SUBJECT_PREFIX

'[Django] '

 OPENSTACK_KEYSTONE_BACKEND

{'can_edit_user': True, 'name': 'native'}

 OPENSTACK_KEYSTONE_DEFAULT_ROLE

'Member'

 SITE_ID

1

 DISALLOWED_USER_AGENTS

()

 ALLOWED_INCLUDE_ROOTS

()

 DECIMAL_SEPARATOR

'.'

 SHORT_DATE_FORMAT

'm/d/Y'

 DATABASE_USER

''

 TEST_RUNNER

'django_nose.NoseTestSuiteRunner'

 TIME_ZONE

None

 FILE_UPLOAD_MAX_MEMORY_SIZE

2621440

 EMAIL_BACKEND

'django.core.mail.backends.console.EmailBackend'

 DEFAULT_TABLESPACE

''

 TEMPLATE_CONTEXT_PROCESSORS

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

 OPENSTACK_HOST

'127.0.0.1'

 SITE_NAME

'openstack'

 SESSION_COOKIE_AGE

1209600

 SETTINGS_MODULE

'openstack_dashboard.settings'

 USE_ETAGS

False

 LANGUAGES

(('en', 'English'),
 ('it', 'Italiano'),
 ('es', 'Spanish'),
 ('fr', 'French'),
 ('ja', 'Japanese'),
 ('pt', 'Portuguese'),
 ('pl', 'Polish'),
 ('zh-cn', 'Simplified Chinese'),
 ('zh-tw', 'Traditional Chinese'))

 API_RESULT_LIMIT

1000

 DEFAULT_INDEX_TABLESPACE

''

 INTERNAL_IPS

()

 STATIC_URL

'/static/'

 EMAIL_PORT

25

 SHORT_DATETIME_FORMAT

'm/d/Y P'

 ABSOLUTE_URL_OVERRIDES

{}

 DATABASE_OPTIONS

{}

 CACHE_MIDDLEWARE_SECONDS

600

 BANNED_IPS

()

 DATETIME_INPUT_FORMATS

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

 DATABASE_PASSWORD

'********************'

 ADMIN_FOR

()

 PROFANITIES_LIST

'********************'

 LIVE_SERVER_PORT

8000

 COMMENTS_BANNED_USERS_GROUP

None

   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.


Please help me resolve the issue.





On Mon, Jun 25, 2012 at 6:43 PM, Vaze, Mandar <Mandar.Vaze@xxxxxxxxxxx>wrote:

>  See  https://lists.launchpad.net/openstack/msg12548.html to get debug
> information on the webpage****
>
> ** **
>
> -Mandar****
>
> ** **
>
> *From:* openstack-bounces+mandar.vaze=nttdata.com@xxxxxxxxxxxxxxxxxxx[mailto:
> openstack-bounces+mandar.vaze=nttdata.com@xxxxxxxxxxxxxxxxxxx] *On Behalf
> Of *Trinath Somanchi
> *Sent:* Monday, June 25, 2012 5:16 PM
> *To:* Gabriel Hurley
> *Cc:* openstack@xxxxxxxxxxxxxxxxxxx
> *Subject:* Re: [Openstack] Openstack Dashboard Error****
>
> ** **
>
> Hi-
>
> I'm seeing this error, when I login to the Openstack Dashboard in the
> apache2 error logs .. ****
>
>
> [error] No handlers could be found for logger "openstack_dashboard"****
>
> In the Webpage its displaying  "****
> Internal Server Error****
>
> An unexpected error occurred while processing your request. Please try
> your request again.****
>
> ** **
>
> "****
>
> ** **
>
> Can any one help me out in resolving the issue...****
>
> ** **
>
> Thanking you...****
>
> ** **
>
> On Mon, Jun 25, 2012 at 10:48 AM, Gabriel Hurley <
> Gabriel.Hurley@xxxxxxxxxx> wrote:****
>
> It sounds like your local_settings.py file is missing any logging
> configuration. The default config from the local_settings.py.example file
> is a good place to start.****
>
>  ****
>
> If that’s not the case, then it would be helpful to know how you installed
> OpenStack/Horizon, what you’ve done to configure it, etc.****
>
>  ****
>
> All the best,****
>
>  ****
>
> -          Gabriel****
>
>  ****
>
> *From:* openstack-bounces+gabriel.hurley=nebula.com@xxxxxxxxxxxxxxxxxxx[mailto:
> openstack-bounces+gabriel.hurley=nebula.com@xxxxxxxxxxxxxxxxxxx] *On
> Behalf Of *Trinath Somanchi
> *Sent:* Sunday, June 24, 2012 10:03 PM
> *To:* openstack@xxxxxxxxxxxxxxxxxxx
> *Subject:* [Openstack] Openstack Dashboard Error****
>
>  ****
>
> Hi-
>
> I'm seeing this error when I access the Openstack Dashboard through my
> browser.
>
> [error] No handlers could be found for logger "openstack_dashboard".
>
> Please help me resolve this issue.
>
>
> --
> Regards,
> ----------------------------------------------
> Trinath Somanchi,****
>
> +91 9866 235 130****
>
>  ****
>
>
>
>
> --
> Regards,
> ----------------------------------------------
> Trinath Somanchi,****
>
> +91 9866 235 130****
>
> ** **
>
> ______________________________________________________________________
> Disclaimer:This email and any attachments are sent in strictest confidence
> for the sole use of the addressee and may contain legally privileged,
> confidential, and proprietary data. If you are not the intended recipient,
> please advise the sender by replying promptly to this email and then delete
> and destroy this email and any attachments without any further use, copying
> or forwarding
>



-- 
Regards,
----------------------------------------------
Trinath Somanchi,
+91 9866 235 130

References