Hans-Cees's picture

Hi I am using the owncloud applicance. 

However, the owncloud version has SMB bugs and the developers advise me to upgrade from 5.0.12 to 5.0.14.

 

But how can I do this? 

 

apt-get dist-upgrade does not upgrade owncloud to a higher version. Is there a way?

Forum: 
Jeremy Davis's picture

And it appears that older ownCloud versions have been removed from the repo and the only one that remains is 6.0.0a:

apt-cache policy owncloud
owncloud:
  Installed: 5.0.12-0
  Candidate: 5.0.12-0
  Package pin: (not found)
  Version table:
     6.0.0a-0 500
        500 http://download.opensuse.org/repositories/isv:/ownCloud:/community/Debian_7.0/  Packages
 *** 5.0.12-0 500
        100 /var/lib/dpkg/status

So you could upgrade to that if you wanted...

rubens's picture

ı m using debian owncloud but 5 v. how to upgrade to 6 ? ı dont know

Jeremy Davis's picture

So at the commandline of your appliance (either via SSH or Webshell) type:

apt-get update && apt-get install owncloud

It should say that it will download a significant amount of files (mine wants to download 164MB!) so just hit 'y' and let it run through... If for some reason it doesn't do that you could try:

apt-get install owncloud=6.0.2-1

Please note that these instructions will date quickly and once there is a new release the last bit ('=6.0.2-1') will need to correspond to the full new version number. That can be discovered with this command:

apt-cache showpkg owncloud
rubens's picture

in the files and database were damage? 15 gb files inside

Jeremy Davis's picture

I need more info to try to help you out... Like specific error messages, a log of what happened during the upgrade, etc... Besides it shouldn't have affected the files, although there may be database changes that make them display differently etc.

Also I didn't test it, I just passed on info gleamed from google... In afterthought, I have just considered that perhaps the TKL ownCloud appliance doesn't have the latest 5.0.x package installed, in which case we should have upgraded to 5.0.15 first...

When I get a chance I will set up a TKL ownCloud server, put some files in it and test the upgrade...

I guess worst case scenario you could reinstall the old package and restore your backup (you did run a backup before you updated right?!). OwnCloud packages can be downloaded from here.

halil's picture

I do not get an error message..I havent yet.While there if you upgrade the database to include the question of what happens? Do I need to set up a new database?If only the interface will change?

Jeremy Davis's picture

Until I get a chance to sit down and try this out myself my answers will only be guesses...

ZanziPanzi's picture

Thanks! Upgraded from 5.0.12 to 6.0.2 without problems

Jeremy Davis's picture

Thanks for posting back to confirm that it works! :)

Jasy's picture

thank you, it works for me

Hospedaje Web y Servidores Dedicados's picture

root@owncloud ~# apt-get install owncloud=6.0.3
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package owncloud

 


root@owncloud ~# apt-cache showpkg owncloud
N: Unable to locate package owncloud
root@owncloud ~#

 

Jeremy Davis's picture

apt-get update will update the available package lists which should (hopefully) allow you to update.

However, the ownCloud package hasn't always been available and if you have a very old TurnKey ownCloud appliance it may have been prior to ownCloud being installed by package management. If so I suggest that you migrate your data to a new TKL ownCloud instance and then update ownCloud to the latest.

Hospedaje Web y Servidores DEdicados's picture

well, using this manual http://doc.owncloud.org/server/6.0/admin_manual/maintenance/update.html

 

i updated it to 6.0.2 and without loosing files =)

Jeremy Davis's picture

And thanks for posting back. :)

Mods's picture

try these commands:

wget http://download.opensuse.org/repositories/isv:ownCloud:community/Debian_...

apt-key add - < Release.key

then

apt-get update && apt-get install owncloud=7.0.4-3

 

GL

Terence Oort's picture

Hi

I want to update my owncloud appliance.

But since you can't jump from v. 5 to v. 8 (tried and failed)

