Owncloud Upgrade to 9

For me, instead of all that work tweaking NS to run the latest packages and trying not to break it, if I’m going to do all that, then I’m back to running oC on Ubuntu with Webmin. Less work, less exposure.

1 Like

i had a little of troubles setting up OwnCloud 8 on NS 7, but i think we can also try OC 9 if all requirements are met.
Sadly I haven’t much time to work on it right now.

1 Like

I would rather focus on what’s needed to get NS 7 into production with oC 8 than worry about oC 9 at this time.

1 Like

Or skip oC8 and implement oC9? Saves work?!

2 Likes

The work on 8 has been already done :slight_smile:

Owncloud update on NS 6 isn’t possible due to PHP version.
Owncloud 8 is already available on NS 7
All requirements for OC9 are met, @jackyes would you like to try the upgrade?

Check this page for official CentOS packages:
https://download.owncloud.org/download/repositories/stable/owncloud/

1 Like

i’m on NS6 but i will create a VM with NS7 As soon as possible :smiley:

1 Like

For testing… right?

I have tested oC in NS7 to a medium degree and light load… but NS7 is in alpha.

Good! Please, let us know how it’s going.

2 posts were split to a new topic: Problem on install NS7 on digital ocean

After a Clean NS7 install on DigitalOcean:
Crate a user, install owncloud.

