Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Placing pidfile outside of project root causes startup to hang #17

Open
MaxMartin opened this issue May 15, 2013 · 2 comments
Open

Placing pidfile outside of project root causes startup to hang #17

MaxMartin opened this issue May 15, 2013 · 2 comments

Comments

@MaxMartin
Copy link

If you configure your pidfile to be located anywhere outside of the project directory (for instance, /tmp/app.pid), the startup script will hang indefinitely waiting for the pidfile to appear, even though the pidfile has been created correctly.

@twashing
Copy link

twashing commented Oct 3, 2014

This is happening to me too ([lein-daemon "0.5.4"]). It occurs even when the pid file is in the project root directory. When I run lein daemon run myapp, I get the following error.

java.lang.Exception: myapp failed to start in 300 seconds
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (NativeConstructorAccessorImpl.java:-2)
    sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:57)
    ...
    clojure.lang.Var.applyTo (Var.java:700)
    clojure.main.main (main.java:37)

I've also tried putting it in the background, with lein daemon start myapp &. I think this error has to do with slow JVM startup times. It's also mentioned in this irc log. Any insights here appreciated.

@arohner
Copy link
Owner

arohner commented Oct 3, 2014

Sorry for the neglect of the project. I'd recommend using https://github.com/circleci/lein-jarbin rather than lein-daemon.

ConnorStroomberg pushed a commit to ConnorStroomberg/patavi-docker that referenced this issue Dec 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants