Owncloud Upgrade to 9

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

[root@centos-2gb-nyc3-01 ~]# rpm -qa |grep nethserver-owncloud
nethserver-owncloud-1.1.7-1.15.g05e5475.ns7.noarch

[root@centos-2gb-nyc3-01 ~]# yum update owncloud --enablerepo=epel,ce_stable
Loaded plugins: changelog, fastestmirror, nethserver_events
base | 3.6 kB 00:00:00
ce_stable | 1.2 kB 00:00:00
epel/x86_64/metalink | 13 kB 00:00:00
epel | 4.3 kB 00:00:00
extras | 3.4 kB 00:00:00
nethserver-base | 3.6 kB 00:00:00
nethserver-updates | 4.1 kB 00:00:00
updates | 3.4 kB 00:00:00
ce_stable/primary | 2.4 kB 00:00:00
Loading mirror speeds from cached hostfile

  • base: mirror.umd.edu
  • epel: mirror.cs.princeton.edu
  • extras: mirror.netdepot.com
  • nethserver-base: mirror.framassa.org
  • nethserver-updates: mirror.framassa.org
  • updates: ftpmirror.your.org
    ce_stable 5/5
    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

ok I understand what is occurring, my rpm cannot upgrade the default nethserver-owncloud, and since it is installed, you cannot upgrade owncloud.

Well let to the core developers the care of this rpm, and just test for them if Owncloud9 can be used. Install it from scratch and test and report what is broken on OC9

1 Like

OK!!!

Testing it…no problem for now…there is a NS7 fail2ban package to try with?

EDIT:
UPDATE:

Some litle change to made:

1)Max upload filesize is 2MB!?!?

2)Cron is set to ajax…it will be a good idea to set on cron (last one) and add a cron job:
Add a cron job same user as webserver.

crontab -u apache -e
*/15 * * * * php -f /var/www/html/owncloud/cron.php > /dev/null 2>&1