Skip to content

Blank page and fatal error (memory exhausted / maximum function level reached) when no DB connection #1085

Closed

Description

@RandolfCarter

When the mysql server is not available I get a blank page and the following error in the webserver error log:

PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 80 bytes) in /var/www/owncloud/lib/db.php on line 169

Tried it because it had come up in the forum, another user there reported another error for that case:

Fatal error: Maximum function nesting level of '100' reached, aborting! in /var/www/html/owncloud-4.5.5/lib/db.php on line 58

See also in the forum: http://forum.owncloud.org/viewtopic.php?f=3&t=7420#p16834 .

Expect result: A simple message like "Database not available" in the browser window, and either no message in the server log or one reflecting the actual problem (maybe also in the owncloud log instead).

OC version: 4.5.5
Server: Apache 2.2.22 on Ubuntu 12.04 Server (64 bit)
PHP 5.3.10-1ubuntu3.4
MySQL v14.14 Distrib 5.5.28

Activity

  1. DeepDiver1975 commented on Jan 4, 2013

    @DeepDiver1975
    Contributor

    Which version?
    Which server environment?

  2. RandolfCarter commented on Jan 4, 2013

    @RandolfCarter
    ContributorAuthor

    @DeepDiver1975 Ah yes forgot that, added it to the original description now

  3. MTGap commented on Jan 6, 2013

    @MTGap
    Contributor

    It's because there's a loop of trying to generate an error page. I'm working on it now.

  4. RandolfCarter commented on Jan 6, 2013

    @RandolfCarter
    ContributorAuthor

    Thanks!

  5. DeepDiver1975 commented on Jan 22, 2013

    @DeepDiver1975
    Contributor

    fixed with the upcoming OC5
    backport pending

  6. DeepDiver1975 commented on Jan 26, 2013

    @DeepDiver1975
    Contributor

    #1323 fixes this in stable45
    will be shipped with 4.5.7

  7. RandolfCarter commented on Mar 27, 2013

    @RandolfCarter
    ContributorAuthor

    Yep, I can confirm this is fixed on my 4.5.8. In case of no DB connection it now shows a clean error message: "Failed to connect to database", as I expect it would! Thanks!

  8. locked as resolved and limited conversation to collaborators on Aug 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions