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

Getting 500 error when I try to install plugin #38

Closed
adamplumb opened this issue Jul 3, 2014 · 3 comments
Closed

Getting 500 error when I try to install plugin #38

adamplumb opened this issue Jul 3, 2014 · 3 comments

Comments

@adamplumb
Copy link

When I run the following command I get a 500 error on the xml file:

grails install-plugin redis --stacktrace


| Error Error installing plugin: Server returned HTTP response code: 500 for URL: http:https://grails.org/api/v1.0/plugin/redis?format=xml (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)
java.io.IOException: Server returned HTTP response code: 500 for URL: http:https://grails.org/api/v1.0/plugin/redis?format=xml
    at InstallPlugin$_run_closure1.doCall(InstallPlugin.groovy:70)
    at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)
    at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)
    at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy)
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185)
    at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)
    at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
    at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
    at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
    at gant.Gant.withBuildListeners(Gant.groovy:427)
    at gant.Gant.this$2$withBuildListeners(Gant.groovy)
    at gant.Gant$this$2$withBuildListeners$0.callCurrent(Unknown Source)
    at gant.Gant.dispatch(Gant.groovy:415)
    at gant.Gant.this$2$dispatch(Gant.groovy)
    at gant.Gant.invokeMethod(Gant.groovy)
    at gant.Gant.executeTargets(Gant.groovy:591)
    at gant.Gant.executeTargets(Gant.groovy:590)
| Error Error installing plugin: Server returned HTTP response code: 500 for URL: http:https://grails.org/api/v1.0/plugin/redis?format=xml

I tried format=json as well and I get the same error.

@tednaleid
Copy link
Contributor

That's not really a problem with the grails redis plugin, it's a problem with grails install-plugin command. That command is actually deprecated and really shouldn't be used. The right way to add a plugin to your app is to add it to the BuildConfig.groovy file in the plugins section:

When I add it there like this, it works:

        compile ":redis:1.5.5"

@adamplumb
Copy link
Author

Ah ok thanks! I was going by the instructions on http:https://grails.org/plugin/redis. Maybe it would be worth getting rid of that and noting that it is deprecated? Especially since you aren't providing an xml file for using with the install-plugin command.

Adding the compile command worked for me.

@tednaleid
Copy link
Contributor

Didn't realize the install instructions were bad, thanks for letting me know. I've got them updated now to suggest using BuildConfig.groovy instead.

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