Versions UBUNTU

Bonjour,

J’ai vu dans la doc qu’Asqatasun fonctionne correctement sur Ubuntu 14.04 LTS (Trusty Tahr), cependant j’aimerais pouvoir l’installer sur une version plus récente, idéalement ubuntu 18.04 mais pourquoi pas 16.04.6 LTS (Xenial Xerus), du coup avant de me lancer dans d’interminables procédures d’installation j’aurais voulu savoir si c’était possible et stable pour un environnement de production ?

Et aussi si il existait un tuto d’installation, car je n’en trouve pas.

Merci d’avance et bon week end !

Bonjour @adr et bienvenue !

Nous sommes en train de préparer la migration vers la 18.04. Tu peux déjà prendre la version 4.1.0-rc.4 (la récupération de données d’une ancienne version n’a pas encore été vérifiée, tout le reste est bon).

Celle-ci tourne sur une 18.04. La doc d’install est globalement à jour, mais la relecture globale n’a pas encore été faite (les retours toujours sont les bienvenus :wink: ).

Enfin, tu trouveras certainement un intérêt dans le projet Asqatasun-Vagrant.

N’hésite pas à laisser un message si tu rencontrais des problèmes !

Quand je lance pre-requisites.sh il termine par :

E: Unable to locate package tomcat7

tomcat7 n’est pas dispo sur Ubuntu 18.04, j’ai tenté ceci https://askubuntu.com/questions/1058283/is-there-a-way-i-can-install-tomcat7-on-ubuntu-18-04 mais ca ne marche pas du tout…

Setting up tomcat7 (7.0.68-1) …

Creating config file /etc/default/tomcat7 with new version
Adding system user tomcat7' (UID 111) ... Adding new usertomcat7’ (UID 111) with group tomcat7' ... Not creating home directory/usr/share/tomcat7’.

Creating config file /etc/logrotate.d/tomcat7 with new version
Job for tomcat7.service failed because the control process exited with error code.
See “systemctl status tomcat7.service” and “journalctl -xe” for details.
invoke-rc.d: initscript tomcat7, action “start” failed.
● tomcat7.service - LSB: Start Tomcat.
Loaded: loaded (/etc/init.d/tomcat7; generated)
Active: failed (Result: exit-code) since Fri 2019-05-17 14:57:47 CEST; 53ms ago
Docs: man:systemd-sysv-generator(8)
Process: 1145 ExecStart=/etc/init.d/tomcat7 start (code=exited, status=1/FAILURE)

May 17 14:57:42 asqatasun systemd[1]: Starting LSB: Start Tomcat…
May 17 14:57:42 asqatasun tomcat7[1145]: * Starting Tomcat servlet engine tomcat7
May 17 14:57:47 asqatasun tomcat7[1145]: …fail!
May 17 14:57:47 asqatasun systemd[1]: tomcat7.service: Control process exited, code=exited status=1
May 17 14:57:47 asqatasun systemd[1]: tomcat7.service: Failed with result ‘exit-code’.
May 17 14:57:47 asqatasun systemd[1]: Failed to start LSB: Start Tomcat…
dpkg: error processing package tomcat7 (–configure):
installed tomcat7 package post-installation script subprocess returned error exit status 1
Processing triggers for libc-bin (2.27-3ubuntu1) …
Processing triggers for ureadahead (0.100.0-21) …
Processing triggers for systemd (237-3ubuntu10.21) …
Processing triggers for ca-certificates (20180409) …
Updating certificates in /etc/ssl/certs…
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d…

