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

Unable to deploy UAA locally using gradlew run #1649

Closed
albinadhikaramgit opened this issue Aug 17, 2021 · 2 comments · Fixed by #1699
Closed

Unable to deploy UAA locally using gradlew run #1649

albinadhikaramgit opened this issue Aug 17, 2021 · 2 comments · Fixed by #1699
Labels
accepted Accepted the issue

Comments

@albinadhikaramgit
Copy link

What version of UAA are you running?

75.6.0

What output do you see from curl <YOUR_UAA>/info -H'Accept: application/json'?

*   Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 8080 (#0)
> GET /uaa/info HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/7.58.0
> Accept: application/json
>

How are you deploying the UAA?

I am deploying the UAA

  • locally only using gradlew

What did you do?

cd uaa
git checkout 75.6.0
./gradlew run

What did you expect to see? What goal are you trying to achieve with the UAA?

I shoud be able to run curl localhost:8080/uaa/info -H "Accept: application/json" and get the expected output to confirm its working.

What did you see instead?

root@ip-XXX-XX-XX-XX:/workspace/uaa# ./gradlew run

> Task :cargoRunLocal
org.codehaus.cargo.container.ContainerException: Deployable [http://localhost:8080/cargocpc/index.html] failed to finish deploying within the timeout period [540000]. The Deployable state is thus unknown.

> Task :cargoRunLocal FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':cargoRunLocal'.
> org.codehaus.cargo.container.ContainerException: Deployable [http://localhost:8080/cargocpc/index.html] failed to finish deploying within the timeout period [540000]. The Deployable state is thus unknown.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.3/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 9m 10s
29 actionable tasks: 7 executed, 22 up-to-date


Please include UAA logs if available.
@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/179248424

The labels on this github issue will be updated when the story is started.

@strehle
Copy link
Member

strehle commented Aug 17, 2021

Hi , these errors were reported a view times already, see https://github.com/cloudfoundry/uaa/search?q=gradlew+run+timeout&type=issues

Please check, if your machine has enough power. Another solution would be to increase start timeout, see PR which provides such an option
#1594

@strehle strehle linked a pull request Oct 18, 2021 that will close this issue
@cf-gitbot cf-gitbot added delivered accepted Accepted the issue and removed delivered labels Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Accepted the issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants