Server encountered an error message when in admin dash

Moderator: areski

Re: Server encountered an error message when in admin dash

Postby areski » Wed Jul 25, 2012 12:36 pm

Enable the debug and try to find out what happen http://www.newfies-dialer.org/docs/en/l ... -the-debug
areski
Site Admin
 
Posts: 302
Joined: Tue Oct 18, 2011 5:28 pm

Re: Server encountered an error message when in admin dash

Postby american-amusements » Wed Jul 25, 2012 2:11 pm

alright, well I assume the traces in the apache log are going to be for the system with the admin web interface issues, I thought I might post the plivo outbound of the machine that I can access the dashboard for you too so that you might have any idea why it would just hang up after it calls. I know i've said this a million times but I really do appreciate all your help and patience.

http://textuploader.com/?p=6&id=qrBMo

apache logs coming soon if I cant see anything obvious in them.
american-amusements
 
Posts: 30
Joined: Thu Jun 21, 2012 7:20 pm

Re: Server encountered an error message when in admin dash

Postby american-amusements » Wed Jul 25, 2012 2:14 pm

error message with debug trying to log onto admin:

Code: Select all
ConnectionError at /admin/

Error 111 connecting 127.0.0.1:6379. Connection refused.

Request Method:    GET
Request URL:    http://dialserver1:8008/admin/
Django Version:    1.4
Exception Type:    ConnectionError
Exception Value:    

Error 111 connecting 127.0.0.1:6379. Connection refused.

Exception Location:    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/redis/connection.py in connect, line 204
Python Executable:    /usr/bin/python
Python Version:    2.6.5
Python Path:    

['/usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages',
'/usr/share/virtualenvs/newfies-dialer/lib/python2.7/site-packages',
'/usr/local/lib/python2.6/dist-packages/virtualenv-1.7.2-py2.6.egg',
'/usr/local/lib/python2.6/dist-packages/pip-1.1-py2.6.egg',
'/usr/local/lib/python2.6/dist-packages/virtualenvwrapper-3.5-py2.6.egg',
'/usr/local/lib/python2.6/dist-packages/virtualenv_clone-0.2.4-py2.6.egg',
'/usr/lib/python2.6',
'/usr/lib/python2.6/plat-linux2',
'/usr/lib/python2.6/lib-tk',
'/usr/lib/python2.6/lib-old',
'/usr/lib/python2.6/lib-dynload',
'/usr/lib/python2.6/dist-packages',
'/usr/lib/pymodules/python2.6',
'/usr/lib/pymodules/python2.6/gtk-2.0',
'/usr/local/lib/python2.6/dist-packages',
'/usr',
'/usr/share',
'/usr/share/newfies']

Server time:    Wed, 25 Jul 2012 10:13:08 -0400
Error during template rendering

