Skip to content

Upgrade failing 7.0.5 to 8.0.1 when keeping apps folder #14677

Closed

Description

@jnfrmarks

Steps to reproduce

  1. Install owncloud 7.0.5 community
  2. Add a contact to the contacts app
  3. upgrade to 8.0.1 community

Expected behaviour

Community upgrades successfully

Actual behaviour

Get the white screen after upgrade

Server Log:

{
    "app": "PHP",
    "message": "touch(): Unable to create file /var/www/html/owncloud-ce-705/data/owncloud.log because No such file or directory at /var/www/html/owncloud-ce-705/lib/private/log/owncloud.php#49",
    "level": 3,
    "time": "2015-03-03T17:59:36+00:00"
}
{
    "reqId": "4595786090212ce600927d1fa086f7fa",
    "remoteAddr": "192.168.1.219",
    "app": "index",
    "message": {
        "Exception": {
            "Message": "",
            "Code": 0,
            "Trace": {
                "#0": [
                    "/var/www/html/owncloud-ce-705/lib/private/app.php(77):",
                    "OC_App::loadApp('activity')"
                ],
                "#1": [
                    "/var/www/html/owncloud-ce-705/lib/private/util.php(75):",
                    "OC_App::loadApps(Array)"
                ],
                "#2": [
                    "/var/www/html/owncloud-ce-705/lib/base.php(766):",
                    "OC_Util::setupFS()"
                ],
                "#3": [
                    "/var/www/html/owncloud-ce-705/index.php(36):",
                    "OC::handleRequest()"
                ],
                "#4": [
                    "{main}",
                    null
                ]
            },
            "File": "/var/www/html/owncloud-ce-705/lib/private/app.php",
            "Line": 96
        }
    },
    "level": 4,
    "time": "2015-03-03T18:02:39+00:00"
}
{
    "reqId": "eac16da71dac56d3be71ef49dac94520",
    "remoteAddr": "192.168.1.219",
    "app": "PHP",
    "message": "Class OCA\Contacts\Share\Addressbook contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (OCP\Share_Backend::isShareTypeAllowed) at /var/www/html/owncloud-ce-705/apps/contacts/lib/share/addressbook.php#130",
    "level": 3,
    "time": "2015-03-03T18:03:45+00:00"
}

Server Host info:

Ubuntu 14.04
PHP 5.5.9

Server configuration

ownCloud Edition 8.0.1 (stable)

Activity

  1. jnfrmarks commented on Mar 3, 2015

    @jnfrmarks
    Author
  2. PVince81 commented on Mar 3, 2015

    @PVince81
    Contributor

    Hmmm, I thought we were disabling 3rd party apps now during upgrade ? @DeepDiver1975

  3. PVince81 commented on Mar 3, 2015

    @PVince81
    Contributor

    @jnfrmarks I assume you are talking about tarball based updates (not RPM or DEB)

  4. jnfrmarks commented on Mar 3, 2015

    @jnfrmarks
    Author

    Yes, I'm testing with tarballs. In this test case, the contacts apps was not detected as third party.

  5. karlitschek commented on Mar 3, 2015

    @karlitschek
    Contributor

    @PVince81 @DeepDiver1975 Not sure how we detect "3rdparty" apps. Maybe the contacts app wasn´t detected correctly as 3rdparty because it was a shipped app in 7.

  6. PVince81 commented on Mar 3, 2015

    @PVince81
    Contributor

    Yeah, very likely: https://github.com/owncloud/core/pull/14282/files#diff-499598b2af703b899a7981be42dec8e0R376

    But also comes again the question of the upgrade process.
    @jnfrmarks did you do the "delete everything except data, config, extract new tarball" process ?
    In that case "everything" should include the "apps" folder that contains contacts, so it should be gone.

  7. jnfrmarks commented on Mar 3, 2015

    @jnfrmarks
    Author

    I did all of the above and THEN copied in the contacts folder from 7.0.5.

    I am getting much better behavior when copying over the 8.0.1 contacts folder from the app store - we properly come up, the contacts app is detected as third party, and is not enabled - all expected.

    I'm doing some additional test cases as requested by @MTRichards and @karlitschek

  8. jnfrmarks commented on Mar 3, 2015

    @jnfrmarks
    Author

    ok - so here's what I have found out:

    If before I start the upgrade to 8, I copy over the latest version of contacts from the appstore into the apps directory, things works perfectly: the app is detected as third party and not enabled. Once I enable it, it displays the one contact I created prior to the upgrade.

  9. PVince81 commented on Mar 3, 2015

    @PVince81
    Contributor

    Hmmm, I think you're not supposed to copy over the old contacts app from OC 7 as it is not compatible.
    But I'm pretty sure some users would be tempted to do so. (and ignore the documentation)
    That contacts/calendar apps should actually be reinstalled from the apps page directly (they will be downloaded automatically).

  10. MTRichards commented on Mar 3, 2015

    @MTRichards
    Contributor

    That contacts/calendar apps should actually be reinstalled from the apps page directly (they will be downloaded automatically).

    Is that supposed to happen automatically, or does it require me to push a button?

  11. PVince81 commented on Mar 3, 2015

    @PVince81
    Contributor

    Currently it requires you to go to the apps page and manually push a button for every 3rd party app you want to reinstall. I agree that it is not ideal from the UX point of view.

    In upgrade cases where 3rd party apps were automatically disabled the same manipulation is needed.

  12. DeepDiver1975 commented on Mar 3, 2015

    @DeepDiver1975
    Contributor

    Maybe the contacts app wasn´t detected correctly as 3rdparty because it was a shipped app in 7.

    this is exactly what happens - oc7 contacts and calendar apps have been marked as 'shipped' and therefore will not be detected.

    for sure not nice - we can try to enhance this for future releases - question is if this will ever happen again?

  13. nickvergessen commented on Mar 4, 2015

    @nickvergessen
    Contributor

    We could hardcode the check to disable calendar and contacts aswell?

  14. DeepDiver1975 commented on Mar 4, 2015

    @DeepDiver1975
    Contributor

    We could hardcode the check to disable calendar and contacts aswell?

    sure - but the question is if this will help - any change will be part of 8.0.2 - from my pov all instances did already fail while upgrading to 8.0.0 or 8.0.1

  15. changed the title [-]Upgrade failing 7.0.5 to 8.0.1 [/-] [+]Upgrade failing 7.0.5 to 8.0.1 when keeping apps folder[/+] on Mar 5, 2015
  16. DeepDiver1975 commented on Mar 6, 2015

    @DeepDiver1975
    Contributor

    I guess we can close this issue - has been addressed in #14711

  17. locked as resolved and limited conversation to collaborators on Aug 13, 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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions