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

Laminas Invalid arguments or no arguments provided #460

Closed dbarzin closed 2 years ago

dbarzin commented 2 years ago

Describe the bug Error during the update process from Monarc 2.11.1 to Monarc 2.12.3 After update impossible to log into Monarc.

To Reproduce

I have a instance of Monarc 2.11.1 downloaded as OVA from GitHub and running in a VM.

The instance has been updated with :

sudo apt update
sudo apt upgrade

The update process returns an error :

monarc@monarc:/var/lib/monarc/fo$ ./scripts/update-all.sh -c
...

Laminas application
Usage:

Reason for failure: Invalid arguments or no arguments provided
Laminas application
Usage:

Reason for failure: Invalid arguments or no arguments provided
Laminas application
Usage:

Reason for failure: Invalid arguments or no arguments provided
Done for ./config/autoload/local.php

Expected behavior A working Monarc instance after update

Desktop (please complete the following information):

Questions Answers
Type of issue Bug
OS version (server) Ubuntu 18.04 LTS
OS version (client) Win10
PHP version PHP 7.4
MONARC version / git hash 2.11.1
Browser Firefox

Additional context Add any other context about the problem here.

ruslanbaidan commented 2 years ago

Hello,

Thank you for the report.

We never use -c option in the update-all.sh script, that's why there was an old way of the cache cleanup process. We fixed it in this commit. You could execute git pull in your project root to obtain the changes or run the script without the -c option and execute the cache cleanup (3 commands) manually.

dbarzin commented 2 years ago

Could you update the documentation here : https://www.monarc.lu/documentation/technical-guide/#monarc-update that mentions the use of the -c option in the update-all.sh script ? Thanks, Didier

ruslanbaidan commented 2 years ago

The option can be used, there was the fix provided.