Login Troubles need help asap

18 posts / 0 new
Last post
#1 Sat, 07/07/2007 - 08:31
mike

Login Troubles need help asap

Hi i am having a bit of a strange problem here, when i point my browser to my webmin / virtualmin control panel https on port 10000 via the internal Lan IP address i can log in fine but if i point my browser to the public IP address or the domain name using https on port 10000 i can connect and get the login page but i cant login, it sits there waiting for a response from the server but thats all it does. can anyone help me and tell me what i may have missed.

Sat, 07/07/2007 - 10:20
ah...lifes...good

Check out the log and see what it says:

> Webmin > System > System Logs > File /var/webmin/miniserv.error

Tue, 07/10/2007 - 15:20 (Reply to #2)
ah...lifes...good

mike, try to log in to Webmin using another connection (e.g. dial-up or someone else's computer+connection or through a web proxy) to see if it makes a difference.

I have tried to run a test server on my home network before. Because my router does not allow loopback, I can never browse my domain name or public IP on the test server. I had to use a web proxy (get from http://www.proxy4free.com/page1.html ). Anyone outside my home network could view the websites though.

Tue, 07/10/2007 - 20:25 (Reply to #3)
Joe
Joe's picture

AH is right on this one. This is a very common flaw in consumer level "routers". Mine does it too, much to my irritation Might be worth checking to see if it can be accessed by outside hosts.

There is no other port needed (except for RPC, but that has no bearing on web access) than 10000.

--

Check out the forum guidelines!

Sat, 07/07/2007 - 21:52
mike

the log file for miniserv.error says:

[code:1][04/Jul/2007:17:41:26 -0600] miniserv.pl started
[04/Jul/2007:17:41:26 -0600] PAM authentication enabled
File descriptor 19 left open
No volume groups found
File descriptor 19 left open
No volume groups found
[04/Jul/2007:22:43:58 -0600] Reloading configuration
[04/Jul/2007:23:43:55 -0600] [71.17.196.64] Bad Request : This web server is running in SSL mode. Try the URL <a href='https://srv1.novexhost.com:10000/'>https://srv1.novexhost.com:10000/&... instead.<br>
[04/Jul/2007:23:43:55 -0600] [71.17.196.64] Bad Request : This web server is running in SSL mode. Try the URL <a href='https://srv1.novexhost.com:10000/'>https://srv1.novexhost.com:10000/&... instead.<br>
Failed to initialize SSL connection
restarting miniserv
[05/Jul/2007:22:57:53 -0600] Restarting
[05/Jul/2007:22:57:55 -0600] miniserv.pl started
[05/Jul/2007:22:57:55 -0600] PAM authentication enabled
Failed to initialize SSL connection
Failed to initialize SSL connection
[05/Jul/2007:22:58:32 -0600] Reloading configuration
Error: Incorrect administration username or password
[05/Jul/2007:23:23:01 -0600] Reloading configuration
[05/Jul/2007:23:51:40 -0600] Reloading configuration
[05/Jul/2007:23:53:19 -0600] Reloading configuration
[06/Jul/2007:00:04:30 -0600] Reloading configuration
[06/Jul/2007:00:12:36 -0600] Reloading configuration
Error: '' is not a valid email address
Error: This zone already exists
[06/Jul/2007:00:17:22 -0600] [192.168.0.104] /bind8/edit_.cgi : File not found
Error: '' is not a valid email address
Error: Cannot write to directory
[06/Jul/2007:00:56:51 -0600] Reloading configuration
Error: Cannot write to directory
Error: Cannot write to directory
Error: Cannot write to directory
Error: Cannot write to directory
[06/Jul/2007:14:41:58 -0600] [71.17.196.64] Bad Request : This web server is running in SSL mode. Try the URL <a href='https://srv1.novexhost.com:10000/'>https://srv1.novexhost.com:10000/&... instead.<br>
[06/Jul/2007:14:41:58 -0600] [71.17.196.64] Bad Request : This web server is running in SSL mode. Try the URL <a href='https://srv1.novexhost.com:10000/'>https://srv1.novexhost.com:10000/&... instead.<br>
Failed to initialize SSL connection
restarting miniserv
[07/Jul/2007:00:29:49 -0600] Restarting
[07/Jul/2007:00:29:51 -0600] miniserv.pl started
[07/Jul/2007:00:29:51 -0600] PAM authentication enabled
restarting miniserv
[07/Jul/2007:00:36:34 -0600] Restarting
[07/Jul/2007:00:36:35 -0600] miniserv.pl started
[07/Jul/2007:00:36:35 -0600] PAM authentication enabled
Failed to bind to port 10000 : Address already in use
[07/Jul/2007:00:43:04 -0600] miniserv.pl started
[07/Jul/2007:00:43:04 -0600] PAM authentication enabled
restarting miniserv
[07/Jul/2007:00:52:53 -0600] Restarting
Failed to bind to port 10000 : Address already in use
[07/Jul/2007:00:53:01 -0600] miniserv.pl started
[07/Jul/2007:00:53:01 -0600] PAM authentication enabled
restarting miniserv
[07/Jul/2007:01:01:31 -0600] Restarting
Failed to bind to port 10000 : Address already in use
[07/Jul/2007:01:01:39 -0600] miniserv.pl started
[07/Jul/2007:01:01:39 -0600] PAM authentication enabled
restarting miniserv
[07/Jul/2007:01:21:39 -0600] Restarting
Failed to bind to port 10000 : Address already in use
[07/Jul/2007:01:21:46 -0600] miniserv.pl started
[07/Jul/2007:01:21:46 -0600] PAM authentication enabled[/code:1]

from that you can see that the domain is novexhost.com the hostname is srv1, i have tried all of the following access routes

https://<privateip>:10000/ this connects loads and is able to login at a fast rate
https://<publicip>:10000/ this connects loads the login page but hangs and waits durring the login
https://srv1.novexhost.com:10000/ same as above
https://www.novexhost.com:10000/ same as above

so what i am seeing is that it hangs and waits durring the login process only when i use a public access route, but if i use a private access route then it works properly

Mon, 07/09/2007 - 20:15 (Reply to #5)
Joe
Joe's picture

Not sure what to make of that, though I do know the "Address already in use" error indicates that Webmin wasn't actually stopped while restarting. This means that Webmin failed to shut it down the first time, but still wrote a new PID (this is a bit of a race condition in the Webmin initscript, that probably ought to be fixed). So, no attempts to restart are actually restarting, because the original process is not being killed.

Try the following:

killall miniserv.pl

And then restart Webmin. This will also kill your Usermin, so you'll need to restart it, too.

--

Check out the forum guidelines!

Tue, 07/10/2007 - 01:10
mike

could this also have something to do with the server haveing a private IP? the machine sites behind a router with port 10000 forwarded over to it. are there other ports that need to be forwarded over for webmin? or is it something that needs to be done in the config files for webmin?

Tue, 07/10/2007 - 04:58
mike

ok so i have tried restarting everything and that doesnt work, i still get the login screen useing both access routes, i can login fine without problems if i use the private IP address but if i use the public ip address or the domain name then i cant login, my browser just sits there waiting, webmin is running on UBUNTU 6.06.1LTS Server with 1GB Ram, does anybody have any suggestions of what i can do to fix this problem?

Tue, 07/10/2007 - 07:51 (Reply to #8)
sgrayban

Lots of errors there....

Failed to initialize SSL connection <----- no SSL connections whihch means you can't use HTTPS ---- do you have the perl module installed?

[06/Jul/2007:00:17:22 -0600] [192.168.0.104] /bind8/edit_.cgi : File not found Error: '' is not a valid email address <--- Invalid email address for the SOA admin most likely.

Error: Cannot write to directory <--- This error means it can't write a directory so check permissions.

Tue, 07/10/2007 - 11:06
mike

ok but what is causeing the problem where i can connect and login allright if i use the LAN ip address of the server but when i use the public ip address or the domain name i can only connect to the server but cannot login?

Tue, 07/10/2007 - 13:22
mike

i have just temporarly disabled ssl on the control panel and i found that i can now login from the public IP / domain name, but unfortunatly the side panel doesnt load, but if i use a private IP then the sidebar will load, any one with any new ideas about this problem of mine?

Tue, 07/10/2007 - 15:23
ah...lifes...good

To connect though a web proxy on MS Internet Explorer...

> Tools > Internet Options > Connections > Lan Settings > Proxy server > *tick checkbox & enter proxy IP and port

Tue, 07/10/2007 - 20:23
mike

right now i have it temporarly fixed no SSL though but it only opened a double standard on the system, if i load it up now with a subdomain like www attached to the domain name then once i am loged in the sidebar down the left wont load up but if i log in via the domain without anything attached to the subdomain slot then everything works just dandy.

Tue, 07/10/2007 - 20:30 (Reply to #13)
Joe
Joe's picture

<div class='quote'>right now i have it temporarly fixed no SSL though but it only opened a double standard on the system, if i load it up now with a subdomain like www attached to the domain name then once i am loged in the sidebar down the left wont load up but if i log in via the domain without anything attached to the subdomain slot then everything works just dandy.</div>

Actually this kinda sounds like maybe a DNS issue. Maybe. Kinda. It's not something I've ever seen before, anyway. ;-)

If you'd like to send over the hostname and some login details (probably don't need root to see what's happening here, but might want it if I see an obvious way to fix it) to me via email, I'll drop in and have a look.

--

Check out the forum guidelines!

Tue, 07/10/2007 - 22:02
mike

ok so i played around with things, rebooted the machine, etc. etc. now i have it working properly via http://www.novexhost.com:10000/ as well as http://novexhost.com:10000/ but if enable SSL and point my browser to https://www.novexhost.com:10000/ then things dont want to work properly for me. my domain is hosted on the nameservers of domain registrar.

Tue, 07/10/2007 - 22:05
mike

there i just setup a demo user so you could test what is happening, you can use any of the urls above with the login name &quot;virt&quot; and the password &quot;demo&quot; it is set in demo mode as an enduser

Wed, 07/11/2007 - 02:25 (Reply to #16)
Joe
Joe's picture

Howdy Mike,

You've got a router problem. I'm able to login and poke around just fine. Everything looks reasonably zippy and everything does appear when I hit it via https.

You'll need to keep hitting the private IP from inside, and the public IP from outside...or get a router that can do actual, you know, routing. You're not alone, my router here at the house sucks, too. ;-)

--

Check out the forum guidelines!

Wed, 07/11/2007 - 07:16
mike

oh darn, well the machine you connected to earlier this evening is actually behind 2 routers a &quot;D-Link 604&quot; which i am assuming is the problem and an &quot;SMC Barracade Wireless Router&quot; which i dont have any of these routing problems. so thanks for testing it for me, i will have a look around at the computer shop as soon as i can afford to purchase one.

Topic locked