0

I keep getting this error when I push to the OpenShift (small gear) git repository:

 remote: [INFO] auto discovered modules [your.company.MyAppWidgetset]
 remote: [WARNING] Failed to retrieve com.vaadin:vaadin-client-compiler based on project POM
 remote: [INFO] Using com.vaadin:vaadin-client-compiler version 7.5.10
 remote: [ERROR] Dec 27, 2015 8:36:25 PM java.util.prefs.FileSystemPreferences$1 run
 remote: [ERROR] INFO: Created user preferences directory.
 remote: [INFO] Compiling module your.company.MyAppWidgetset
 Connection to vaadindemo-omio.rhcloud.com closed by remote host.
 fatal: The remote end hung up unexpectedly

I've been trying to deploy this Vaadin demo app:

mvn archetype:generate -DarchetypeGroupId=com.vaadin -DarchetypeArtifactId=vaadin-archetype-application -DarchetypeVersion=7.5.10 -DgroupId=your.company -DartifactId=. -Dversion=1.0 -Dpackaging=war

The most relevant results from my research were:

  • this proposed solution in the Vaadin forum which had no effect to me;
  • this SO post which describes a different issue than what I'm facing at the moment.

I've SSH'ed into the server and verified that my user owns all the directories inside app-root except for app-root itself which is owned by root but I don't have permission to change it.

Unfortunately I don't enough experience with neither Vaadin nor OpenShift to be able to proceed.

How to get rid of the Maven build errors?

Edited:

The command to deploy is actually a git push where origin is the repo in OpenShift as described in their documentation.

The complete log and pom.

Péter Török
  • 114,404
  • 31
  • 268
  • 329
  • 1
    1) What is the exact command you are running when you say *deploy* (is it a maven deploy, war, etc) ? 2) Can you share your complete pom and log? – Morfic Dec 28 '15 at 08:50
  • I can see a few errors in your logfile. `WARNING: Could not lock User prefs. Unix error code 2.` indicates that the maven/java process is unable to write files in your home directory, [see this similar question for a possible solution](http://stackoverflow.com/questions/23960451/java-system-preferences-under-different-users-in-linux). Not sure this is the fatal one, but I believe you should fix them one at a time and retry. – Morfic Dec 31 '15 at 22:54

0 Answers0