[contribteam] [Bug 10670] prevent upgrade of nextcloud rpm if running version is > to rpm version

2019-01-24 Thread bugzilla-daemon
https://bugs.contribs.org/show_bug.cgi?id=10670

Jean-Philippe Pialasse  changed:

   What|Removed |Added

 Status|RESOLVED|CLOSED

--- Comment #6 from Jean-Philippe Pialasse  ---
released

-- 
You are receiving this mail because:
You are the QA Contact for the bug.___
Mail for each SME Contribs bug report
To unsubscribe, e-mail contribteam-unsubscr...@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

[contribteam] [Bug 10670] prevent upgrade of nextcloud rpm if running version is > to rpm version

2019-01-07 Thread bugzilla-daemon
https://bugs.contribs.org/show_bug.cgi?id=10670

Jean-Philippe Pialasse  changed:

   What|Removed |Added

 Status|CONFIRMED   |RESOLVED
 Resolution|--- |FIXED

--- Comment #5 from Jean-Philippe Pialasse  ---
this is not the most elegant way, but at least it prevents to break anything. I
could think of also add an exclude to smecontribs after initial installation on
top of that to avoid the errors...


Package nextcloud enqueued.  Job ID: 2023.

%changelog
* Mon Jan 07 2019 Jean-Philipe Pialasse  15.0.0-4.sme
- prevent rpm to upgrade if webupdate has been used [SME: 10670]
  and rpm version is < to on disk version
  or if rppm version is more than one major release greater


Taille totale : 146 M
Est-ce correct [o/N] : o
Téléchargement des paquets :
Lancement de rpm_check_debug
Lancement de la transaction de test
Transaction de test réussie
Lancement de la transaction
version.php found, already installed
can not upgrade from 13.0.0 to 15.0.0, please do a manual or web update with
intermediate version
erreur: %pre(nextcloud-15.0.0-4.el6.sme.noarch) scriptlet failed, exit status 1
Error in PREIN scriptlet in rpm package nextcloud-15.0.0-4.el6.sme.noarch
erreur:   install: échec du scriptlet %pre (2), on saute
nextcloud-15.0.0-4.el6.sme
Migrating existing database accounts
Migrating existing database networks
Migrating existing database yum_installed
Migrating existing database configuration
Migrating existing database hosts
Migrating existing database domains
Migrating existing database yum_available
Migrating existing database yum_updates
Migrating existing database yum_repositories
Migrating existing database backups
Migrating existing database spamassassin
Migrating existing database mailpatterns
nextcloud-15.0.0-3.el6.sme.noarch was supposed to be removed but is not!
  Verifying : nextcloud-15.0.0-3.el6.sme.noarch
   
1/2 
  Verifying : nextcloud-15.0.0-4.el6.sme.noarch
   
2/2 

Échec:
  nextcloud.noarch 0:15.0.0-3.el6.sme  
 nextcloud.noarch 0:15.0.0-4.el6.sme

Terminé !




Taille totale : 146 M
Est-ce correct [o/N] : o
Téléchargement des paquets :
Lancement de rpm_check_debug
Lancement de la transaction de test
Transaction de test réussie
Lancement de la transaction
version.php found, already installed
Installed version has 15.0.6 been upgraded and is most recent than this rpm
15.0.0 version.
erreur: %pre(nextcloud-15.0.0-4.el6.sme.noarch) scriptlet failed, exit status 1
Error in PREIN scriptlet in rpm package nextcloud-15.0.0-4.el6.sme.noarch
erreur:   install: échec du scriptlet %pre (2), on saute
nextcloud-15.0.0-4.el6.sme
Migrating existing database accounts
Migrating existing database networks
Migrating existing database yum_installed
Migrating existing database configuration
Migrating existing database hosts
Migrating existing database domains
Migrating existing database yum_available
Migrating existing database yum_updates
Migrating existing database yum_repositories
Migrating existing database backups
Migrating existing database spamassassin
Migrating existing database mailpatterns
nextcloud-15.0.0-3.el6.sme.noarch was supposed to be removed but is not!
  Verifying : nextcloud-15.0.0-3.el6.sme.noarch
   
1/2 
  Verifying : nextcloud-15.0.0-4.el6.sme.noarch
   
2/2 

Échec:
  nextcloud.noarch 0:15.0.0-3.el6.sme  
 nextcloud.noarch 0:15.0.0-4.el6.sme

Terminé !

it could still update a package from major version -1 or minor version inferior
to.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.___
Mail for each SME Contribs bug report
To unsubscribe, e-mail contribteam-unsubscr...@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

[contribteam] [Bug 10670] prevent upgrade of nextcloud rpm if running version is > to rpm version

2019-01-07 Thread bugzilla-daemon
https://bugs.contribs.org/show_bug.cgi?id=10670

