Configuration d'un proxy pour Asqatasun V5

Bonjour !

Nouveau arrivé dans l’univers d’Asqatasun, il m’a été demandé le déployer afin de le tester dans l’organisme où je travaille. J’ai donc récupéré la version 5 avec son installation docker. Pas de soucis à ce niveau, l’installation s’est bien passée mais je rencontre des difficultés pas dans l’utilisation mais dans la structure interne de l’image docker.

Comment s’articule l’arborescence une fois l’image docker déployée ?

J’accède bien à mon fichier “[ID_DOCKER_ASQATASUN_WEB]-json.log” à la racine de mon “/var/lib/docker/containers/[ID_DOCKER_ASQATASUN_WEB]” et une fois à l’intérieure de celle ci (via un “docker exec -ti [ID_DOCKER_ASQATASUN_WEB] bash”), j’ai du mal à m’orienter ! J’ai parcouru les forums ici et la et on parle de la présence d’un fichier “/etc/asqatasun.conf” mais malheureusement il n’est pas la (et je pense que j’aurais besoin surement de le modifier pour gérer les proxy et autres paramètres, car pour le moment, mes lancements d’analyse se soldent par des échecs, très surement liés au proxy en place). Il en est de même pour pour le fichier log “catalina.log” que je ne retrouve pas ! J’ai pu trouver le fichier “/var/log/asqatasun.log” mais celui-ci est malheureusement bien vide !

Je pense que je vais passer pas mal de temps sur ce forum prochainement ! Excusez mes questions techniques car j’ai plus une expérience de développeur :frowning:

En vous remerciant !

Pour information, voici les informations concernant la machine où j’ai réalisée l’installation

**docker version =>**
Client: Docker Engine - Community
 Version:           19.03.12
 API version:       1.40
 Go version:        go1.13.10
 Git commit:        48a66213fe
 Built:             Mon Jun 22 15:46:54 2020
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.12
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.13.10
  Git commit:       48a66213fe
  Built:            Mon Jun 22 15:45:28 2020
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.2.13
  GitCommit:        7ad184331fa3e55e52b890ea95e65ba581ae3429
 runc:
  Version:          1.0.0-rc10
  GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

**docker-compose-v1.27.4 version =>**
docker-compose version 1.27.4, build 40524192
docker-py version: 4.3.1
CPython version: 3.7.7
OpenSSL version: OpenSSL 1.1.0l  10 Sep 2019

**dans le docker : cat /etc/os-release =>**
NAME="Ubuntu"
VERSION="18.04.5 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.5 LTS"
VERSION_ID="18.04"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

**cat /proc/version =>**
Linux version 4.16.13-1.el7.elrepo.x86_64 (mockbuild@Build64R7) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC)) #1 SMP Wed May 30 14:31:51 EDT 2018

**cat /etc/issue =>**
\S
Kernel \r on an \m

**cat /etc/os-release =>**
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
1 Like

Bonjour,

Que donne la commande docker logs -f ID_DOCKER_ASQATASUN_WEB ?

Koj

Et au fait, soyez le bienvenu :slight_smile:

1 Like

Merci :slight_smile:

Voici le contenu de cette commande :

WEBAPP ---> [DB_URL=jdbc:mysql://asqatasun-db:3306/asqatasun] <-------

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.2.3.RELEASE)

