Closed johanboekhoven closed 9 months ago
Hey Johan, thanks for raising this with me, before I do some investigating do you think you could see if a previous hbuild image version works? 19.5.716 is the latest non-20 version.
Hey Aaron, thanks for the quick reply. Here are the 19.5 results:
F:_test_projects\hou-docker > docker pull aaronsmithtv/hbuild:19.5.716-base
19.5.716-base: Pulling from aaronsmithtv/hbuild
14726c8f7834: Pull complete
b96c5db6cbae: Pull complete
Status: Downloaded newer image for aaronsmithtv/hbuild:19.5.716-base
docker.io/aaronsmithtv/hbuild:19.5.716-base
What's Next?
1. Sign in to your Docker account → docker login
2. View a summary of image vulnerabilities and recommendations → docker scout quickview aaronsmithtv/hbuild:19.5.716-base
F:_test_projects\hou-docker > docker run -it --rm aaronsmithtv/hbuild:19.5.716-base
root@ca66bca99b53:/# hserver -C -S https://www.sidefx.com/license/sesinetd --clientid $clientid --clientsecret $cliendsecret
No hserver found running at http://127.0.0.1:1714
Run hserver to start an hserver daemon.
Unable to connect to hserver. Attempting to restart hserver...
Successfully started hserver after 500ms.
License server changed to https://www.sidefx.com/license/sesinetd.
root@ca66bca99b53:/# sesictrl ping --client-id $clientid --client-secret $cliendsecret
Pinging: 'https://www.sidefx.com/license/sesinetd'
Successfully pinged.
Total time 384.757ms
Connect time 12.956ms
root@ca66bca99b53:/# hython
No licenses could be found to run this application.
Please check for a valid license server host
Details: https://www.sidefx.com: 422 You must be logged in
Spawn Error: : No such file or directory
Error running xdg-open
Argument list:
0: xdg-open
1: https://www.sidefx.com/license/sesinetd
root@ca66bca99b53:/#
I've hidden the api details, again a login error, albeit a bit different, so I'm probably doing something wrong, just not sure what.
@johanboekhoven, it looks like you didn't log in to SideFX so hython
can't redeem the license.
For my cases, I am doing it like this, and it works.
# Connect to license server
hserver -C -S https://www.sidefx.com/license/sesinetd \
--clientid $SIDEFX_CLIENT \
--clientsecret $SIDEFX_SECRET
# Check that license is available with sesictrl
sesictrl ping
# Redeem license
sesictrl login --email $SIDEFX_EMAIL --password $SIDEFX_PASSWORD
echo "Sleeping for 5 seconds to allow license to be redeemed"
sleep 5
hython
@edhar-rybak Ok, that does work, thanks! Looking back it does hint at it in the error, but I was assuming the API key would be enough. So what is the relation between the API key and the login then? In my view you need only one of the two.
Glad to see you managed to get a fix @johanboekhoven! Thanks so much for helping out @edhar-rybak. I will be closing this issue now but feel free to open another if you run into anything else :)
Hi @aaronsmithtv,
I'm able to succesfully build/run the docker and do the following steps:
With the correct API keys etc, eveything looks succesful.
But when I try to run hython from that shell I get the following error:
I'm not sure if I'm missing any configuration steps, or perhaps Hou20 needs another config.
The above is running from windows/docker desktop.
Thanks for any info, -Johan