Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Hue 4.3 cannot find saml2/login page

Hue 4.3 cannot find saml2/login page

New Contributor

After setting all details about SAML, I tried to deploy Hue 4.3. When https://[hue_base] tries to access http://[hue_base]/saml2/login URL, it returns page not found (404) error.

 

(1) Error Message

Page not found (404)

Request Method:Request URL:

Request Method: GET
Reqeust URL: http://[hue_base]/saml2/login/?next=/
Using the URLconf defined in desktop.urls, Django tried these URL patterns, in this order:

^hue/accounts/login [name='desktop_auth_views_dt_login']
^accounts/login/$
^accounts/logout/$
^profile$
^login/oauth/?$
^login/oauth_authenticated/?$
^hue/oidc_failed
^home/?$ [name='desktop_views_home2']
^home2$ [name='desktop_views_home']
^home_embeddable$
^logs$ [name='desktop.views.log_view']
^desktop/log_analytics$
^desktop/log_js_error$
^desktop/dump_config$ [name='desktop.views.dump_config']
^desktop/download_logs$
^desktop/get_debug_level
^desktop/set_all_debug
^desktop/reset_all_debug
^bootstrap.js$
^desktop/status_bar/?$
^desktop/debug/is_alive$
^desktop/debug/is_idle$
^desktop/debug/threads$ [name='desktop.views.threads']
^desktop/debug/memory$
^desktop/debug/check_config$ [name='desktop.views.check_config']
^desktop/debug/check_config_ajax$
^desktop/log_frontend_event$
^assist_m
^hue.*/$ [name='desktop_views_hue']
^403$
^404$
^500$
^ko_editor
^ko_metastore
^jasmine
^desktop/globalJsConstants.js
^desktop/workers/aceSqlLocationWorker.js
^desktop/workers/aceSqlSyntaxWorker.js
^boohoo$ [name='desktop_views_unsupported']
^$ [name='desktop_views.index']
^desktop/api/tag/add_tag$
^desktop/api/tag/remove_tag$
^desktop/api/doc/tag$
^desktop/api/doc/update_tags$
^desktop/api/doc/get$
^desktop/api/doc/update_permissions
^desktop/api2/doc/open?$
^desktop/api2/docs/?$
^desktop/api2/doc/?$
^desktop/api2/doc/move/?$
^desktop/api2/doc/mkdir/?$
^desktop/api2/doc/update/?$
^desktop/api2/doc/delete/?$
^desktop/api2/doc/copy/?$
^desktop/api2/doc/restore/?$
^desktop/api2/doc/share/?$
^desktop/api2/get_config/?$
^desktop/api2/context/namespaces/(?P<interface>\w+)/?$
^desktop/api2/context/computes/(?P<interface>\w+)/?$
^desktop/api2/context/clusters/(?P<interface>\w+)/?$
^desktop/api2/user_preferences/(?P<key>\w+)?$ [name='desktop.api2.user_preferences']
^desktop/api2/doc/export/?$
^desktop/api2/doc/import/?$
^desktop/api/search/entities/?$
^desktop/api/search/entities_interactive/?$
^editor
^desktop/api/configurations/?$
^desktop/api/configurations/user/?$
^desktop/api/configurations/delete/?$
^desktop/api/users/autocomplete [name='useradmin_views_list_for_autocomplete']
^desktop/api/users/?$
^desktop/api/vcs/contents/?$
^desktop/api/vcs/authorize/?$
^desktop/metrics/
^admin/
^about/
^beeswax/
^filebrowser/
^help/
^metastore/
^proxy/
^useradmin/
^indexer/
^metadata/
^notebook/
^dashboard/
^kafka/
^static\/(?P<path>.*)$
The current path, saml2/login/, didn't match any of these.


(2) Log Difference in Hue 4.2 and Hue 4.3
The logs from 4.2 and 4.3 (erroneous) show the difference in loading ‘static URL patterns’ :

1. Hue 4.2 - ‘urls DEBUG Static pattern: …’ appear in logs

…. [ skipped ] ….
[04/Feb/2019 10:35:23 +0000] urls DEBUG Dynamic pattern: <RegexURLResolver <module 'dashboard.urls' from '/path/to/hue/desktop/libs/dashboard/src/dashboard/urls.pyc'> (dashboard:dashboard) ^dashboard/>
[04/Feb/2019 10:35:23 +0000] urls DEBUG Static pattern: ('^saml2/', (<module 'libsaml.urls' from '/path/to/hue/desktop/libs/libsaml/src/libsaml/urls.pyc'>, None, None))
[04/Feb/2019 10:35:23 +0000] urls DEBUG Static pattern: ('^static\\/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/path/to/hue/build/static'})
[04/Feb/2019 10:35:23 +0000] decorators INFO AXES: BEGIN LOG
[04/Feb/2019 10:35:23 +0000] decorators INFO Using django-axes 1.5.0
[04/Feb/2019 10:35:23 +0000] middleware INFO Unloading MimeTypeJSFileFixStreamingMiddleware
[04/Feb/2019 10:35:23 +0000] middleware INFO Redirecting to login page: /
[04/Feb/2019 10:35:23 +0000] access INFO 17.149.224.49 -anon- - "GET / HTTP/1.1" (mem: 63mb)-- login redirection
[04/Feb/2019 10:35:23 +0000] access INFO 17.149.224.49 -anon- - "GET / HTTP/1.1" returned in 1ms (mem: 63mb)
[04/Feb/2019 10:35:23 +0000] access DEBUG 17.149.224.49 -anon- - "GET /saml2/login/ HTTP/1.1" (mem: 64mb)

 

2. Hue 4.3 - no static url pattern loaded shown in log

…. [ skipped ] ….
[04/Feb/2019 10:24:48 +0000] urls DEBUG Dynamic pattern: <RegexURLResolver <module 'kafka.urls' from '/path/to/hue/desktop/libs/kafka/src/kafka/urls.pyc'> (kafka:kafka) ^kafka/>
[04/Feb/2019 10:24:48 +0000] urls DEBUG Static pattern: <RegexURLPattern None ^static\/(?P<path>.*)$>
[04/Feb/2019 10:24:48 +0000] middleware INFO Unloading AuditLoggingMiddleware
[04/Feb/2019 10:24:48 +0000] middleware INFO Unloading SpnegoMiddleware
[04/Feb/2019 10:24:48 +0000] middleware INFO Unloading HueRemoteUserMiddleware
[04/Feb/2019 10:24:48 +0000] middleware INFO Unloading MimeTypeJSFileFixStreamingMiddleware
[04/Feb/2019 10:24:48 +0000] kt_renewer INFO Renewing kerberos ticket to work around kerberos 1.8.1: /usr/bin/kinit -R -c /tmp/hue_krb5_ccache
[04/Feb/2019 10:27:14 +0000] middleware INFO Redirecting to login page: /
[04/Feb/2019 10:27:14 +0000] access INFO 17.149.224.49 -anon- - "GET / HTTP/1.1" (mem: 103mb)-- login redirection
[04/Feb/2019 10:27:14 +0000] access INFO 17.149.224.49 -anon- - "GET / HTTP/1.1" returned in 2ms (mem: 103mb)
Not Found: /saml2/login/
[04/Feb/2019 10:27:14 +0000] base WARNING Not Found: /saml2/login/

 

Don't have an account?
Coming from Hortonworks? Activate your account here