18-12-2020 13:01:10:612 5184 INFO  org.asqatasun.webapp.AsqatasunWebappApplication - Starting AsqatasunWebappApplication v5.0.0-rc.1 on bc1e16cafdc1 with PID 6 (/home/asqatasun/app.war started by asqatasun in /)
18-12-2020 13:01:10:614 5186 INFO  org.asqatasun.webapp.AsqatasunWebappApplication - The following profiles are active: webapp
18-12-2020 13:01:16:890 11462 INFO  org.springframework.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 7000 (http)
18-12-2020 13:01:16:903 11475 INFO  org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-7000"]
18-12-2020 13:01:16:903 11475 INFO  org.apache.catalina.core.StandardService - Starting service [Tomcat]
18-12-2020 13:01:16:904 11476 INFO  org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.30]
18-12-2020 13:01:24:846 19418 INFO  org.apache.jasper.servlet.TldScanner - At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
18-12-2020 13:01:25:791 20363 INFO  org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
18-12-2020 13:01:25:792 20364 INFO  org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 14784 ms
18-12-2020 13:01:26:139 20711 INFO  com.mchange.v2.log.MLog - MLog clients using slf4j logging.
18-12-2020 13:01:26:372 20944 INFO  com.mchange.v2.c3p0.C3P0Registry - Initializing c3p0-0.9.5.3 [built 27-January-2019 00:11:37 -0800; debug? true; trace: 10]
18-12-2020 13:01:26:633 21205 INFO  org.flywaydb.core.internal.license.VersionPrinter - Flyway Community Edition 6.0.8 by Redgate
18-12-2020 13:01:26:782 21354 INFO  com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource - Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 5, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, contextClassLoaderSource -> caller, dataSourceName -> 1bqq1hfaewq2s7i1iceo8v|29a5f4e7, debugUnreturnedConnectionStackTraces -> true, description -> null, driverClass -> com.mysql.cj.jdbc.Driver, extensions -> {}, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, forceSynchronousCheckins -> false, forceUseNamedDriverClass -> false, identityToken -> 1bqq1hfaewq2s7i1iceo8v|29a5f4e7, idleConnectionTestPeriod -> 3600, initialPoolSize -> 5, jdbcUrl -> jdbc:mysql://asqatasun-db:3306/asqatasun?useSSL=false&useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 1000, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 5, numHelperThreads -> 3, preferredTestQuery -> null, privilegeSpawnedThreads -> false, properties -> {user=******, password=******}, propertyCycle -> 0, statementCacheNumDeferredCloseThreads -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, userOverrides -> {}, usesTraditionalReflectiveProxies -> false ]
18-12-2020 13:01:27:482 22054 INFO  org.flywaydb.core.internal.database.DatabaseFactory - Database: jdbc:mysql://asqatasun-db:3306/asqatasun (MySQL 5.7)
18-12-2020 13:01:27:669 22241 INFO  org.flywaydb.core.internal.command.DbValidate - Successfully validated 20 migrations (execution time 00:00.145s)
18-12-2020 13:01:27:759 22331 INFO  org.flywaydb.core.internal.command.DbMigrate - Current version of schema `asqatasun`: -0.0.19
18-12-2020 13:01:27:762 22334 INFO  org.flywaydb.core.internal.command.DbMigrate - Schema `asqatasun` is up to date. No migration necessary.
18-12-2020 13:01:27:938 22510 INFO  org.hibernate.jpa.internal.util.LogHelper - HHH000204: Processing PersistenceUnitInfo [name: default]
18-12-2020 13:01:28:110 22682 INFO  org.hibernate.Version - HHH000412: Hibernate Core {5.4.10.Final}
18-12-2020 13:01:28:412 22984 WARN  org.hibernate.orm.deprecation - HHH020100: The Ehcache second-level cache provider for Hibernate is deprecated.  See https://hibernate.atlassian.net/browse/HHH-12441 for details.
18-12-2020 13:01:28:444 23016 INFO  org.hibernate.annotations.common.Version - HCANN000001: Hibernate Commons Annotations {5.1.0.Final}
18-12-2020 13:01:29:403 23975 INFO  org.hibernate.dialect.Dialect - HHH000400: Using dialect: org.asqatasun.dialect.AsqatasunMySQL5InnoDBDialect
18-12-2020 13:01:29:514 24086 INFO  org.hibernate.envers.boot.internal.EnversServiceImpl - Envers integration enabled? : true
18-12-2020 13:01:31:648 26220 WARN  net.sf.ehcache.config.ConfigurationFactory - No configuration found. Configuring ehcache from ehcache-failsafe.xml  found in the classpath: jar:file:/home/asqatasun/app.war!/WEB-INF/lib/ehcache-2.10.6.jar!/ehcache-failsafe.xml
18-12-2020 13:01:31:730 26302 WARN  org.hibernate.orm.cache - HHH90001006: Missing cache[default-update-timestamps-region] was created on-the-fly. The created cache will use a provider-specific default configuration: make sure you defined one. You can disable this warning by setting 'hibernate.cache.ehcache.missing_cache_strategy' to 'create'.
18-12-2020 13:01:31:815 26387 WARN  org.hibernate.orm.cache - HHH90001006: Missing cache[default-query-results-region] was created on-the-fly. The created cache will use a provider-specific default configuration: make sure you defined one. You can disable this warning by setting 'hibernate.cache.ehcache.missing_cache_strategy' to 'create'.
18-12-2020 13:01:33:435 28007 INFO  org.hibernate.engine.transaction.jta.platform.internal.JtaPlatformInitiator - HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
18-12-2020 13:01:33:448 28020 INFO  org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean - Initialized JPA EntityManagerFactory for persistence unit 'default'
18-12-2020 13:01:33:587 28159 WARN  org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration$JpaWebConfiguration - spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
18-12-2020 13:01:33:719 28291 INFO  org.springframework.boot.web.servlet.RegistrationBean - Filter responseOverrideFilter was not registered (possibly already registered?)
18-12-2020 13:01:33:775 28347 INFO  org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: loaded (conf ok)
18-12-2020 13:01:34:707 29279 INFO  org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor - Initializing ExecutorService 'threadPoolTaskExecutor'
18-12-2020 13:01:36:067 30639 INFO  org.springframework.security.web.DefaultSecurityFilterChain - Creating filter chain: Ant [pattern='/static/**'], []
18-12-2020 13:01:36:120 30692 INFO  org.springframework.security.web.DefaultSecurityFilterChain - Creating filter chain: any request, [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@4bbf20d1, org.springframework.security.web.context.SecurityContextPersistenceFilter@31ab4859, org.springframework.security.web.header.HeaderWriterFilter@2d9de284, org.springframework.security.web.authentication.logout.LogoutFilter@5f3f3d00, org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter@38a38ed4, org.springframework.security.web.session.ConcurrentSessionFilter@3348c987, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@29d3d0fb, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@3d6778d5, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@6fced25c, org.springframework.security.web.session.SessionManagementFilter@7540160e, org.springframework.security.web.access.ExceptionTranslationFilter@75d97e18, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@6f8ac8d5]
18-12-2020 13:01:36:378 30950 INFO  org.apache.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-7000"]
18-12-2020 13:01:36:423 30995 INFO  org.springframework.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 7000 (http) with context path ''
18-12-2020 13:01:36:428 31000 INFO  org.asqatasun.webapp.AsqatasunWebappApplication - Started AsqatasunWebappApplication in 29.917 seconds (JVM running for 32.981)

