-
Notifications
You must be signed in to change notification settings - Fork 381
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 create a tree in Trillian log mysql database #2675
Comments
Thanks for getting in touch. This script is doing something quite antiquated; it's been a long time since we've recommended creating trees via the REST API. Indeed, I notice there is a TODO for @AlCutter there to change this over to use the It should be as simple as: export TREE_ID=$(go run github.com/google/trillian/cmd/createtree --admin_server=${TRILLIAN_LOG_RPC}) I've created an untested PR that makes the changes I believe need to happen: #2676 . If you're willing you could give that a go now and report back. It'll be a while before I could set up a k8s cluster and try this myself otherwise. |
Thank your for your quick reply, this is working...yes I have seen from the deployment with docker, but thought it would be convenient to use the REST API. Just a question: to execute this go run command, I would need to run this command from a directory where the required go packages are provided in a go.mod, right? or is there another way doing this? |
The assumption with the command above is that you'd be running it from within the context of the trillian checkout, which would use the mod files. If you want to use it from any context, then the following will work (assuming a recent version of go is installed, and you have internet connectivity): go run github.com/google/trillian/cmd/createtree@latest The |
Ok thank you, I was not aware of this @latest statement. |
I am using an on premise kubernetes cluster (with istio) to integrate my application with Trillian. I have deployed a mysql database together with a personality, a server and a signer, but I am not able to create a tree using the command here (https://github.com/google/trillian/blob/master/examples/deployment/kubernetes/provision_tree.sh#L27)
echo TREE=$(curl -sb -X POST ${LOG_URL}/v1beta1/trees -d '{ "tree":{ "tree_state":"ACTIVE", "tree_type":"LOG", "hash_strategy":"RFC6962_SHA256", "signature_algorithm":"ECDSA", "max_root_duration":"0", "hash_algorithm":"SHA256" }, "key_spec":{ "ecdsa_params":{ "curve":"P256" } } }')
When I execute the command, I get 404 page not found as result.
The .yaml file of the trillian-server is defined as following:
The services are running:
Is there anything wrong with this deployment?
The text was updated successfully, but these errors were encountered: