Usermin login error

6 posts / 0 new
Last post
#1 Thu, 01/29/2009 - 17:38
ChrisWmJacobs

Usermin login error

I have a similar problem to the thread of "Usermin connection error", in that I can't log in. (I'm using Virtialmin Pro and it seems to of started after the 3.63 updates. At least that is when it was brought to my attention). I however can get to the login page. What happens after that is that after entering the username and password in, it just reload the login page. But I know that there is nothing wrong with Usermin because if I load the page with localhost:20000 it works. Also if turn off the firewall to test it does the same thing. But what I think is wrong is Usermin isn't allowing from the outside. I've checked the settings and have no restrictions set. When doing:

lsof -i :20000 COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME miniserv. 914 root 5u IPv4 137633133 TCP *:dnp (LISTEN)

lsof -i :10000 COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME perl 26110 root 5u IPv4 127819402 TCP *:ndmp (LISTEN) perl 26110 root 6u IPv4 127819403 UDP *:ndmp

So I think the diffence between first and second settings is the problem, but I don't know how to fix it.

Chris

Thu, 01/29/2009 - 18:01
andreychek

Hi Chris,

Is your server on a public IP, or is it behind some sort of NAT router?

Also, there's some log files in /var/usermin -- especially miniserv.error. Do you see any errors or related information in any of them?
-Eric

Tue, 02/03/2009 - 18:10 (Reply to #2)
ChrisWmJacobs

It's a public IP. The logs don't show anything. When I restart usermin, after the initial startup in the error log nothing is logged. When I said it worked only when using localhost:20000, I also meant that www.domain.com:20000 and 123.456.789.123:20000 doesn't work also. Because of that, I don't think it has anything with anything outside of the server. That's why I was thinking it had something to do with the following line not being there when I did "lsof -i :20000":

perl 26110 root 6u IPv4 127819403 UDP *:ndmp

It shows up when I do:
"lsof -i :10000"

The only thing else that I can thing that is different is that I use the Webmail Redirect (webmail.domain.com) to point to squirrelmail instead of to Usermin. But that I don't think is it because I get to the login page.

This all that shows in miniserv.error:
[03/Feb/2009:19:48:21 -0800] miniserv.pl started
[03/Feb/2009:19:48:21 -0800] PAM authentication enabled
[03/Feb/2009:19:48:21 -0800] UTMP logging enabled

This all that shows in miniserv.log
123.456.789.123 - - [03/Feb/2009:19:59:00 -0800] "POST /tools/session_login.cgi HTTP/1.1" 401 1796
123.456.789.123 - - [03/Feb/2009:19:59:00 -0800] "GET /tools/unauthenticated/style.css HTTP/1.1" 401 1796
123.456.789.123 - - [03/Feb/2009:19:59:00 -0800] "GET /tools/unauthenticated/toggleview.js HTTP/1.1" 401 1796
123.456.789.123 - - [03/Feb/2009:19:59:00 -0800] "GET /tools/unauthenticated/sorttable.js HTTP/1.1" 401 1796

Chris

Tue, 02/03/2009 - 19:06 (Reply to #3)
andreychek

Okay, interesting.

So, if you log into Virtualmin, and click Webmin -> Webmin -> Usermin Configuration -> Ports and Addresses, what do you see in "Listen on IPs and ports"?

Mine is setup with "Any Address" in the dropdown, along with 20000 as the port.

If yours isn't set to Any Address, you may want to try that there.
-Eric

Tue, 02/10/2009 - 15:52 (Reply to #4)
ChrisWmJacobs

Thats what mine is set also.

Chris

Wed, 02/11/2009 - 08:52 (Reply to #5)
ChrisWmJacobs

Ok, I checked with a fresh setup and the problem is definitely that it is missing the following:

"miniserv. 5436 root 5u IPv4 10297 UDP *:dnp "

Since a fresh install shows this.

lsof -i:20000
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
miniserv. 5436 root 4u IPv4 10296 TCP *:dnp (LISTEN)
miniserv. 5436 root 5u IPv4 10297 UDP *:dnp

So what I would like to know is if I were to uninstall Usermin and reinstalled would it mess up anything and if you thought it would fix it.

Chris

Topic locked