Skip to content
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

Global automation token cannot log-tail for newly created services #1335

Open
necipallef opened this issue Nov 5, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@necipallef
Copy link

necipallef commented Nov 5, 2024

Version

Fastly CLI version v10.15.0 (0a1665b)
Built with go version go1.22.7 linux/amd64 (2024-11-05)
Viceroy version: viceroy 0.9.7

What happened

I create an automation token on Fastly dashboard, it says it has access to All Services and it is Global, but I create a Compute service later and when I run fastly log-tail --service-id=<SERVICE ID> I get the following error:

INFO: Managed logging enabled on service REDACTED

WARNING: non-200 resp 403

ERROR: unrecoverable error, response code: 403.

If you believe this error is the result of a bug, please file an issue: https://github.com/fastly/cli/issues/new?labels=bug&template=bug_report.md

If I go to Fastly dashboard, delete the old token, and create new one exactly the same way, and use it with fastly profile update --automation-token then log-tail starts working.

@necipallef necipallef added the bug Something isn't working label Nov 5, 2024
@kpfleming
Copy link
Contributor

How quickly after creating the service did you attempt to log-tail it? As I understand it the log-tail operation won't work for some time after the service is created... at least a few minutes. I don't think the issue you are experiencing is related to the tokens at all, or even related to the CLI, it's just the behavior of Compute services.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants