Generator-jhipster: Unable to start jhipster project on digitalocean cloud.

Created on 30 Apr 2015  路  10Comments  路  Source: jhipster/generator-jhipster

When I try to deploy my application using
mvn spring-boot:run
I got
[DEBUG] com.kb.config.WebConfigurer - Registering Metrics Servlet
[INFO] com.kb.config.WebConfigurer - Web application fully configured

It's the last row that I can receive, and after that, process stucks.
Who knows what can be the problem ?

Most helpful comment

I know this issue is closed for a long time now, but I had a similar issue on Digital Ocean, and the google led me to this issue.

The -Djava.security.egd value wasn't helpful. in this case.

In my case the liquibase has locked the database to start with async migrations, and set the 'LOCKED' value in DATABASECHANGELOG. Since application has stopped for some irrelevant reasons before it has finished, database was locked.

After setting it to 0 manually everything worked fine.

DATABASECHANGELOGLOCK` SET `LOCKED`='0' WHERE `ID`='1';

All 10 comments

My assumption is that this is -Djava.security.egd paremeter fault.

Could someone tell me how to pass parameters to embedded tomcat ?

You can do this by passing it on the commandline with --parameter.property=value

http://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html#boot-features-external-config-command-line-args

I found the solution - you need to pass /dev/urandom as a value

Djava.security.egd=file:/dev/./urandom

        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
            <configuration>
                <jvmArguments>-Djava.rmi.server.hostname=localhost -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -Djava.security.egd=file:/dev/./urandom</jvmArguments>
                <arguments>
                    <argument>--spring.profiles.active=dev</argument>
                </arguments>
            </configuration>
        </plugin>

This looks quite specific to DigitalOcean, do you think we should have a documentation page for this?
I'm closing this as the issue is solved, but if you want to contribute something like http://jhipster.github.io/cloudfoundry.html you could propose a PR here

I think, that you should add this additional parameter to spring-boot-maven-plugin.
This will avoid this issue on digitalocean.
Or just write a documentation for this, or, I can handle this.
Thanks.

Sorry for the revival, but it's the same for ScaleWay C1 (arm arch) with a Debian Jessie.
The solution for the application not to hang, was to specify -Djava.security.egd=file:/dev/urandom

I know, thanks.

Thanks, the same helped in vultr with Debian Jessie as well.
It had worked though in the same server without this parameter for the last 10+ months.

I know this issue is closed for a long time now, but I had a similar issue on Digital Ocean, and the google led me to this issue.

The -Djava.security.egd value wasn't helpful. in this case.

In my case the liquibase has locked the database to start with async migrations, and set the 'LOCKED' value in DATABASECHANGELOG. Since application has stopped for some irrelevant reasons before it has finished, database was locked.

After setting it to 0 manually everything worked fine.

DATABASECHANGELOGLOCK` SET `LOCKED`='0' WHERE `ID`='1';
Was this page helpful?
0 / 5 - 0 ratings

Related issues

shivroy121 picture shivroy121  路  3Comments

marcelinobadin picture marcelinobadin  路  3Comments

RizziCR picture RizziCR  路  3Comments

frantzynicolas picture frantzynicolas  路  3Comments

tomj0101 picture tomj0101  路  3Comments