Can't access webmin - ERR_CONNECTION_REFUSED [SOLVED]

11 posts / 0 new
Last post
#1 Fri, 05/01/2015 - 04:56
afdhaal

Can't access webmin - ERR_CONNECTION_REFUSED [SOLVED]

Hi there,

I tried to search this for a long time. I couldn't get any answers. Finally decided to ask it here.

I can't access virtualmin by just going to http://mywebsite.com:10000 . When I try to go to the :10000 port, I get the following error. "ERR_CONNECTION_REFUSED".

The solution I have found so far is to open the SSH terminal(Putty) and restart the webmin with the following code. "sudo service webmin restart" When I restart it, I can access http://mywebsite.com:10000 for few hours.

When I try to go back after few hours, I get the same error "ERR_CONNECTION_REFUSED".

Is this something normal or is it a bug?

Really looking forward to get the answer.

Thank you!

Fri, 05/01/2015 - 09:55
andreychek

Howdy,

Hmm, are you perhaps using a VPS with a small amount of RAM? What is the output of this command:

free -m

If you're low on RAM, it could be causing the kernel to begin killing off processes in order to free up some memory.

-Eric

Sat, 05/02/2015 - 13:43
afdhaal

Hi andreychek,

My system has 1GB ram with 1 coreprocessor.

This is the results what I got!

free -m
             total       used       free     shared    buffers     cached
Mem:           994        885        108        223         19        389
-/+ buffers/cache:        476        517
Swap:            0          0          0

I don't have any problem in the websites. I have 4 websites in the server and everything works quiet well.

So do I have to increase the ram in order to fix my problem?

Ragards.

Mon, 05/04/2015 - 09:59
andreychek

Howdy,

Well, the various services here work differently. There are numerous Apache processes running, so even if one is killed off due to memory reasons, another would be listening still for requests. Because of that, Apache could be seeing a similar issue but it might go unnoticed.

What you're seeing is likely a RAM issue of some kind though.

Your RAM isn't that low though. I'm wondering if maybe something is occasionally using a lot of RAM.

You may want to start by disabling any services you don't need, as that could free up a lot of RAM.

For example, if you don't need Postgres and Mailman, you may want to start by disabling those.

-Eric

Mon, 05/04/2015 - 16:33
Tony89

That issue happened to me too, but I have 2gigs of ram.

Thu, 05/07/2015 - 11:58
afdhaal

Howdy,

Sorry for the late response. Really appreciate your help. I have already turened off what you have mentioned above to free up the ram!

These are the "features and plugins" I have already turned off, PostgreSQL Spam filtering Virus filtering Bootup actions Mailman Plugin SQLite Databases

I'm getting the same problem after disabling all mentioned above. What else I can do to free up some memory and to resolve my issue?

Thu, 05/07/2015 - 12:59
andreychek

Howdy,

Well, you would need to disable the services themselves, in addition to turning off the features in Virtualmin.

You can disable services in Webmin -> System -> Bootup and Shutdown.

There's some additional thoughts here on reducing memory usage:

https://www.virtualmin.com/documentation/system/low-memory

Thu, 05/07/2015 - 20:58
afdhaal

Howdy,

Thanks for the reply Andrecheck. Well, my system is 64 bit with 1Gb ram. I think that caused problem. I shuold have installed 32bit ubuntu!

But your suggestions helped me to freeup some memory! This is what I did. 1. Changed Preload Virtualmin libraries at startup? to No 2. Disabled Spamassasin, Postgres and Mailman

It seems your suggestion gave me plenty of free ram! Hope it solved the problem. I'll report if the problem continues!

Thanks

Fri, 05/08/2015 - 03:05
afdhaal

Howdy,

Andreychek, your diagnosis is correct! :P It is the problem with RAM! After disabling unwanted features, now everything works flawlessly!

Thank a lot for the help! :)

Regards!

Tue, 03/12/2019 - 04:43
superzataksam

hi,

same happening to me. I have 6 gigs of free ram. Can you help?

Thanks

Sat, 10/12/2019 - 16:05
innovativeflare
innovativeflare's picture

Try this fix: https://www.virtualmin.com/comment/818100#comment-818100

2 things I disabled afterward that really saved a lot of ram were dovecot and postfix.

Topic locked