Opened 3 years ago

Closed 3 years ago

#43 closed defect (fixed)

ownCloud 8.1.3-13.1

Reported by: chris Owned by: chris
Priority: major Milestone: Maintenance
Component: owncloud Version:
Keywords: Cc:
Estimated Number of Hours: 0 Add Hours to Ticket: 0
Billable?: yes Total Hours: 1.5

Description

Email from Crin1:

Subject: 4 Debian package update(s) for crin1

apticron report [Thu, 17 Sep 2015 11:40:12 +0000]
========================================================================

apticron has detected that some packages need upgrading on:

        crin1
        [ 93.95.228.179 ]

The following packages are currently pending an upgrade:

        owncloud 8.1.3-13.1
        owncloud-config-apache 8.1.3-13.1
        owncloud-server 8.1.3-13.1
        php5-ldap 5.6.13+dfsg-0+deb8u1

========================================================================

Package Details:

Reading changelogs...
--- Changes for owncloud (owncloud owncloud-config-apache owncloud-server) ---
owncloud (8.1.3-13.1) stable; urgency=low

  * version number update by debtransform

 -- debtransform <build@opensuse.org>  Wed, 16 Sep 2015 14:39:25 +0000

owncloud (8.1.3-1) stable; urgency=low

  * Update to version 8.1.3

 -- Juergen Weigert <jw@owncloud.com>  Fri, 11 Sep 2015 11:48:14 +0200

owncloud (8.1.2-1) stable; urgency=low

  * Update to version 8.1.2

 -- Juergen Weigert <jw@owncloud.com>  Wed, 02 Sep 2015 12:39:29 +0200

owncloud (8.1.2~RC1-1) stable; urgency=low

  * Update to version 8.1.2~RC1

 -- Juergen Weigert <jw@owncloud.com>  Sun, 30 Aug 2015 15:20:03 +0200


owncloud (8.1.1-3) stable; urgency=low

  * Possible fix for https://github.com/owncloud/core/issues/18222

 -- Juergen Weigert <jw@owncloud.com>  Tue, 25 Aug 2015 17:42:12 +0200

owncloud (8.1.1-2) stable; urgency=low

  * Make occ executable. https://github.com/owncloud/core/issues/18508
  * Using DEBTRANSFORM-RELEASE to automate incrementing build release number.
  * Fix owncloud-server: php-script-but-no-phpX-cli-dep var/www/owncloud/occ

 -- Juergen Weigert <jw@owncloud.com>  Tue, 25 Aug 2015 14:25:48 +0200

Change History (1)

comment:1 Changed 3 years ago by chris

  • Add Hours to Ticket changed from 0 to 1.5
  • Resolution set to fixed
  • Status changed from new to closed
  • Total Hours set to 1.5

So this is the problem:

About to upgrade 'owncloud:all/unknown owncloud-config-apache:all/unknown owncloud-server:all/unknown'
The following NEW packages will be installed:
  php5-ldap{a}
The following packages will be REMOVED:
  owncloud-app-encryption{u}
The following packages will be upgraded:
  owncloud owncloud-config-apache owncloud-server{b}