--- Comment #4 from Jean-Philippe Pialasse  ---
(In reply to Rod Egan from comment #1)
> Or if you've missed a major version update (ie previous 13.x, missed the
> 14.x updates and now it's 15.x) and the rpm update is installed it breaks
> nextcloud.
> They (nextcloud) warn about it and hidden on their forum is a brief mention
> of doing a manual update to each major version.
> Still to work through the uninstall of nextcloud 15.x rpm to recover and
> work through the problem.

just push manually the version 14 files from their tar files and do the update
via webinterface, then recopy again the version 15 archive  and you are good


indeed update should be prevented in this case.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.___
Mail for each SME Contribs bug report
To unsubscribe, e-mail contribteam-unsubscr...@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

[contribteam] [Bug 10670] prevent upgrade of nextcloud rpm if running version is > to rpm version

2019-01-02 Thread bugzilla-daemon
https://bugs.contribs.org/show_bug.cgi?id=10670

--- Comment #3 from Rod Egan  ---
(In reply to John Crisp from comment #2)
> (In reply to Rod Egan from comment #1)
> > Or if you've missed a major version update (ie previous 13.x, missed the
> > 14.x updates and now it's 15.x) and the rpm update is installed it breaks
> > nextcloud.
> > They (nextcloud) warn about it and hidden on their forum is a brief mention
> > of doing a manual update to each major version.
> > Still to work through the uninstall of nextcloud 15.x rpm to recover and
> > work through the problem.
> 
> Hi Rod.
> 
> Jean Philippe is the guru here but he is away on vacation for a bit having
> worked all over Christmas.
> 
> Can you post here any steps you take so we can see please?
> 
> We'll try and look at it with you.

Followed the steps below to recover after skipping a major nextcloud update.

goto usr/share/nextcloud
copy everything except /data and /config to temp folder
download intermediate version of nextcloud from
https://nextcloud.com/changelog/
unzip and copy files to /usr/share/nextcloud, dont overwrite /data or /config
change ownership in /usr/share/nextcloud chown -R apache:www .

goto https://yoururl/nextcloud and run the updater

logon to nextcloud and make sure it is all working as expected
repeat above for each major update until you are one update from the latest
major update. At that point you can follow the usual process.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.___
Mail for each SME Contribs bug report
To unsubscribe, e-mail contribteam-unsubscr...@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

[contribteam] [Bug 10670] prevent upgrade of nextcloud rpm if running version is > to rpm version

2019-01-01 Thread bugzilla-daemon
https://bugs.contribs.org/show_bug.cgi?id=10670

John Crisp  changed:

   What|Removed |Added

 CC||jcr...@safeandsoundit.co.uk

--- Comment #2 from John Crisp  ---
(In reply to Rod Egan from comment #1)
> Or if you've missed a major version update (ie previous 13.x, missed the
> 14.x updates and now it's 15.x) and the rpm update is installed it breaks
> nextcloud.
> They (nextcloud) warn about it and hidden on their forum is a brief mention
> of doing a manual update to each major version.
> Still to work through the uninstall of nextcloud 15.x rpm to recover and
> work through the problem.

Hi Rod.

Jean Philippe is the guru here but he is away on vacation for a bit having
worked all over Christmas.

Can you post here any steps you take so we can see please?

We'll try and look at it with you.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.___
Mail for each SME Contribs bug report
To unsubscribe, e-mail contribteam-unsubscr...@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

[contribteam] [Bug 10670] prevent upgrade of nextcloud rpm if running version is > to rpm version

2019-01-01 Thread bugzilla-daemon
https://bugs.contribs.org/show_bug.cgi?id=10670

Rod Egan  changed:

   What|Removed |Added

 CC||r...@sages.com.au

--- Comment #1 from Rod Egan  ---
Or if you've missed a major version update (ie previous 13.x, missed the 14.x
updates and now it's 15.x) and the rpm update is installed it breaks nextcloud.
They (nextcloud) warn about it and hidden on their forum is a brief mention of
doing a manual update to each major version.
Still to work through the uninstall of nextcloud 15.x rpm to recover and work
through the problem.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.___
Mail for each SME Contribs bug report
To unsubscribe, e-mail contribteam-unsubscr...@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

[contribteam] [Bug 10670] prevent upgrade of nextcloud rpm if running version is > to rpm version

2018-12-20 Thread bugzilla-daemon
https://bugs.contribs.org/show_bug.cgi?id=10670

Bug ID: 10670
   Summary: prevent upgrade of nextcloud rpm if running version is
> to rpm version
Classification: Contribs
   Product: SME Contribs
   Version: Futur
  Hardware: ---
OS: ---
Status: CONFIRMED
  Severity: normal
  Priority: P3
 Component: smeserver-nextcloud
  Assignee: te...@pialasse.com
  Reporter: te...@pialasse.com
QA Contact: contribteam@lists.contribs.org
  Target Milestone: ---

you are able to upgrade the nextcloud app via webinterface.

an issue could arise if you updated to let'S say 14.0.5 after installing 13.0.1
rpm and 14.0.1 rpm arise on update list.

this would prevent you from accessing to nextcloud after the yum transaction
and force you to recover the archive and update manually.

here a potential dirty solution :
https://stackoverflow.com/questions/4037410/failing-an-rpm-install-programmatically-in-a-spec-step

%pre
if [ -f /some/file ]
then
echo "/some/file exists, it shouldn't"
exit 1
fi

let'S say instead of /some/file test we check for the current installed version
in /usr/share/nextcloud/version.php

 
  array (
'13.0' => true,
'14.0' => true,
  ),
  'owncloud' => 
  array (
  ),
);
$OC_Build = '2018-11-22T13:16:37+00:00 ';
$vendor = 'nextcloud';


let's sed  $OC_VersionString = '14.0.4'; for the version number and fail if it
is higher than rpm version

-- 
You are receiving this mail because:
You are the QA Contact for the bug.___
Mail for each SME Contribs bug report
To unsubscribe, e-mail contribteam-unsubscr...@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/