In template /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/admin_tools/dashboard/templates/admin/index.html, error at line 14
Error 111 connecting 127.0.0.1:6379. Connection refused.
4    {% block extrastyle %}
5    {{ block.super }}
6    {% block dashboard_css %}{% admin_tools_render_dashboard_css %}{% endblock %}
7    {% endblock %}
8    
9    {% block bodyclass %}dashboard{% endblock %}
10    
11    {% block breadcrumbs %}{% endblock %}
12    {% block content_title %}{% endblock %}
13    {% block content %}
14    {% admin_tools_render_dashboard %}
15    {% endblock %}
16    
Traceback Switch to copy-and-paste view

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

                            response = response.render()

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/django/template/response.py in render

                    self._set_content(self.rendered_content)

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/django/template/response.py in rendered_content

                content = template.render(context)

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/django/template/base.py in render

                    return self._render(context)

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/django/template/base.py in _render

                return self.nodelist.render(context)

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/django/template/base.py in render

                        bit = self.render_node(node, context)

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/django/template/debug.py in render_node

                    return node.render(context)

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/django/template/loader_tags.py in render

                return compiled_parent._render(context)

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/django/template/base.py in _render

                return self.nodelist.render(context)

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/django/template/base.py in render

                        bit = self.render_node(node, context)

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/django/template/debug.py in render_node

                    return node.render(context)

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/django/template/loader_tags.py in render

                return compiled_parent._render(context)

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/django/template/base.py in _render

                return self.nodelist.render(context)

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/django/template/base.py in render

                        bit = self.render_node(node, context)

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/django/template/debug.py in render_node

                    return node.render(context)

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/django/template/loader_tags.py in render

                return compiled_parent._render(context)

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/django/template/base.py in _render

                return self.nodelist.render(context)

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/django/template/base.py in render

                        bit = self.render_node(node, context)

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/django/template/debug.py in render_node

                    return node.render(context)

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/django/template/loader_tags.py in render

                    result = block.nodelist.render(context)

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/django/template/base.py in render

                        bit = self.render_node(node, context)

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/django/template/debug.py in render_node

                    return node.render(context)

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/django/template/debug.py in render

                    output = self.filter_expression.resolve(context)

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/django/template/base.py in resolve

                        obj = self.var.resolve(context)

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/django/template/base.py in resolve

                    value = self._resolve_lookup(context)

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/django/template/base.py in _resolve_lookup

                                    current = current()

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/django/template/loader_tags.py in super

                    return mark_safe(self.render(self.context))

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/django/template/loader_tags.py in render

                    result = block.nodelist.render(context)

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/django/template/base.py in render

                        bit = self.render_node(node, context)

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/django/template/debug.py in render_node

                    return node.render(context)

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/django/template/base.py in render

                            _dict = func(*resolved_args, **resolved_kwargs)

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/admin_tools/dashboard/templatetags/admin_tools_dashboard_tags.py in admin_tools_render_dashboard

            dashboard.init_with_context(context)

        ...
    ▶ Local vars
    /usr/share/newfies/custom_admin_tools/dashboard.py in init_with_context

                    self.children.append(DashboardCharts(**kwargs))

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/admin_tools_stats/modules.py in __init__

                kwargs.setdefault('children', get_registration_charts(**kwargs))

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/admin_tools_stats/modules.py in get_registration_charts

                DashboardChart(_('Today'), interval='hours', **kwargs),

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/admin_tools_stats/modules.py in __init__

                                                   self.graph_key, self.select_box_value)

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/cache_utils/decorators.py in wrapper

                    value = cache.get(key, **backend_kwargs)

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/redis_cache/cache.py in get

                value = self._client.get(key)

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/redis/client.py in get

                return self.execute_command('GET', name)

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/redis/client.py in execute_command

                    connection.send_command(*args)

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/redis/connection.py in send_command

                self.send_packed_command(self.pack_command(*args))

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/redis/connection.py in send_packed_command

                    self.connect()

        ...
    ▶ Local vars
    /usr/share/virtualenvs/newfies-dialer/lib/python2.6/site-packages/redis/connection.py in connect

                    raise ConnectionError(self._error_message(e))

        ...
    ▶ Local vars

Request information
GET

No GET data
POST

No POST data
FILES

No FILES data
COOKIES
Variable    Value
csrftoken    

'JbQm9OGzYRpBbLVyvHKBNPPprxntXLVs'

sessionid    

'd5c0122db37142141ef15687d684a68a'

META
Variable    Value
mod_wsgi.reload_mechanism    

'1'

mod_wsgi.listener_port    

'8008'

HTTP_COOKIE    

'csrftoken=JbQm9OGzYRpBbLVyvHKBNPPprxntXLVs; sessionid=d5c0122db37142141ef15687d684a68a'

mod_wsgi.listener_host    

''

SERVER_SOFTWARE    

'Apache/2.2.14 (Ubuntu)'

SCRIPT_NAME    

u''

SERVER_SIGNATURE    

'<address>Apache/2.2.14 (Ubuntu) Server at dialserver1 Port 8008</address>\n'

REQUEST_METHOD    

'GET'

PATH_INFO    

u'/admin/'

SERVER_PROTOCOL    

'HTTP/1.1'

QUERY_STRING    

''

PATH    

'/usr/local/bin:/usr/bin:/bin'

HTTP_USER_AGENT    

'Mozilla/5.0 (Windows NT 5.1; rv:14.0) Gecko/20100101 Firefox/14.0.1'

HTTP_CONNECTION    

'keep-alive'

HTTP_REFERER    

'http://dialserver1:8008/admin/'

SERVER_NAME    

'dialserver1'

REMOTE_ADDR    

'192.168.1.67'

wsgi.url_scheme    

'http'

PATH_TRANSLATED    

'/usr/share/newfies/django.wsgi/admin/'

SERVER_PORT    

'8008'

wsgi.multiprocess    

False

SERVER_ADDR    

'192.168.1.87'

DOCUMENT_ROOT    

'/usr/share/newfies/'

mod_wsgi.process_group    

'newfies'

SCRIPT_FILENAME    

'/usr/share/newfies/django.wsgi'