3 packages upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Need to get 0 B/23.9 MB of archives. After unpacking 47.4 MB will be used.
The following packages have unmet dependencies:
 owncloud-app-files-external : Depends: owncloud-server (= 8.1.1-1) but 8.1.3-13.1 is to be installed.
 owncloud-app-files-locking : Depends: owncloud-server (= 8.1.1-1) but 8.1.3-13.1 is to be installed.
 owncloud-3rdparty : Depends: owncloud-server (= 8.1.1-1) but 8.1.3-13.1 is to be installed.
 owncloud-app-user-external : Depends: owncloud-server (= 8.1.1-1) but 8.1.3-13.1 is to be installed.
 owncloud-app-files-trashbin : Depends: owncloud-server (= 8.1.1-1) but 8.1.3-13.1 is to be installed.
 owncloud-app-files-sharing : Depends: owncloud-server (= 8.1.1-1) but 8.1.3-13.1 is to be installed.
 owncloud-app-firstrunwizard : Depends: owncloud-server (= 8.1.1-1) but 8.1.3-13.1 is to be installed.
 owncloud-server : Breaks: owncloud-3rdparty (< 8.1.3-13.1) but 8.1.1-1 is installed.
                   Breaks: owncloud-app-activity (< 8.1.3-13.1) but 8.1.1-1 is installed.
                   Breaks: owncloud-app-external (< 8.1.3-13.1) but 8.1.1-1 is installed.
                   Breaks: owncloud-app-files (< 8.1.3-13.1) but 8.1.1-1 is installed.
                   Breaks: owncloud-app-files-external (< 8.1.3-13.1) but 8.1.1-1 is installed.
                   Breaks: owncloud-app-files-locking (< 8.1.3-13.1) but 8.1.1-1 is installed.
                   Breaks: owncloud-app-files-pdfviewer (< 8.1.3-13.1) but 8.1.1-1 is installed.
                   Breaks: owncloud-app-files-sharing (< 8.1.3-13.1) but 8.1.1-1 is installed.
                   Breaks: owncloud-app-files-texteditor (< 8.1.3-13.1) but 8.1.1-1 is installed.
                   Breaks: owncloud-app-files-trashbin (< 8.1.3-13.1) but 8.1.1-1 is installed.
                   Breaks: owncloud-app-files-versions (< 8.1.3-13.1) but 8.1.1-1 is installed.
                   Breaks: owncloud-app-files-videoviewer (< 8.1.3-13.1) but 8.1.1-1 is installed.
                   Breaks: owncloud-app-firstrunwizard (< 8.1.3-13.1) but 8.1.1-1 is installed.
                   Breaks: owncloud-app-gallery (< 8.1.3-13.1) but 8.1.1-1 is installed.
                   Breaks: owncloud-app-provisioning-api (< 8.1.3-13.1) but 8.1.1-1 is installed.
                   Breaks: owncloud-app-templateeditor (< 8.1.3-13.1) but 8.1.1-1 is installed.
                   Breaks: owncloud-app-user-external (< 8.1.3-13.1) but 8.1.1-1 is installed.
                   Breaks: owncloud-app-user-ldap (< 8.1.3-13.1) but 8.1.1-1 is installed.
                   Breaks: owncloud-app-user-webdavauth (< 8.1.3-13.1) but 8.1.1-1 is installed.
 owncloud-app-files-pdfviewer : Depends: owncloud-server (= 8.1.1-1) but 8.1.3-13.1 is to be installed.
 owncloud-app-activity : Depends: owncloud-server (= 8.1.1-1) but 8.1.3-13.1 is to be installed.
 owncloud-app-files-texteditor : Depends: owncloud-server (= 8.1.1-1) but 8.1.3-13.1 is to be installed.
 owncloud-app-provisioning-api : Depends: owncloud-server (= 8.1.1-1) but 8.1.3-13.1 is to be installed.
 owncloud-app-user-webdavauth : Depends: owncloud-server (= 8.1.1-1) but 8.1.3-13.1 is to be installed.
 owncloud-app-templateeditor : Depends: owncloud-server (= 8.1.1-1) but 8.1.3-13.1 is to be installed.
 owncloud-app-files-versions : Depends: owncloud-server (= 8.1.1-1) but 8.1.3-13.1 is to be installed.
 owncloud-app-files : Depends: owncloud-server (= 8.1.1-1) but 8.1.3-13.1 is to be installed.
 owncloud-app-gallery : Depends: owncloud-server (= 8.1.1-1) but 8.1.3-13.1 is to be installed.
 owncloud-app-external : Depends: owncloud-server (= 8.1.1-1) but 8.1.3-13.1 is to be installed.
 owncloud-app-files-videoviewer : Depends: owncloud-server (= 8.1.1-1) but 8.1.3-13.1 is to be installed.
 owncloud-app-user-ldap : Depends: owncloud-server (= 8.1.1-1) but 8.1.3-13.1 is to be installed.
The following actions will resolve these dependencies:
      Remove the following packages:
1)      owncloud-3rdparty
2)      owncloud-app-activity
3)      owncloud-app-external
4)      owncloud-app-files
5)      owncloud-app-files-external
6)      owncloud-app-files-locking
7)      owncloud-app-files-pdfviewer
8)      owncloud-app-files-sharing
9)      owncloud-app-files-texteditor
10)     owncloud-app-files-trashbin
11)     owncloud-app-files-versions
12)     owncloud-app-files-videoviewer
13)     owncloud-app-firstrunwizard
14)     owncloud-app-gallery
15)     owncloud-app-provisioning-api
16)     owncloud-app-templateeditor
17)     owncloud-app-user-external
18)     owncloud-app-user-ldap
19)     owncloud-app-user-webdavauth



Accept this solution? [Y/n/q/?] n
The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     owncloud [8.1.1-1 (now)]
2)     owncloud-app-encryption [8.1.1-1 (now)]
3)     owncloud-config-apache [8.1.1-1 (now)]
4)     owncloud-server [8.1.1-1 (now)]



