Details
-
Type: extRequest
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:None
-
Sender Email:
-
HD-Chapter:Apps
-
HD-Enabler:WStore
Description
Hi,
I configured OAUTH2 in wstore and registered the application and setup a
call back url in FI Lab: http://130.206.112.109/complete/fiware/
After I try to login in wstore I receive error message
URLError at /complete/fiware/
<urlopen error [Errno -2] Name or service not known>
Debug output is attached below.
Can you please help?
Thanks
Mario Wermuth
URLError at /complete/fiware/
<urlopen error [Errno -2] Name or service not known>
Request Method:GETRequest URL:
http://130.206.112.109/complete/fiware/?state=None&code=WMRQpeWvFWej4WibfrYKPxDJYN02ZfDjango
Version:1.4.13Exception Type:URLErrorException Value:
<urlopen error [Errno -2] Name or service not known>
Exception Location:/usr/lib/python2.7/urllib2.py in do_open, line 1184Python
Executable:/usr/bin/pythonPython Version:2.7.6Python Path:
['/opt/wstore/src/virtenv/lib/python2.7/site-packages',
'/opt/wstore/src',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-x86_64-linux-gnu',
'/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']
Server time:Tue, 29 Dec 2015 10:19:49 -0600
Traceback Switch to copy-and-paste view
<http://130.206.112.109/complete/fiware/?state=None&code=WMRQpeWvFWej4WibfrYKPxDJYN02Zf#>
-
/opt/wstore/src/virtenv/lib/python2.7/site-packages/django/core/handlers/base.py
in get_response
1.
response = callback(request,
*callback_args, **callback_kwargs)
...
▶ Local vars
<http://130.206.112.109/complete/fiware/?state=None&code=WMRQpeWvFWej4WibfrYKPxDJYN02Zf#>
-
/opt/wstore/src/virtenv/lib/python2.7/site-packages/django/views/decorators/csrf.py
in wrapped_view
1.
return view_func(*args, **kwargs)
...
▶ Local vars
<http://130.206.112.109/complete/fiware/?state=None&code=WMRQpeWvFWej4WibfrYKPxDJYN02Zf#>
-
/opt/wstore/src/virtenv/lib/python2.7/site-packages/social_auth/decorators.py
in wrapper
1.
return func(request, request.social_auth_backend,
*args, **kwargs)
...
▶ Local vars
<http://130.206.112.109/complete/fiware/?state=None&code=WMRQpeWvFWej4WibfrYKPxDJYN02Zf#>
-
/opt/wstore/src/virtenv/lib/python2.7/site-packages/social_auth/views.py
in complete
1.
return complete_process(request, backend, *args, **kwargs)
...
▶ Local vars
<http://130.206.112.109/complete/fiware/?state=None&code=WMRQpeWvFWej4WibfrYKPxDJYN02Zf#>
-
/opt/wstore/src/virtenv/lib/python2.7/site-packages/social_auth/views.py
in complete_process
1.
user = auth_complete(request, backend, *args, **kwargs)
...
▶ Local vars
<http://130.206.112.109/complete/fiware/?state=None&code=WMRQpeWvFWej4WibfrYKPxDJYN02Zf#>
-
/opt/wstore/src/virtenv/lib/python2.7/site-packages/social_auth/views.py
in auth_complete
1.
return backend.auth_complete(user=user, request=request,
*args, **kwargs)
...
▶ Local vars
<http://130.206.112.109/complete/fiware/?state=None&code=WMRQpeWvFWej4WibfrYKPxDJYN02Zf#>
-
/opt/wstore/src/virtenv/lib/python2.7/site-packages/social_auth/backends/_init_.py
in auth_complete
1.
response = simplejson.loads(dsa_urlopen(request).read())
...
▶ Local vars
<http://130.206.112.109/complete/fiware/?state=None&code=WMRQpeWvFWej4WibfrYKPxDJYN02Zf#>
-
/opt/wstore/src/virtenv/lib/python2.7/site-packages/social_auth/utils.py
in dsa_urlopen
1.
return urlopen(*args, **kwargs)
...
▶ Local vars
<http://130.206.112.109/complete/fiware/?state=None&code=WMRQpeWvFWej4WibfrYKPxDJYN02Zf#>
- /usr/lib/python2.7/urllib2.py in urlopen
1.
return _opener.open(url, data, timeout)
...
▶ Local vars
<http://130.206.112.109/complete/fiware/?state=None&code=WMRQpeWvFWej4WibfrYKPxDJYN02Zf#>
- /usr/lib/python2.7/urllib2.py in open
1.
response = self._open(req, data)
...
▶ Local vars
<http://130.206.112.109/complete/fiware/?state=None&code=WMRQpeWvFWej4WibfrYKPxDJYN02Zf#>
- /usr/lib/python2.7/urllib2.py in _open
1.
'_open', req)
...
▶ Local vars
<http://130.206.112.109/complete/fiware/?state=None&code=WMRQpeWvFWej4WibfrYKPxDJYN02Zf#>
- /usr/lib/python2.7/urllib2.py in _call_chain
1.
result = func(*args)
...
▶ Local vars
<http://130.206.112.109/complete/fiware/?state=None&code=WMRQpeWvFWej4WibfrYKPxDJYN02Zf#>
- /usr/lib/python2.7/urllib2.py in https_open
1.
return self.do_open(httplib.HTTPSConnection, req)
...
▶ Local vars
<http://130.206.112.109/complete/fiware/?state=None&code=WMRQpeWvFWej4WibfrYKPxDJYN02Zf#>
- /usr/lib/python2.7/urllib2.py in do_open
1.
raise URLError(err)
...
▶ Local vars
<http://130.206.112.109/complete/fiware/?state=None&code=WMRQpeWvFWej4WibfrYKPxDJYN02Zf#>
Request informationGETVariableValuestate
u'None'
code
u'WMRQpeWvFWej4WibfrYKPxDJYN02Zf'
POST
No POST data
FILES
No FILES data
COOKIESVariableValuecsrftoken
'MlebPxr1NjSxb72OFp54jK2Mz5eTvEVn'
sessionid
'eee0ebf6d34c008da14dd5bc400c4dc1'
METAVariableValuemod_wsgi.listener_port
'80'
HTTP_COOKIE
'csrftoken=MlebPxr1NjSxb72OFp54jK2Mz5eTvEVn;
sessionid=eee0ebf6d34c008da14dd5bc400c4dc1'
mod_wsgi.listener_host
''
CONTEXT_DOCUMENT_ROOT
'/var/www/html'
SERVER_SOFTWARE
'Apache/2.4.7 (Ubuntu)'
SCRIPT_NAME
u''
mod_wsgi.enable_sendfile
'0'
mod_wsgi.handler_script
''
SERVER_SIGNATURE
'<address>Apache/2.4.7 (Ubuntu) Server at 130.206.112.109 Port 80</address>\n'
REQUEST_METHOD
'GET'
PATH_INFO
u'/complete/fiware/'
SERVER_PROTOCOL
'HTTP/1.1'
QUERY_STRING
'state=None&code=WMRQpeWvFWej4WibfrYKPxDJYN02Zf'
HTTP_USER_AGENT
'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/47.0.2526.106 Safari/537.36'
HTTP_CONNECTION
'keep-alive'
SERVER_NAME
'130.206.112.109'
REMOTE_ADDR
'84.133.71.32'
mod_wsgi.queue_start
'1451405989748287'
mod_wsgi.request_handler
'wsgi-script'
wsgi.url_scheme
'http'
PATH_TRANSLATED
'/opt/wstore/src/wsgi.py/complete/fiware/'
SERVER_PORT
'80'
wsgi.multiprocess
True
mod_wsgi.input_chunked
'0'
SERVER_ADDR
'192.168.225.107'
DOCUMENT_ROOT
'/var/www/html'
mod_wsgi.process_group
''
SCRIPT_FILENAME
'/opt/wstore/src/wsgi.py'
SERVER_ADMIN
'webmaster@localhost'
wsgi.input
<mod_wsgi.Input object at 0x7ffa786a0e30>
HTTP_HOST
'130.206.112.109'
CONTEXT_PREFIX
''
mod_wsgi.callable_object
'application'
wsgi.multithread
True
HTTP_UPGRADE_INSECURE_REQUESTS
'1'
HTTP_CACHE_CONTROL
'max-age=0'
REQUEST_URI
'/complete/fiware/?state=None&code=WMRQpeWvFWej4WibfrYKPxDJYN02Zf'
HTTP_ACCEPT
'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8'
wsgi.version
(1, 0)
GATEWAY_INTERFACE
'CGI/1.1'
wsgi.run_once
False
wsgi.errors
<mod_wsgi.Log object at 0x7ffa785d2e70>
REMOTE_PORT
'62981'
HTTP_ACCEPT_LANGUAGE
'de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4'
REQUEST_SCHEME
'http'
mod_wsgi.version
(3, 4)
mod_wsgi.application_group
'sucstore.novalocal|'
mod_wsgi.script_reloading
'1'
wsgi.file_wrapper
''
HTTP_ACCEPT_ENCODING
'gzip, deflate, sdch'
SettingsUsing settings module settingsSettingValueFIWARE_API_SECRET
u'********************'
USE_L10N
False
USE_THOUSAND_SEPARATOR
False
CSRF_COOKIE_SECURE
False
CRONJOBS
[('0 5 * * *',
'django.core.management.call_command',
['resolve_use_charging'])]
LANGUAGE_CODE
'en'
ROOT_URLCONF
'urls'
MANAGERS
()
SMTPSERVER
'wstore_smtp_server'
DEFAULT_CHARSET
'utf-8'
STATIC_ROOT
'/opt/wstore/src/static'
ALLOWED_HOSTS
['*']
MESSAGE_STORAGE
'django.contrib.messages.storage.fallback.FallbackStorage'
EMAIL_SUBJECT_PREFIX
'[Django] '
SEND_BROKEN_LINK_EMAILS
False
URL_VALIDATOR_USER_AGENT
'Django/1.4.13 (https://www.djangoproject.com)'
STATICFILES_FINDERS
('django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder')
ACTIVATION_DAYS
2
SOCIAL_AUTH_DISCONNECT_REDIRECT_URL
'/login/fiware/'
FIWARE_APP_ID
'89077d9ad76147309490a70a039c7e37'
SESSION_COOKIE_NAME
'sessionid'
ADMIN_FOR
()
TIME_INPUT_FORMATS
('%H:%M:%S', '%H:%M')
DATABASES
{'default': {'ENGINE': 'django_mongodb_engine',
'HOST': '',
'NAME': 'wstore_db',
'OPTIONS': {},
'PASSWORD': u'********************',
'PORT': '',
'TEST_CHARSET': None,
'TEST_COLLATION': None,
'TEST_MIRROR': None,
'TEST_NAME': 'test_database',
'TIME_ZONE': 'America/Chicago',
'USER': ''}}
URL_MIDDLEWARE_CLASSES
{'api': ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'wstore.store_commons.middleware.ConditionalGetMiddleware', 'wstore.store_commons.middleware.AuthenticationMiddleware'), 'default': ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'wstore.store_commons.middleware.ConditionalGetMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware'), 'media': ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'wstore.store_commons.middleware.ConditionalGetMiddleware', 'wstore.store_commons.middleware.AuthenticationMiddleware')}FILE_UPLOAD_PERMISSIONS
None
WSTOREMAILUSER
'email_user'
FILE_UPLOAD_HANDLERS
('django.core.files.uploadhandler.MemoryFileUploadHandler',
'django.core.files.uploadhandler.TemporaryFileUploadHandler')
DEFAULT_CONTENT_TYPE
'text/html'
APPEND_SLASH
True
LOCALE_PATHS
()
DATABASE_ROUTERS
[]
USDL_EDITOR_URL
'http://store.lab.fi-ware.eu/usdl-editor'
YEAR_MONTH_FORMAT
'F Y'
STATICFILES_STORAGE
'django.contrib.staticfiles.storage.StaticFilesStorage'
CACHES
{'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
'LOCATION': ''}}
SERVER_EMAIL
'root@localhost'
SESSION_COOKIE_PATH
'/'
USE_X_FORWARDED_HOST
False
MIDDLEWARE_CLASSES
('wstore.store_commons.middleware.URLMiddleware',)
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'
SOCIAL_AUTH_ENABLED_BACKENDS
('fiware',)
OILAUTH
True
TEMPLATE_LOADERS
('django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader')
FIRST_DAY_OF_WEEK
0
WSGI_APPLICATION
'wsgi.application'
TEMPLATE_DEBUG
True
X_FRAME_OPTIONS
'SAMEORIGIN'
AUTHENTICATION_BACKENDS
('wstore.social_auth_backend.FiwareBackend',
'django.contrib.auth.backends.ModelBackend')
FORCE_SCRIPT_NAME
None
CACHE_BACKEND
'locmem://'
SIGNING_BACKEND
'django.core.signing.TimestampSigner'
SESSION_COOKIE_SECURE
False
PAYMENT_CLIENT
'wstore.charging_engine.paypal_client.fipay_client.PayPalClient'
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_mongodb_engine',
'djangotoolbox',
'wstore',
'wstore.defaulttheme',
'wstore.charging_engine',
'wstore.store_commons',
'wstore.social.tagging',
'django_crontab',
'django_nose',
'social_auth',
'wstore.registration')
LANGUAGES
(('ar', 'Arabic'),
('az', 'Azerbaijani'),
('bg', 'Bulgarian'),
('bn', 'Bengali'),
('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'),
('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'),
('id', 'Indonesian'),
('is', 'Icelandic'),
('it', 'Italian'),
('ja', 'Japanese'),
('ka', 'Georgian'),
('kk', 'Kazakh'),
('km', 'Khmer'),
('kn', 'Kannada'),
('ko', 'Korean'),
('lt', 'Lithuanian'),
('lv', 'Latvian'),
('mk', 'Macedonian'),
('ml', 'Malayalam'),
('mn', 'Mongolian'),
('nb', 'Norwegian Bokmal'),
('ne', 'Nepali'),
('nl', 'Dutch'),
('nn', 'Norwegian Nynorsk'),
('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'),
('uk', 'Ukrainian'),
('ur', 'Urdu'),
('vi', 'Vietnamese'),
('zh-cn', 'Simplified Chinese'),
('zh-tw', 'Traditional Chinese'))
COMMENTS_ALLOW_PROFANITIES
False
STATICFILES_DIRS
()
PREPEND_WWW
False
SECURE_PROXY_SSL_HEADER
None
AUTH_PROFILE_MODULE
'wstore.models.UserProfile'
SESSION_COOKIE_HTTPONLY
True
DEBUG_PROPAGATE_EXCEPTIONS
False
MONTH_DAY_FORMAT
'F j'
LOGIN_URL
'/login/fiware/'
SESSION_EXPIRE_AT_BROWSER_CLOSE
False
THEME_ACTIVE
'defaulttheme'
TIME_FORMAT
'P'
STORE_NAME
'WStore'
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')
WSTOREMAIL
'wstore_email'
LOGIN_ERROR_URL
'/login-error'
WSTOREMAILPASS
u'********************'
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
'/'
SOCIAL_AUTH_PIPELINE
('social_auth.backends.pipeline.social.social_auth_user',
'social_auth.backends.pipeline.user.get_username',
'social_auth.backends.pipeline.user.create_user',
'social_auth.backends.pipeline.social.associate_user',
'social_auth.backends.pipeline.social.load_extra_data',
'social_auth.backends.pipeline.user.update_user_details',
'wstore.social_auth_backend.fill_internal_user_info')
DECIMAL_SEPARATOR
'.'
IGNORABLE_404_URLS
()
BASEDIR
'/opt/wstore/src'
TEMPLATE_STRING_IF_INVALID
''
LOGOUT_URL
'/accounts/logout/'
EMAIL_USE_TLS
False
FIXTURE_DIRS
()
EMAIL_HOST
'localhost'
DATE_FORMAT
'N j, Y'
PORTALINSTANCE
False
MEDIA_ROOT
'/opt/wstore/src/media'
DEFAULT_EXCEPTION_REPORTER_FILTER
'django.views.debug.SafeExceptionReporterFilter'
ADMINS
()
FORMAT_MODULE_PATH
None
DEFAULT_FROM_EMAIL
'webmaster@localhost'
MEDIA_URL
'/media/'
DATETIME_FORMAT
'N j, Y, P'
TEMPLATE_DIRS
()
SITE_ID
u'53d77fbe7eced031b11823f2'
DISALLOWED_USER_AGENTS
()
ALLOWED_INCLUDE_ROOTS
()
LOGGING
{'disable_existing_loggers': False,
'filters': {'require_debug_false': {'()':
'django.utils.log.RequireDebugFalse'}},
'handlers': {'mail_admins': {'class': 'django.utils.log.AdminEmailHandler',
'filters': ['require_debug_false'],
'level': 'ERROR'}},
'loggers': {'django.request': {'handlers': ['mail_admins'],
'level': 'ERROR',
'propagate': True}},
'version': 1}
BILL_ROOT
'/opt/wstore/src/media/bills'
SHORT_DATE_FORMAT
'm/d/Y'
TEST_RUNNER
'django_nose.NoseTestSuiteRunner'
CACHE_MIDDLEWARE_KEY_PREFIX
u'********************'
TIME_ZONE
'America/Chicago'
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.request',
'django.core.context_processors.static',
'social_auth.context_processors.social_auth_by_type_backends')
FIWARE_IDM_ENDPOINT
'https://ccount.lab.fiware.org/oauth2/'
SESSION_COOKIE_AGE
1209600
SETTINGS_MODULE
'settings'
USE_ETAGS
False
SESSION_COOKIE_DOMAIN
None
LANGUAGES_BIDI
('he', 'ar', 'fa')
FILE_UPLOAD_TEMP_DIR
None
INTERNAL_IPS
()
STATIC_URL
'/static/'
EMAIL_PORT
25
USE_TZ
False
SHORT_DATETIME_FORMAT
'm/d/Y P'
PASSWORD_HASHERS
u'********************'
WSTOREPROVIDERREQUEST
'provider_requ_email'
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'********************'
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.
Since January 1st, old domains won't be supported and messages sent to any domain different to @lists.fiware.org will be lost.
Please, send your messages using the new domain (Fiware-lab-help@lists.fiware.org) instead of the old one.
_______________________________________________
Fiware-lab-help mailing list
Fiware-lab-help@lists.fiware.org
https://lists.fiware.org/listinfo/fiware-lab-help
[Created via e-mail received from: Mario Wermuth <mario.wermuth@planquadrat-software.de>]
Hi Mario,
This error is raised because WStore is receiving an error code when making the request to the IdM (probably a 404)
Please review you idm configuration, I have seen in the trace that the account portal URL is configured as
FIWARE_IDM_ENDPOINT
'https://ccount.lab.fiware.org/oauth2/'
So there is a missing 'a'
Best regards,
Francisco