the repository is only listing v. 8 and not the previous versions.

I've tried the update from the owncloud site, failed

Is there perhaps another repository that the previous versions are listed?

 

Thank you very much

Regards

Terence Oort's picture

Hi

Just to inform...I came right with the update...took me awhile

but went the manual root with @Jeremy route

by getting repository URL and wget and the dpkg force install

So updated 5.0.12 to 6.0.6 to 7.0.4 to 8.0.0

Now to sort oiut the error msgs

 

Thought I share with you

Regards

John Carver's picture

I tried and failed to upgrade from version 5 installed by TurnKey.  Instead, I did a fresh install following the directions at the OpenSuse page https://software.opensuse.org/download/package?project=isv:ownCloud:community&package=owncloud (be sure to click on the Debian symbol) 

The instructions there got me to version 7.0.2, but I could never get any upgrades past that.  I recently discovered that they changed the package name from 'owncloud' to 'owncloud-server' but failed to update the instructions.  Installing owncloud-server will remove older versions of owncloud and replace with the latest 8.x.x version of ownCloud.  When I get time, I'll build a new iso with latest version.

For Debian 7.0 run the following as root:

echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/community/Debian_7.0/ /' >> /etc/apt/sources.list.d/owncloud.list 
apt-get update
apt-get install owncloud-server

You can add the repository key to apt. Keep in mind that the owner of the key may distribute updates, packages and repositories that your system will trust (more information). To add the key, run:

wget http://download.opensuse.org/repositories/isv:ownCloud:community/Debian_7.0/Release.key
apt-key add - < Release.key  

Information is free, knowledge is acquired, but wisdom is earned.

Terence's picture

Thank you for your reply I managed to upgrade my owncloud by wget then url of repository and version.deb forced the installation. repeated the above steps up until v. 7 did the auto upgrade to v. 8 Regards
John Carver's picture

I tried upgrading from version 7.0.2 to 8.0 using 'apt-get install owncloud-server' but it was not a clean upgrade.  Somehow the file '/var/www/owncloud/.htaccess' was removed but not replaced with the correct version, and the new file ownership and permissions were incorrect.

I had to download the version 8.0 .htaccess file from https://github.com/owncloud/core.  Next I copied a script from https://doc.owncloud.org/server/8.0/admin_manual/installation/installation_wizard.html#setting-strong-directory-permissions.  The script had to be modified as follows to correctly handle all the .htaccess files.  I called it fix-perms.

#!/bin/bash
ocpath='/var/www/owncloud'
htuser='www-data'

find ${ocpath}/ -type f -print0 | xargs -0 chmod 0640
find ${ocpath}/ -type d -print0 | xargs -0 chmod 0750

chown -R root:${htuser} ${ocpath}/
chown -R ${htuser}:${htuser} ${ocpath}/apps/
chown -R ${htuser}:${htuser} ${ocpath}/config/
chown -R ${htuser}:${htuser} ${ocpath}/data/

chown root:${htuser} ${ocpath}/.htaccess
chown root:${htuser} ${ocpath}/data/.htaccess
chown root:${htuser} ${ocpath}/config/.htaccess

chmod 0644 ${ocpath}/.htaccess
chmod 0644 ${ocpath}/data/.htaccess
chmod 0644 ${ocpath}/config/.htaccess

After that, I was able to login and run the database update.  Fortunately, the data directory and config.php files were not disturbed.  So far it looks like everything is working okay.  I'm using owncloud-client ver 1.7.1 on Ubuntu 14.04 LTS.

Information is free, knowledge is acquired, but wisdom is earned.

Jeremy Davis's picture

It sounds a bit tricky. I guess that's part of the issue with having such a long break between TurnKey maintenance releases... Also it seems like we might need to configure some TKLBAM hooks to make the migration process (from v13.0 -> v13.1) reliable...

kramer's picture

