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

hydra:jetty rake task doesn't work on Windows #14

Open
flyingzumwalt opened this issue Apr 9, 2013 · 8 comments
Open

hydra:jetty rake task doesn't work on Windows #14

flyingzumwalt opened this issue Apr 9, 2013 · 8 comments
Labels

Comments

@flyingzumwalt
Copy link
Contributor

When you run the hydra:jetty rake task on Windows, it returns

Unable to download jetty from

without reporting a URL. I assume that it's because of how the url is looked up. Maybe defined?(ZIP_URL) returns true on Windows even though it's not actually defined.

    def url
      @url ||= defined?(ZIP_URL) ? ZIP_URL : 'https://github.com/projecthydra/hydra-jetty/archive/new-solr-schema.zip'
      @url
    end
@jcoyne jcoyne closed this as completed Apr 9, 2013
@jcoyne jcoyne reopened this Apr 9, 2013
@atz
Copy link
Contributor

atz commented Jun 29, 2015

This code affects versions up to 1.4.1 but seems to go away in 1.4.2.

@yvoloshin
Copy link

Sorry, I'm probably being dense here... but "versions up to 1.4.1" of what?

@mjgiarlo
Copy link
Member

@yvoloshin jettywrapper, I believe.

@yvoloshin
Copy link

Thanks @mjgiarlo! That explains it. I asked the question because I'm struggling with setting up a hydra head, as I described in a post on the hydra-tech group (https://groups.google.com/forum/#!topic/hydra-tech/VNOPXMScbug). The text of the post is below. Do you have any ideas on what the problem could be? Thanks in advance for any help!

I'm new to hydra and I've just started creating a hydra head by following this tutorial on Project Hydra github. I'm stuck and hoping someone will help me out. I generated a rails app and added hydra dependencies. A problem comes up when I try to install hydra jetty. After running "rails g hydra:jetty", I get "Unable to move tmp/jetty_generator/hydra-jetty-master into jetty/ Operation not permitted - (tmp/jetty_generator/hydra-jetty-master, jetty)". There is a mention in the tutorial that the download might not work in Windows, and Windows 8.1 is what I'm using. In my case, the files downloaded with no problems into tmp/jetty_generator/hydra-jetty-master, and the problem came up after the download. There is also a suggestion that installing curl for Windows might help. I've done that and it made no difference.

@mjgiarlo
Copy link
Member

Hi! I'm not sure, @yvoloshin; I haven't touched Windows in a long while. Maybe some Windows-savvy folks will chime in on the list. Would you consider working in a Linux virtual environment? That's what folks typically wind up doing during Hydracamp after getting frustrated with trying to develop in the Windows environment. Pinging @mark-dce who may have tips.

@yvoloshin
Copy link

Actually, I'm running vagrant with a Linux virtual environment. One clue that might be relevant is that, after I ran "rails generate hydra:install", I got "ActiveRecord::NoDatabaseError: FATAL: database "hydra-demo_development" does not exist". The I ran "rake db:create db:migrate", which created the databases. After this, I ran "rails g hydra:jetty". Does this tell you anything?

@mjgiarlo
Copy link
Member

What do the permissions look like on the jetty/ directory? Perhaps those are locked down, or your user account doesn't own it?

@yvoloshin
Copy link

I'm using the administrator account, so permissions shouldn't be an issue. I tried running the jetty generator again and it actually worked this time. I don't know what was different, since I haven't made any changes to it. "Rake jetty:config" was also successful. But when I ran "rake jetty:start", I got the message below. I think now I'll try to re-build the app, but this time I'll make sure to run db:migrate before generating hydra.

D, [2015-07-11T04:10:20.387360 #11193] DEBUG -- : Starting jetty with these values:
D, [2015-07-11T04:10:20.388337 #11193] DEBUG -- : jetty_home: /vagrant/src/hydra-demo/jetty
D, [2015-07-11T04:10:20.389345 #11193] DEBUG -- : jetty_command: java -Djetty.port=8983 -Dsolr.solr.home=/vagrant/src/hydra-demo/jetty/solr -Xmx512m -XX:MaxPermSize=128m -jar start.jar
W, [2015-07-11T04:10:20.403514 #11193] WARN -- : Logging jettywrapper stdout to /vagrant/src/hydra-demo/jetty/jettywrapper.log
rake aborted!
ChildProcess::LaunchError: No such file or directory - java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants