Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 2502 by samuele....@gmail.com: AttributeError at /admin/
http://code.google.com/p/reviewboard/issues/detail?id=2502

* NOTE: Do not post confidential information in this bug report. *
*       If you need immediate support, please contact            *
*       reviewbo...@googlegroups.com                             *

What version are you running?

4.1.6

What's the URL of the page containing the problem?

http://192.168.0.137/admin/

What steps will reproduce the problem?
1. Just changed a few settins in the admin page (SMTP, timezone)

What is the expected output? What do you see instead?
1. No longer able to see the admin page

What operating system are you using? What browser?
1. Reviewboard: latest version of Ubuntu server

Please provide any additional information below.

AttributeError at /admin/
'NoneType' object has no attribute 'find'


Request Method:

GET



Request URL:

http://192.168.0.137/admin/



Django Version:

1.3.1



Exception Type:

AttributeError



Exception Value:

'NoneType' object has no attribute 'find'


Exception Location:

/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/core/cache/__init__.py in parse_backend_uri, line 59



Python Executable:

/usr/bin/python



Python Version:

2.7.2



Python Path:

['/var/www/finder.reviews.intra.nexthink.com/conf',
 '/usr/local/lib/python2.7/dist-packages/python_memcached-1.48-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.6.4-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/recaptcha_client-1.0.6-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/pytz-2011n-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/python_dateutil-1.5-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/paramiko-1.7.7.1-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/flup-1.0.3.dev_20110405-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/Pygments-1.4-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/Djblets-0.6.16-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/django_evolution-0.6.5-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/PIL-1.1.7-py2.7-linux-x86_64.egg',
 
'/usr/local/lib/python2.7/dist-packages/MySQL_python-1.2.3-py2.7-linux-x86_64.egg',
 '/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/gtk-2.0',
 '/usr/lib/pymodules/python2.7']


Server time:

Tue, 28 Feb 2012 10:21:39 +0100



Environment:


Request Method: GET
Request URL: http://192.168.0.137/admin/

Django Version: 1.3.1
Python Version: 2.7.2
Installed Applications:
['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.markup',
 'django.contrib.sites',
 'django.contrib.sessions',
 'djblets.datagrid',
 'djblets.feedview',
 'djblets.gravatars',
 'djblets.log',
 'djblets.siteconfig',
 'djblets.util',
 'djblets.webapi',
 'reviewboard.accounts',
 'reviewboard.admin',
 'reviewboard.attachments',
 'reviewboard.changedescs',
 'reviewboard.diffviewer',
 'reviewboard.notifications',
 'reviewboard.reports',
 'reviewboard.reviews',
 'reviewboard.scmtools',
 'reviewboard.site',
 'reviewboard.webapi',
 'django_evolution']
Installed Middleware:
('django.middleware.gzip.GZipMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.doc.XViewMiddleware',
 'django.middleware.http.ConditionalGetMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'djblets.siteconfig.middleware.SettingsMiddleware',
 'reviewboard.admin.middleware.LoadSettingsMiddleware',
 'djblets.log.middleware.LoggingMiddleware',
 'reviewboard.admin.middleware.CheckUpdatesRequiredMiddleware',
 'reviewboard.admin.middleware.X509AuthMiddleware',
 'reviewboard.site.middleware.LocalSiteMiddleware')


Traceback:
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/core/handlers/base.py" in get_response 111. response = callback(request, *callback_args, **callback_kwargs) File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/contrib/admin/views/decorators.py" in _checklogin
  19.             return view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.6.4-py2.7.egg/reviewboard/admin/views.py" in dashboard
  33.         'has_cache_stats': get_has_cache_stats(),
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.6.4-py2.7.egg/reviewboard/admin/cache_stats.py" in get_has_cache_stats
  34.     return get_memcached_hosts() != None
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.6.4-py2.7.egg/reviewboard/admin/cache_stats.py" in get_memcached_hosts
  22.     scheme, host, params = parse_backend_uri(settings.CACHE_BACKEND)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/core/cache/__init__.py" in parse_backend_uri
  59.     if backend_uri.find(':') == -1:

Exception Type: AttributeError at /admin/
Exception Value: 'NoneType' object has no attribute 'find'


Request information

GET

No GET data

POST

No POST data

FILES

No FILES data

COOKIES



Variable

Value




csrftoken

'1acd6fc93b79a77713a2da09264eff37'


rbsessionid

'becb00d15621a3cfe7cc231689a52350'

META



Variable

Value




mod_wsgi.listener_port

'80'


HTTP_COOKIE