i just make apt-get update && apt-get upgrade && apt-get install owncloud-server

then when i relogin to owncloud page i had message that is being updatet to version 8

(all run on proxmox container)

John Carver's picture

I noticed that the day after I conducted my last tests, a new version, 8.0.0-9, of owncloud-server was released.  I haven't had time to re-test, but I think they fixed the missing file issue.

Information is free, knowledge is acquired, but wisdom is earned.

John Carver's picture

I'm also on a Proxmox vm.  I rolled back to version 7.0.2 and then ran the same commands individually. When I tried to run the update via the webpage, I get

error message

I had previously reported the problem upstream and the fix is scheduled for version 8.0.1.  Will just have to be patient.

What version of ownCloud are you starting at?  There must be something different in our environments if your update is successful and mine isn't.

Information is free, knowledge is acquired, but wisdom is earned.

John Carver's picture

I reported the missing .htaccess upstream to the ownCloud project.  It was acknowledged and reported fixed in 8.02.  However, when I retested, I found the same result.  I just filed the following report upstream.

"I just re-ran the test using 8.0.2 and experienced the same result, i.e. missing .htaccess

Starting with a stable installation of 7.0.2-1 on Debian Wheezy, I run the following commands to upgrade
apt-get update && apt-get update && apt-get install owncloud-server

When I run the last step I get
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  owncloud-3rdparty owncloud-app-activity owncloud-app-external
  owncloud-app-files owncloud-app-files-encryption owncloud-app-files-external
  owncloud-app-files-locking owncloud-app-files-pdfviewer
  owncloud-app-files-sharing owncloud-app-files-texteditor
  owncloud-app-files-trashbin owncloud-app-files-versions
  owncloud-app-files-videoviewer owncloud-app-firstrunwizard
  owncloud-app-gallery owncloud-app-provisioning-api
  owncloud-app-templateeditor owncloud-app-user-external
  owncloud-app-user-ldap owncloud-app-user-webdavauth
Suggested packages:
  php5-apcu php-apc
The following packages will be REMOVED:
  owncloud
The following NEW packages will be installed:
  owncloud-3rdparty owncloud-app-activity owncloud-app-external
  owncloud-app-files owncloud-app-files-encryption owncloud-app-files-external
  owncloud-app-files-locking owncloud-app-files-pdfviewer
  owncloud-app-files-sharing owncloud-app-files-texteditor
  owncloud-app-files-trashbin owncloud-app-files-versions
  owncloud-app-files-videoviewer owncloud-app-firstrunwizard
  owncloud-app-gallery owncloud-app-provisioning-api
  owncloud-app-templateeditor owncloud-app-user-external
  owncloud-app-user-ldap owncloud-app-user-webdavauth owncloud-server
0 upgraded, 21 newly installed, 1 to remove and 0 not upgraded.
Need to get 23.5 MB of archives.


I think the problem may be that .htaccess is not marked as a config file in the owncloud 7.x.x package and hence it is removed when the owncloud package is uninstalled.  The owncloud-server packages need to be smart enough to replace the file whenever is isn't present."

Information is free, knowledge is acquired, but wisdom is earned.

John Carver's picture

I received a reply from the ownCloud package maintainer telling me, that I should not be using apt-get install owncloud-server.  I started over (thank God for snapshots) and tried apt-get update && apt-get upgrade && apt-get install owncloud once more, but still no joy.  I tried cleaning the apt cache and running apt-get install -f owncloud but still no luck.  I checked the repository and found that both old and new versions were present.