Et le logs après avoir fait un test en visant www.google.fr (me sortant une erreur, mais cela est du à mes soucis de paramètrages)

Une erreur est survenue lors du chargement de la page
URL : http://www.google.fr

Date : 18 décembre 2020 13:16:08

Causes possibles

    Soit la page n’existe pas
    Soit la page ne répond pas en moins de 20 secondes
    Soit la page nécessite une authentification
    Soit une boite de dialogue modale est présente


WEBAPP ---> [DB_URL=jdbc:mysql://asqatasun-db:3306/asqatasun] <-------

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.2.3.RELEASE)

18-12-2020 13:01:10:612 5184 INFO  org.asqatasun.webapp.AsqatasunWebappApplication - Starting AsqatasunWebappApplication v5.0.0-rc.1 on bc1e16cafdc1 with PID 6 (/home/asqatasun/app.war started by asqatasun in /)
18-12-2020 13:01:10:614 5186 INFO  org.asqatasun.webapp.AsqatasunWebappApplication - The following profiles are active: webapp
18-12-2020 13:01:16:890 11462 INFO  org.springframework.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 7000 (http)
18-12-2020 13:01:16:903 11475 INFO  org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-7000"]
18-12-2020 13:01:16:903 11475 INFO  org.apache.catalina.core.StandardService - Starting service [Tomcat]
18-12-2020 13:01:16:904 11476 INFO  org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.30]
18-12-2020 13:01:24:846 19418 INFO  org.apache.jasper.servlet.TldScanner - At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
18-12-2020 13:01:25:791 20363 INFO  org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
18-12-2020 13:01:25:792 20364 INFO  org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 14784 ms
18-12-2020 13:01:26:139 20711 INFO  com.mchange.v2.log.MLog - MLog clients using slf4j logging.
18-12-2020 13:01:26:372 20944 INFO  com.mchange.v2.c3p0.C3P0Registry - Initializing c3p0-0.9.5.3 [built 27-January-2019 00:11:37 -0800; debug? true; trace: 10]
18-12-2020 13:01:26:633 21205 INFO  org.flywaydb.core.internal.license.VersionPrinter - Flyway Community Edition 6.0.8 by Redgate
18-12-2020 13:01:26:782 21354 INFO  com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource - Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 5, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, contextClassLoaderSource -> caller, dataSourceName -> 1bqq1hfaewq2s7i1iceo8v|29a5f4e7, debugUnreturnedConnectionStackTraces -> true, description -> null, driverClass -> com.mysql.cj.jdbc.Driver, extensions -> {}, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, forceSynchronousCheckins -> false, forceUseNamedDriverClass -> false, identityToken -> 1bqq1hfaewq2s7i1iceo8v|29a5f4e7, idleConnectionTestPeriod -> 3600, initialPoolSize -> 5, jdbcUrl -> jdbc:mysql://asqatasun-db:3306/asqatasun?useSSL=false&useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 1000, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 5, numHelperThreads -> 3, preferredTestQuery -> null, privilegeSpawnedThreads -> false, properties -> {user=******, password=******}, propertyCycle -> 0, statementCacheNumDeferredCloseThreads -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, userOverrides -> {}, usesTraditionalReflectiveProxies -> false ]
18-12-2020 13:01:27:482 22054 INFO  org.flywaydb.core.internal.database.DatabaseFactory - Database: jdbc:mysql://asqatasun-db:3306/asqatasun (MySQL 5.7)
18-12-2020 13:01:27:669 22241 INFO  org.flywaydb.core.internal.command.DbValidate - Successfully validated 20 migrations (execution time 00:00.145s)
18-12-2020 13:01:27:759 22331 INFO  org.flywaydb.core.internal.command.DbMigrate - Current version of schema `asqatasun`: -0.0.19
18-12-2020 13:01:27:762 22334 INFO  org.flywaydb.core.internal.command.DbMigrate - Schema `asqatasun` is up to date. No migration necessary.
18-12-2020 13:01:27:938 22510 INFO  org.hibernate.jpa.internal.util.LogHelper - HHH000204: Processing PersistenceUnitInfo [name: default]
18-12-2020 13:01:28:110 22682 INFO  org.hibernate.Version - HHH000412: Hibernate Core {5.4.10.Final}
18-12-2020 13:01:28:412 22984 WARN  org.hibernate.orm.deprecation - HHH020100: The Ehcache second-level cache provider for Hibernate is deprecated.  See https://hibernate.atlassian.net/browse/HHH-12441 for details.
18-12-2020 13:01:28:444 23016 INFO  org.hibernate.annotations.common.Version - HCANN000001: Hibernate Commons Annotations {5.1.0.Final}
18-12-2020 13:01:29:403 23975 INFO  org.hibernate.dialect.Dialect - HHH000400: Using dialect: org.asqatasun.dialect.AsqatasunMySQL5InnoDBDialect
18-12-2020 13:01:29:514 24086 INFO  org.hibernate.envers.boot.internal.EnversServiceImpl - Envers integration enabled? : true
18-12-2020 13:01:31:648 26220 WARN  net.sf.ehcache.config.ConfigurationFactory - No configuration found. Configuring ehcache from ehcache-failsafe.xml  found in the classpath: jar:file:/home/asqatasun/app.war!/WEB-INF/lib/ehcache-2.10.6.jar!/ehcache-failsafe.xml
18-12-2020 13:01:31:730 26302 WARN  org.hibernate.orm.cache - HHH90001006: Missing cache[default-update-timestamps-region] was created on-the-fly. The created cache will use a provider-specific default configuration: make sure you defined one. You can disable this warning by setting 'hibernate.cache.ehcache.missing_cache_strategy' to 'create'.
18-12-2020 13:01:31:815 26387 WARN  org.hibernate.orm.cache - HHH90001006: Missing cache[default-query-results-region] was created on-the-fly. The created cache will use a provider-specific default configuration: make sure you defined one. You can disable this warning by setting 'hibernate.cache.ehcache.missing_cache_strategy' to 'create'.
18-12-2020 13:01:33:435 28007 INFO  org.hibernate.engine.transaction.jta.platform.internal.JtaPlatformInitiator - HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
18-12-2020 13:01:33:448 28020 INFO  org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean - Initialized JPA EntityManagerFactory for persistence unit 'default'
18-12-2020 13:01:33:587 28159 WARN  org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration$JpaWebConfiguration - spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
18-12-2020 13:01:33:719 28291 INFO  org.springframework.boot.web.servlet.RegistrationBean - Filter responseOverrideFilter was not registered (possibly already registered?)
18-12-2020 13:01:33:775 28347 INFO  org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: loaded (conf ok)
18-12-2020 13:01:34:707 29279 INFO  org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor - Initializing ExecutorService 'threadPoolTaskExecutor'
18-12-2020 13:01:36:067 30639 INFO  org.springframework.security.web.DefaultSecurityFilterChain - Creating filter chain: Ant [pattern='/static/**'], []
18-12-2020 13:01:36:120 30692 INFO  org.springframework.security.web.DefaultSecurityFilterChain - Creating filter chain: any request, [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@4bbf20d1, org.springframework.security.web.context.SecurityContextPersistenceFilter@31ab4859, org.springframework.security.web.header.HeaderWriterFilter@2d9de284, org.springframework.security.web.authentication.logout.LogoutFilter@5f3f3d00, org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter@38a38ed4, org.springframework.security.web.session.ConcurrentSessionFilter@3348c987, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@29d3d0fb, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@3d6778d5, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@6fced25c, org.springframework.security.web.session.SessionManagementFilter@7540160e, org.springframework.security.web.access.ExceptionTranslationFilter@75d97e18, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@6f8ac8d5]
18-12-2020 13:01:36:378 30950 INFO  org.apache.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-7000"]
18-12-2020 13:01:36:423 30995 INFO  org.springframework.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 7000 (http) with context path ''
18-12-2020 13:01:36:428 31000 INFO  org.asqatasun.webapp.AsqatasunWebappApplication - Started AsqatasunWebappApplication in 29.917 seconds (JVM running for 32.981)
18-12-2020 13:12:49:159 703731 INFO  org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet'
18-12-2020 13:12:49:159 703731 INFO  org.springframework.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet'
18-12-2020 13:12:49:175 703747 INFO  org.springframework.web.servlet.DispatcherServlet - Completed initialization in 16 ms
18-12-2020 13:13:57:048 771620 INFO  org.asqatasun.webapp.controller.ContractManagementController - pierre.boudrie@asp-public.fr
18-12-2020 13:15:04:640 839212 INFO  org.asqatasun.webapp.controller.ContractManagementController - pierre.boudrie@asp-public.fr
18-12-2020 13:16:07:946 902518 INFO  org.asqatasun.webapp.orchestrator.AsqatasunOrchestrator - Launching audit Page on http://www.google.fr
18-12-2020 13:16:08:491 903063 WARN  org.asqatasun.util.http.HttpRequestHandler - UnknownHostException on http://www.google.fr
18-12-2020 13:16:08:493 903065 WARN  org.asqatasun.util.http.HttpRequestHandler - UnknownHostException on http://www.google.fr
18-12-2020 13:16:09:127 903699 INFO  org.asqatasun.service.command.AbstractScenarioAuditCommandImpl - Loading content for null
18-12-2020 13:16:09:127 903699 WARN  org.asqatasun.service.command.AbstractScenarioAuditCommandImpl - Audit Status is ERROR while SCENARIO_LOADING was required 
18-12-2020 13:16:09:167 903739 WARN  org.asqatasun.service.command.AuditCommandImpl - Audit status isERROR whileCONTENT_ADAPTING was required
18-12-2020 13:16:09:191 903763 WARN  org.asqatasun.service.command.AuditCommandImpl - Audit status isERROR whilePROCESSING was required
18-12-2020 13:16:09:205 903777 WARN  org.asqatasun.service.command.AuditCommandImpl - Audit status isERROR whileCONSOLIDATION was required
18-12-2020 13:16:09:207 903779 WARN  org.asqatasun.service.command.AuditCommandImpl - Audit status isERROR whileANALYSIS was required
18-12-2020 13:16:09:207 903779 INFO  org.asqatasun.webapp.orchestrator.AsqatasunOrchestrator - AUDIT COMPLETED:17,http://www.google.fr,160829736817
18-12-2020 13:16:09:207 903779 INFO  org.asqatasun.webapp.orchestrator.AsqatasunOrchestrator - Current audit is 17
18-12-2020 13:16:09:583 904155 INFO  org.asqatasun.webapp.orchestrator.AsqatasunOrchestrator - Audit page terminated on http://www.google.fr