'rbsessionid=becb00d15621a3cfe7cc231689a52350; csrftoken=1acd6fc93b79a77713a2da09264eff37'


mod_wsgi.listener_host

''


SERVER_SOFTWARE

'Apache/2.2.20 (Ubuntu)'


SCRIPT_NAME

u''


mod_wsgi.handler_script

''


SERVER_SIGNATURE

'<address>Apache/2.2.20 (Ubuntu) Server at 192.168.0.137 Port 80</address>\n'


REQUEST_METHOD

'GET'


PATH_INFO

u'/admin/'


SERVER_PROTOCOL

'HTTP/1.1'


QUERY_STRING

''


HTTP_USER_AGENT

'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)'


HTTP_CONNECTION

'Keep-Alive'


HTTP_REFERER

'http://192.168.0.137/dashboard/'


SERVER_NAME

'192.168.0.137'


REMOTE_ADDR

'192.168.0.102'


mod_wsgi.request_handler

'wsgi-script'


wsgi.url_scheme

'http'


PATH_TRANSLATED

'/var/www/finder.reviews.intra.nexthink.com/htdocs/reviewboard.wsgi/admin/'


SERVER_PORT

'80'


wsgi.multiprocess

True


mod_wsgi.input_chunked

'0'


SERVER_ADDR

'192.168.0.137'


DOCUMENT_ROOT

'/var/www/finder.reviews.intra.nexthink.com/htdocs'


mod_wsgi.process_group

''


SCRIPT_FILENAME

'/var/www/finder.reviews.intra.nexthink.com/htdocs/reviewboard.wsgi'


SERVER_ADMIN

'[no address given]'


wsgi.input

<mod_wsgi.Input object at 0x7fe200b2c630>


HTTP_HOST

'192.168.0.137'


wsgi.multithread

True


mod_wsgi.callable_object

'application'


REQUEST_URI

'/admin/'


HTTP_ACCEPT

'text/html, application/xhtml+xml, */*'


wsgi.version

(1, 1)


GATEWAY_INTERFACE

'CGI/1.1'


wsgi.run_once

False


wsgi.errors

<mod_wsgi.Log object at 0x7fe2001274b0>


REMOTE_PORT

'51896'


HTTP_ACCEPT_LANGUAGE

'en-US'


mod_wsgi.version

(3, 3)


mod_wsgi.application_group

'finder.reviewboard.intra.nexthink.com|'


mod_wsgi.script_reloading

'1'


wsgi.file_wrapper

''


HTTP_ACCEPT_ENCODING

'gzip, deflate'

Settings

Using settings module reviewboard.settings



Setting

Value




CACHE_EXPIRATION_TIME

2592000


AD_OU_NAME

None


AWS_QUERYSTRING_EXPIRE

60


USE_L10N

False


USE_THOUSAND_SEPARATOR

False


LDAP_URI

u''


LANGUAGE_CODE

u'en-us'


ROOT_URLCONF

'djblets.util.rooturl'


MANAGERS

((u'admin', u'samuele.gant...@nexthink.com'),)


LDAP_BASE_DN

None


AWS_HEADERS

{}


DEFAULT_CHARSET

'utf-8'


STATIC_ROOT

''


TEST_DATABASE_CHARSET

None


AWS_DEFAULT_ACL

u'public-read'


MESSAGE_STORAGE

'django.contrib.messages.storage.user_messages.LegacyFallbackStorage'


DATABASE_HOST

''


EMAIL_SUBJECT_PREFIX

'[Review Board] '


LDAP_FULL_NAME_ATTRIBUTE

None


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

'rbsessionid'


LOCALE_PATHS

()


AWS_STORAGE_BUCKET_NAME

''


ADMIN_FOR

()


TIME_INPUT_FORMATS

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


DATABASES

{'default': {'ENGINE': 'django.db.backends.mysql',
             'HOST': 'localhost',
             'NAME': 'reviewboard',
             'OPTIONS': {},
             'PASSWORD': '********************',
             'PORT': '',
             'TEST_CHARSET': None,
             'TEST_COLLATION': None,
             'TEST_MIRROR': None,
             'TEST_NAME': None,
             'TIME_ZONE': 'US/Pacific',
             'USER': 'reviewboarduser'}}


TEST_DATABASE_NAME

None


LOCAL_ROOT

'/var/www/finder.reviews.intra.nexthink.com'


FILE_UPLOAD_PERMISSIONS

None


FILE_UPLOAD_HANDLERS

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


DEFAULT_CONTENT_TYPE

'text/html'


LDAP_SURNAME_ATTRIBUTE

