Problème persistance à l'installation

Bonjour,

Lorsque je lance l’installation, j’ai un problème lors de la création de la base.
Voici le message d’erreur si quelqu’un peut me renseigner !

Merci d’avance,
Romain

BUILD SUCCESSFUL in 44s
118 actionable tasks: 13 executed, 105 up-to-date
MBP-de-Romain:abs-webapp admin$ ./gradlew --no-daemon run

Task :modules:axelor-bank-payment:compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

Task :run
2018-04-11 17:01:40.737 DEBUG 93574 — [ost-startStop-1] com.axelor.db.JpaModule : Configuring database…
2018-04-11 17:01:43.288 INFO 93574 — [ost-startStop-1] com.axelor.app.AppModule : Configuring app modules…
2018-04-11 17:01:43.289 DEBUG 93574 — [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.base.module.AdminModule
2018-04-11 17:01:43.299 DEBUG 93574 — [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.tool.module.ToolModule
2018-04-11 17:01:43.304 DEBUG 93574 — [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.message.module.MessageModule
2018-04-11 17:01:43.324 DEBUG 93574 — [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.base.module.BaseModule
2018-04-11 17:01:43.421 DEBUG 93574 — [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.account.module.AccountModule
2018-04-11 17:01:43.546 DEBUG 93574 — [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.bankpayment.module.BankPaymentModule
2018-04-11 17:01:43.604 DEBUG 93574 — [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.crm.module.CrmModule
2018-04-11 17:01:43.626 DEBUG 93574 — [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.sale.module.SaleModule
2018-04-11 17:01:43.681 DEBUG 93574 — [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.project.module.ProjectModule
2018-04-11 17:01:43.698 DEBUG 93574 — [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.hr.module.HumanResourceModule
2018-04-11 17:01:43.767 DEBUG 93574 — [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.purchase.module.PurchaseModule
2018-04-11 17:01:43.781 DEBUG 93574 — [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.stock.module.StockModule
2018-04-11 17:01:43.828 DEBUG 93574 — [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.supplychain.module.SupplychainModule
2018-04-11 17:01:43.916 DEBUG 93574 — [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.businessproject.module.BusinessProjectModule
2018-04-11 17:01:43.937 DEBUG 93574 — [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.production.module.ProductionModule
2018-04-11 17:01:43.997 DEBUG 93574 — [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.businessproduction.module.BusinessProductionModule
2018-04-11 17:01:44.018 DEBUG 93574 — [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.contract.module.ContractModule
2018-04-11 17:01:44.029 DEBUG 93574 — [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.fleet.module.FleetModule
2018-04-11 17:01:44.035 DEBUG 93574 — [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.helpdesk.module.HelpdeskModule
2018-04-11 17:01:44.040 DEBUG 93574 — [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.studio.module.StudioModule
2018-04-11 17:01:44.057 DEBUG 93574 — [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.marketing.module.MarketingModule
2018-04-11 17:01:44.064 DEBUG 93574 — [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.quality.module.QualityModule
2018-04-11 17:01:44.073 DEBUG 93574 — [ost-startStop-1] com.axelor.app.AppModule : Configure module: com.axelor.apps.talent.module.TalentModule
2018-04-11 17:01:52.448 ERROR 93574 — [ost-startStop-1] o.a.c.c.C.[.[localhost].[/axelor-erp] : Exception starting filter [guiceFilter]
javax.persistence.PersistenceException: No Persistence provider for EntityManager named persistenceUnit
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:61)
at com.google.inject.persist.jpa.JpaPersistService.start(JpaPersistService.java:108)
at com.google.inject.persist.PersistFilter.init(PersistFilter.java:79)
at com.google.inject.servlet.FilterDefinition.init(FilterDefinition.java:111)
at com.google.inject.servlet.ManagedFilterPipeline.initPipeline(ManagedFilterPipeline.java:99)
at com.google.inject.servlet.GuiceFilter.init(GuiceFilter.java:226)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:285)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266)
at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4590)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5233)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2018-04-11 17:01:52.449 ERROR 93574 — [ost-startStop-1] o.apache.catalina.core.StandardContext : One or more Filters failed to start. Full details will be found in the appropriate container log file
2018-04-11 17:01:52.449 ERROR 93574 — [ost-startStop-1] o.apache.catalina.core.StandardContext : Context [/axelor-erp] startup failed due to previous errors

Running at http://localhost:8080/axelor-erp

<============-> 99% EXECUTING [2m 47s]

:run

Il faut vérifier le fichier de configuration application.properties sous abs-webapp\src\main\resources

Oui c’est ce que je pensais mais j’ai suivi le wiki et il me semble pas que cela vienne de la.
Je pense plutôt que cela vient de la config du fichier persistence.xml dans abs-webapp\src\main\resources\META-INF\

Ci joint la config d’application.properties :slight_smile:

> ################################################################################
> #
> # Application Configuration
> #
> ################################################################################

> # Database settings
> # ~~~~~
> db.default.driver = org.postgresql.Driver
> db.default.ddl = update
> db.default.url = jdbc:postgresql://localhost:5432/axelor-erp
> db.default.user = admin
> db.default.password = ********

> # Application Information
> # ~~~~~
> application.name = Axelor Business Suite
> application.description = Axelor Entreprise Application
> application.version = 5.0.0-SNAPSHOT
> application.author = Axelor

> # link to be used with header logo
> application.home = http://www.axelor.com

> # application header logo, should be 40px in height
> # ~~~~~
> application.logo = img/axelor.png

> # Set default language
> application.locale = fr

> # Set default CSS theme, for example `blue`
> application.theme = theme-default

> # Application Mode
> # ~~~~~
> # Set to 'dev' for development mode else 'prod'
> application.mode = dev

> # Date Format
> # ~~~~~
> date.format = dd/MM/yyyy

> # Timezone
> # ~~~~~
> date.timezone = UTC

> # Menu
> # ~~~~~
> # Set menu style (left, top, both)
> application.menu = both

> # View options
> # ~~~~~
> application.view.toolbar-title = hide

> # Link to the online help
> # ~~~~~
> application.help = http://wiki.axelor.fr/confluence/display/AxelorERP

> # Application time out in minutes
> # ~~~~~
> session.timeout = 480

> # Data export (csv) encoding
> # ~~~~
> # Use Windows-1252, ISO-8859-1 or ISO-8859-15 if targeting ms excel
> # (excel does not recognize utf8 encoded csv)
> data.export.encoding = ISO-8859-15

> # Storage path for export action
> # ~~~~~
> data.export.dir = {java.io.tmpdir}/axelor

> # Storage path for upload files (attachments)
> # ~~~~~
> # use {user.home} key to save files under user home directory, or
> # use absolute path where server user have write permission.
> file.upload.dir = {java.io.tmpdir}/axelor

> # Maximum upload size (in MB)
> # ~~~~~
> file.upload.size = 5

> # Indicate if the birt engine to use is the embedded engine or external engine
> # Default : true
> # ~~~~~
> axelor.report.use.embedded.engine = 

> # Link to report enginePath (external engine)
> # Example : http://localhost:8080/birt
> # Default : {webapps server}/birt
> # ~~~~~
> axelor.report.engine = 

> # Reports resource path (external engine)
> # Default : report
> # ~~~~~
> axelor.report.resource.path =

> # Enable/disable demo data
> # ~~~~~
> data.import.demo-data = false

> # Custom context values
> # ~~~~~
> context.app = com.axelor.apps.base.service.app.AppService
> context.appLogo = com.axelor.apps.base.service.user.UserService:getUserActiveCompanyLogo

> # Hibernate full-text search
> # ~~~~~
> hibernate.search.default.directory_provider = none
> hibernate.search.default.indexBase = {java.io.tmpdir}/axelor

> # HikariCP connection pool
> # ~~~~~
> hibernate.hikari.minimumIdle = 5
> hibernate.hikari.maximumPoolSize = 20
> hibernate.hikari.idleTimeout = 300000

> # CORS configuration to allow cross origin requests
> # ~~~~~
> # regular expression to test allowed origin or * to allow all (not recommended)
> #cors.allow.origin = *
> #cors.allow.credentials = true
> #cors.allow.methods = GET,PUT,POST,DELETE,HEAD,OPTIONS
> #cors.allow.headers = Origin,Accept,X-Requested-With,Content-Type,Access-Control-Request-Method,Access-Control-Request-Headers

> # Logging
> # ~~~~~
> # Custom logback configuration can be provided with `logging.config` property pointing
> # to a custom `logback.xml`. In this case, all the logging configuration provided here
> # will be ignored.
> #
> # Following settings can be used to configure logging system automatically.
> #
> #logging.path = {user.home}/.axelor/logs
> #logging.pattern.file = %d{yyyy-MM-dd HH:mm:ss.SSS} %5p ${PID:- } --- [%t] %-40.40logger{39} : %m%n
> #logging.pattern.console = %clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(%5p) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n

> logging.level.root = ERROR
> logging.level.com.axelor = DEBUG

> # Log everything. Good for troubleshooting
> #logging.level.org.hibernate = INFO

> # Log all SQL DML statements as they are executed
> #logging.level.org.hibernate.SQL = DEBUG
> #logging.level.org.hibernate.engine.jdbc = DEBUG

> # Log all SQL DDL statements as they are executed
> #logging.level.org.hibernate.tool.hbm2ddl = INFO

> # Log all JDBC parameters
> #logging.level.org.hibernate.type = ALL

> # Log transactions
> #logging.level.org.hibernate.transaction = DEBUG

> # Log L2-Cache
> #logging.level.org.hibernate.cache = DEBUG

> # Log JDBC resource acquisition
> #logging.level.org.hibernate.jdbc = TRACE
> #logging.level.org.hibernate.service.jdbc = TRACE

> # Log connection pooling
> #logging.level.com.zaxxer.hikari = INFO

Bonjour,
La base s’appelle bien axelor-erp ? l’utilisateur de la base ‘admin’ (bizarre) et le mot de passe est ********
psql -h localhost axelor-erp admin fonctionne ?

Oui la base s’appelle bien axelor-erp, l’utilisateur est postgres et le mot de passe c’est moi qui et mis les étoiles sur le forum.

La commande psql -h localhost axelor-erp postgres fonctionne
Voici le résultat :

MBP-de-Romain:~ admin$ psql -h localhost axelor-erp postgres
psql (10.3, server 9.6.8)
Type "help" for help.

Donc l’utilisateur n’est pas admin comme indiqué dans l’application.properties
Par ailleurs l’utilisation du compte sysadmin pour de l’applicatif est pour le moins déconseillé