Bonjour @wolwyv,

Précisions sur les outils Vagrant / Docker :

Comme c’est indiqué à plusieurs endroits (dans le README des 2 dépôts), ces outils ne doivent pas être utilisés pour déployer un serveur de prod. Ils sont destinés à être utilisés sur l’ordinateur d’un develooppeur ou d’un chef de projet.

:warning: Created for testing purpose only, no security has been made for production. :warning:


@mfaure a mis à jour la documentation pour l’installation d’Asqatasun v5. https://doc.asqatasun.org/v5/en/administrator/installation/asqatasun/


Pour répondre à tes questions :

  • le fichier /etc/asqatasun.conf est nécessaire pour la v4 d’Asqatasun (mais pour le moment, nous n’avons pas testé l’utilisation d’un fichier de conf pour la v5, mais c’est certainement possible)
  • la configuration par défault de la v5 est visible dans le fichier web-app/asqatasun-web-app/src/main/resources/application.yml du code source et embarqué dans le .war
  • il est possible de surcharger ces options de configurations par défaut, au lancement du .war en ajoutant des options dans la ligne de commande.

Exemple basé sur la version Docker :

    /usr/bin/java                                                            \
    -Dwebdriver.firefox.bin=/opt/firefox/firefox                             \
    -Dwebdriver.gecko.driver=/opt/geckodriver                                \
    -Dapp.logging.path="${LOG_DIR}"                                          \
    -Djdbc.url="jdbc:${DB_DRIVER}://${DB_HOST}:${DB_PORT}/${DB_DATABASE}"    \
    -Djdbc.user="${DB_USER}"                                                 \
    -Djdbc.password="${DB_PASSWORD}"                                         \
    -jar /home/asqatasun/app.war                                             \
    --server.port="${WWWPORT}"


