Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

MemoryError and 500 Error when migrating EasyApache3 to EasyApache4

Discussion in 'EasyApache' started by stapuff106, Sep 15, 2017.

Tags:
  1. stapuff106

    stapuff106 Member

    Joined:
    Aug 4, 2017
    Messages:
    17
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Chicago
    cPanel Access Level:
    Root Administrator
    I attempted to upgrade from EasyApache3 to 4 and then add HTTP2


    Edit:
    EasyApache4 upgraded fine
    I went back in and selected HTTP2 hit provision and upgraded fine.
    Tested the http2 was working in Chrome.
    I got an error message in WHM that I need to update cache or something like that via yum and I did it. Was in the process of rebuilding when I inadvertently hit the X instead of the minimize window. Then all hell broke loose.

    I call GoDaddy and the only response I could get from them was try to revert back to EasyApache3. With no luck.


    Getting the following:
    Can't fork: Cannot allocate memory at /usr/local/cpanel/Cpanel/SafeRun/InOut.pm line 44.
    Can't fork: Cannot allocate memory at /usr/local/cpanel/Cpanel/SafeRun/Dynamic.pm line 47.

    MemoryError





    I run the following: /scripts/migrate_ea3_to_ea4 --revert --run
    Error: yum is too old for ea4 (it does not support the --assumeno flag), please update yum (yum update -y yum) and try again.

    I run the following: yum update

    Loaded plugins: fastestmirror, priorities, universal-hooks
    Setting up Update Process
    Determining fastest mirrors
    epel/metalink | 9.9 kB 00:00
    * EA4: 104.219.172.10
    * cpanel-addons-production-feed: 104.219.172.10
    * base: mirror.sigmanet.com
    * centosplus: mirror.sjc02.svwh.net
    * contrib: mirror.web-ster.com
    * epel: mirror.sfo12.us.leaseweb.net
    * extras: mirror.san.fastserv.com
    * ius: mirrors.kernel.org
    * rpmforge: mirror.hmc.edu
    * updates: centos.mirror.ndchost.com
    EA4 | 3.0 kB 00:00 ...
    EA4/primary_db | 31 MB 00:01
    cpanel-addons-production-feed | 2.9 kB 00:00 ...
    cpanel-addons-production-feed/primary_db | 9.6 kB 00:00
    base | 3.7 kB 00:00
    base/primary_db | 4.7 MB 00:00
    centosplus | 3.4 kB 00:00
    centosplus/primary_db | 2.0 MB 00:00
    contrib | 2.9 kB 00:00
    contrib/primary_db | 1.2 kB 00:00
    cpanel-plugins | 2.9 kB 00:00 ...
    cpanel-plugins/primary_db | 38 kB 00:00
    epel | 4.3 kB 00:00
    epel/primary_db | 5.9 MB 00:00
    extras | 3.4 kB 00:00
    extras/primary_db | 29 kB 00:00
    ius | 2.3 kB 00:00
    ius/primary_db | 226 kB 00:00
    letsencrypt-cpanel | 2.9 kB 00:00
    letsencrypt-cpanel/primary_db | 3.8 kB 00:00
    rpmforge | 1.9 kB 00:00
    rpmforge/primary_db | 2.7 MB 00:00
    updates | 3.4 kB 00:00
    updates/primary_db | 3.6 MB 00:00
    Traceback (most recent call last):
    File "/usr/bin/yum", line 29, in <module> yummain.user_main(sys.argv[1:], exit_code=True)
    File "/usr/share/yum-cli/yummain.py", line 298, in user_main errcode = main(args)
    File "/usr/share/yum-cli/yummain.py", line 146, in main result, resultmsgs = base.doCommands()
    File "/usr/share/yum-cli/cli.py", line 440, in doCommands return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
    File "/usr/share/yum-cli/yumcommands.py", line 233, in doCommand return base.updatePkgs(extcmds, update_to=(basecmd == 'update-to'))
    File "/usr/share/yum-cli/cli.py", line 730, in updatePkgs self.update()
    File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 3820, in update updates = self.up.getUpdatesTuples()
    File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 926, in <lambda> up = property(fget=lambda self: self._getUpdates(),
    File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 744, in _getUpdates self._up = rpmUtils.updates.Updates(self.rpmdb.simplePkgList(), self.pkgSack.simplePkgList())
    File "/usr/lib/python2.6/site-packages/yum/packageSack.py", line 549, in simplePkgList patterns, ignore_case)
    File "/usr/lib/python2.6/site-packages/yum/packageSack.py", line 599, in _computeAggregateListResult sackResult = apply(method, args)
    File "/usr/lib/python2.6/site-packages/yum/sqlitesack.py", line 1697, in simplePkgList pkgtup = self._pkgtupByKeyData(repo, x['pkgKey'], x)
    File "/usr/lib/python2.6/site-packages/yum/sqlitesack.py", line 768, in _pkgtupByKeyData if self._pkgExcludedRKD(repo, pkgKey, data):
    File "/usr/lib/python2.6/site-packages/yum/sqlitesack.py", line 672, in _pkgExcludedRKD return self._pkgExcludedRKNEVRA(repo, pkgKey, n,e,v,r,a)
    File "/usr/lib/python2.6/site-packages/yum/sqlitesack.py", line 658, in _pkgExcludedRKNEVRA self._exclude_whitelist.add((repo, pkgKey))
    MemoryError
    no mem for new parser
    Error in atexit._run_exitfuncs:
    Traceback (most recent call last):
    File "/usr/lib64/python2.6/atexit.py", line 24, in _run_exitfuncs func(*targs, **kargs)
    File "/usr/lib/python2.6/site-packages/yum/plugins.py", line 176, in run conduitcls = eval(conduitcls) # Convert name to class object
    MemoryError
    Error in sys.exitfunc:
    Traceback (most recent call last):
    File "/usr/lib64/python2.6/atexit.py", line 24, in _run_exitfuncs func(*targs, **kargs)
    File "/usr/lib/python2.6/site-packages/yum/plugins.py", line 176, in run conduitcls = eval(conduitcls) # Convert name to class object
    MemoryError


    I run the following: yum -y update --skip-broken
    I get the same as above

    I run the following: yum -y update --exclude=bind* --exclude=mod_auth*
    I get the same above

    I run the following yum makecache
    It goes through

    I run the following: whmapi1 package_manager_fixcache

    metadata:
    command: package_manager_fixcache
    reason: "Can't fork: Cannot allocate memory at /usr/local/cpanel/Cpanel/SafeRun/Dynamic.pm line 47.\n"
    result: 0
    version: 1


    I run the follwoing:yum clean all
    Loaded plugins: fastestmirror, priorities, universal-hooks
    Cleaning repos: EA4 cpanel-addons-production-feed base centosplus contrib
    : cpanel-plugins epel extras ius letsencrypt-cpanel rpmforge
    : updates
    Cleaning up Everything
    Cleaning up list of fastest mirrors
     
    #1 stapuff106, Sep 15, 2017
    Last edited: Sep 15, 2017
  2. stapuff106

    stapuff106 Member

    Joined:
    Aug 4, 2017
    Messages:
    17
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Chicago
    cPanel Access Level:
    Root Administrator
    I ran the following: grep MPM /var/cpanel/easy/apache/profile/_main.yaml

    Returns
    "MPMEvent": 0
    "MPMItk": 0
    "MPMLeader": 0
    "MPMPerchild": 0
    "MPMPrefork": 1
    "MPMThreadpool": 0
    "MPMWorker": 0

    I ran the following: free -m
    total used free shared buffers cached
    Mem: 2048 1900 147 7 0 956
    -/+ buffers/cache: 943 1104
    Swap: 0 0 0


    I ran the following: ulimit -a
    core file size (blocks, -c) 0
    data seg size (kbytes, -d) unlimited
    scheduling priority (-e) 0
    file size (blocks, -f) unlimited
    pending signals (-i) 514775
    max locked memory (kbytes, -l) 64
    max memory size (kbytes, -m) unlimited
    open files (-n) 1024
    pipe size (512 bytes, -p) 8
    POSIX message queues (bytes, -q) 819200
    real-time priority (-r) 0
    stack size (kbytes, -s) 10240
    cpu time (seconds, -t) unlimited
    max user processes (-u) 514775
    virtual memory (kbytes, -v) unlimited
    file locks (-x) unlimited
    • CENTOS 6.8 virtuozzo
    • v66.0.22
     
    #2 stapuff106, Sep 15, 2017
    Last edited: Sep 15, 2017
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Can you try using "WHM >> Rebuild RPM Database" and then running the following commands to see if it solves the issue and allows you to continue using EasyApache 4?

    Code:
    yum clean all
    yum update
    If this doesn't help, note the error messages suggest your system is running out of memory. Have you checked to see which processes are using up the memory on your server?

    Thank you.
     
    stapuff106 likes this.
  4. stapuff106

    stapuff106 Member

    Joined:
    Aug 4, 2017
    Messages:
    17
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Chicago
    cPanel Access Level:
    Root Administrator
    Hey Michael,

    I did what you had suggested last Friday. Has to act then so I just got another server package and switch all my sites over to the new server.

    I appreciate the response back.

    Kurt
     
Loading...

Share This Page