|
Hi all,
I have updated my app to use Grails 2 about 2 weeks ago and all of a sudden grails command line scripts were stuck at configuring classpath. Output: $ grails clean | Configuring classpath It didn't go past it and till now it's been half an hour. Previously it used to be seconds. Why did this happen and any guesses on how to fix it? --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
I tried
1. rebooting the system 2. Switched the jvm from 1.6 update 30 to 1.6 update 31 3. Cleaned up the .grails 4. Ran the same thing on another grails project 5. Just ran "grails" without any argument still it seems to be stuck at "Configuring classpath" I do not understand how to fix it. My last resort is to format the system and see if that works. |
|
Hey
Did you try with grails 2.0.1 ?
Did you try with --offline ? Cheers On Thu, Feb 16, 2012 at 11:10 AM, bond_ <[hidden email]> wrote: I tried Stéphane MALDINI
-- |
|
I cannot update my project to Grails 2.0.1 yet. It has some unit/integration test breakages with no addTo* methods available.
No, I haven't tried it with --offline. Problem: I'm on a ubuntu machine and since grails.deb packages pulls in default-jdk/jre which pulls in openjdk so had to use the zip file. Workaround: Remove the zip file installation and install the deb file and did: sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/java-6-sun/bin/java 1062 sudo update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/java-6-sun/bin/jar 1062 sudo update-alternatives --install /usr/bin/javadoc javadoc /usr/lib/jvm/java-6-sun/bin/javadoc 1062 sudo update-alternatives --install /usr/bin/javap javap /usr/lib/jvm/java-6-sun/bin/javap 1062 sudo update-alternatives --install /usr/bin/jarsigner jarsigner /usr/lib/jvm/java-6-sun/bin/jarsigner 1062 sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/java-6-sun/bin/javac 1062 sudo update-alternatives --install /usr/bin/javah javah /usr/lib/jvm/java-6-sun/bin/javah 1062 sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/java-6-sun/bin/javaws 1062 FYI: I'm on ubuntu 11.10 with the sun java downloaded from the oracle site(a .bin file) and then moved it to /usr/lib/jvm/java-6-sun and updated the links. I wasn't able to find what was causing the issue. |
|
I'm currently using Grails 2.0.1 and experiencing the same issue, this just started happening recently and seemed to happen randomly. I don't exactly know what the --offline flag does, it does complete with the --offline flag doing a clean however gives me an error Error "Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information)" so it doesn't seem to help anything.
My current technology stack is: Grails 2.0.1 STS 2.9.0.M2 jdk 1.6.0_29 Windows 7 Enterprise SP 1, 64 bit |
|
Probably waiting for timeout from a repository that is not responding.
Set log "verbose" in BuildConfig.groovy, and you might see which repository that causes the problem. Ronny On Mar 21, 2012, at 2:07 PM, ross.oreto wrote:
|
|
This post was updated on .
I updated STS to 2.9.0 RELEASE and set logging to verbose and I'm seeing many url not found errors, examples:
CLIENT ERROR: Not Found url=http://repo.grails.org/grails/core/org/codehaus/groovy/groovy/1.1-beta-2-SNAPSHOT/groovy-1.1-beta-2-SNAPSHOT.pom CLIENT ERROR: Not Found url=http://repo.grails.org/grails/core/org/codehaus/groovy/groovy/1.1-beta-3-SNAPSHOT/groovy-1.1-beta-3-SNAPSHOT.pom CLIENT ERROR: Not Found url=http://repo.grails.org/grails/core/org/codehaus/groovy/groovy/1.1-rc-1-SNAPSHOT/groovy-1.1-rc-1-SNAPSHOT.pom CLIENT ERROR: Not Found url=http://repo.grails.org/grails/core/org/codehaus/groovy/groovy/1.1-rc-2-SNAPSHOT/groovy-1.1-rc-2-SNAPSHOT.pom CLIENT ERROR: Not Found url=http://repo.grails.org/grails/core/org/codehaus/groovy/groovy/1.1-final-SNAPSHOT/groovy-1.1-final-SNAPSHOT.pom I noticed recently on the grails blog it states "We’re moving the central plugin repository from Codehaus to repo.grails.org", could this be causing the issues? If it helps here are my current repositories defined in BuildConfig.groovy repositories { inherits true // Whether to inherit repository definitions from plugins grailsPlugins() grailsHome() grailsCentral() mavenCentral() // uncomment these to enable remote dependency resolution from public Maven repositories mavenCentral() mavenLocal() mavenRepo "http://snapshots.repository.codehaus.org" mavenRepo "http://repository.codehaus.org" mavenRepo "http://download.java.net/maven/2/" mavenRepo "http://repository.jboss.com/maven2/" mavenRepo "http://sitemeter.univ-mulhouse.fr/mvn/" mavenRepo "http://maven.tmatesoft.com/content/repositories/releases/" mavenRepo "http://maven.tmatesoft.com/content/repositories/snapshots/" } |
|
In reply to this post by ross.oreto
I commented out grailsHome() and grailsCentral() under repositories in BuildConfig.groovy and this fixed the problem. Is this because of the recent move of the Grails repository? Are those entries no longer needed to resolve dependencies?
|
|
In reply to this post by Manuel Boillod
I've also set a timeout on url connection, to force grails to skip a host which is not responding.
> grails -Dsun.net.client.defaultConnectTimeout=500 -Dsun.net.client.defaultReadTimeout=500 compile
2012/3/21 Manuel Boillod <[hidden email]> For me, just remove the .grails/2.0.1/projects/[PROJECT_NAME] fix this problem. |
|
I haven't set any timeouts for these connections but I have recreated my .grails directory and ivy cache folder, downloaded a completely new grails instance, and updated STS. The only thing that works to resolve repository errors or to get past the url not found errors is to comment out grailsHome and grailsCentral methods. I'm not even completely sure what these methods do, but as of yesterday they are causing some issues.
|
|
This post was updated on .
In reply to this post by bond_
CONTENTS DELETED
The author has deleted this message.
|
|
Sorry for the duplicate post on the same thread, but I received an email indicating that my message would not be sent to the email list because I wasn't subscribed (but I did subscribe a few weeks ago?). In any case, here's some insight into why builds are taking so long right now...
The problem appears to be that repo.grails.org is not responding quickly to missing artifacts (or maybe for any artifacts at all). In fact it is always taking 15 seconds to respond. We have our own nexus repository where we are storing some our own grails plugins. When grails goes out to try to resolve those plugins, it is checking repo.grails.org first (because our repository is listed after the grails repos in BuildC onfig.groovy) and failing, as expected. However, what is not expected is that it will take 15 seconds to timeout each failed request: time wget http://repo.grails.org/grails/core/org/grails/plugins/eea-jobs/2.0.2-SNAPSHOT/eea-jobs-2.0.2-SNAPSHOT.pom --2012-03-21 13:50:55-- http://repo.grails.org/grails/core/org/grails/plugins/eea-jobs/2.0.2-SNAPSHOT/eea-jobs-2.0.2-SNAPSHOT.pom Resolving repo.grails.org... 50.16.203.43 Connecting to repo.grails.org|50.16.203.43|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2012-03-21 13:51:10 ERROR 404: Not Found. real 0m15.149s user 0m0.010s sys 0m0.000s Interestingly enough, if you send a second get request within a few seconds of the first, it will fail quickly (milliseconds as expected), It's only if you wait for a minute or so (not exactly sure how long), will the http request end up taking 15 seconds to respond. It's also interesting that it always takes 15 seconds to respond with the 404. This was definitely happening yesterday (March 20), but I'm not sure about March 19. I'm quite sure that it was *not* happening last week. This really does need to be fixed. |
|
This is still happening to me, both from my machine at home (near Washington, DC, USA) and from our build machine in AWS/US-East. Seems like I'm getting timeouts and files not found for common plugins. Here's the output from the first time I tried to run grails clean from our EC2 instance.
time grails clean -Dsun.net.client.defaultConnectTimeout=500 -Dsun.net.client.defaultReadTimeout=500 | Downloading: mysql-connector-java-5.1.16.jar.sha1 :: problems summary :: :::: ERRORS Server access Error: Read timed out url=http://repo.grails.org/grails/core/org/apache/httpcomponents/project/4.0/project-4.0.jar Server access Error: Read timed out url=http://repo.grails.org/grails/core/org/apache/httpcomponents/httpcomponents-core/4.0.1/httpcomponents-core-4.0.1.jar Server access Error: Read timed out url=http://repo.grails.org/grails/core/org/apache/httpcomponents/httpcore/4.0.1/httpcore-4.0.1-javadoc.jar Server access Error: Read timed out url=http://repo.grails.org/grails/core/org/apache/apache/4/apache-4.jar Server access Error: Read timed out url=http://repo.grails.org/grails/core/org/apache/commons/commons-parent/5/commons-parent-5.jar Server access Error: Read timed out url=http://repo.grails.org/grails/core/net/sf/json-lib/json-lib/2.3/json-lib-2.3.jar Server access Error: Read timed out url=http://repo.grails.org/grails/core/org/codehaus/groovy/groovy/%5B1.5,1.7.99%5D/groovy-%5B1.5,1.7.99%5D.pom Server access Error: Read timed out url=http://repo.grails.org/grails/core/org/codehaus/groovy/groovy/maven-metadata.xml Server access Error: Read timed out url=http://repo.grails.org/grails/core/org/codehaus/groovy/groovy/%5B1.5,1.7.99%5D/groovy-%5B1.5,1.7.99%5D.jar Server access Error: Read timed out url=http://repo.grails.org/grails/core/org/codehaus/groovy/groovy/1.7.11-SNAPSHOT/groovy-1.7.11-SNAPSHOT.jar Server access Error: Read timed out url=http://repo.grails.org/grails/core/org/apache/apache/3/apache-3.jar Server access Error: Read timed out url=http://repo.grails.org/grails/core/xerces/xercesImpl/2.8.1/xercesImpl-2.8.1-javadoc.jar Server access Error: Read timed out url=http://repo.grails.org/grails/core/xml-resolver/xml-resolver/1.2/xml-resolver-1.2-javadoc.jar Server access Error: Read timed out url=http://repo.grails.org/grails/core/org/grails/plugins/remote-control/1.2/remote-control-1.2-sources.jar Server access Error: Read timed out url=http://repo.grails.org/grails/core/org/grails/plugins/remote-control/1.2/remote-control-1.2-src.jar Server access Error: Read timed out url=http://repo.grails.org/grails/core/org/grails/plugins/remote-control/1.2/remote-control-1.2-javadoc.jar Server access Error: Read timed out url=http://repo.grails.org/grails/core/javax/servlet/servlet-api/2.4/servlet-api-2.4-javadoc.jar Server access Error: Read timed out url=http://repo.grails.org/grails/core/mysql/mysql-connector-java/5.1.16/mysql-connector-java-5.1.16-sources.jar Server access Error: Read timed out url=http://repo.grails.org/grails/core/mysql/mysql-connector-java/5.1.16/mysql-connector-java-5.1.16-src.jar Server access Error: Read timed out url=http://repo.grails.org/grails/core/mysql/mysql-connector-java/5.1.16/mysql-connector-java-5.1.16-javadoc.jar | Downloading: asm-tree-3.2.jar.sha1 :: problems summary :: :::: ERRORS Server access Error: Read timed out url=http://repo.grails.org/grails/core/org/codehaus/groovy/groovy/1.7.11-SNAPSHOT/groovy-1.7.11-SNAPSHOT.pom Server access Error: Read timed out url=http://repo.grails.org/grails/core/asm/asm-parent/3.2/asm-parent-3.2.jar Server access Error: Read timed out url=http://repo.grails.org/grails/core/asm/asm/3.2/asm-3.2-sources.jar Server access Error: Read timed out url=http://repo.grails.org/grails/core/asm/asm/3.2/asm-3.2-src.jar Server access Error: Read timed out url=http://repo.grails.org/grails/core/asm/asm/3.2/asm-3.2-javadoc.jar Server access Error: Read timed out url=http://repo.grails.org/grails/core/asm/asm-commons/3.2/asm-commons-3.2-sources.jar Server access Error: Read timed out url=http://repo.grails.org/grails/core/asm/asm-commons/3.2/asm-commons-3.2-src.jar Server access Error: Read timed out url=http://repo.grails.org/grails/core/asm/asm-commons/3.2/asm-commons-3.2-javadoc.jar Server access Error: Read timed out url=http://repo.grails.org/grails/core/asm/asm-tree/3.2/asm-tree-3.2-sources.jar Server access Error: Read timed out url=http://repo.grails.org/grails/core/asm/asm-tree/3.2/asm-tree-3.2-src.jar Server access Error: Read timed out url=http://repo.grails.org/grails/core/asm/asm-tree/3.2/asm-tree-3.2-javadoc.jar Server access Error: Read timed out url=http://repo.grails.org/grails/core/asm/asm-util/3.2/asm-util-3.2-sources.jar Server access Error: Read timed out url=http://repo.grails.org/grails/core/asm/asm-util/3.2/asm-util-3.2-src.jar Server access Error: Read timed out url=http://repo.grails.org/grails/core/asm/asm-util/3.2/asm-util-3.2-javadoc.jar Server access Error: Read timed out url=http://repo.grails.org/grails/core/asm/asm-analysis/3.2/asm-analysis-3.2-sources.jar Server access Error: Read timed out url=http://repo.grails.org/grails/core/asm/asm-analysis/3.2/asm-analysis-3.2-src.jar Server access Error: Read timed out url=http://repo.grails.org/grails/core/asm/asm-analysis/3.2/asm-analysis-3.2-javadoc.jar | Downloading: groovy-1.7.10.pom.sha1 | Error Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information): - org.grails.plugins:functional-test:1.2.7 - org.grails.plugins:remote-control:1.2 - org.grails.plugins:apns:0.5.3 real 1m3.559s user 0m12.570s sys 0m1.080s If I try to get one of the files listed as a timeout using curl, it takes 15 seconds, then responds with a file not found (just like jonroler reported above). time curl 'http://repo.grails.org/grails/core/javax/servlet/servlet-api/2.4/servlet-api-2.4-javadoc.jar' <html><head><title>Apache Tomcat/7.0.14 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body> HTTP Status 404 - Could not find resource<HR size="1" noshade="noshade"><p>type Status report</p><p>message <u>Could not find resource</u></p><p>description <u>The requested resource (Could not find resource) is not available.</u></p><HR size="1" noshade="noshade">Apache Tomcat/7.0.14</body></html>real 0m15.847s user 0m0.009s sys 0m0.009s Here's what I get when looking up repo.grails.org: nslookup repo.grails.org Server: 10.0.1.1 Address: 10.0.1.1#53 Non-authoritative answer: repo.grails.org canonical name = grails.artifactoryonline.com. grails.artifactoryonline.com canonical name = cloud6.jfrog.org. Name: cloud6.jfrog.org Address: 50.16.203.43 Any suggestions? If somebody needs more info to help resolve this, feel free to contact me off list. |
|
I'm seeing the same thing:
/usr/local/grails-2.0.1/bin/grails -Dgrails.work.dir=${WORKSPACE}/../grails-work-dir -Dgrails.env=production \
-Dsun.net.client.defaultReadTimeout=500 -Dsun.net.client.defaultConnectTimeout=500 compile --non-interactive
| Loading Grails 2.0.1
| Configuring classpath
:: problems summary ::
:::: ERRORS
Server access Error: Read timed out url=http://repo.grails.org/grails/core/commons-logging/commons-logging/%5B1.1,%202.0)/commons-logging-%5B1.1,%202.0).pom
Server access Error: Read timed out url=http://repo.grails.org/grails/core/org/apache/httpcomponents/httpclient/maven-metadata.xml
Server access Error: Read timed out url=http://repo.grails.org/grails/core/org/apache/httpcomponents/httpclient/%5B4.1,%205.0)/httpclient-%5B4.1,%205.0).jar
Server access Error: Read timed out url=http://repo.grails.org/grails/core/org/codehaus/jackson/jackson-core-asl/%5B1.8,)/jackson-core-asl-%5B1.8,).pom
Server access Error: Read timed out url=http://repo.grails.org/grails/core/org/codehaus/jackson/jackson-core-asl/maven-metadata.xml
Server access Error: Read timed out url=http://repo.grails.org/grails/core/org/codehaus/jackson/jackson-core-asl/%5B1.8,)/jackson-core-asl-%5B1.8,).jar
Server access Error: Read timed out url=http://repo.grails.org/grails/core/org/codehaus/jackson/jackson-mapper-asl/%5B1.8,)/jackson-mapper-asl-%5B1.8,).pom
Server access Error: Read timed out url=http://repo.grails.org/grails/core/org/codehaus/jackson/jackson-mapper-asl/maven-metadata.xml
| Configuring classpath.
| Environment set to production
…
|
| Powered by Nabble | Edit this page |