Dans ton cas, pour l’utilisation d’un proxy, des options de configuration semble déjà exister dans le fichier application.yml (ligne 38) :

app:
  ...
  engine:
    ...
    loader:
      proxy:
        port:
        host:

Sans pouvoir tester, car je n’ai pas de proxy sous la main, le lancement de la webapp avec un proxy devrait ressembler à cela :

    /usr/bin/java                                                            \
    -Dwebdriver.firefox.bin=/opt/firefox/firefox                             \
    -Dwebdriver.gecko.driver=/opt/geckodriver                                \
    -Dapp.engine.loader.proxy.port="${PROXY_PORT}"                           \
    -Dapp.engine.loader.proxy.host="${PROXY_HOST}"                           \
    -Dapp.logging.path="${LOG_DIR}"                                          \
    -Djdbc.url="jdbc:${DB_DRIVER}://${DB_HOST}:${DB_PORT}/${DB_DATABASE}"    \
    -Djdbc.user="${DB_USER}"                                                 \
    -Djdbc.password="${DB_PASSWORD}"                                         \
    -jar /home/asqatasun/app.war                                             \
    --server.port="${WWWPORT}"


j’ai rajouté quelques tickets pour la question des proxys :

Nous sommes fortement intéressés par tes retours sur ce point.


