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

rake jetty:restart routinely fails #32

Open
atz opened this issue Oct 18, 2014 · 1 comment
Open

rake jetty:restart routinely fails #32

atz opened this issue Oct 18, 2014 · 1 comment

Comments

@atz
Copy link
Contributor

atz commented Oct 18, 2014

$ rake jetty:restart
Instance stop method called for pid '8382'
Starting jetty with these values: 
jetty_home: /Users/atz/repos/argo/jetty
jetty_command: java -Djetty.port=8983 -Dsolr.solr.home=/Users/atz/repos/argo/jetty/solr -XX:MaxPermSize=256m -Xmx256m -jar start.jar
rake aborted!
Port 8983 is already in use.
/Users/atz/.rvm/gems/ruby-1.9.3-p547/gems/jettywrapper-1.8.2/lib/jettywrapper.rb:358:in `start'
/Users/atz/.rvm/gems/ruby-1.9.3-p547/gems/jettywrapper-1.8.2/lib/jettywrapper.rb:233:in `start'
/Users/atz/.rvm/gems/ruby-1.9.3-p547/gems/jettywrapper-1.8.2/lib/tasks/jettywrapper.rake:43:in `block (2 levels) in <top (required)>'
/Users/atz/.rvm/gems/ruby-1.9.3-p547/bin/ruby_executable_hooks:15:in `eval'
/Users/atz/.rvm/gems/ruby-1.9.3-p547/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => jetty:restart
(See full trace by running task with --trace)

The old process isn't fully shut down when the new one tries to spin up. It needs to wait a few seconds between stop and start (preferably checking to see if the port actually becomes available).

@awead
Copy link
Contributor

awead commented Oct 19, 2014

FWIW, I just use killall java to stop the running jetty. Alternatively, we could use a value in jetty.yml to wait the number of seconds between stop and start.

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

2 participants