You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While following the Getting Started tutorial for service discovery I've run into an issue on the step Create server tokens.
While running the scripts/generate_consul_server_tokens.sh I've run into some issues.
First of all the scripts uses a predefined WORKDIR sets to /home/app. While its not problematic per say, it's not explained in the documentation, so while running the tutorial in your own vm you'll likely run into permission denied issues.
Why not use $HOME for WORKDIR.
Secondly it's not explicit in the documentation that the acl-token-bootstrap.json should be located in the same directory of the script, but I reckon it's more an issues for the documentation than the script as the behaviour is sensible.
The real issue when was creating the token, with consul acl token create ... (L56), I've run into an Error! Missing TOKEN argument message. The message is not really clear, and that's normal because the stderr is redirected to /dev/null, which maybe should not ?
This issue was simply caused by the variable CONSUL_HTTP_ADDR being overwritten at the beggining of the script, it should use the same default behaviour as the other variables like: export CONSUL_HTTP_ADDR=${CONSUL_HTTP_ADDR:-"https://consul${FQDN_SUFFIX}:8443"} imo.
As I am learning about Consul I do not know if my workarounds is the correct solution, and it seems to me that's it more about the documentation not being up to date if you choosed to follow on your own vm. With that said if the workaround seems correct I'll be happy to make a PR in that way.
Thanks,
The text was updated successfully, but these errors were encountered:
Hello,
While following the Getting Started tutorial for service discovery I've run into an issue on the step Create server tokens.
While running the
scripts/generate_consul_server_tokens.sh
I've run into some issues.First of all the scripts uses a predefined
WORKDIR
sets to/home/app
. While its not problematic per say, it's not explained in the documentation, so while running the tutorial in your own vm you'll likely run into permission denied issues.Why not use
$HOME
forWORKDIR
.Secondly it's not explicit in the documentation that the
acl-token-bootstrap.json
should be located in the same directory of the script, but I reckon it's more an issues for the documentation than the script as the behaviour is sensible.The real issue when was creating the token, with
consul acl token create ...
(L56), I've run into anError! Missing TOKEN argument
message. The message is not really clear, and that's normal because the stderr is redirected to /dev/null, which maybe should not ?This issue was simply caused by the variable
CONSUL_HTTP_ADDR
being overwritten at the beggining of the script, it should use the same default behaviour as the other variables like:export CONSUL_HTTP_ADDR=${CONSUL_HTTP_ADDR:-"https://consul${FQDN_SUFFIX}:8443"}
imo.As I am learning about Consul I do not know if my workarounds is the correct solution, and it seems to me that's it more about the documentation not being up to date if you choosed to follow on your own vm. With that said if the workaround seems correct I'll be happy to make a PR in that way.
Thanks,
The text was updated successfully, but these errors were encountered: