Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Trying integrate Google IDP with HUE but it throws 403 error.

avatar
New Contributor

Please find below the error message

[04/Apr/2023 11:48:17 +0000] views        DEBUG    Login process started

Traceback (most recent call last):

  File "/usr/lib/python2.7/logging/handlers.py", line 579, in emit

    self.send(s)

  File "/usr/lib/python2.7/logging/handlers.py", line 513, in send

    self.createSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 493, in createSocket

    self.sock = self.makeSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 474, in makeSocket

    s.connect((self.host, self.port))

  File "/usr/lib/python2.7/socket.py", line 228, in meth

    return getattr(self._sock,name)(*args)

TypeError: an integer is required

Logged from file mdstore.py, line 605

[04/Apr/2023 11:48:17 +0000] mdstore      DEBUG    service => {'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST': [{'binding': 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST', '__class__': 'urn:oasis:names:tc:SAML:2.0:metadata&SingleSignOnService', 'location': 'https://accounts.google.com/o/saml2/idp?idpid=xxxxx'}], 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect': [{'binding': 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect', '__class__': 'urn:oasis:names:tc:SAML:2.0:metadata&SingleSignOnService', 'location': 'https://accounts.google.com/o/saml2/idp?idpid=xxxxx'}]}

Traceback (most recent call last):

  File "/usr/lib/python2.7/logging/handlers.py", line 579, in emit

    self.send(s)

  File "/usr/lib/python2.7/logging/handlers.py", line 513, in send

    self.createSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 493, in createSocket

    self.sock = self.makeSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 474, in makeSocket

    s.connect((self.host, self.port))

  File "/usr/lib/python2.7/socket.py", line 228, in meth

    return getattr(self._sock,name)(*args)

TypeError: an integer is required

Logged from file views.py, line 153

[04/Apr/2023 11:48:17 +0000] views        DEBUG    Trying binding urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect for IDP None

Traceback (most recent call last):

  File "/usr/lib/python2.7/logging/handlers.py", line 579, in emit

    self.send(s)

  File "/usr/lib/python2.7/logging/handlers.py", line 513, in send

    self.createSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 493, in createSocket

    self.sock = self.makeSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 474, in makeSocket

    s.connect((self.host, self.port))

  File "/usr/lib/python2.7/socket.py", line 228, in meth

    return getattr(self._sock,name)(*args)

TypeError: an integer is required

Logged from file mdstore.py, line 605

[04/Apr/2023 11:48:17 +0000] mdstore      DEBUG    service => {'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST': [{'binding': 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST', '__class__': 'urn:oasis:names:tc:SAML:2.0:metadata&SingleSignOnService', 'location': 'https://accounts.google.com/o/saml2/idp?idpid=xxxx'}], 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect': [{'binding': 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect', '__class__': 'urn:oasis:names:tc:SAML:2.0:metadata&SingleSignOnService', 'location': 'https://accounts.google.com/o/saml2/idp?idpid=xxxx'}]}

Traceback (most recent call last):

  File "/usr/lib/python2.7/logging/handlers.py", line 579, in emit

    self.send(s)

  File "/usr/lib/python2.7/logging/handlers.py", line 513, in send

    self.createSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 493, in createSocket

    self.sock = self.makeSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 474, in makeSocket

    s.connect((self.host, self.port))

  File "/usr/lib/python2.7/socket.py", line 228, in meth

    return getattr(self._sock,name)(*args)

TypeError: an integer is required

Logged from file mdstore.py, line 1029

[04/Apr/2023 11:48:17 +0000] mdstore      DEBUG    service(https://accounts.google.com/o/saml2?idpid=xxxxx, idpsso_descriptor, single_sign_on_service, None)

Traceback (most recent call last):

  File "/usr/lib/python2.7/logging/handlers.py", line 579, in emit

    self.send(s)

  File "/usr/lib/python2.7/logging/handlers.py", line 513, in send

    self.createSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 493, in createSocket

    self.sock = self.makeSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 474, in makeSocket

    s.connect((self.host, self.port))

  File "/usr/lib/python2.7/socket.py", line 228, in meth

    return getattr(self._sock,name)(*args)

TypeError: an integer is required

Logged from file mdstore.py, line 605

[04/Apr/2023 11:48:17 +0000] mdstore      DEBUG    service => {'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST': [{'binding': 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST', '__class__': 'urn:oasis:names:tc:SAML:2.0:metadata&SingleSignOnService', 'location': 'https://accounts.google.com/o/saml2/idp?idpid=xxxxx'}], 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect': [{'binding': 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect', '__class__': 'urn:oasis:names:tc:SAML:2.0:metadata&SingleSignOnService', 'location': 'https://accounts.google.com/o/saml2/idp?idpid=xxxxx'}]}

Traceback (most recent call last):

  File "/usr/lib/python2.7/logging/handlers.py", line 579, in emit

    self.send(s)

  File "/usr/lib/python2.7/logging/handlers.py", line 513, in send

    self.createSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 493, in createSocket

    self.sock = self.makeSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 474, in makeSocket

    s.connect((self.host, self.port))

  File "/usr/lib/python2.7/socket.py", line 228, in meth

    return getattr(self._sock,name)(*args)

TypeError: an integer is required

Logged from file client_base.py, line 146

[04/Apr/2023 11:48:17 +0000] client_base  WARNING  The SAML service provider accepts unsigned SAML Responses and Assertions. This configuration is insecure.

Traceback (most recent call last):

  File "/usr/lib/python2.7/logging/handlers.py", line 579, in emit

    self.send(s)

  File "/usr/lib/python2.7/logging/handlers.py", line 513, in send

    self.createSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 493, in createSocket

    self.sock = self.makeSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 474, in makeSocket

    s.connect((self.host, self.port))

  File "/usr/lib/python2.7/socket.py", line 228, in meth

    return getattr(self._sock,name)(*args)

TypeError: an integer is required

Logged from file views.py, line 176

[04/Apr/2023 11:48:17 +0000] views        DEBUG    Redirecting user to the IdP via urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect binding.

Traceback (most recent call last):

  File "/usr/lib/python2.7/logging/handlers.py", line 579, in emit

    self.send(s)

  File "/usr/lib/python2.7/logging/handlers.py", line 513, in send

    self.createSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 493, in createSocket

    self.sock = self.makeSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 474, in makeSocket

    s.connect((self.host, self.port))

  File "/usr/lib/python2.7/socket.py", line 228, in meth

    return getattr(self._sock,name)(*args)

TypeError: an integer is required

Logged from file mdstore.py, line 1029

[04/Apr/2023 11:48:17 +0000] mdstore      DEBUG    service(https://accounts.google.com/o/saml2?idpid=xxxxx, idpsso_descriptor, single_sign_on_service, urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect)

Traceback (most recent call last):

  File "/usr/lib/python2.7/logging/handlers.py", line 579, in emit

    self.send(s)

  File "/usr/lib/python2.7/logging/handlers.py", line 513, in send

    self.createSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 493, in createSocket

    self.sock = self.makeSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 474, in makeSocket

    s.connect((self.host, self.port))

  File "/usr/lib/python2.7/socket.py", line 228, in meth

    return getattr(self._sock,name)(*args)

TypeError: an integer is required

Logged from file mdstore.py, line 605

[04/Apr/2023 11:48:17 +0000] mdstore      DEBUG    service => [{'binding': 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect', '__class__': 'urn:oasis:names:tc:SAML:2.0:metadata&SingleSignOnService', 'location': 'https://accounts.google.com/o/saml2/idp?idpid=xxxxxx'}]

Traceback (most recent call last):

  File "/usr/lib/python2.7/logging/handlers.py", line 579, in emit

    self.send(s)

  File "/usr/lib/python2.7/logging/handlers.py", line 513, in send

    self.createSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 493, in createSocket

    self.sock = self.makeSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 474, in makeSocket

    s.connect((self.host, self.port))

  File "/usr/lib/python2.7/socket.py", line 228, in meth

    return getattr(self._sock,name)(*args)

TypeError: an integer is required

Logged from file client.py, line 111

[04/Apr/2023 11:48:17 +0000] client       INFO     destination to provider: https://accounts.google.com/o/saml2/idp?idpid=xxxxxx

Traceback (most recent call last):

  File "/usr/lib/python2.7/logging/handlers.py", line 579, in emit

    self.send(s)

  File "/usr/lib/python2.7/logging/handlers.py", line 513, in send

    self.createSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 493, in createSocket

    self.sock = self.makeSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 474, in makeSocket

    s.connect((self.host, self.port))

  File "/usr/lib/python2.7/socket.py", line 228, in meth

    return getattr(self._sock,name)(*args)

TypeError: an integer is required

Logged from file entity.py, line 487

[04/Apr/2023 11:48:17 +0000] entity       INFO     REQUEST: <?xml version='1.0' encoding='UTF-8'?>

<samlp:AuthnRequest xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" AssertionConsumerServiceURL="https://ec2-34-228-158-47.compute-1.amazonaws.com:8001/saml2/acs/" Destination="https://accounts.google.com/o/saml2/idp?idpid=xxxxx" ID="id-oKGKmj1q06Be93MN4" IssueInstant="2023-04-04T18:48:17Z" ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Version="2.0"><saml:Issuer Format="urn:oasis:names:tc:SAML:2.0:nameid-format:entity">https://ec2-34-207-81-188.compute-1.amazonaws.com:8001/saml2/metadata/</saml:Issuer><samlp:NameIDPolicy AllowCreate="false" Format="urn:oasis:names:tc:SAML:2.0:nameid-format:transient" /></samlp:AuthnRequest>

Traceback (most recent call last):

  File "/usr/lib/python2.7/logging/handlers.py", line 579, in emit

    self.send(s)

  File "/usr/lib/python2.7/logging/handlers.py", line 513, in send

    self.createSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 493, in createSocket

    self.sock = self.makeSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 474, in makeSocket

    s.connect((self.host, self.port))

  File "/usr/lib/python2.7/socket.py", line 228, in meth

    return getattr(self._sock,name)(*args)

TypeError: an integer is required

Logged from file client.py, line 120

[04/Apr/2023 11:48:17 +0000] client       INFO     AuthNReq: <?xml version='1.0' encoding='UTF-8'?>

<samlp:AuthnRequest xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" AssertionConsumerServiceURL="https://ec2-34-228-158-47.compute-1.amazonaws.com:8001/saml2/acs/" Destination="https://accounts.google.com/o/saml2/idp?idpid=xxxxx" ID="id-oKGKmj1q06Be93MN4" IssueInstant="2023-04-04T18:48:17Z" ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Version="2.0"><saml:Issuer Format="urn:oasis:names:tc:SAML:2.0:nameid-format:entity">https://ec2-34-207-81-188.compute-1.amazonaws.com:8001/saml2/metadata/</saml:Issuer><samlp:NameIDPolicy AllowCreate="false" Format="urn:oasis:names:tc:SAML:2.0:nameid-format:transient" /></samlp:AuthnRequest>

Traceback (most recent call last):

  File "/usr/lib/python2.7/logging/handlers.py", line 579, in emit

    self.send(s)

  File "/usr/lib/python2.7/logging/handlers.py", line 513, in send

    self.createSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 493, in createSocket

    self.sock = self.makeSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 474, in makeSocket

    s.connect((self.host, self.port))

  File "/usr/lib/python2.7/socket.py", line 228, in meth

    return getattr(self._sock,name)(*args)

TypeError: an integer is required

Logged from file entity.py, line 227

[04/Apr/2023 11:48:17 +0000] entity       INFO     HTTP REDIRECT

Traceback (most recent call last):

  File "/usr/lib/python2.7/logging/handlers.py", line 579, in emit

    self.send(s)

  File "/usr/lib/python2.7/logging/handlers.py", line 513, in send

    self.createSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 493, in createSocket

    self.sock = self.makeSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 474, in makeSocket

    s.connect((self.host, self.port))

  File "/usr/lib/python2.7/socket.py", line 228, in meth

    return getattr(self._sock,name)(*args)

TypeError: an integer is required

Logged from file views.py, line 235

[04/Apr/2023 11:48:17 +0000] views        DEBUG    Saving the session_id in the OutstandingQueries cache

Traceback (most recent call last):

  File "/usr/lib/python2.7/logging/handlers.py", line 579, in emit

    self.send(s)

  File "/usr/lib/python2.7/logging/handlers.py", line 513, in send

    self.createSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 493, in createSocket

    self.sock = self.makeSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 474, in makeSocket

    s.connect((self.host, self.port))

  File "/usr/lib/python2.7/socket.py", line 228, in meth

    return getattr(self._sock,name)(*args)

TypeError: an integer is required

Logged from file views.py, line 562

[04/Apr/2023 11:48:17 +0000] views        WARNING  User  is using Hue 3 UI

Traceback (most recent call last):

  File "/usr/lib/python2.7/logging/handlers.py", line 579, in emit

    self.send(s)

  File "/usr/lib/python2.7/logging/handlers.py", line 513, in send

    self.createSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 493, in createSocket

    self.sock = self.makeSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 474, in makeSocket

    s.connect((self.host, self.port))

  File "/usr/lib/python2.7/socket.py", line 228, in meth

    return getattr(self._sock,name)(*args)

TypeError: an integer is required

Logged from file utils.py, line 109

[04/Apr/2023 11:48:17 +0000] utils        DEBUG    Using `request.POST` to get username with key AXES_USERNAME_FORM_FIELD

Traceback (most recent call last):

  File "/usr/lib/python2.7/logging/handlers.py", line 579, in emit

    self.send(s)

  File "/usr/lib/python2.7/logging/handlers.py", line 513, in send

    self.createSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 493, in createSocket

    self.sock = self.makeSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 474, in makeSocket

    s.connect((self.host, self.port))

  File "/usr/lib/python2.7/socket.py", line 228, in meth

    return getattr(self._sock,name)(*args)

TypeError: an integer is required

Logged from file utils.py, line 109

[04/Apr/2023 11:48:17 +0000] utils        DEBUG    Using `request.POST` to get username with key AXES_USERNAME_FORM_FIELD

Traceback (most recent call last):

  File "/usr/lib/python2.7/logging/handlers.py", line 579, in emit

    self.send(s)

  File "/usr/lib/python2.7/logging/handlers.py", line 513, in send

    self.createSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 493, in createSocket

    self.sock = self.makeSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 474, in makeSocket

    s.connect((self.host, self.port))

  File "/usr/lib/python2.7/socket.py", line 228, in meth

    return getattr(self._sock,name)(*args)

TypeError: an integer is required

Logged from file utils.py, line 109

[04/Apr/2023 11:48:17 +0000] utils        DEBUG    Using `request.POST` to get username with key AXES_USERNAME_FORM_FIELD

Traceback (most recent call last):

  File "/usr/lib/python2.7/logging/handlers.py", line 579, in emit

    self.send(s)

  File "/usr/lib/python2.7/logging/handlers.py", line 513, in send

    self.createSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 493, in createSocket

    self.sock = self.makeSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 474, in makeSocket

    s.connect((self.host, self.port))

  File "/usr/lib/python2.7/socket.py", line 228, in meth

    return getattr(self._sock,name)(*args)

TypeError: an integer is required

Logged from file access.py, line 109

[04/Apr/2023 11:48:17 +0000] access       INFO     91.74.151.97 -anon- - "GET /saml2/login/ HTTP/1.1" returned in 35ms 403 121378 (mem: 176mb)

Traceback (most recent call last):

  File "/usr/lib/python2.7/logging/handlers.py", line 579, in emit

    self.send(s)

  File "/usr/lib/python2.7/logging/handlers.py", line 513, in send

    self.createSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 493, in createSocket

    self.sock = self.makeSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 474, in makeSocket

    s.connect((self.host, self.port))

  File "/usr/lib/python2.7/socket.py", line 228, in meth

    return getattr(self._sock,name)(*args)

TypeError: an integer is required

Logged from file middleware.py, line 386

[04/Apr/2023 11:48:18 +0000] middleware   INFO     Redirecting to login page: /

Traceback (most recent call last):

  File "/usr/lib/python2.7/logging/handlers.py", line 579, in emit

    self.send(s)

  File "/usr/lib/python2.7/logging/handlers.py", line 513, in send

    self.createSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 493, in createSocket

    self.sock = self.makeSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 474, in makeSocket

    s.connect((self.host, self.port))

  File "/usr/lib/python2.7/socket.py", line 228, in meth

    return getattr(self._sock,name)(*args)

TypeError: an integer is required

Logged from file access.py, line 109

[04/Apr/2023 11:48:18 +0000] access       INFO     91.74.151.97 -anon- - "GET / HTTP/1.1" - (mem: 176mb)-- login redirection

Traceback (most recent call last):

  File "/usr/lib/python2.7/logging/handlers.py", line 579, in emit

    self.send(s)

  File "/usr/lib/python2.7/logging/handlers.py", line 513, in send

    self.createSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 493, in createSocket

    self.sock = self.makeSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 474, in makeSocket

    s.connect((self.host, self.port))

  File "/usr/lib/python2.7/socket.py", line 228, in meth

    return getattr(self._sock,name)(*args)

TypeError: an integer is required

Logged from file access.py, line 109

[04/Apr/2023 11:48:18 +0000] access       INFO     91.74.151.97 -anon- - "GET / HTTP/1.1" returned in 1ms 302 0 (mem: 176mb)

Traceback (most recent call last):

  File "/usr/lib/python2.7/logging/handlers.py", line 579, in emit

    self.send(s)

  File "/usr/lib/python2.7/logging/handlers.py", line 513, in send

    self.createSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 493, in createSocket

    self.sock = self.makeSocket()

  File "/usr/lib/python2.7/logging/handlers.py", line 474, in makeSocket

    s.connect((self.host, self.port))

  File "/usr/lib/python2.7/socket.py", line 228, in meth

    return getattr(self._sock,name)(*args)

TypeError: an integer is required

Logged from file access.py, line 109

[04/Apr/2023 11:48:19 +0000] access       DEBUG    91.74.151.97 -anon- - "GET /saml2/login/ HTTP/1.1" - (mem: 176mb)

Traceback (

1 REPLY 1

avatar
Community Manager

@Madhes, Welcome to our community! To help you get the best possible answer, I have tagged in our Hue experts @Scharan @paras @Sean464  who may be able to assist you further.

Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.



Regards,

Vidya Sargur,
Community Manager


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community: