---
Linux dexter.vps 2.6.18-128.2.1.el5.028stab064.7 #1 SMP Wed Aug 26
15:47:17 MSD 2009 i686 GNU/Linux
---
             total       used       free     shared    buffers
cached
Mem:       1024000     629444     394556          0          0
0
-/+ buffers/cache:     629444     394556
Swap:            0          0          0

I had a lot more free memory when I tried it because I shut down all my
webservers etc. Currently I have lisp image running that is chewing up
the memory (nearly half).


On Fri, 2009-11-13 at 13:06 +0000, Michael Vogt wrote:
> @Nikolaus Rath: What specs did your system have? How much mem/swap? This
> error is even earlier than most of the problems described in the report,
> it fails already when calling "uname -r".
> 
> I wonder if for the others:
> === modified file 'DistUpgrade/DistUpgradeController.py'
> --- DistUpgrade/DistUpgradeController.py      2009-11-03 16:03:25 +0000
> +++ DistUpgrade/DistUpgradeController.py      2009-11-13 13:01:00 +0000
> @@ -1040,6 +1040,18 @@
>                  logging.error("IOError in cache.commit(): '%s'. Retrying 
> (currentTry: %s)" % (e,currentRetry))
>                  currentRetry += 1
>                  continue
> +            except OSError, e:
> +                logging.exception("cache.commit()")
> +                # deal gracefully with:
> +                #  OSError: [Errno 12] Cannot allocate memory
> +                if e.errno == 12:
> +                    self._enableAptCronJob()
> +                    msg = _("Error during commit")
> +                    msg += "\n'%s'\n" % str(e)
> +                    msg += _("Restoring original system state")
> +                    self._view.error(_("Could not install the upgrades"), 
> msg)
> +                    # abort() exits cleanly
> +                    self.abort()
>              # no exception, so all was fine, we are done
>              self._enableAptCronJob()
>              return True
> 
> would help mitigating the problem somewhat by at least restoring a clean
> system state if it happens.
>

-- 
[patch] Upgrade tool crashed with " Cannot allocate memory"
https://bugs.launchpad.net/bugs/107188
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to