shinyproxy icon indicating copy to clipboard operation
shinyproxy copied to clipboard

Authentication taking too long (+-40 secs) in login page

Open PauloJhonny opened this issue 4 years ago • 3 comments

Hi,

I'm using shinyproxy 2.5.0 and LDAP authentication.

Sometimes when I try to login it takes about 40 seconds. It only returns to normal time when I restart the shinyproxy service.

I'm trying to figure out the exact time this happens again after restarting the shinyproxy service.

I couldn't find in the log file what could be happening. Also, when we were using shinyproxy version 2.3.0 this never happened.

Do you have any idea how to solve this problem?

Thank you so much!

PauloJhonny avatar Jul 13 '21 19:07 PauloJhonny

Hi

I never experienced this problem myself and don't really have a clue what could cause this. You could enable more verbose logging for the ldap component using:

logging:
  level:
    org:
      springframework:
        security:
          ldap: DEBUG

Maybe that will give a useful error/debug message.

LEDfan avatar Jul 16 '21 07:07 LEDfan

Hi, this issue was opened a long time ago. Did you find anything in the logs in the meantime?

LEDfan avatar Mar 09 '23 10:03 LEDfan

Hi, @LEDfan. Unfortunately I can’t remember exactly what happened, but I think it was something wrong with LDAP authentication.

Using shinyproxy 2.6.0 the problem showed up again this year. It was a LDAP problem and it was solved. But now when I try to login and logout several times in sequence (just testing), it shows up… if i login normally the problem doesn’t happen. Thank you for the amazing job you’re doing.

`2023-02-06 13:23:36.268 ERROR 1 --- [XNIO-1 task-4] w.a.UsernamePasswordAuthenticationFilter : An internal error occurred while trying to authenticate the user.

org.springframework.security.authentication.InternalAuthenticationServiceException: ad.mppr.mp.br:389; nested exception is javax.naming.CommunicationException: ad.mppr.mp.br:389 [Root exception is java.net.ConnectException: Connection timed out (Connection timed out)]`

PauloJhonny avatar Mar 09 '23 10:03 PauloJhonny