Comments (27)
sdk update.
Now, it's work. Thanks
from sdkman-cli.
In some cases, it might help a few people to enable the offline
mode of sdkman to allow using an already installed candidate.
Small thing that might come in handy in the time being.
from sdkman-cli.
Same here, we just got the issue today.
All done!
You are subscribed to the STABLE channel.
Please open a new terminal, or run the following in the existing one:
source "/home/runner/.sdkman/bin/sdkman-init.sh"
Then issue the following command:
sdk help
Enjoy!!!
==== BROADCAST =================================================================
* 2023-02-13: grails 5.2.6 available on SDKMAN!
* 2023-02-13: gradle 8.0 available on SDKMAN!
* 2023-02-12: skeletal 0.15.0 available on SDKMAN! https://github.com/cbmarcum/skeletal/releases/tag/v0.15.0
================================================================================
Stop! kotlin is not a valid candidate.
Error: Process completed with exit code 1.
from sdkman-cli.
This problem is currently present on systems which I maintain:
$ sdk version
SDKMAN!
script: 5.16.1
native: 0.1.0
$ sdk list java
Stop! java is not a valid candidate.
$ sdk list
<html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx/1.19.10</center>
</body>
</html>
Cause seems to be that https://api.sdkman.io/2/candidates/list/ is not reachable:
$ curl -i https://api.sdkman.io/2/candidates/list/
HTTP/1.1 200 Connection established # this is the proxy
HTTP/1.1 504 Gateway Time-out
Date: Tue, 14 Feb 2023 09:58:23 GMT
Server: nginx/1.19.10
Connection: Keep-Alive
Content-Type: text/html
Content-Length: 168
<html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx/1.19.10</center>
</body>
</html>
from sdkman-cli.
If debug logging is enabled in the config, it can be seen on even startup of the terminal that it cannot connect. Offline will only work if you already have the candidate in the cache
from sdkman-cli.
This is pretty frustrating. Offline mode also does not work for me.
$ sdk offline enable
Offline mode enabled.
$ sdk ls java
Stop! java is not a valid candidate.
Would it be possible to make basic usage possible without the usage of the API in the next version?
from sdkman-cli.
Hey @Tuubz, this was due to the initial rate-limiting that I imposed on the API. It was a bit aggressive at first, but I've relaxed it to 10 r/s per IP. Let me know on our community slack if you still see this issue.
from sdkman-cli.
Looks like API is down, same problem as #1169 (comment)
from sdkman-cli.
same
from sdkman-cli.
Looks like API is down, same problem as #1169 (comment)
It's been down for two weeks? 😱
from sdkman-cli.
Looks like API is down, same problem as #1169 (comment)
It's been down for two weeks? 😱
Nope, its probably different URL/endpoint than in old issue
from sdkman-cli.
Same here, fwiw..
from sdkman-cli.
Same here
from sdkman-cli.
Same here.
from sdkman-cli.
Parallel discussion in Slack: https://sdkman.slack.com/archives/CJTNQA94M/p1676359041313729
from sdkman-cli.
Experiencing same issue with grails. "Stop! grails is not a valid candidate." sdk list command gives back 504 Gateway Time-out.
from sdkman-cli.
Same issue with installing java and gradle.
from sdkman-cli.
Same issue, sdk list java
returns me 504
from sdkman-cli.
Same issues, I thought I have faced this from my end.
After updating to 5.16.1
, I faced the same problem with sdk list java
<html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx/1.19.10</center>
</body>
</html>
Actually, before I updated to 5.16.1
, my previous version is 5.16.0
and still able to use sdk list java
from sdkman-cli.
It seems that the beta channel is also not working https://beta.sdkman.io/2 giving 404
from sdkman-cli.
I also has this problem:
Linux Mint 20.3
SDKMAN!
script: 5.16.1
native: 0.1.0
In terminal I try simple command:
sdk list java
but get error
Stop! java is not a valid candidate.
This also not working:
sdk install java
Stop! java is not a valid candidate.
How can I fix this error?
P.S. this not help
sdk flush candidates
from sdkman-cli.
Same for me.
SDKMAN 5.16.1.
, sdk list java
results in 504.
from sdkman-cli.
same here, SDKMAN 5.16.1., sdk list java results in "Stop! java is not a valid candidate."
from sdkman-cli.
Works for me now.
from sdkman-cli.
The candidates service went down but has now been restored.
from sdkman-cli.
@marc0der It's returning a different error response now:
<head><title>503 Service Temporarily Unavailable</title></head>
Reference: https://github.com/nimblehq/android-templates/actions/runs/4172007998/jobs/7243910588
from sdkman-cli.
I guess it's not completely solved, I get the same when trying to use SDKMAN today...
from sdkman-cli.
Related Issues (20)
- Improvement: Verify that `tar` is available HOT 2
- Feature: Using SDKMAN in a CI pipeline
- XDG Support
- Question: support for russian developers HOT 2
- Bug: Problems with array indexing and length handling in `sdkman-list.sh`
- Bug: Can't update Quarkus to 3.6.8 HOT 1
- Bug: some of sdk shell command failure. HOT 2
- Bug: JAVA_HOME not defined for GUI apps on Linux (Gnome) HOT 3
- Feature: Follow symlinks for scripts and extension files
- Question: How to initialize SDKMAN in a subprocess? HOT 2
- Bug: Cygwin: curl can't write to .sdkman/tmp: Failed to open /home/<user>/.sdkman/tmp/groovy-4.0.19.headers.tmp HOT 2
- `.sdkmanrc` file is tracked in git HOT 1
- Bug: native `uninstall` command fails due to `current link broken, stepping over: The file or directory is not a reparse point. (os error 4390)`
- Installing jdk with sdkman keeps reporting errors HOT 5
- Bug: `./gradlew install` doesn't work HOT 1
- Feature: [Support For Chinese User Config Download Mirror] HOT 3
- Bug: Curl bug triggered if partially downloaded and can never finish download HOT 9
- Feature: 能不能做成系统级别的环境管理 HOT 1
- Bug: Installation script fails with newline error HOT 6
- Bug: configuration of bash failed on macOS, created new .bash_profile, ignored .profile HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdkman-cli.