None


APPEND_SLASH

True


FIRST_DAY_OF_WEEK

0


DATABASE_ROUTERS

[]


LDAP_UID_MASK

u''


YEAR_MONTH_FORMAT

u'F Y'


TEST_PACKAGES

['reviewboard']


STATICFILES_STORAGE

'django.contrib.staticfiles.storage.StaticFilesStorage'


CACHES

{'default': {'BACKEND': 'django.core.cache.backends.memcached.CacheClass',
             'LOCATION': 'localhost:11211'}}


SERVER_EMAIL

u'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.gzip.GZipMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.doc.XViewMiddleware',
 'django.middleware.http.ConditionalGetMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'djblets.siteconfig.middleware.SettingsMiddleware',
 'reviewboard.admin.middleware.LoadSettingsMiddleware',
 'djblets.log.middleware.LoggingMiddleware',
 'reviewboard.admin.middleware.CheckUpdatesRequiredMiddleware',
 'reviewboard.admin.middleware.X509AuthMiddleware',
 'reviewboard.site.middleware.LocalSiteMiddleware')


USE_I18N

False


THOUSAND_SEPARATOR

','


SECRET_KEY

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


LANGUAGE_COOKIE_NAME

'rblanguage'


AJAX_SERIAL

1330360777


FILE_UPLOAD_TEMP_DIR

None


X509_USERNAME_FIELD

u'SSL_CLIENT_S_DN_CN'


TRANSACTIONS_MANAGED

False


LOGGING_CONFIG

'django.utils.log.dictConfig'


LDAP_EMAIL_DOMAIN

u''


SEND_BROKEN_LINK_EMAILS

False


TEMPLATE_LOADERS

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


TEMPLATE_DEBUG

True


CSRF_COOKIE_NAME

'csrftoken'


TEST_DATABASE_COLLATION

None


FORCE_SCRIPT_NAME

''


CACHE_BACKEND

None


AWS_S3_SECURE_URLS

False


LDAP_EMAIL_ATTRIBUTE

None


SESSION_COOKIE_SECURE

False


SITE_ROOT

'/'


CSRF_COOKIE_DOMAIN

None


AD_GROUP_NAME

None


FILE_CHARSET

'utf-8'


DEBUG

True


DOMAIN_METHOD

u'http'


SESSION_FILE_PATH

None


AWS_ACCESS_KEY_ID

''


COUCHDB_STORAGE_OPTIONS

{}


INSTALLED_APPS

['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.markup',
 'django.contrib.sites',
 'django.contrib.sessions',
 'djblets.datagrid',
 'djblets.feedview',
 'djblets.gravatars',
 'djblets.log',
 'djblets.siteconfig',
 'djblets.util',
 'djblets.webapi',
 'reviewboard.accounts',
 'reviewboard.admin',
 'reviewboard.attachments',
 'reviewboard.changedescs',
 'reviewboard.diffviewer',
 'reviewboard.notifications',
 'reviewboard.reports',
 'reviewboard.reviews',
 'reviewboard.scmtools',
 'reviewboard.site',
 'reviewboard.webapi',
 'django_evolution']


LANGUAGES_BIDI

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


DATABASE_ENGINE

''


DATABASE_NAME

''


SITE_ROOT_URLCONF

'reviewboard.urls'


COMMENTS_FIRST_FEW

0


PREPEND_WWW

False


PASSWORD_RESET_TIMEOUT_DAYS

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


AWS_QUERYSTRING_ACTIVE

False


SESSION_COOKIE_HTTPONLY

False


DATABASE_PORT

''


DEBUG_PROPAGATE_EXCEPTIONS

False


AD_RECURSION_DEPTH

None


MEDIA_URL

u'/media/'


MONTH_DAY_FORMAT

u'F j'


LOGIN_URL

'/account/login/'


SESSION_EXPIRE_AT_BROWSER_CLOSE

False


TIME_FORMAT

u'P'


X509_USERNAME_REGEX

u''


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

('reviewboard.accounts.backends.StandardAuthBackend',)


EMAIL_HOST_PASSWORD

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


MEDIA_SERIAL_DIRS

['admin', 'djblets', 'rb']


AUTH_PROFILE_MODULE

'accounts.Profile'


CACHE_MIDDLEWARE_ALIAS

'default'


SESSION_SAVE_EVERY_REQUEST

False


ADMIN_MEDIA_PREFIX

u'/media/admin/'


NUMBER_GROUPING

0


AWS_CALLING_FORMAT

2


SESSION_ENGINE

'django.contrib.sessions.backends.db'


DEFAULT_FILE_STORAGE

'django.core.files.storage.FileSystemStorage'


CSRF_FAILURE_VIEW

'django.views.csrf.csrf_failure'


COMMENTS_SKETCHY_USERS_GROUP

None


LOGIN_REDIRECT_URL

'/accounts/profile/'


WEB_API_ENCODERS

('djblets.webapi.encoders.ResourceAPIEncoder',)


LDAP_TLS

False


DECIMAL_SEPARATOR

'.'


CACHE_MIDDLEWARE_KEY_PREFIX

''


LOGGING_DIRECTORY

None


AD_SEARCH_ROOT

None


TEMPLATE_STRING_IF_INVALID

''


COMMENTS_ALLOW_PROFANITIES

False


LOGOUT_URL

'/accounts/logout/'


EMAIL_USE_TLS

False


TEMPLATE_DIRS

('/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.6.4-py2.7.egg/reviewboard/templates',)


FIXTURE_DIRS

()


EMAIL_HOST

u'mail.nexthink.com'


DATE_FORMAT

u'N j, Y'


MEDIA_ROOT

u'/var/www/finder.reviews.intra.nexthink.com/htdocs/media'


ADMINS

((u'admin', u'samuele.gant...@nexthink.com'),)


FORMAT_MODULE_PATH

None


DEFAULT_FROM_EMAIL

u'nore...@finder.reviews.intra.nexthink.com'


LDAP_ANON_BIND_PASSWD

u''


MEDIA_SERIAL

1330360874


STATICFILES_DIRS

()


HTDOCS_ROOT

'/var/www/finder.reviews.intra.nexthink.com/htdocs'


DATETIME_FORMAT

u'N j, Y, P'


IGNORABLE_404_STARTS

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


SITE_ID

1


DISALLOWED_USER_AGENTS

()


ALLOWED_INCLUDE_ROOTS

()


LOGGING

{'disable_existing_loggers': False,
 'handlers': {'mail_admins': {'class': 'django.utils.log.AdminEmailHandler',
                              'level': 'ERROR'}},
 'loggers': {'django.request': {'handlers': ['mail_admins'],
                                'level': 'ERROR',
                                'propagate': True}},
 'version': 1}


LDAP_ANON_BIND_UID

u''


SHORT_DATE_FORMAT

'm/d/Y'


DATABASE_USER

''


REVIEWBOARD_ROOT

'/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.6.4-py2.7.egg/reviewboard'


COUCHDB_DEFAULT_SERVER

u''


AD_USE_TLS

None


TEST_RUNNER

'reviewboard.test.RBTestRunner'


TIME_ZONE

'Europe/Zurich'


FILE_UPLOAD_MAX_MEMORY_SIZE

2621440


LDAP_GIVEN_NAME_ATTRIBUTE

None


EMAIL_BACKEND

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


NIS_EMAIL_DOMAIN

u''


AD_FIND_DC_FROM_DNS

None


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.request',
 'djblets.siteconfig.context_processors.siteconfig',
 'djblets.util.context_processors.settingsVars',
 'djblets.util.context_processors.siteRoot',
 'djblets.util.context_processors.ajaxSerial',
 'djblets.util.context_processors.mediaSerial',
 'reviewboard.accounts.context_processors.auth_backends',
 'reviewboard.admin.context_processors.version',
 'reviewboard.site.context_processors.localsite')


AWS_SECRET_ACCESS_KEY

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


SESSION_COOKIE_AGE

31536000


SETTINGS_MODULE

'reviewboard.settings'


USE_ETAGS

False


LOGGING_ALLOW_PROFILING

False


LANGUAGES

(('en', 'English'),)


DEFAULT_INDEX_TABLESPACE

''


INTERNAL_IPS

()


STATIC_URL

None


EMAIL_PORT

25


SHORT_DATETIME_FORMAT

'm/d/Y P'


ABSOLUTE_URL_OVERRIDES

{}


X509_AUTOCREATE_USERS

False


DATABASE_OPTIONS

{}


AD_DOMAIN_CONTROLLER

None


CACHE_MIDDLEWARE_SECONDS

600


BANNED_IPS

()


AD_DOMAIN_NAME

None


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


LOGGING_NAME

'reviewboard'


DATABASE_PASSWORD

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


COMMENTS_MODERATORS_GROUP

None


PROFANITIES_LIST

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


LOGGING_ENABLED

False


EMAIL_HOST_USER

'bu...@nexthink.com'


COMMENTS_BANNED_USERS_GROUP

None


--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.

Reply via email to