cd
wget download.owncloud.com
yum install bzip2
tar xjvf owncloud-9.0.0.tar.bz2
mv /var/www/html/owncloud/ /var/www/html/owncloud_bk
mv owncloud /var/www/html/
cp /var/www/html/owncloud_bk/config/* /var/www/html/owncloud/config/
mkdir /var/www/html/owncloud/data
cp /var/www/html/owncloud_bk/data/* /var/www/html/owncloud/data/
chown -R apache.apache /var/www/html/owncloud
su -s /bin/bash -c ‘php /var/www/html/owncloud/occ upgrade’ apache
rm owncloud-9.0.0.tar.bz2

Owncloud 9 up and running :smile:

Good! Can you use also the official OwnCloud package for CentOS?
I’m sure that you’re going to need just a few commands

Check this page for official CentOS packages:
https://download.owncloud.org/download/repositories/stable/owncloud/

added the owncloud repo and run yum install owncloud:

Error: Package: nethserver-owncloud-1.1.7-1.15.g05e5475.ns7.noarch (@nethserver-base)
Requires: owncloud = 8.2.2-1.1
Removing: owncloud-8.2.2-1.1.noarch (@nethserver-base)
owncloud = 8.2.2-1.1
Updated By: owncloud-9.0.0-1.1.noarch (ce_stable)
owncloud = 9.0.0-1.1
Obsoleted By: owncloud-files-9.0.0-1.1.noarch (ce_stable)
Not found
Available: owncloud-8.0.10-1.el7.noarch (epel)
owncloud = 8.0.10-1.el7
Error: Package: nethserver-owncloud-1.1.7-1.15.g05e5475.ns7.noarch (@nethserver-base)
Requires: owncloud = 8.2.2-1.1
Removing: owncloud-8.2.2-1.1.noarch (@nethserver-base)
owncloud = 8.2.2-1.1
Updated By: owncloud-9.0.0-1.1.noarch (ce_stable)
owncloud = 9.0.0-1.1
Available: owncloud-8.0.10-1.el7.noarch (epel)
owncloud = 8.0.10-1.el7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

i m not very skilled with yum… :kissing_closed_eyes: that’s why I opted for the ’ manual upgrade :sweat_smile:

maybe

yum upgrade owncloud --enablerepo=ce_stable

or

yum reinstall  owncloud --enablerepo=ce_stable

edit :

 Error: Package: nethserver-owncloud-1.1.7-1.15.g05e5475.ns7.noarch (@nethserver-base)
Requires: owncloud = 8.2.2-1.1

you can try above, but I worry that nethserver-owncloud require an exact version, this should be modified by ’ Requires: owncloud >= 8.2.2-1.1’ in the spec file

root@test ~]# yum upgrade owncloud --enablerepo=ce_stable
Loaded plugins: changelog, fastestmirror, nethserver_events
Loading mirror speeds from cached hostfile

  • base: centos.mirror.constant.com
  • epel: mirror.cs.princeton.edu
  • extras: mirror.symnds.com
  • nethforge: mirror.nethserver.org
  • nethserver-base: mirror.nethserver.org
  • nethserver-updates: mirror.nethserver.org
  • updates: mirrors.rit.edu
    Resolving Dependencies
    –> Running transaction check
    —> Package owncloud.noarch 0:8.2.2-1.1 will be obsoleted
    –> Processing Dependency: owncloud = 8.2.2-1.1 for package: nethserver-owncloud-1.1.7-1.15.g05e5475.ns7.noarch
    —> Package owncloud-config-apache.noarch 0:8.2.2-1.1 will be obsoleted
    —> Package owncloud-files.noarch 0:9.0.0-1.1 will be obsoleting
    —> Package owncloud-server.noarch 0:8.2.2-1.1 will be obsoleted
    –> Finished Dependency Resolution
    Error: Package: nethserver-owncloud-1.1.7-1.15.g05e5475.ns7.noarch (@nethserver-base)
    Requires: owncloud = 8.2.2-1.1
    Removing: owncloud-8.2.2-1.1.noarch (@nethserver-base)
    owncloud = 8.2.2-1.1
    Obsoleted By: owncloud-files-9.0.0-1.1.noarch (ce_stable)
    Not found
    Available: owncloud-8.0.10-1.el7.noarch (epel)
    owncloud = 8.0.10-1.el7
    Available: owncloud-9.0.0-1.1.noarch (ce_stable)
    owncloud = 9.0.0-1.1
    You could try using --skip-broken to work around the problem
    You could try running: rpm -Va --nofiles --nodigest

[root@test ~]# yum reinstall owncloud --enablerepo=ce_stable
Loaded plugins: changelog, fastestmirror, nethserver_events
Loading mirror speeds from cached hostfile

Dependencies Resolved

============================================================ Package Arch Version Repository Size
============================================================Reinstalling:
owncloud noarch 8.2.2-1.1 nethserver-base 27 k

Transaction Summary
============================================================Reinstall 1 Package

Total download size: 27 k
Installed size: 33 k
Is this ok [y/d/N]:

try with this rpm

http://mirror.de-labrusse.fr/nethserver/nethserver-owncloud-1.1.7/nethserver-owncloud-1.1.7-1.ns7.sdl.noarch.rpm

yum install http://mirror.de-labrusse.fr/nethserver/nethserver-owncloud-1.1.7/nethserver-owncloud-1.1.7-1.ns7.sdl.noarch.rpm --enablerepo=epel,ce_stable
2 Likes

Works on a clean NS install!!! :tada: :confetti_ball: :tada: :confetti_ball:

But If trying to upgrade the owncloud installed with NS:

[root@centos-2gb-nyc3-01 ~]# yum install http://mirror.de-labrusse.fr/nethserver/nethserver-owncloud-1.1.7/nethserver-owncloud-1.1.7-1.ns7.sdl.noarch.rpm --enablerepo=epel,ce_stable
Loaded plugins: changelog, fastestmirror, nethserver_events
nethserver-owncloud-1.1.7-1.ns7.sdl.noarch.rpm | 21 kB 00:00:00
Examining /var/tmp/yum-root-TFMmxd/nethserver-owncloud-1.1.7-1.ns7.sdl.noarch.rpm: nethserver-owncloud-1.1.7-1.ns7.sdl.noarch
/var/tmp/yum-root-TFMmxd/nethserver-owncloud-1.1.7-1.ns7.sdl.noarch.rpm: does not update installed package.
Error: Nothing to do

then

yum reinstall http://mirror.de-labrusse.fr/nethserver/nethserver-owncloud-1.1.7/nethserver-owncloud-1.1.7-1.ns7.sdl.noarch.rpm  --enablerepo=epel,ce_stable

yum update owncloud --enablerepo=epel,ce_stable

[root@centos-2gb-nyc3-01 ~]# yum reinstall http://mirror.de-labrusse.fr/nethserver/nethserver-owncloud-1.1.7/nethserver-owncloud-1.1.7-1.ns7.sdl.noarch.rpm --enablerepo=epel,ce_stable
Loaded plugins: changelog, fastestmirror, nethserver_events
nethserver-owncloud-1.1.7-1.ns7.sdl.noarch.rpm | 21 kB 00:00:00
Examining /var/tmp/yum-root-TFMmxd/nethserver-owncloud-1.1.7-1.ns7.sdl.noarch.rpm: nethserver-owncloud-1.1.7-1.ns7.sdl.noarch
No package matched to remove: nethserver-owncloud-0:1.1.7-1.ns7.sdl
Error: Problem in reinstall: no package matched to remove

is it installed ???

rpm -qa |grep nethserver-owncloud

what about to upgrade only owncloud

yum update owncloud --enablerepo=epel,ce_stable