SERVER_ADMIN    

'[no address given]'

wsgi.input    

<mod_wsgi.Input object at 0x220311d8>

HTTP_HOST    

'dialserver1:8008'

wsgi.multithread    

True

mod_wsgi.callable_object    

'application'

REQUEST_URI    

'/admin/'

HTTP_ACCEPT    

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

wsgi.version    

(1, 0)

GATEWAY_INTERFACE    

'CGI/1.1'

wsgi.run_once    

False

wsgi.errors    

<mod_wsgi.Log object at 0x21ec5ba0>

REMOTE_PORT    

'4598'

HTTP_ACCEPT_LANGUAGE    

'en-us'

mod_wsgi.version    

(2, 8)

mod_wsgi.application_group    

'dialserver1.gateway.2wire.net:8008|'

mod_wsgi.script_reloading    

'1'

wsgi.file_wrapper    

''

CSRF_COOKIE    

'JbQm9OGzYRpBbLVyvHKBNPPprxntXLVs'

HTTP_ACCEPT_ENCODING    

'gzip, deflate'

Settings
Using settings module newfies.settings
Setting    Value
CHANNEL_TYPE_VALUE    

1

REDIS_PORT    

6379

CONVERT_TYPE_VALUE    

2

USE_THOUSAND_SEPARATOR    

False

CSRF_COOKIE_SECURE    

False

ACAPELA_GENDER    

'W'

LANGUAGE_CODE    

'en-us'

ROOT_URLCONF    

'urls'

MANAGERS    

(('Your Name', 'your_email@domain.com'),)

DIALERDEBUG_PHONENUMBER    

1000

DEFAULT_CHARSET    

'utf-8'

STATIC_ROOT    

'/usr/share/newfies/static'

APPLICATION_LOGIN    

'EVAL_XXXXXXX'

SERVICE_URL    

'http://vaas.acapela-group.com/Services/Synthesizer'

DAJAXICE_MEDIA_PREFIX    

'dajaxice'

MESSAGE_STORAGE    

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

EMAIL_SUBJECT_PREFIX    

'[Django] '

SEND_BROKEN_LINK_EMAILS    

False

ADMIN_TOOLS_APP_INDEX_DASHBOARD    

'custom_admin_tools.dashboard.CustomAppIndexDashboard'

URL_VALIDATOR_USER_AGENT    

'Django/1.4 (https://www.djangoproject.com)'

DICTIONARY    

'/usr/share/dict/words'

PLIVO_DEFAULT_SURVEY_ANSWER_URL    

'http://192.168.1.87:8008/survey_finestatemachine/'

SESSION_COOKIE_NAME    

'sessionid'

ADMIN_FOR    

()

TIME_INPUT_FORMATS    

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

CARROT_BACKEND    

'redis'

DATABASES    

{'default': {'ENGINE': 'django.db.backends.mysql',
             'HOST': 'localhost',
             'NAME': 'newfies',
             'OPTIONS': {'init_command': 'SET storage_engine=INNODB'},
             'PASSWORD': u'********************',
             'PORT': '3306',
             'TEST_CHARSET': None,
             'TEST_COLLATION': None,
             'TEST_MIRROR': None,
             'TEST_NAME': None,
             'TIME_ZONE': 'America/New_York',
             'USER': 'root'}}

APPLICATION_DIR    

'/usr/share/newfies'

FILE_UPLOAD_PERMISSIONS    

None

FILE_UPLOAD_HANDLERS    

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

DEFAULT_CONTENT_TYPE    

'text/html'

DILLA_USE_LOREM_IPSUM    

False

TEST_RUNNER    

'django.test.simple.DjangoTestSuiteRunner'

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': 'redis_cache.RedisCache',
             'LOCATION': '127.0.0.1:6379'}}

PLIVO_DEFAULT_ANSWER_URL    

'http://192.168.1.87:8008/api/v1/answercall/'

SESSION_COOKIE_PATH    

'/'

APPLICATION_PASSWORD    

u'********************'

MIDDLEWARE_CLASSES    

('django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'linaro_django_pagination.middleware.PaginationMiddleware',
'common.filter_persist_middleware.FilterPersistMiddleware',
'audiofield.middleware.threadlocals.ThreadLocals')

USE_I18N    

True

THOUSAND_SEPARATOR    

','

SECRET_KEY    

u'********************'

FREQ_TYPE_VALUE    

8000

LANGUAGE_COOKIE_NAME    

'newfies_dialer_language'

DEFAULT_INDEX_TABLESPACE    

''

TRANSACTIONS_MANAGED    

False

LOGGING_CONFIG    

'django.utils.log.dictConfig'

ACAPELA_INTONATION    

'NORMAL'

BROKER_VHOST    

0

TEMPLATE_LOADERS    

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

DILLA_APPS    

['auth', 'voip_app', 'dialer_campaign', 'dialer_cdr']

WSGI_APPLICATION    

None

TEMPLATE_DEBUG    

True

X_FRAME_OPTIONS    

'SAMEORIGIN'

CSRF_COOKIE_NAME    

'csrftoken'

FORCE_SCRIPT_NAME    

None

USE_X_FORWARDED_HOST    

False

DIALERDEBUG    

False

NEWFIES_DIALER_ENGINE    

'plivo'

SIGNING_BACKEND    

'django.core.signing.TimestampSigner'

SESSION_COOKIE_SECURE    

False

REDIS_HOST    

'localhost'

API_ALLOWED_IP    

u'********************'

CSRF_COOKIE_DOMAIN    

None

FILE_CHARSET    

'utf-8'

DEBUG    

True

BROKER_PORT    

6379

DEFAULT_FILE_STORAGE    

'django.core.files.storage.FileSystemStorage'

INSTALLED_APPS    

('admin_tools',
'admin_tools.theming',
'admin_tools.menu',
'admin_tools.dashboard',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'django.contrib.markup',
'django_countries',
'country_dialcode',
'dialer_gateway',
'dialer_campaign',
'dialer_cdr',
'dialer_settings',
'user_profile',
'common',
'djcelery',
'dateutil',
'linaro_django_pagination',
'memcache_status',
'notification',
'voice_app',
'survey',
'dialer_audio',
'common',
'admin_tools_stats',
'chart_tools',
'south',
'tastypie',
'audiofield',
'tagging',
'adminsortable',
'dajaxice',
'dajax',
'genericadmin',
'redisboard')

LANGUAGES_BIDI    

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

USE_L10N    

False

COMMENTS_ALLOW_PROFANITIES    

False

STATICFILES_DIRS    

(('newfies', '/usr/share/newfies/resources'),)

PREPEND_WWW    

False

SECURE_PROXY_SSL_HEADER    

None

PASSWORD_RESET_TIMEOUT_DAYS    

u'********************'

SESSION_COOKIE_HTTPONLY    

True

DEBUG_PROPAGATE_EXCEPTIONS    

False

QUALITY    

'22k'

MONTH_DAY_FORMAT    

'F j'

LOGIN_URL    

'/pleaselog/'

SESSION_EXPIRE_AT_BROWSER_CLOSE    

False

TIME_FORMAT    

'P'

DILLA_SPAMLIBS    

['dialer_cdr.dialer_cdr_custom_spamlib']

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

SERVER_EMAIL    

'newfies@localhost.com'

AUTHENTICATION_BACKENDS    

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

EMAIL_HOST_PASSWORD    

u'********************'

PLIVO_DEFAULT_DIALCALLBACK_URL    

'http://192.168.1.87:8008/api/v1/dialcallback/'

AUTH_PROFILE_MODULE    

'user_profile.UserProfile'

SESSION_FILE_PATH    

None

CACHE_MIDDLEWARE_ALIAS    

'default'

SESSION_SAVE_EVERY_REQUEST    

False

ADMIN_MEDIA_PREFIX    

'/static/admin/'

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

MAX_CALLS_PER_SECOND    

20

ACCOUNT_LOGIN    

'EVAL_XXXX'

DECIMAL_SEPARATOR    

'.'

IGNORABLE_404_URLS    

()

TTS_ENGINE    

'FLITE'

LOCALE_PATHS    

()

TEMPLATE_STRING_IF_INVALID    

''

LOGOUT_URL    

'/accounts/logout/'

EMAIL_USE_TLS    

False

FS_RECORDING_PATH    

'/usr/share/newfies/usermedia/recording/'

FIXTURE_DIRS    

()

EMAIL_HOST    

'localhost'

DATE_FORMAT    

'Y-m-d'

MEDIA_ROOT    

'/usr/share/newfies/usermedia'

PAGE_SIZE    

10

DEFAULT_EXCEPTION_REPORTER_FILTER    

'django.views.debug.SafeExceptionReporterFilter'

ADMINS    

()

FORMAT_MODULE_PATH    

None

DEFAULT_FROM_EMAIL    

'webmaster@localhost'

MEDIA_URL    

'/mediafiles/'

DATETIME_FORMAT    

'Y-m-d H:i:s'

TEMPLATE_DIRS    

('/usr/share/newfies/templates',)

SITE_ID    

1

DISALLOWED_USER_AGENTS    

()

ALLOWED_INCLUDE_ROOTS    

()

LOGGING    

{'disable_existing_loggers': True,
'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}},
'formatters': {'simple': {'format': '%(asctime)s %(levelname)s || %(message)s'},
                'verbose': {'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s'}},
'handlers': {'console': {'class': 'logging.StreamHandler',
                          'formatter': 'verbose',
                          'level': 'DEBUG'},
              'default': {'class': 'logging.handlers.WatchedFileHandler',
                          'filename': '/var/log/newfies/newfies-django.log',
                          'formatter': 'verbose'},
              'default-db': {'backupCount': 20,
                             'class': 'logging.handlers.RotatingFileHandler',
                             'filename': '/var/log/newfies/newfies-django-db.log',
                             'formatter': 'verbose',
                             'level': 'DEBUG',
                             'maxBytes': 5242880},
              'mail_admins': {'class': 'django.utils.log.AdminEmailHandler',
                              'filters': ['require_debug_false'],
                              'include_html': True,
                              'level': 'ERROR'}},
'loggers': {'audiofield_log': {'handlers': ['default'],
                                'level': 'DEBUG',
                                'propagate': False},
             'django': {'handlers': ['default'],
                        'level': 'DEBUG',
                        'propagate': False},
             'django.db.backends': {'handlers': ['default-db'],
                                    'level': 'ERROR',
                                    'propagate': False},
             'django.request': {'handlers': ['mail_admins'],
                                'level': 'ERROR',
                                'propagate': True},
             'newfies.filelog': {'handlers': ['default'],
                                 'level': 'DEBUG',
                                 'propagate': False}},
'version': 1}

SHORT_DATE_FORMAT    

'm/d/Y'

STATICFILES_FINDERS    

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

CACHE_MIDDLEWARE_KEY_PREFIX    

u'********************'

TIME_ZONE    

'America/New_York'

FILE_UPLOAD_MAX_MEMORY_SIZE    

2621440

PLIVO_DEFAULT_HANGUP_URL    

'http://192.168.1.87:8008/api/v1/hangupcall/'

EMAIL_BACKEND    

'django.core.mail.backends.dummy.EmailBackend'

ADMIN_TOOLS_INDEX_DASHBOARD    

'custom_admin_tools.dashboard.CustomIndexDashboard'

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.csrf',
'django.contrib.messages.context_processors.messages',
'context_processors.newfies_version',
'django.core.context_processors.request')

SESSION_COOKIE_AGE    

1209600

SETTINGS_MODULE    

'newfies.settings'

USE_ETAGS    

False

SESSION_COOKIE_DOMAIN    

None

LANGUAGES    

(('en', 'English'),
('es', 'Spanish'),
('pt', 'Portuguese'),
('zh', 'Chinese'),
('tr', 'Turkish'))

AUDIO_DEBUG    

False

REDIS_DB    

0

FILE_UPLOAD_TEMP_DIR    

None

INTERNAL_IPS    

('127.0.0.1',)

STATIC_URL    

'/static/'

BROKER_HOST    

'localhost'

EMAIL_PORT    

25

ADMIN_TOOLS_MENU    

'custom_admin_tools.menu.CustomMenu'

USE_TZ    

False

SHORT_DATETIME_FORMAT    

'm/d/Y P'

CELERY_RESULT_BACKEND    

'redis'

PASSWORD_HASHERS    

u'********************'

ABSOLUTE_URL_OVERRIDES    

{}

CACHE_MIDDLEWARE_SECONDS    

600

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'********************'
american-amusements
 
Posts: 30
Joined: Thu Jun 21, 2012 7:20 pm

Re: Server encountered an error message when in admin dash

Postby areski » Wed Jul 25, 2012 2:17 pm

You see with a bit work you find out exactly what s happening!
areski
Site Admin
 
Posts: 302
Joined: Tue Oct 18, 2011 5:28 pm

Re: Server encountered an error message when in admin dash

Postby american-amusements » Wed Jul 25, 2012 2:41 pm

yes, sorta. still confused but at least I got some of the error narrowed down. :D

I did some searching on that error 111 and found this:https://groups.google.com/forum/#!topic/newfies-dialer/ObB_bEmwE0w

