Unable to login as user in sonarqube

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    8.4.2.36762
  • what are you trying to achieve
    login to sonarqube server with same user account in different pc’s
  • what have you tried so far to achieve this
    By following instructions from SonarSource documentation, as admin created a new user and all permissions are given to the new user.

But the new user is unable to login SonarQube from another pc(within the same network) where SonarQube is installed and running properly.

Login is failing with authentication error.

Can anyone please help us to resolve this issue?.

Hi,

Welcome to the community!

Are you saying that credentials that work from one machine don’t from another? And if so, is it possible the keyboard layouts are different at the two machines (so that you think you’re typing the same credentials but you’re really not)?

 
Ann

Hi Ann,

Thanks for replying.

There is no difference in keyboard layouts.
But SonarQube version is different.Is it necessary that version sholud be same in both machines?

Hi,

Okay! So this is not a question of using the same credentials from 2 different places with the same SonarQube instance, but of creating accounts with the same credentials in 2 different SonarQube instances.

So… version shouldn’t matter. But server setup might. First, are you absolutely sure you’ve created accounts with those credentials in both SonarQube instances?

 
Ann

We are trying to use same credentials from 2 different places with the same SonarQube instance

Can you please share what are the requirements and procedure to achieve that?

Thanks

Hi,

Could you explain what you meant by this?

 
Ann

HI Ann,

We reverted everything that we did and started from scratch.

At present SonarQube enterprise edition local instance is running in Linux PC and as an Admin created new user with all the required permissions.
Now we want to login to that new user in a different PC.

Can you please share what are the requirements and procedure to achieve that.

Thanks,
Bhavani.

Hi Bhavani,

The user needs to be able to access the SonarQube server in a browser & submit the authentication form. That’s it. If it’s not working then you need to look for errors

  • in the browser console
  • in the server logs (probably the web.log)

 
Ann

Hi Ann,

Thanks for for your help.

By default server port is closed in my PC and i opened it with below command.

“sudo ufw allow PORT”

Now everything is working as expected.

Thanks,
Bhavani.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.