# apt-cache show -a owncloud
Package: owncloud
Version: 8.0.2-8
Architecture: all
Maintainer: Jürgen Weigert <jw@owncloud.com>
Installed-Size: 49
Depends: owncloud-server-core, owncloud-config-apache
Recommends: mysql-server, curl, exim4 | mail-transport-agent
Suggests: clamav | clamav-daemon, smbclient, libreoffice-writer
Conflicts: owncloud-fhs
Provides: owncloud
Filename: ./all/owncloud_8.0.2-8_all.deb
Size: 26922
MD5sum: fb03273b2431f01d4cb2e462f346d61a
SHA1: eb0d9d6c8eb293d88666e4e3e087ea3413d0fa51
SHA256: b67f6ae57a9d3d6e116975a4c1f9081f9110c62d387ac5a02292a116a9aae8af
Section: devel
Priority: optional
Description: ownCloud Server - Private file sync and share server
 ownCloud Server provides you a private file sync and share
 cloud. Host this server to easily sync business or private documents
 across all your devices, and share those documents with other users of
 your ownCloud server on their devices.
 .
 ownCloud - Your Cloud, Your Data, Your Way!  www.owncloud.org

Package: owncloud
Status: install ok installed
Priority: optional
Section: devel
Installed-Size: 103611
Maintainer: Jürgen Weigert <jw@owncloud.com>
Architecture: all
Version: 7.0.2-1
Depends: apache2 | httpd, php5 (>= 5.3.3), php5-mysqlnd | php5-mysql, php5-sqlite, php5-pgsql, php5-common, php5-gd, php-xml-parser, php5-intl, php5-mcrypt, php5-curl, php5-json, ntp | time-daemon
Recommends: curl, exim4 | mail-transport-agent, php5-imagick, php5-apc
Suggests: clamav | clamav-daemon, smbclient, libav-tools | ffmpeg, libreoffice-writer
Conffiles:
 /etc/apache2/conf-available/owncloud.conf 8e2ddaaca00711d181fc467c11fbaad9
 /etc/apache2/conf.d/owncloud.conf 8e2ddaaca00711d181fc467c11fbaad9
Description: ownCloud Server - Private file sync and share server
 ownCloud Server provides you a private file sync and share
 cloud. Host this server to easily sync business or private documents
 across all your devices, and share those documents with other users of
 your ownCloud server on their devices.
 .
 ownCloud - Your Cloud, Your Data, Your Way!  www.owncloud.org

On a hunch, I tried specifying the version as described previously in this thread.

# apt-get install owncloud=8.0.2-8
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  owncloud-3rdparty owncloud-app-activity owncloud-app-external
  owncloud-app-files owncloud-app-files-encryption owncloud-app-files-external
  owncloud-app-files-locking owncloud-app-files-pdfviewer
  owncloud-app-files-sharing owncloud-app-files-texteditor
  owncloud-app-files-trashbin owncloud-app-files-versions
  owncloud-app-files-videoviewer owncloud-app-firstrunwizard
  owncloud-app-gallery owncloud-app-provisioning-api
  owncloud-app-templateeditor owncloud-app-user-external
  owncloud-app-user-ldap owncloud-app-user-webdavauth owncloud-config-apache
  owncloud-server
Suggested packages:
  clamav clamav-daemon smbclient php5-imagick libav-tools ffmpeg php5-ldap
  php5-apcu php-apc
The following NEW packages will be installed:
  owncloud-3rdparty owncloud-app-activity owncloud-app-external
  owncloud-app-files owncloud-app-files-encryption owncloud-app-files-external
  owncloud-app-files-locking owncloud-app-files-pdfviewer
  owncloud-app-files-sharing owncloud-app-files-texteditor
  owncloud-app-files-trashbin owncloud-app-files-versions
  owncloud-app-files-videoviewer owncloud-app-firstrunwizard
  owncloud-app-gallery owncloud-app-provisioning-api
  owncloud-app-templateeditor owncloud-app-user-external
  owncloud-app-user-ldap owncloud-app-user-webdavauth owncloud-config-apache
  owncloud-server
The following packages will be upgraded:
  owncloud
1 upgraded, 22 newly installed, 0 to remove and 0 not upgraded.
Need to get 23.6 MB of archives.
After this operation, 34.7 MB disk space will be freed.
Do you want to continue [Y/n]?

As you can see, it not only installed the missing owncloud-config-apache pkg, but also several other packages that were not installed when I ran apt-get install owncloud-server.  Sorry for any confusion I may have caused.  I had to remove the old apache config file for owncloud and enable UTF8 in php.ini.

 

Information is free, knowledge is acquired, but wisdom is earned.

Jeremy Davis's picture

TBH I'm not surprised that apt-get upgrade wasn't working; by default Debian won't upgrade to a major version unless you run apt-get dist-upgrade. Personally I'm a bit wary of dist-upgrade though. Back when I was first playing with Linux I accidentally destroyed my desktop Ubuntu install with a casual dist-upgrade...

When I had a play with it previously I too was surprised that it wouldn't install when you specified it explicitly with apt-get install owncloud. I was under the impression that that should make it install the next version. Obviously not! Hence why I discovered the version match method to force it to upgrade.

Mark's picture

Hello , how can I update owncloud V 5.0.12 to 7.0.5 ?

Thanks

Jeremy Davis's picture

I suggest that you carefully read through this thread and then you should have a pretty good idea of what you'll need to do.

Make sure that you have a good backup of your server (just in case something goes wrong) then away you go!

John Carver's picture

Mark,  See my reply to Peter below for an update strategy.

I started to reply to your message once before, but an errant click about half-way through caused me to lose the entire post.  Haven't had time until now to try again.

As I said below, I haven't tested the entire upgrade process, but the later portions worked well.  I hope the strategy is helpful.

Information is free, knowledge is acquired, but wisdom is earned.

Peter's picture

The repositories for owncloud 6.x 7.x are no longer available so the upgrade path to version 8 is broken. Do you have any plans to release turnkeylinux owncloud 8.0 appliance ?

Thank you

John Carver's picture

Peter, While it appears the older versions are no longer available, the last release of each major version is still available on OpenSUSE's Open Build Service.  The key is to remember that each major version is maintained in a separate repository. The ownCloud changelog contains links to the older versions. For example the 5.0.19 release can be found by following the link Packages: on the Open Build Service. Click on the Debian icon to get the instructions for the Debian repositories.  For Wheezy (Debian 7) use the following:

Note: Add the OpenSUSE Release.key before trying to run the update.  This step should only be required once (same key for all repositories)

For Debian 7.0 run the following as root:

echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/community:/5.0/Debian_7.0/ /' >> /etc/apt/sources.list.d/owncloud.list 
apt-get update
apt-get install owncloud

You can add the repository key to apt. Keep in mind that the owner of the key may distribute updates, packages and repositories that your system will trust (more information). To add the key, run:

wget http://download.opensuse.org/repositories/isv:ownCloud:community:5.0/Debian_7.0/Release.key
apt-key add - < Release.key  
The upgrade strategy for a TurnKey ownCloud v13.0 appliance would be to start with this repository and install ownCloud v5.0.19.  'apt-get install owncloud' should work, but you could also try 'apt-get upgrade' or even 'apt-get dist-upgrade'.  Then login as the admin user and complete any database updates that are needed.  Next you would change to the 6.0 repository and repeat the upgrade progress to 6.0.7, then 7.0.5, and finally 8.0.2.  The process is a bit tedious and I confess I haven't tested the complete chain but the later updates seemed to work well once I figured out what I was doing wrong (see some of my earlier posts).
 
As for an 8.x.x version for TurnKey v14.0, I have a working 8.0.2 built with TKLdev on v13.0.  I had to come up with a new method of generating SSL keys because I was having problems getting Chrome and Safari to accept the default TurnKey cert.pem.  I think I have that sorted out now and I'm working to correct some issues pointed out by running OpenVAS scans and incorporating suggestions from Ivan Ristic in his book, Bulletproof SSL and TLS.  I'm hoping to have this completed in time for the release of v14.0.
 

