Owncloud Upgrade to 9

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

Great work @jackyes thanks for your effort :wink:
So we can easily upgrade to 9 version. /cc @alep @fasttech @giacomo

OC 8 is already working


Upgrade to version 9 :wink:

1 Like

Sorry I meant 9

8 posts were merged into an existing topic: Test OC8/9 with nethserver-fail2ban

Guys can you make a recap to me? @jackyes @stephdl @fasttech
How can I safely upgrade to Owncloud 9 on NethServer 7?

1 Like

@alefattorini

https://download.owncloud.org/download/repositories/stable/owncloud/

CentOS_7 owncloud-9.0.1-1

Run the following shell commands as root to trust the repository.

rpm --import https://download.owncloud.org/download/repositories/stable/CentOS_7/repodata/repomd.xml.key

Run the following shell commands as root to add the repository and install from there.

wget http://download.owncloud.org/download/repositories/stable/CentOS_7/ce:stable.repo -O /etc/yum.repos.d/ce:stable.repo

then

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

@stephdl

Is this for upgrade or install from scratch?

`[root@test ~]# 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-hf5TSq/nethserver-owncloud-1.1.7-1.ns7.sdl.noarch.rpm: nethserver-owncloud-1.1.7-1.ns7.sdl.noarch
/var/tmp/yum-root-hf5TSq/nethserver-owncloud-1.1.7-1.ns7.sdl.noarch.rpm: does not update installed package.
Error: Nothing to do
[root@test ~]# yum install owncloud
Loaded plugins: changelog, fastestmirror, nethserver_events
ce_stable | 1.2 kB 00:00:00
ce_stable/primary | 2.5 kB 00:00:03
Loading mirror speeds from cached hostfile

  • base: linux.mirrors.es.net
  • epel: mirror.chpc.utah.edu
  • extras: mirrors.sonic.net
  • nethserver-base: nethserver.de-labrusse.fr
  • nethserver-updates: nethserver.de-labrusse.fr
  • updates: mirrors.sonic.net
    ce_stable 5/5
    Resolving Dependencies
    –> Running transaction check
    —> Package owncloud.noarch 0:8.2.2-1.1 will be updated
    –> Processing Dependency: owncloud = 8.2.2-1.1 for package: nethserver-owncloud-1.1.7-1.15.g05e5475.ns7.noarch
    —> Package owncloud.noarch 0:9.0.1-3.1 will be an update
    –> Processing Dependency: owncloud-deps >= 9.0.1 for package: owncloud-9.0.1-3.1.noarch
    –> Processing Dependency: owncloud-files >= 9.0.1 for package: owncloud-9.0.1-3.1.noarch
    –> 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.noarch 0:8.2.2-1.1 will be updated
    –> 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-deps-php5.noarch 0:9.0.1-3.1 will be installed
    —> Package owncloud-files.noarch 0:9.0.1-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
    Updated By: owncloud-9.0.1-3.1.noarch (ce_stable)
    owncloud = 9.0.1-3.1
    Available: owncloud-8.1.6-1.el7.noarch (epel)
    owncloud = 8.1.6-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.1-3.1.noarch (ce_stable)
    owncloud = 9.0.1-3.1
    Obsoleted By: owncloud-files-9.0.1-1.1.noarch (ce_stable)
    Not found
    Available: owncloud-8.1.6-1.el7.noarch (epel)
    owncloud = 8.1.6-1.el7
    You could try using --skip-broken to work around the problem
    You could try running: rpm -Va --nofiles --nodigest
    `

@stephdl
I installed oC v9 on NS 7a2 with your repo and it did install v9 with dependencies but when I click the link in Applications to oC the page https://ip/owncloud comes back with a 404, looking in the software center it offers an update for nethserver-owncloud-1.1.7-1.15.g05e5475, which states in the changelog it requires oC 8.2.2 and attempting the upgrade fails with;
Apr 28 16:19:57 localhost pkgaction[2210]: remove: Apr 28 16:19:57 localhost pkgaction[2210]: update: * Apr 28 16:19:59 localhost pkgaction[2210]: install: Apr 28 16:20:00 localhost pkgaction[2210]: [YumRPMCheckError] [u'ERROR with transaction check vs depsolve:', 'owncloud = 8.2.2-1.1 is needed by nethserver-owncloud-1.1.7-1.15.g05e5475.ns7.noarch']

Maybe you already know this and I’m just pissing in the wind. shrug.

1 Like

yes I just removed the require with a version number in the .spec file for a test purpose, but maybe you found a bug for giacomo. It is just to install it from scratch, for an upgrade I suppose that he will see at a beta stage, or sooner.

@giacomo