bonjour
J’ai installé sur un serveur ubuntu 20.04 seenarisuite-serveur 5.0 tomcat9 via apt install.
Le serveur fonctionne correctement
J’ai installé ensuite sous /usr/share/scenariBatch le zip et j’ai décompressé l’archive.
J’ai créé dans le fichier main.property dans le rep conf de scenari avec les lignes :
----> server.conf.batch=batch/server.xml
----> server.conf.batch.destPathRoot=${server.work.path}/batchGen
j’ai créer un user admin dans scenari : uBatch avec son mot de passe
J’ai modifié backup.properties dans le chainBackup comme suit :
# Accés à la webApp
#
----> program.webapp.url=xxx://127.0.0.1:8080/scenarisuite-starter5.0
----> program.user=uBatch
----> program.password=xxxxx
----> program.logs.dir=/var/log/scenariBatch
J’ai ensuite généré : bash backup-pre.sh → résultat KO
SCENARIbatch - 5.0.007
Buildfile: /usr/share/scenariBatch/apps/chainBackup/build.xml
main:
*** [echo] PRE backup***
*** [delete] Deleting: /var/log/scenariBatch/BKPRE.error.log***
chain.rescue.backup.pre:
*** [http] HTTP Request***
*** [http] ***********************
*** [http] URL: xxxx://127.0.0.1:8080/scenarisuite-starter5.0/s/u/adminOdb?cdaction=BackupDb***
*** [http] Method: GET***
*** [http] ***
*** [http] HTTP Response***
*** [http] ***********************
*** [http] Status: 403***
*** [echo] ERREUR : The following error occurred while executing this line:***
*** [echo] /usr/share/scenariBatch/lib/chain.rescue.ant:20: Expected Status [200] but got [403] for URI [xxxx://127.0.0.1:8080/scenarisuite-starter5.0/s/u/adminOdb?cdaction=BackupDb]***
BUILD SUCCESSFUL
Total time: 1 second
je n’ai pas trouvé sur internet ni ce forum la raison et/ou la manière de corriger cette erreur
Merci par avance de votre aide
D Verdiere