Information is free, knowledge is acquired, but wisdom is earned.

Jeremy Davis's picture

Hopefully John's suggestions are helpful and yes we are working on a new release. Where appliances use upstream software (as the ownCloud appliance does) they should all include the latest stable upstream version. The process (of upgrading appliances) is still at the very early stages so no ETA but stable releases should be avaialble for download within a couple of months.

Also we hope to not let the time between releases stretch out this far again...

@John, thanks so much for helping out! :)

Norman's picture

Hi Jeremy

>>  stable releases should be avaialble for download within a couple of months.

Sorry to bother you, but is there any hope for a new stable version of ownCloud?

Regards,

Norman

Jeremy Davis's picture

Yes there will be an upgraded ownCloud appliance.

Although we have not decided whether we will go with ownCloud 7 from the Debian repos (which will stay at version 7 but will get daily auto security patches so will automatically be secure). Or go with upstream ownCloud (which won't get auto security updates but will be easier for end users to manually update).

At this point we are leaning towards the ownCloud 7 (from Debian repos) direction and documenting how to update for those that want that.

Out of interest what would your preference be and why

Norman's picture

Hi Jeremy

Thanks for your update. Would prefer to see the latest version, 8.1, as it has some new nifty features and, apparently, makes upgrading easier.

Norman

Jeremy Davis's picture

I won't promise that we'll go that way; but if we don't I will make efforts to ensure that there is at least "copy/paste" documentation (if not some helper script or something...)
Dan's picture

Does anyone have the steps necessary to update from version 7.0.4 to version 8.0 or 8.1. We need some features in the later versions. I tried some of the steps in this thread, but it caused my documents to be deleted from /usr/share/owncloud. Any help would be appreciated.

Jeremy Davis's picture

For the new v14.0 version we have installed from the Debian repos. The upside of that is that the version included will get auto backported security updates. The downside is that the version is not easily upgraded... :(

And I haven't been true to my stated plan (in a post above) to provide copy/paste type documentation for updating to upstreams version... Apologies on that; but I'm not clear on when I will get a chance to do that...

Regardless I have created an issue/feature request on our issue tracker so it doesn't get forgotten (see here). If anyone wants to have a crack at this before I get to it, that would be warmly welcomed! :)

gopei's picture

Hai Jeremy, and John,..   i wan to update owncloud version how is that ???

My debian is :

Distributor ID: Debian
Description:    Debian GNU/Linux 8.1 (jessie)
Release:        8.1
Codename:       jessie

 

My OwnCloud version is : root@owncloud ~# apt-cache show -a owncloud
Package: owncloud
Status: install ok installed
Priority: extra
Section: web
Installed-Size: 26708
Maintainer: ownCloud for Debian maintainers <pkg-owncloud-maintainers@lists.alioth.debian.org>
Architecture: all
Version: 7.0.4+dfsg-4~deb8u1.

what am i to supposed to do ?? what the first time i have to do ? am i have to stop the service apache, mysql first ?? 

 

sory my bad english... thanks a lot

 

Jeremy Davis's picture

So perhaps you can help out by starting the investigation. Download TurnKey ownCloud appliance and test it our in a VM.
Jeremy Davis's picture

And it didn't go well. :(

I successfully installed ownCloud 8.1.4 (current version) from the upstream repo. The process appeared to be working fine, but the final step (in the web browser) failed with "Exception: Updates between multiple major versions and downgrades are unsupported.". So this leads me to suggest that if you want a newer version of ownCloud then you would be best to just install it to our LAMP appliance. There are plenty of instructions on the net e.g. here or here.

It looks to me like you will need to upgrade to v8.0 first. I took notes and have a theory about how you would do it (upgrade to v8.0 first, then v8.1) but I've run out of time and haven't been able to test it. Regardless I've published them in the docs (here) but as I note there very clearly they are UNTESTED! If someone can test them (and perhaps improve them) that'd be great!

Add new comment