You are here
Hans-Cees - Wed, 2014/01/08 - 23:12
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:
TKL ownCloud appliance uses the ownCloud community repo
And it appears that older ownCloud versions have been removed from the repo and the only one that remains is 6.0.0a:
So you could upgrade to that if you wanted...
apt-get install should do it
So at the commandline of your appliance (either via SSH or Webshell) type:
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:
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:
I need more info
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.
upgrade
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?
TBH I have no idea...
Until I get a chance to sit down and try this out myself my answers will only be guesses...
Thanks! Upgraded from 5.0.12
Thanks! Upgraded from 5.0.12 to 6.0.2 without problems
Great!
Thanks for posting back to confirm that it works! :)
use script
http://pastebin.com/UHH9MLVD
my turnkey dont find owncloud
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 ~#
Perhaps run apt-get update first
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.
Great work
And thanks for posting back. :)
The ownCloud repositories have changed
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:
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:
Information is free, knowledge is acquired, but wisdom is earned.
Glad to hear you got the upgrade to work
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.
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.
Thanks again for your great info John
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...
Timing may be at work here ..
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.
Not yet fixed for me
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
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.
Upgrade still not working for me
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
When I run the last step I get
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.
Additional information
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.
On a hunch, I tried specifying the version as described previously in this thread.
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.
Great detective work! :)
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.
You're in the right thread! :)
Make sure that you have a good backup of your server (just in case something goes wrong) then away you go!
Update 5.0.12 to 7.0.5
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.
Owncloud upgrade path
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:
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:
Information is free, knowledge is acquired, but wisdom is earned.
Hi Peter
Also we hope to not let the time between releases stretch out this far again...
@John, thanks so much for helping out! :)
Hi Norman
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
Ok thanks Norman
This thread is really only relevant to v13.0
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! :)
I still haven't had a chance to have a look at this.
I have just done some testing on upgrading the v14.0 appliance
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