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

Failed to initialize execute state #3363

Closed
1 of 4 tasks
trondhindenes opened this issue Feb 1, 2024 · 3 comments
Closed
1 of 4 tasks

Failed to initialize execute state #3363

trondhindenes opened this issue Feb 1, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@trondhindenes
Copy link

How are you running Flagsmith

  • Self Hosted with Docker
  • Self Hosted with Kubernetes
  • SaaS at flagsmith.com
  • Some other way (add details in description below)

Describe the bug

I'm seeing this error quite often:

flagsmith-api-5b546857bc-s5w5x flagsmith-api influxdb_client.rest.ApiException: (404)
flagsmith-api-5b546857bc-s5w5x flagsmith-api Reason: Not Found
flagsmith-api-5b546857bc-s5w5x flagsmith-api HTTP response headers: HTTPHeaderDict({'Content-Type': 'application/json; charset=utf-8', 'Vary': 'Accept-Encoding', 'X-Influxdb-Build': 'OSS', 'X-Influxdb-Version': 'v2.3.0+SNAPSHOT.090f681737', 'X-Platform-Error-Code': 'not found', 'Date': 'Thu, 01 Feb 2024 07:47:18 GMT', 'Transfer-Encoding': 'chunked'})
flagsmith-api-5b546857bc-s5w5x flagsmith-api HTTP response body: b'{"code":"not found","message":"failed to initialize execute state: could not find bucket \\"default_downsampled_15m\\""}'
flagsmith-api-5b546857bc-s5w5x flagsmith-api 

Vanilla helm chart install

Steps To Reproduce

Just regular helm install. I noticed the error when testing the python sdk

Expected behavior

no errors

Screenshots

No response

@trondhindenes trondhindenes added the bug Something isn't working label Feb 1, 2024
@trondhindenes trondhindenes changed the title ailed to initialize execute state Failed to initialize execute state Feb 1, 2024
@matthewelwell
Copy link
Contributor

@trondhindenes it looks like you haven't completed the set up of influx. There is some documentation on doing so here.

I would also recommend using postgres for analytics instead of influx for any new installs. Documentation for this is available here.

@trondhindenes
Copy link
Author

Thanks! On the first link it states
"by default this data will be stored in Postgres" - that doesn't seem to be the case. I guess my first-impression is that it's harder to get started with the Helm chart than what I was expecting since the "getting started path" isn't clearly defined.

@matthewelwell
Copy link
Contributor

Apologies, yes, there is an outstanding PR to remove influx db but there are breaking changes that we are working through. I'll check on the documentation to ensure that it's up to date.

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