Accept this solution? [Y/n/q/?] n
The following actions will resolve these dependencies:

     Remove the following packages:
1)     owncloud

     Keep the following packages at their current version:
2)     owncloud-app-encryption [8.1.1-1 (now)]
3)     owncloud-config-apache [8.1.1-1 (now)]
4)     owncloud-server [8.1.1-1 (now)]



Accept this solution? [Y/n/q/?] q
Abandoning all efforts to resolve these dependencies.
Abort.

See the thread on the users list which starts here and contains:

with 8.1.3 the owncloud-app-* packagages are now consolidated into
the owncloud-server package.
We always had issues with postinstall scripts being in the wrong order,
and we no longer have a real reason to keep the apps separate.

So the upgrade should be safe, all the plugins are now in the core package, see also this ticket.

So:

The following actions will resolve these dependencies:

      Remove the following packages:  
1)      owncloud-3rdparty             
2)      owncloud-app-activity         
3)      owncloud-app-external         
4)      owncloud-app-files            
5)      owncloud-app-files-external   
6)      owncloud-app-files-locking    
7)      owncloud-app-files-pdfviewer  
8)      owncloud-app-files-sharing    
9)      owncloud-app-files-texteditor 
10)     owncloud-app-files-trashbin   
11)     owncloud-app-files-versions   
12)     owncloud-app-files-videoviewer
13)     owncloud-app-firstrunwizard   
14)     owncloud-app-gallery          
15)     owncloud-app-provisioning-api 
16)     owncloud-app-templateeditor   
17)     owncloud-app-user-external    
18)     owncloud-app-user-ldap        
19)     owncloud-app-user-webdavauth  



Accept this solution? [Y/n/q/?] y
The following packages will be REMOVED:
  owncloud-3rdparty{a} owncloud-app-activity{a} owncloud-app-encryption{u} owncloud-app-external{a} owncloud-app-files{a} 
  owncloud-app-files-external{a} owncloud-app-files-locking{a} owncloud-app-files-pdfviewer{a} 
  owncloud-app-files-sharing{a} owncloud-app-files-texteditor{a} owncloud-app-files-trashbin{a} 
  owncloud-app-files-versions{a} owncloud-app-files-videoviewer{a} owncloud-app-firstrunwizard{a} owncloud-app-gallery{a} 
  owncloud-app-provisioning-api{a} owncloud-app-templateeditor{a} owncloud-app-user-external{a} owncloud-app-user-ldap{a} 
  owncloud-app-user-webdavauth{a} 
The following packages will be upgraded:
  owncloud owncloud-config-apache owncloud-server 
3 packages upgraded, 0 newly installed, 20 to remove and 0 not upgraded.
Need to get 0 B/23.9 MB of archives. After unpacking 94.2 kB will be used.
Do you want to continue? [Y/n/?] y

I applied the update and reported what happened on GitHub and it turns out that I hit another issue due to files not being owned by www-data as expected but by owncloud so I have followed that up on another ticket.

The update recreated the symlink from /etc/apache2/conf-enabled/owncloud.conf so I deleted that and also added the following to the /etc/apache2/sites-enabled/20-owncloud.conf file:

        SetEnv HOME /var/www/owncloud
        SetEnv HTTP_HOME /var/www/owncloud

        <IfModule mod_dav.c>
                Dav off
        </IfModule>

        <Directory "/var/www/owncloud/data/">
                # just in case if .htaccess gets disabled
                Require all denied
        </Directory>

I have also updated the update script to add:

    echo "If ownCloud has been updated check if /etc/apache2/conf-available/owncloud.conf" 
    echo "has changed by looking at the timestamps, if it has merge the changes into"
    echo "/etc/apache2/sites-available/owncloud.conf and then run the following commands:"
    echo "rm /etc/apache2/conf-enabled/owncloud.conf"
    echo "chown owncloud:owncloud -R /var/www/owncloud/apps"
    echo "chown owncloud:owncloud -R /var/www/owncloud/assets"
    echo "chown owncloud:owncloud -R /var/www/owncloud/config"
    echo "chown owncloud:owncloud -R /var/www/owncloud/data"
    echo "chown owncloud:owncloud -R /var/www/owncloud/tmp"
    echo "su - owncloud -s /bin/bash"
    echo "php console.php upgrade"

And updated the copy on the wiki at wiki:AptitudeUpdateScript#a-up

This upgrade has now been completed OK as far as I'm aware so closing this ticket.

Note: See TracTickets for help on using tickets.