Any way to override RAM check on install?

tudorh

Active Member
Dec 9, 2004
35
10
158
I just attempted to install DNSonly onto a VPS with 512MB RAM (as a 3rd backup DNS provider to about 20 domains) only to be met with this message:
(ERROR): cPanel, Inc. requires a minimum of 768 MB of RAM for your operating system.
(FATAL): Increase the server's total amount of RAM, and then reinstall cPanel & WHM.

I even tried reimaging with a 32-bit version of the OS. Still same error message.

This seems a bit arbitrary. Does DNSonly really require the same amount of RAM as a full install?

Is there some way of telling the installer to skip the RAM check?
 

24x7ss

Well-Known Member
Sep 30, 2014
272
19
68
India
cPanel Access Level
Root Administrator
Twitter
Hello,

The only way you can do so by editing the installer file but its not recommended. I would suggest you to upgrade the RAM on your system.
 

dalem

Well-Known Member
PartnerNOC
Oct 24, 2003
2,983
159
368
SLC
cPanel Access Level
DataCenter Provider
This seems a bit arbitrary. Does DNSonly really require the same amount of RAM as a full install?
No ours use only 135 and another uses 192M full of zones 30M less if we if we shutdown the MySQL server
 

tudorh

Active Member
Dec 9, 2004
35
10
158
Thanks. 24x7ss gave me the idea to look further and I found this to be successful with 11.48 and upgraded to 11.50 successfully:
  1. Run the latest-dnsonly script with the --keep switch
    Code:
    sh latest-dns-only --keep
  2. Change to the installd directory
    Code:
    cd installd
  3. edit the "install" file
    search for "$min_memory_rules"
    change your version to 512
  4. run the installer script from there:
    Code:
    ./bootstrap-dnsonly
I first attempted this on CentOS 7 64-bit, but for some reason queueprocd continuously failed to start.

Then I attempted it on CentOS 6.5 64-bit and it worked perfectly. :)

If memory becomes a real issue, then 32-bit uses less memory, and also switch off the MySQL server and use MyDNS, as @dalem says.

Thanks again! Saved me some embarrassment with my boss. "Why should a basic DNS cluster need a gig of RAM? We could build that to run on a Raspberry Pi!"
 

atmarcos

Registered
Sep 4, 2014
1
0
1
cPanel Access Level
Root Administrator
Hello,

I have a problem for cPanel DNS setup on a VPS with 512MB RAM.
----
2015-06-20 22:09:10 346 ( INFO): Checking RAM now...
2015-06-20 22:09:10 354 (ERROR): cPanel, Inc. requires a minimum of 768 MB of RAM for your operating system.
2015-06-20 22:09:10 355 (FATAL): Increase the server's total amount of RAM, and then reinstall cPanel & WHM.
Removing /root/installer.lock.
----

I saw on another topic how to remove the limitation by editing the file: install
Even so, the installation can not be done.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,250
463
Hello :)

We actually have an internal case open (#191509) that seeks to provide a feature to override the memory requirements on a cPanel DNS-Only server. There's currently no indication if this feature will come to fruition, so it's likely a good idea to submit a corresponding feature request via:

Submit A Feature Request

This will allow you to follow the progress of the feature's implementation should we decide to add it to cPanel.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,250
463
I saw on another topic how to remove the limitation by editing the file: install
Even so, the installation can not be done.
I've merged this post into this thread. The user-submitted workaround is not supported, but could you verify that you completed all of the steps in that post?

Thank you.
 
  • Like
Reactions: atmarcos

soydeedo

Registered
Aug 8, 2015
1
0
51
USA
cPanel Access Level
Root Administrator
I've merged this post into this thread. The user-submitted workaround is not supported, but could you verify that you completed all of the steps in that post?
I just wanted to chime in and say that using the --keep flag with latest-dns-only and following the rest of tudorh's steps did work for me on a VPS with 256MB RAM and 128MB swap. Everything seems to be running nicely. =)

I've had my DNS instances running on 256MB for a while, so it was a bit of a shock to see this installer limitation when one of my providers went out of business and I had to set up replacements.

Thanks, tudorh!
 

EEKdood

Member
Jan 19, 2007
14
2
153
cPanel Access Level
Root Administrator
Any luck with this lately? I have a 512mb VPS that needed reimaged and now I can't reinstall DNSONLY because of the check. The workaround doesn't work for me.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,250
463
Any luck with this lately? I have a 512mb VPS that needed reimaged and now I can't reinstall DNSONLY because of the check. The workaround doesn't work for me.
Could you let us know the specific steps you took to workaround the issue? I just completed the workaround steps on a CentOS 7 server and it worked as described.

Thank you.