done.
done.
Errors were encountered while processing:
tomcat7
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@asqatasun:~/asqatasun-4.1.0-rc.1.i386/install# sudo apt-get install tomcat7
Reading package lists… Done
Building dependency tree
Reading state information… Done
tomcat7 is already the newest version (7.0.68-1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up tomcat7 (7.0.68-1) …
Job for tomcat7.service failed because the control process exited with error code.
See “systemctl status tomcat7.service” and “journalctl -xe” for details.
invoke-rc.d: initscript tomcat7, action “start” failed.
● tomcat7.service - LSB: Start Tomcat.
Loaded: loaded (/etc/init.d/tomcat7; generated)
Active: failed (Result: exit-code) since Fri 2019-05-17 14:58:08 CEST; 23ms ago
Docs: man:systemd-sysv-generator(8)
Process: 2178 ExecStart=/etc/init.d/tomcat7 start (code=exited, status=1/FAILURE)

May 17 14:58:03 asqatasun systemd[1]: Starting LSB: Start Tomcat…
May 17 14:58:03 asqatasun tomcat7[2178]: * Starting Tomcat servlet engine tomcat7
May 17 14:58:08 asqatasun tomcat7[2178]: …fail!
May 17 14:58:08 asqatasun systemd[1]: tomcat7.service: Control process exited, code=exited status=1
May 17 14:58:08 asqatasun systemd[1]: tomcat7.service: Failed with result ‘exit-code’.
May 17 14:58:08 asqatasun systemd[1]: Failed to start LSB: Start Tomcat…
dpkg: error processing package tomcat7 (–configure):
installed tomcat7 package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
tomcat7

Du coup, quelle procédure suivez-vous pour installer tomcat7 sur ubuntu 18.04 ?

Merci d’avance pour votre aide

As-tu bien pris la V4.1.0-rc.4 ?

Oui j’ai téléchargé asqatasun-4.1.0-rc.1.i386.tar.gz sur https://github.com/Asqatasun/Asqatasun/releases
aujourd’hui.

Je ne connaissait pas asqatasun jusqu’à aujourd’hui.

==> rc-4 (quatre, pas un :slight_smile: )

Oups désolé j’avais pas fait attention au numéro de RC…

Je ne trouve pas le lien pour la RC4, es-ce que je peux prendre ce lien à la place ?

http://download.asqatasun.org/asqatasun-latest.tar.gz

Le lien “latest” n’est pas bon (il pointe vers la dernière version stable officiel, ie 4.0.3).

==> http://download.asqatasun.org/ est ton ami

Merci beaucoup, ca à bien marché jusqu’à ceci :

Are you sure you want to continue installation (yes/no)? yes

Directory creation: OK
Asqatasun config files creation: OK
Asqatasun webapp creation: OK
Firefox Profile Files creation: OK
Asqatasun webapp configuration: OK
ERROR 1146 (42S02) at line 2: Table ‘asqatasun.TGSI_USER’ doesn’t exist

FAILURE : Error while creating Asqatasun admin user. User may already exists

root@asqatasun:~/asqatasun-4.1.0-rc.4.i386/install# mysql
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 33
Server version: 10.1.38-MariaDB-0ubuntu0.18.04.2 Ubuntu 18.04

Copyright © 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.

MariaDB [(none)]> show databases;
±-------------------+
| Database |
±-------------------+
| asqatasun |
| information_schema |
| mysql |
| performance_schema |
±-------------------+
4 rows in set (0.00 sec)

MariaDB [(none)]> quit
Bye
root@asqatasun:~/asqatasun-4.1.0-rc.4.i386/install#

Bon j’ai pu passer en supprimant la base et en la recréant.

Mais nouvelle erreur. Pour le test voici ce que j’ai lancé.

./install.sh --database-user root
–database-passwd mysqlRootPassword
–database-db asqatasun
–database-host localhost
–asqatasun-url http://localhost:8080/asqatasun/
–tomcat-webapps /var/lib/tomcat8/
–tomcat-user tomcat8
–asqa-admin-email contact@test.com
–asqa-admin-passwd asqaP4sswd
–firefox-esr-binary-path /opt/firefox/firefox
–display_port :99

Are you sure you want to continue installation (yes/no)? yes

Directory creation: OK
Asqatasun config files creation: OK
Asqatasun webapp creation: OK
ln: failed to create symbolic link ‘/var/lib/tomcat8/.gconf/.gconf’: File exists

FAILURE : Unable to create symlink /var/lib/tomcat8/.gcon