Welcome to Headwind MDM Q&A, where you can ask questions and receive answers from other members of the community.

Please do not post bug reports, missing feature requests, or demo inquiries. If you have such an inquiry, submit a contact form.

+1 vote

I'm installing Headwind MDM on my server using the installer from the website.

However it reports an error: failed to deploy WAR file!

Here's the screen:

Ready to install!

Location on server: /var/lib/tomcat9/work

URL: 192.168.1.6:443

Is this information correct [Y/n]? y

Waiting for undeploying the previous version

..........

Tomcat config file created: /var/lib/tomcat9/conf/Catalina/localhost/ROOT.xml

Deploying ./server/target/launcher.war to Tomcat: /var/lib/tomcat9/webapps/ROOT.war

........................................................................................................................

ERROR: failed to deploy WAR file!

Please check /var/lib/tomcat9/logs/catalina.out for details.

I try to install it again but its happen all the times.

I cheked a tomcat log file and there's a lot of information. What i looking for?

The Errors i found:


INFO: 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 scaning can improve startup time and JSP compilation time.

Dec 06 14:29:56 mdm tomcat9[11011]: [HMDM-LOGGING] : Using log4j configuration from: file:///var/lib/tomcat9/work/log4j-hmdm.xml

Dec 06 14:29:59 mdm tomcat9[11011]: 2021-12-06 14:29:59 [ERROR] com.hmdm.guice.module.LiquibaseModule : Error during open JDBC connection

Dec 06 14:29:59 mdm tomcat9[11011]: org.postgresql.util.PSQLException: FATAL: password authentication failed for user "hmdm"

2021-12-06 14:30:00 [ERROR] com.hmdm.notification.guice.module.NotificationLiquibaseModule : Error during open JDBC connection

Dec 06 14:30:00 mdm tomcat9[11011]: org.postgresql.util.PSQLException: FATAL: password authentication failed for user "hmdm"

by (150 points)
Please check the tomcat log file for details.

On Tomcat 9, log is opened by the command:

journalctl -u tomcat9.service

1 Answer

–1 vote
Looks like the installer script has corrupted the PostgreSQL password.

This may happen if you have special characters in the passwords, for example, < and > will certainly break the script flow, maybe some other characters will also do.

Please update the password, excluding all special characters and keeping only letters and digits, and re-run the installer.
by (32.7k points)
I alredy try that and use password 'topsecret' and it didnt work.
The issue may be on the database side. Please look at this article: https://stackoverflow.com/questions/7695962/password-authentication-failed-for-user-postgres
Ok i installed new system Ubuntu 20.04 and did everything according to Your Instruction. It still doesn't work. I have the same error us before. Is Your instruction  inncorect?
The instruction is correct. Your PostgreSQL database doesn't seem to be configured propetly. Please review the link I wrote in my previous comment.
...