monarc-project / MonarcAppFO

MONARC - Method for an Optimised aNAlysis of Risks by @NC3-LU
https://www.monarc.lu
GNU Affero General Public License v3.0
101 stars 39 forks source link

Update 2.10.4 -> 2.11.0 fails #379

Closed Tichod closed 3 years ago

Tichod commented 3 years ago

Describe the bug I try to update from version 2.10.4 to 2.11.0, using guidance from technical guide (§5.2.1. Update a single MONARC instance)

To Reproduce Steps to reproduce the behavior:

  1. From shell console, under user monarc, I type successively following commands: /var/lib/monarc/fo/scripts/update-all.sh -c sudo rm -Rf /var/lib/monarc/fo/data/cache/* sudo systemctl restart apache2.service
  2. No error message in console
  3. When logged in web frontend, version appears to be 2.10.4, and new functionalities not present (having the possibility to define custom scales for operational risks, introduction of the risk context and the risk owner)

Expected behavior I expect to read version 2.11.0 in left pannel of web frontend, and observe new functionalities.

Screenshots No screensho necessary, I think.

Desktop (please complete the following information):

Questions Answers
Type of issue Bug
OS version (server) Ubuntu 18.04.4
OS version (client) Win10
PHP version 7.4.23
MONARC version / git hash 2.10.4 (virtual machine)
Browser Firefox

Additional context N/A

KonzeptAcht commented 3 years ago

Hello @Tichod,

in the installation directory of MONARC (by default /var/lib/monarc/fo/), is the version 2.11.0 specified in the "VERSION.json" or is the 2.10.4 still referenced here as well?

Best regards

Marc

cedricbonhomme commented 3 years ago

Hello,

Could you please give us the following information ?

Tichod commented 3 years ago

I'm sorry for my late reply. @KonzeptAcht: version mentionned in VERSION.json = 2.10.4 @cedricbonhomme: file hereunder commands.txt Thank you!

cedricbonhomme commented 3 years ago

The code is not up-to-date.

There was probably an issue at the beginning with the script ./scripts/update-all.sh. It could be an issue with composer or Git, etc.

Could you please provide us the output of:

$ ./scripts/update-all.sh

thank you.

Especially the beginning (or everything if easier for you).

Tichod commented 3 years ago

Update finally worked! Until now, I typed ./upgrade-all.sh -c from within /var/lib/monarc/fo/scripts/, instead of ./scripts/upgrade-all.sh -c from within /var/lib/monarc/fo/. ==> I'll make a quick script, instead of typing erroneous commands.

I'm sorry for your waste of time. PEBKAC, I'm afraid, with myself on the chair.

Please close ticket.

cedricbonhomme commented 3 years ago

;-) No worry !