Forums

Resolved
0 votes
Hi
just had a update through the repos of Owncloud 8.09 to 8.2.4, but when i access owncloud i get a screen with a button to upgrade.
Clicking on th putton to continue gives the following error


Exception: Updates between multiple major versions and downgrades are unsupported.
The update was unsuccessful. Please report this issue to the ownCloud community.

What can be the problem ? an how to solve
Thursday, June 02 2016, 06:37 PM
Share this post:
Responses (13)
  • Accepted Answer

    Thursday, June 02 2016, 10:07 PM - #Permalink
    Resolved
    1 votes
    I was in the same boat at Patrick. Here's how I got back to working:

    yum downgrade owncloud owncloud-database owncloud-webserver owncloud-httpd php-composer php-Assetic


    Then edit:

    /usr/share/owncloud/config/config.php


    And make sure 'maintenance' is set to 'false'.

    Finally, I had to edit:

    /usr/share/owncloud/apps/files_external/3rdparty/smb4php/smb.php


    and comment out the last two lines:


    # stream_wrapper_register('smb', 'smb_stream_wrapper')
    # or die ('Failed to register protocol');


    A hack...yup...but like Pete said above, this caught us off guard. More to come.

    B
    Like
    1
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, June 02 2016, 09:57 PM - #Permalink
    Resolved
    0 votes
    Hi Patrick,

    Our decision to follow the EPEL package for ownCloud was a mistake. We should have maintained a ClearOS specific version instead so we could manage the ownCloud release cycles better. We'll be working on it.

    On a side note, ownCloud was forked by an ownCloud founder.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, June 02 2016, 10:04 PM - #Permalink
    Resolved
    0 votes
    Strange. My ownCloud 8.0.9 to 8.2.4 upgrade went fine. Investigating further.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, June 03 2016, 05:58 PM - #Permalink
    Resolved
    0 votes
    Ben Chambers wrote:

    I was in the same boat at Patrick. Here's how I got back to working:

    yum downgrade owncloud owncloud-database owncloud-webserver owncloud-httpd php-composer php-Assetic


    Then edit:

    /usr/share/owncloud/config/config.php


    And make sure 'maintenance' is set to 'false'.

    Finally, I had to edit:

    /usr/share/owncloud/apps/files_external/3rdparty/smb4php/smb.php


    and comment out the last two lines:


    # stream_wrapper_register('smb', 'smb_stream_wrapper')
    # or die ('Failed to register protocol');


    A hack...yup...but like Pete said above, this caught us off guard. More to come.

    B


    Ben,

    This worked !!
    thanks
    The reply is currently minimized Show
  • Accepted Answer

    Friday, June 03 2016, 06:05 PM - #Permalink
    Resolved
    0 votes
    Sorry, there is still a roblem with WebDAV.
    I can't login with the app or through PC, only the webpage

    -------- UPDATE --------

    Is see this in messages,log:
    Jun  3 22:47:08 pdebrabander httpd[30887]: {PHP} Class 'Sabre\DAV\ObjectTree' not found at /usr/share/owncloud/lib/private/connector/sabre/objecttree.php#17
    Jun 3 22:47:15 pdebrabander httpd[24111]: {PHP} Class 'Sabre\DAV\ObjectTree' not found at /usr/share/owncloud/lib/private/connector/sabre/objecttree.php#17
    Jun 3 22:47:40 pdebrabander httpd[30887]: {PHP} Class 'Sabre\DAV\ObjectTree' not found at /usr/share/owncloud/lib/private/connector/sabre/objecttree.php#17


    In yum update i'm getting these errors:

    yum update

    Resolving Dependencies
    --> Running transaction check
    ---> Package clearsdn-content-filter.noarch 0:6.1-20160502.1632 will be updated
    ---> Package clearsdn-content-filter.noarch 0:6.1-20160603.1711 will be an update
    ---> Package php-Assetic.noarch 0:1.2.1-1.el7 will be updated
    --> Processing Dependency: php-composer(kriswallsmith/assetic) < 1.3 for package: owncloud-8.0.9-1.el7.noarch
    ---> Package php-Assetic.noarch 0:1.3.2-3.el7 will be an update
    --> Finished Dependency Resolution
    Error: Package: owncloud-8.0.9-1.el7.noarch (@clearos-epel-verified)
    Requires: php-composer(kriswallsmith/assetic) < 1.3
    Removing: php-Assetic-1.2.1-1.el7.noarch (@clearos-epel-verified)
    php-composer(kriswallsmith/assetic) = 1.2.1
    Updated By: php-Assetic-1.3.2-3.el7.noarch (clearos-epel-verified)
    php-composer(kriswallsmith/assetic) = 1.3.2
    You could try using --skip-broken to work around the problem
    You could try running: rpm -Va --nofiles --nodigest
    [root@pdebrabander ~]# yum downgrade php-Assetic
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, June 04 2016, 08:00 AM - #Permalink
    Resolved
    0 votes
    Ben,

    Looks like the package is not available.
    Is this correct ?

    yum install php-composer
    Loaded plugins: clearcenter-marketplace, fastestmirror
    ClearCenter Marketplace: fetching repositories...
    Loading mirror speeds from cached hostfile
    * clearos: ftp.nluug.nl
    * clearos-centos-verified: mirror1-frankfurt.clearos.com
    * clearos-contribs: ftp.nluug.nl
    * clearos-epel-verified: mirror1-frankfurt.clearos.com
    * clearos-fast-updates: download2.clearsdn.com
    * clearos-infra: ftp.nluug.nl
    * clearos-verified: mirror1-frankfurt.clearos.com
    * private-clearcenter-antimalware: download4.clearsdn.com:80
    * private-clearcenter-antispam: download4.clearsdn.com:80
    * private-clearcenter-content-filter: download2.clearsdn.com:80
    * private-clearcenter-dyndns: download2.clearsdn.com:80
    * private-clearcenter-home: download2.clearsdn.com:80
    * private-clearcenter-ids: download4.clearsdn.com:80
    * private-clearcenter-owncloud: download4.clearsdn.com:80
    * private-clearcenter-rbs: download4.clearsdn.com:80
    * private-clearcenter-verified-updates: download4.clearsdn.com:80
    * private-clearcenter-zarafa-community: download4.clearsdn.com:80
    No package php-composer available.
    Error: Nothing to do




    ----------- UPDATE ------------
    I've download the complete package from the Owncloud.org website and copied some missing files.

    The direcory /usr/share/owncloud/3rdparty/kriswallsmith was only containing /usr/share/owncloud/3rdparty/kriswallsmith/assetic/src/functions.php.
    Copied the rest from the source file

    The directorie /usr/share/owncloud/3rdparty/sabre was not avalable.
    Copied the directory completly form the source file.

    The errors are gone and i can access Owncloud from the Apps.

    Still strange that I was missing these files and directory.
    i don't know if there more files missing ?? How can i check this ??
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, June 05 2016, 07:34 PM - #Permalink
    Resolved
    0 votes
    I'm still have the problem with the yum update.
    owncloud is working, but still strange that this package is needed and not installing

    Resolving Dependencies
    --> Running transaction check
    ---> Package php-Assetic.noarch 0:1.2.1-1.el7 will be updated
    --> Processing Dependency: php-composer(kriswallsmith/assetic) < 1.3 for package: owncloud-8.0.9-1.el7.noarch
    ---> Package php-Assetic.noarch 0:1.3.2-3.el7 will be an update
    --> Finished Dependency Resolution
    Error: Package: owncloud-8.0.9-1.el7.noarch (@clearos-epel-verified)
    Requires: php-composer(kriswallsmith/assetic) < 1.3
    Removing: php-Assetic-1.2.1-1.el7.noarch (@clearos-epel-verified)
    php-composer(kriswallsmith/assetic) = 1.2.1
    Updated By: php-Assetic-1.3.2-3.el7.noarch (clearos-epel-verified)
    php-composer(kriswallsmith/assetic) = 1.3.2
    You could try using --skip-broken to work around the problem
    You could try running: rpm -Va --nofiles --nodigest
    The reply is currently minimized Show
  • Accepted Answer

    Monday, June 06 2016, 09:04 PM - #Permalink
    Resolved
    0 votes
    Thanks Ben. I was starting to stress.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, June 07 2016, 07:23 PM - #Permalink
    Resolved
    0 votes
    Hi Ben,

    There was an automatic update last night of Owncloud 8.2.4. and i've having the same problem again.
    Do i need to downgrade again or is there an other suggestion ?


    app-owncloud-core-2.1.2-1.v7 Updated Jun 07, 02:53:47
    app-owncloud-2.1.2-1.v7 Updated Jun 07, 02:53:47
    owncloud-8.2.4-1.el7 Updated Jun 07, 02:53:46
    owncloud-mysql-8.2.4-1.el7 Updated Jun 07, 02:53:46
    php-Assetic-1.3.2-3.el7 Updated Jun 07, 02:53:42
    owncloud-httpd-8.2.4-1.el7 Updated Jun 07, 02:53:42


    Please advise.
    Thanks
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, June 07 2016, 08:03 PM - #Permalink
    Resolved
    0 votes
    I just started over...mobile client is working fine, and running on 8.2.4.-1.

    Here's what I did:


    yum remove owncloud
    rm /etc/owncloud -rf
    rm /etc/owncloud.bak -rf
    cat /var/clearos/system_database/root
    /usr/clearos/sandbox/usr/bin/mysql -uroot -p"XXX"

    Where XXX is password from the cat command above.

    MariaDB [(none)]> drop database owncloud;

    rm /var/clearos/system_database/owncloud
    yum install app-owncloud


    I believe the new RPM (with a re-install like this), uses the actual username in the data folder instead of the UUID, so you may need to go and identify the folders and mv <UUID> <username> in /var/clearos/owncloud/data if you don't see your data on login.

    As I said, my mobile client is working fine.

    Only other thing I encountered was an SSL protocol error but I tracked that down to having my filter/proxy running for some testing I did earlier...turning off DG allowed me to login as normal. If you're using the content/filter, you could exclude the server to fix this, I suppose...I'll take a look at it later since it should be easy to duplicate.

    B.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, June 07 2016, 09:05 PM - #Permalink
    Resolved
    0 votes
    Ben Chambers wrote:

    I just started over...mobile client is working fine, and running on 8.2.4.-1.

    Here's what I did:


    yum remove owncloud
    rm /etc/owncloud -rf
    rm /etc/owncloud.bak -rf
    cat /var/clearos/system_database/root
    /usr/clearos/sandbox/usr/bin/mysql -uroot -p"XXX"

    Where XXX is password from the cat command above.

    MariaDB [(none)]> drop database owncloud;

    rm /var/clearos/system_database/owncloud
    yum install app-owncloud


    I believe the new RPM (with a re-install like this), uses the actual username in the data folder instead of the UUID, so you may need to go and identify the folders and mv <UUID> <username> in /var/clearos/owncloud/data if you don't see your data on login.

    As I said, my mobile client is working fine.

    Only other thing I encountered was an SSL protocol error but I tracked that down to having my filter/proxy running for some testing I did earlier...turning off DG allowed me to login as normal. If you're using the content/filter, you could exclude the server to fix this, I suppose...I'll take a look at it later since it should be easy to duplicate.

    B.

    Hi Ben,

    worked !! thanks again.
    UUID is indeed now a username

    I need to reset the admin password, because this was not working
    sudo -u apache php /usr/share/owncloud/occ user:resetpassword admin
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, June 19 2016, 02:54 AM - #Permalink
    Resolved
    0 votes
    Patrick de Brabander wrote:

    Ben Chambers wrote:

    I just started over...mobile client is working fine, and running on 8.2.4.-1.

    Here's what I did:


    yum remove owncloud
    rm /etc/owncloud -rf
    rm /etc/owncloud.bak -rf
    cat /var/clearos/system_database/root
    /usr/clearos/sandbox/usr/bin/mysql -uroot -p"XXX"

    Where XXX is password from the cat command above.

    MariaDB [(none)]> drop database owncloud;

    rm /var/clearos/system_database/owncloud
    yum install app-owncloud


    I believe the new RPM (with a re-install like this), uses the actual username in the data folder instead of the UUID, so you may need to go and identify the folders and mv <UUID> <username> in /var/clearos/owncloud/data if you don't see your data on login.

    As I said, my mobile client is working fine.

    Only other thing I encountered was an SSL protocol error but I tracked that down to having my filter/proxy running for some testing I did earlier...turning off DG allowed me to login as normal. If you're using the content/filter, you could exclude the server to fix this, I suppose...I'll take a look at it later since it should be easy to duplicate.

    B.

    Hi Ben,

    worked !! thanks again.
    UUID is indeed now a username

    I need to reset the admin password, because this was not working
    sudo -u apache php /usr/share/owncloud/occ user:resetpassword admin

    All of this worked for me too!

    Thanks to all!!!
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, August 25 2016, 05:31 PM - #Permalink
    Resolved
    0 votes
    Ben,

    Just for your information.

    I've installed a new server for a friend with ClearOS 7 Home essential and could not login as admin.
    After installation there is also no setup page or something where you can configure Owncloud for the first time.

    I did a password reset and could login as Admin,
    sudo -u apache php /usr/share/owncloud/occ user:resetpassword admin


    The users can login normally.
    The reply is currently minimized Show
Your Reply