Dernière remarque, le docker est parfais pour une utilisation sur la machine du développeur. Dans ton cas, il te faut modifier le DockerFile pour prendre en compte la modification avant de relancer l’esemble via docker-compose :

# build docker image + launch Asqatasun and a new database
docker-compose rm -fsv
docker-compose up --build

Le vagrant est certainement un peu plus souple pour faire des tests sur la configuration d’Asqatasun et la configuration de l’OS se rapproche un peu plus d’un serveur de prod.

@wolwyv,

Précision, suite à une vérification réalisée par @koj :

Les options de configuration pour l’utilisation d’un proxy sont disponibles dans le fichier application.yml, mais ne sont pas utilisées lors du lancement de Firefox.

Donc, un correctif doit être implémenté dans Asqtasun pour permettre d’utiliser un proxy. Voir le ticket pour suivre l’avancement sur ce point : Allow to use proxy (#558) · Issues · asqatasun / Asqatasun · GitLab

ligne de commande utilisé pour simuler un proxy via un tunnel SSH

ssh -NTD 127.0.0.1:9966 <user>@<server>

@wolwyv pourrais-tu nous indiquer le type de proxy que tu dois utiliser :

  • proxy HTTP / HTTPS ou SOCKS ?
  • proxy avec login/password ?

Bonjour et merci pour toutes ces informatiosn !

Il s’agit d’un proxy http avec login/password

A propos de ce point, avez vous une idée approximative d’une date pour une release permettant une utilisation en production ?

La release d’Asqatasun est proche. Il nous reste un point à régler pour les mots de passe. Pas de date, mais je dirai début janvier.

Pour les sous-projets vagrant et docker, ils ont été conçus pour un usage sur le poste de travail (dev, chef de projet) ou pour des démos, mais pas vraiment pour faire de la production avec. Je pense que nous ne changerons pas cela dans l’immédiat. De notre côté, la production passe par une installation classique ou automatisé (via Puppet, Ansible, …) comme c’est décrit dans la documentation (mise à jour en cours par @mfaure) . Si tu souhaites utiliser Docker pour mettre en production, je t’invite à regarder le DockerFile et peut-être améliorer quelques points. Dans ce cas, n’hésite pas à nous partager ces améliorations sur le forum ou via des PR.

Merci pour ces informations ! On va partir sur une installation classique je pense donc ! L’instance Docker va resté pour le moment où lle est en environnement de test

Bonjour,

Collègue de wolwyv qui a initié ce post, nous avons 2 questions sur la configuration du proxy avec la version Docker :

  1. Lorsqu’on ajoute l’option -Dapp.engine.loader.proxy.host="${PROXY_HOST}" dans la ligne de commande, faut-il préfixer l’url du proxy avec “htpp://” ?
  2. Comment passer l’option “no_proxy” de cette façon ?

Merci d’avance pour votre aide.

Bonjour @stefg,

Lorsqu’on ajoute l’option -Dapp.engine.loader.proxy.host=“${PROXY_HOST}” dans la ligne de commande, faut-il préfixer l’url du proxy avec “htpp://” ?

Comme c’est indiqué plus haut, un correctif doit être implémenté dans Asqtasun pour permettre d’utiliser un proxy. Voir le ticket #558 pour suivre l’avancement sur ce point. Le correctif prévu PR #530 doit encore être finalisé. Donc, à ce jour ce n’est pas possible d’utiliser un proxy avec Asqatasun 5.0.0-rc1.

Comment passer l’option “no_proxy” de cette façon ?

c’est l’option par défaut !