seems to be 2 stages of both the problems im having with both machines :) although right now as far as the settings_local.py go I dont see what is an error about looking at the localhost (127.0.0.1 or whatever) for those lines you were referring to... I put my plivo outbound below.

http://textuploader.com/?p=6&id=ShiK


as far as the debug error 111... I see that the connection is refused, it refers to 2 different files, I don't have a clue which one should be changed, and in what way.... or if it is even a problem caused somewhere else. In that link I posted at the top he got rid of it by changing to 10.04 LTS, but I'm already on 10.04 LTS :(


EDIT: upon looking at the redis/connection.py on line 204 i found that it trys to do a "self.connect()" if not of course it throws an error... but I dont see anything in the file i can edit to change it.
Last edited by american-amusements on Wed Jul 25, 2012 2:54 pm, edited 1 time in total.
american-amusements
 
Posts: 30
Joined: Thu Jun 21, 2012 7:20 pm

Re: Server encountered an error message when in admin dash

Postby areski » Wed Jul 25, 2012 2:52 pm

You are jumping from an error to an other, I getting an headache...

First issue on one of your machine is because redis is not installed properly, that what you have to fix.

Second issue on plivo, you can see in the logs :
-- Error: HTTP Error 401: UNAUTHORIZED
2012-07-25 10:28:05,826 plivo-outbound[1037]: INFO: (1) Requested RESTXML to http://dialer2:8008/api/v1/answercall/

This is because the install script might have fail detecting your IP and so didn't setup the API to authorize your IP.
Go in /usr/share/newfies/settings_local.py

make sure your IP is in there :
API_ALLOWED_IP = [
'127.0.0.1',
'localhost',
#'SERVER_IP',
]
areski
Site Admin
 
Posts: 302
Joined: Tue Oct 18, 2011 5:28 pm

Re: Server encountered an error message when in admin dash

Postby american-amusements » Wed Jul 25, 2012 3:17 pm

I apologize I know I'm throwing out a lot. as far as plivo goes, I had the proper ip in there (you'd given me that advice before and it had worked.), initially it just had the hostname, I added the ip at the end (comma delimited) so there were 4 entries. I took the hostname out and had it set up like you just said in your last post. still no luck.

as far as redis goes.... I'm not sure how to reinstall it. I went to the usr/src/newfies-dialer/ looking for an install script for it, didnt see one, tried install-newfies.sh to see if the back end reinstalls redis, but it didnt say anything about it (looked like it only installs celery?) and saw the redis folder in that directory. looked in there, and didnt see anything obvious in there for installing it.

EDIT: I also found this: https://github.com/Star2Billing/newfies ... lation.rst but Im not sure the age of the documents, the effect version number makes, and it doesnt specify much for configuration, didnt know if it needed any.
american-amusements
 
Posts: 30
Joined: Thu Jun 21, 2012 7:20 pm

Re: Server encountered an error message when in admin dash

Postby areski » Wed Jul 25, 2012 3:34 pm

About plivo error, you need to restart apache after your change.

About redis, check online there is plenty of resource to install it, otherwise save time and ask someone that know about sysadmin.
areski
Site Admin
 
Posts: 302
Joined: Tue Oct 18, 2011 5:28 pm

Re: Server encountered an error message when in admin dash

Postby american-amusements » Wed Jul 25, 2012 7:05 pm

alright, gave up on redis, tried installing it but once i try to restart/stop the installation it gives me unknown instance, and I figure time to start from scratch again.


On the plivo machine. I had restarted apache, i rebooted... did everything I can think of. Outbound log says its getting all the call states from the proper IP addresses, searched online for the 401 error and I still cant figure out why its not authorizing it. I found info on some Authorization info that plivo requires, but from what im finding, i'd guess newfies takes care of that internally and allows for any ips in the list? they are all proper :(
american-amusements
 
Posts: 30
Joined: Thu Jun 21, 2012 7:20 pm

Re: Server encountered an error message when in admin dash

Postby areski » Wed Jul 25, 2012 7:51 pm

The error doesn't come from Plivo, it s the newfies API that doesn't accept the IP.

Try over on Ubuntu 12.04 TLS with our latest version 1.5, we release yesterday.
We tested it many times and it works perfectly.

If you have more issues I would advice to get support from us or from django/python person.
areski
Site Admin
 
Posts: 302
Joined: Tue Oct 18, 2011 5:28 pm

PreviousNext

Return to Installation

Who is online

Users browsing this forum: No registered users and 103 guests

cron