Aug 21, 2020 by: luca
Hi,
I followed the guide to create a cloud env and the bastion (local) and the cluster seem to be working properly, but if I try to run the command
genvid-sdk -c devcluster setup genvid-sdk -c devcluster load-config-sdk
the services are not starting. This is the error I get:
**Error!** Response with status: 500 Internal Server Error for URL: http://[::1]:8092/v1/proxy/devcluster/cluster-api/v1/jobs/start/services **Error! http://[::1]:8092/v1/proxy/devcluster/cluster-api/v1/jobs/start/services**{"errorType":"error","error":"Error rendering job template: Consul-template missing dependencies: vault.read(secret/disco), vault.read(secret/webgateway)"}
I tried to check in nomad and it throws this error:
BucketRegionError: incorrect region, the bucket is not in 'us-east-1'
Seems like it can’t download the artifacts from the bucket, but the images are already uploaded in the cluster and the bucket is hosted in the eu-west-1 region since this is where I hosted the cluster. Is there something super basic that I’m missing?
Aug 25, 2020 by: luca
So, I managed to resolve the issue with the bucket and I can setup the cluster properly, but I still can’t start the job “services”. This error still persists:
**Error!** Response with status: 500 Internal Server Error for URL: http://[::1]:8092/v1/proxy/devcluster/cluster-api/v1/jobs/start/services **Error! http://[::1]:8092/v1/proxy/devcluster/cluster-api/v1/jobs/start/services**{"errorType":"error","error":"Error rendering job template: Consul-template missing dependencies: vault.read(secret/disco), vault.read(secret/webgateway)"}
Aug 25, 2020 by: Daniel Myers - Tech Writer
Hi Luca,
When you get a chance, could you run get-history in your command window and send us the list of commands you ran? That will help us identify if there’s a missing step somewhere.
Thanks!
Dan
Jan 26, 2021 by: luca
Sure!
genvid-bastion install --bastionid mybastion --checkmodules --update-global-tfvars --loadconfig
genvid-bastion monitor
Then imported the template and applied it from the local site UI, chenged the cluster settings (the ami prefix and the region). The Cluster starts normally.
genvid-sdk upload-images-sdk
genvid-sdk -c dcluster setup
genvid-sdk -c dcluster load-config-sdk
Ran the commands to configure the sdk on the cluster.
py directx.prepare
py directx.py prepare
py directx.py build-cloud
py directx.py -c dcluster upload-images --update-config
py directx.py -c dcluster load
The job is displaying correctly but if I try to start them it returns that error.
Aug 26, 2020 by: Daniel Myers - Tech Writer
I think I may have the answer: We recently separated the various cube samples from the web sample and the secrets are now loaded with the web sample. Try running:
py web.py build-cloud
py web.py -c dcluster upload-images -u
py web.py -c dcluster load
The web.py script loads the secrets, which it looks like your configuration is missing.
The local commands are covered in the documentation, but it looks like we may have omitted the cloud commands.
Let us know if that works!
Cheers,
Dan
Aug 26, 2020 by: luca
Thanks for the help Dan! Unfortunately there is still a problem. I was able to make the image, upload it to the cluster and configuring the job. When I try to run them though the web job stays pending.
Checking nomad the error seems to be this:
[services.webgateway] Terminated Docker container exited with non-zero exit code: 2
Aug 27, 2020 by: luca
Nevermind I resolved the problem there were errors in the dependencies during the build of the web service, so refreshing the environment was the solution now everything runs smoothly.
Thanks for the support!
Aug 27, 2020 by: Daniel Myers - Tech Writer
Great news, Luca! Glad we could help!
I’ll make sure we get some updates to our documentation to clarify the cloud setup for our samples. Feedback is always appreciated!
Cheers,
Dan