Skip to content

owncloud 6 updater: update fails #5732

Closed

Description

@mokkin

Update via update from 6a2 to 6b2 fails because of unknown reasons:


    Backup-Verwaltung
    Update durchführen

Überprüfe deine Installation...
Lade Paket herunter...
Empfangen des Paketes fehlgeschlagen

Please fix this and retry.

Das Update ist fehlgeschlagen. Bitte melde dieses Problem an die ownCloud Gemeinschaft.

OC 6a2
Ubuntu 12.04 x64
SQLite 3.7.9
PHP 5.3.10-1ubuntu3.8 with Suhosin-Patch (cli) (built: Sep 4 2013 20:00:51)
apache2 -v
Server version: Apache/2.2.22 (Ubuntu)
Server built: Jul 12 2013 13:37:10

Activity

  1. VicDeo commented on Nov 6, 2013

    @VicDeo
    Contributor

    @mokkin What is logged at the admin page?

  2. mokkin commented on Nov 6, 2013

    @mokkin
    Author
    root@server:/var/www/octest/data# tail -n 100 owncloud.log 
    {"app":"PHP","message":"RecursiveDirectoryIterator::__construct(\/var\/www\/octest\/data\/test\/thumbnails\/13\/): failed to open dir: No such file or directory at \/var\/www\/octest\/lib\/private\/files\/storage\/local.php#44","level":3,"time":"2013-10-19T22:58:15+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-19T22:58:35+00:00"}
    {"app":"PHP","message":"RecursiveDirectoryIterator::__construct(\/var\/www\/octest\/data\/test\/thumbnails\/14\/): failed to open dir: No such file or directory at \/var\/www\/octest\/lib\/private\/files\/storage\/local.php#44","level":3,"time":"2013-10-19T22:58:37+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-19T22:59:06+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-19T22:59:12+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-19T22:59:12+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-19T22:59:13+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-19T22:59:13+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-19T22:59:16+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-19T22:59:19+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-19T22:59:27+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-19T22:59:29+00:00"}
    {"app":"PHP","message":"Cannot use object of type stdClass as array at \/var\/www\/octest\/lib\/private\/backgroundjob\/legacy\/queuedjob.php#13","level":3,"time":"2013-10-19T22:59:38+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-24T20:34:49+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-24T20:34:49+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-24T20:34:50+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-24T20:34:50+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-24T20:35:11+00:00"}
    {"app":"PHP","message":"PHP Startup: Unable to load dynamic library '\/usr\/lib\/php5\/20090626\/mapi.so' - libmapi.so.0: cannot open shared object file: No such file or directory at Unknown#0","level":3,"time":"2013-10-24T20:35:11+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-24T20:35:16+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-24T20:35:20+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-24T20:35:20+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-24T20:35:21+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-24T20:35:21+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-24T20:35:29+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-24T20:35:34+00:00"}
    {"app":"PHP","message":"RecursiveDirectoryIterator::__construct(\/var\/www\/octest\/data\/test\/thumbnails\/31\/): failed to open dir: No such file or directory at \/var\/www\/octest\/lib\/private\/files\/storage\/local.php#44","level":3,"time":"2013-10-24T20:35:34+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-24T20:36:50+00:00"}
    {"app":"PHP","message":"RecursiveDirectoryIterator::__construct(\/var\/www\/octest\/data\/test\/thumbnails\/32\/): failed to open dir: No such file or directory at \/var\/www\/octest\/lib\/private\/files\/storage\/local.php#44","level":3,"time":"2013-10-24T20:36:50+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-24T20:37:00+00:00"}
    {"app":"PHP","message":"RecursiveDirectoryIterator::__construct(\/var\/www\/octest\/data\/test\/thumbnails\/33\/): failed to open dir: No such file or directory at \/var\/www\/octest\/lib\/private\/files\/storage\/local.php#44","level":3,"time":"2013-10-24T20:37:00+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-24T20:37:23+00:00"}
    {"app":"PHP","message":"RecursiveDirectoryIterator::__construct(\/var\/www\/octest\/data\/test\/thumbnails\/34\/): failed to open dir: No such file or directory at \/var\/www\/octest\/lib\/private\/files\/storage\/local.php#44","level":3,"time":"2013-10-24T20:37:24+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-24T20:37:38+00:00"}
    {"app":"PHP","message":"RecursiveDirectoryIterator::__construct(\/var\/www\/octest\/data\/test\/thumbnails\/35\/): failed to open dir: No such file or directory at \/var\/www\/octest\/lib\/private\/files\/storage\/local.php#44","level":3,"time":"2013-10-24T20:37:39+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-24T20:38:56+00:00"}
    {"app":"PHP","message":"Only variables should be passed by reference at \/var\/www\/octest\/apps\/activity\/lib\/lib_activity.php#160","level":2,"time":"2013-10-24T20:38:57+00:00"}
    {"app":"PHP","message":"Undefined index: isGrouped at \/var\/www\/octest\/apps\/activity\/lib\/lib_activity.php#200","level":2,"time":"2013-10-24T20:38:57+00:00"}
    {"app":"PHP","message":"Only variables should be passed by reference at \/var\/www\/octest\/apps\/activity\/lib\/lib_activity.php#160","level":2,"time":"2013-10-24T20:38:57+00:00"}
    {"app":"PHP","message":"Undefined index: isGrouped at \/var\/www\/octest\/apps\/activity\/lib\/lib_activity.php#200","level":2,"time":"2013-10-24T20:38:57+00:00"}
    {"app":"PHP","message":"Only variables should be passed by reference at \/var\/www\/octest\/apps\/activity\/lib\/lib_activity.php#160","level":2,"time":"2013-10-24T20:38:57+00:00"}
    {"app":"PHP","message":"Undefined index: isGrouped at \/var\/www\/octest\/apps\/activity\/lib\/lib_activity.php#200","level":2,"time":"2013-10-24T20:38:57+00:00"}
    {"app":"PHP","message":"Only variables should be passed by reference at \/var\/www\/octest\/apps\/activity\/lib\/lib_activity.php#160","level":2,"time":"2013-10-24T20:38:57+00:00"}
    {"app":"PHP","message":"Only variables should be passed by reference at \/var\/www\/octest\/apps\/activity\/lib\/lib_activity.php#160","level":2,"time":"2013-10-24T20:38:57+00:00"}
    {"app":"PHP","message":"Undefined index: isGrouped at \/var\/www\/octest\/apps\/activity\/lib\/lib_activity.php#200","level":2,"time":"2013-10-24T20:38:57+00:00"}
    {"app":"PHP","message":"Only variables should be passed by reference at \/var\/www\/octest\/apps\/activity\/lib\/lib_activity.php#160","level":2,"time":"2013-10-24T20:38:57+00:00"}
    {"app":"PHP","message":"Undefined index: isGrouped at \/var\/www\/octest\/apps\/activity\/lib\/lib_activity.php#200","level":2,"time":"2013-10-24T20:38:57+00:00"}
    {"app":"PHP","message":"Only variables should be passed by reference at \/var\/www\/octest\/apps\/activity\/lib\/lib_activity.php#160","level":2,"time":"2013-10-24T20:38:57+00:00"}
    {"app":"PHP","message":"Undefined index: isGrouped at \/var\/www\/octest\/apps\/activity\/lib\/lib_activity.php#200","level":2,"time":"2013-10-24T20:38:57+00:00"}
    {"app":"PHP","message":"Only variables should be passed by reference at \/var\/www\/octest\/apps\/activity\/lib\/lib_activity.php#160","level":2,"time":"2013-10-24T20:38:57+00:00"}
    {"app":"PHP","message":"Undefined index: isGrouped at \/var\/www\/octest\/apps\/activity\/lib\/lib_activity.php#200","level":2,"time":"2013-10-24T20:38:57+00:00"}
    {"app":"PHP","message":"Only variables should be passed by reference at \/var\/www\/octest\/apps\/activity\/lib\/lib_activity.php#160","level":2,"time":"2013-10-24T20:38:57+00:00"}
    {"app":"PHP","message":"Undefined index: isGrouped at \/var\/www\/octest\/apps\/activity\/lib\/lib_activity.php#200","level":2,"time":"2013-10-24T20:38:57+00:00"}
    {"app":"PHP","message":"Only variables should be passed by reference at \/var\/www\/octest\/apps\/activity\/lib\/lib_activity.php#160","level":2,"time":"2013-10-24T20:38:57+00:00"}
    {"app":"PHP","message":"Only variables should be passed by reference at \/var\/www\/octest\/apps\/activity\/lib\/lib_activity.php#160","level":2,"time":"2013-10-24T20:38:57+00:00"}
    {"app":"PHP","message":"Undefined index: isGrouped at \/var\/www\/octest\/apps\/activity\/lib\/lib_activity.php#200","level":2,"time":"2013-10-24T20:38:57+00:00"}
    {"app":"PHP","message":"Only variables should be passed by reference at \/var\/www\/octest\/apps\/activity\/lib\/lib_activity.php#160","level":2,"time":"2013-10-24T20:38:57+00:00"}
    {"app":"PHP","message":"Only variables should be passed by reference at \/var\/www\/octest\/apps\/activity\/lib\/lib_activity.php#160","level":2,"time":"2013-10-24T20:38:57+00:00"}
    {"app":"PHP","message":"Only variables should be passed by reference at \/var\/www\/octest\/apps\/activity\/lib\/lib_activity.php#160","level":2,"time":"2013-10-24T20:38:57+00:00"}
    {"app":"PHP","message":"Undefined index: isGrouped at \/var\/www\/octest\/apps\/activity\/lib\/lib_activity.php#200","level":2,"time":"2013-10-24T20:38:57+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-24T20:39:00+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-24T20:39:00+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-24T20:39:00+00:00"}
    {"app":"PHP","message":"PHP Startup: Unable to load dynamic library '\/usr\/lib\/php5\/20090626\/mapi.so' - libmapi.so.0: cannot open shared object file: No such file or directory at Unknown#0","level":3,"time":"2013-10-24T20:39:09+00:00"}
    {"app":"PHP","message":"Cannot use object of type stdClass as array at \/var\/www\/octest\/lib\/private\/backgroundjob\/legacy\/queuedjob.php#13","level":3,"time":"2013-10-24T20:39:10+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-24T20:39:10+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-24T20:39:10+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-24T20:39:11+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-24T20:39:11+00:00"}
    {"app":"PHP","message":"PHP Startup: Unable to load dynamic library '\/usr\/lib\/php5\/20090626\/mapi.so' - libmapi.so.0: cannot open shared object file: No such file or directory at Unknown#0","level":3,"time":"2013-10-24T20:39:20+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-24T20:39:21+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-24T20:39:21+00:00"}
    {"app":"PHP","message":"strlen() expects parameter 1 to be string, array given at \/var\/www\/octest\/apps\/updater\/templates\/update.php#15","level":2,"time":"2013-10-24T20:39:24+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-24T20:39:26+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-24T20:39:26+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-24T20:39:46+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-10-24T20:39:46+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-11-06T19:17:50+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-11-06T19:17:50+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-11-06T19:17:51+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-11-06T19:17:51+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-11-06T19:18:02+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-11-06T19:18:02+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-11-06T19:18:06+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-11-06T19:18:06+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-11-06T19:18:21+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-11-06T19:18:21+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-11-06T19:18:31+00:00"}
    {"app":"updater","message":"Retrieving http:\/\/download.owncloud.org\/community\/testing\/owncloud-6.0.0beta2.tar.bz2","level":3,"time":"2013-11-06T19:18:42+00:00"}
    {"app":"updater","message":"\/tmp\/844e17e876b40e9f6e5f4ccf5733d23e.tar.bz2 extraction error","level":3,"time":"2013-11-06T19:18:42+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-11-06T19:32:29+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-11-06T19:32:29+00:00"}
    {"app":"PHP","message":"Undefined variable: params at \/var\/www\/octest\/lib\/private\/server.php#49","level":2,"time":"2013-11-06T19:32:38+00:00"}
    {"app":"updater","message":"Retrieving http:\/\/download.owncloud.org\/community\/testing\/owncloud-6.0.0beta2.tar.bz2","level":3,"time":"2013-11-06T19:32:49+00:00"}
    {"app":"updater","message":"\/tmp\/0861ee788950ea913faf1b9d48fa5d56.tar.bz2 extraction error","level":3,"time":"2013-11-06T19:32:50+00:00"}
    
  3. VicDeo commented on Nov 6, 2013

    @VicDeo
    Contributor
        {"app":"updater","message":"Retrieving http:\/\/download.owncloud.org\/community\/testing\/owncloud-6.0.0beta2.tar.bz2","level":3,"time":"2013-11-06T19:18:42+00:00"}
        {"app":"updater","message":"\/tmp\/844e17e876b40e9f6e5f4ccf5733d23e.tar.bz2 extraction error","level":3,"time":"2013-11-06T19:18:42+00:00"}
    

    will check why it can't be unpacked

  4. karlitschek commented on Nov 13, 2013

    @karlitschek
    Contributor

    the beta3 was by accident created with a new tar version which is using the new posix tar format instead of the the old gnu format. It is possible that this is not supported by your php. Please try again with the beta4 that we release later today.

  5. VicDeo commented on Dec 24, 2013

    @VicDeo
    Contributor

    tested with owncloud-6.0.0a.tar.bz2
    not reproducible.
    Closing as fixed

  6. satanasov commented on Dec 25, 2013

    @satanasov

    Just reproduced it with last version:

    {"app":"PHP","message":"strlen() expects parameter 1 to be string, array given at /www/cloud/apps/updater/templates/update.php#15","level":2,"time":"2013-12-25T20:45:31+00:00"}

  7. julien1619 commented on Jan 21, 2014

    @julien1619

    The same for me too with the last version (6.0.0a). I don't know if it's related but, the update tab is empty.
    cloud_bug

    {"app":"PHP","message":"strlen() expects parameter 1 to be string, array given at \/var\/www\/cloud\/apps\/updater\/templates\/update.php#15","level":2,"time":"2014-01-21T11:09:01+00:00"}
  8. ndjdev commented on Jan 21, 2014

    @ndjdev

    Me as well on 6.0.0a, get no update option and the same error message.

  9. DavidWiesner commented on Jan 21, 2014

    @DavidWiesner

    The same issue for me. I got strlen() expects parameter 1 to be string, array given at ....\/apps\/updater\/templates\/update.php#15
    I debug the $data Object with print_r in \/apps\/updater\/templates\/update.php#15 and got:

    Array
    (
        [version] => SimpleXMLElement Object
            (
            )
    
        [versionstring] => SimpleXMLElement Object
            (
            )
    
        [url] => SimpleXMLElement Object
            (
            )
    
        [web] => SimpleXMLElement Object
            (
            )
    
    )
    

    And yes the error is right $data[version'] isn´t a string is an Object.
    As mentioned in stackoverflow http://stackoverflow.com/a/2867601 you have to cast the values you got from simplexml_load_string() to string in lib/private/updater.php#L82. You have also fix to cache the casted $tmp-Array instead of pure $data-Object.

                  $tmp['version'] = (string) $data->version;
                  $tmp['versionstring'] = (string) $data->versionstring;
                  $tmp['url'] = (string) $data->url;
                  $tmp['web'] = (string) $data->web;
    
        // Cache the result
        \OC_Appconfig::setValue('core', 'lastupdateResult', json_encode($tmp));
    

    Please notice that Updater::check() may still return the wrong old cached result, if you have check for an update within 30 minutes before this fix.

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