You can open developer tools (F12) and see in the UI what is happening when you create a new queue 🙂
SuccessfulKoala55 CostlyOstrich36 do u have any idea??
but missing part now.. queue.. this one even not there in doc..little worried now 🥶
this is my scirpt working fine.. thnks for the help..
@Jake H.
#!/bin/bash
# Get the access key and secret key from the API response
response=$(curl -s -u "antony:antony"
)
access_key=$(echo "$response" | jq -r '.data.credentials.access_key')
secret_key=$(echo "$response" | jq -r '.data.credentials.secret_key')
# Echo the access key and secret key
echo "Access Key: $access_key"
echo "Secret Key: $secret_key"
# Verify the presence of access key and secret key
if [[ -n "$access_key" && -n "$secret_key" ]]; then
echo "Access key and secret key are set."
else
echo "Access key or secret key is missing."
fi
Also, please don't send messages to the channel when posting in a thread
You can just copy a ready clearml.conf file and replace the credentials there, you don't actually need to call clearml-init
The reason am asking.. while agen is spin up.. it will add queue also ..
SuccessfulKoala55 CostlyOstrich36 thanks for the help.. i created creds.. using this command
curl -s -u "antony:antony"
now i need help to bypass clearml-init manual paste key its wont support .. any other bypass is available
Instead of the cookie you need to use Basic Auth, with the username and password
this will work but i need clearml_basic_token or secret key & accesss key
curl '
' \
-H 'Accept: application/json' \
-H 'Accept-Language: en-US,en;q=0.9' \
-H 'Connection: keep-alive' \
-H 'Content-Type: application/json' \
-H 'Cookie: clearml_token_basic=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdXRoX3R5cGUiOiJCZWFyZXIiLCJpYXQiOjE2ODMwMDMxMDksImVudiI6Ijx1bmtub3duPiIsImV4cCI6MTY4NTU5NTEwOSwiaWRlbnRpdHkiOnsicm9sZSI6InVzZXIiLCJjb21wYW55X25hbWUiOiJjbGVhcm1sIiwidXNlcl9uYW1lIjoiZWRnZWJyaWNrcyIsInVzZXIiOiI3Zjg2YWM1NzZmZDA0MTA1YTliNjVmOTc2OGM0M2Y1OSIsImNvbXBhbnkiOiJkMWJkOTJhM2IwMzk0MDBjYmFmYzYwYTdhNWIxZTUyYiJ9LCJhcGlfdmVyc2lvbiI6IjIuMjQiLCJzZXJ2ZXJfdmVyc2lvbiI6IjEuMTAuMSIsInNlcnZlcl9idWlsZCI6IjM1OSIsImZlYXR1cmVfc2V0IjoiYmFzaWMifQ.OAH5Iq4J-nvcHN_5-5nOjS3nAIGiHXmF8-at_xYPioI' \
-H 'Origin:
' \
-H 'Referer:
' \
-H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36' \
-H 'X-Allegro-Client: Webapp-1.10.1-359' \
--data-raw '{}' \
--compressed \
--insecure
ack=$(jq -r '.[] | .credentials.access_key | select( . != null )' data)
sck=$(jq -r '.[] | .credentials.access_key | select( . != null )' data)
curl '
' \
-H 'Accept: application/json' \
-H 'Accept-Language: en-US,en;q=0.9' \
-H 'Connection: keep-alive' \
-H 'Content-Type: application/json' \
-H 'Cookie: clearml_token_basic=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdXRoX3R5cGUiOiJCZWFyZXIiLCJpYXQiOjE2ODMwMDMxMDksImVudiI6Ijx1bmtub3duPiIsImV4cCI6MTY4NTU5NTEwOSwiaWRlbnRpdHkiOnsicm9sZSI6InVzZXIiLCJjb21wYW55X25hbWUiOiJjbGVhcm1sIiwidXNlcl9uYW1lIjoiZWRnZWJyaWNrcyIsInVzZXIiOiI3Zjg2YWM1NzZmZDA0MTA1YTliNjVmOTc2OGM0M2Y1OSIsImNvbXBhbnkiOiJkMWJkOTJhM2IwMzk0MDBjYmFmYzYwYTdhNWIxZTUyYiJ9LCJhcGlfdmVyc2lvbiI6IjIuMjQiLCJzZXJ2ZXJfdmVyc2lvbiI6IjEuMTAuMSIsInNlcnZlcl9idWlsZCI6IjM1OSIsImZlYXR1cmVfc2V0IjoiYmFzaWMifQ.OAH5Iq4J-nvcHN_5-5nOjS3nAIGiHXmF8-at_xYPioI' \
-H 'Origin:
' \
-H 'Referer:
' \
-H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36' \
-H 'X-Allegro-Client: Webapp-1.10.1-359' \
--data-raw '{"access_key":"'$ack'","label":"random"}' \
--compressed \
--insecure
yeah i tried.. but its needed access key & secret ley
You can see the API calls done by the UI, theoretically you can use the same REST API calls to do it yourself, if you'd like
The dynamic access creation is only dont by the UI
okay.. this clearml dynamic access creation how its work..
once the server is up, you cannot change it
This is a configuration you need to do before starting the server
or before i have to do?? my case this one also its not working
user creation even it will work after containers is up right
Yes, this is how to create fixed users
Can you link to the the documentation you're referring to?
The only thing you can do is, if you are using fixed users in the server configuration, you can use the fixed user's username and password as a credential set (username=key, password=secret)
GorgeousPuppy74 user credentials cannot be set from the configuration files - they are dynamically created (and can also be revoked by the user).