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

Error while using helm to deploy Langfuse and Postgres #41

Closed
VincentMagn opened this issue Nov 22, 2024 · 14 comments · May be fixed by #42
Closed

Error while using helm to deploy Langfuse and Postgres #41

VincentMagn opened this issue Nov 22, 2024 · 14 comments · May be fixed by #42
Labels
bug Something isn't working

Comments

@VincentMagn
Copy link

Hi, I'm actually trying to deploy Langfuse with Posgres on a K8s cluster.

Following the installation, I run
helm repo add Langfuse https://langfuse.github.io/langfuse-k8s
helm repo update

Then, I made my local file within all values to override as explained in the "Deploy a Postgres server at the same time" chapter.

When I run :
helm install langfuse langfuse/langfuse -f custom.yaml
Where custom.yaml is the file where I copied the "Deploy a Postgres server at the same time" config.

The error is :
image

Do you have any idea what the problem might be?

This comment was marked as off-topic.

@dosubot dosubot bot added the bug Something isn't working label Nov 22, 2024
@Steffen911
Copy link
Contributor

@VincentMagn To me this looks like a postgres authentication issue. The service can reach the database, but not authenticate correctly. Could you share the custom.yaml you've created and redact any sensitive values? That would help us reproduce the issue and speed up the resolution.

@VincentMagn
Copy link
Author

Yes, I think so too. Here it's:

langfuse:
  nextauth:
    url: http://localhost:3000
    secret: fakeSecret
  salt: fakeSalt
  telemetryEnabled: true
service:
  type: ClusterIP
ingress:
  enabled: false
postgresql:
  deploy: true
  auth:
    password: anotherFakePwd

@Steffen911
Copy link
Contributor

@VincentMagn Where does the langfuseadmin username come from? It doesn't seem to be part of the repository.
What happens if you overwrite postgresql.auth.username as well in your values.yaml file?

@VincentMagn
Copy link
Author

@Steffen911, I'have already tried to override the postgresql.auth.usernamevalue.
For the langfuseadmin, it comes from the test of overriding the postgresql.auth.usernamevalue, I named it langfuseadmin.
The output without overriding the postgresql.auth.usernamevalue the error is the same
image

@Steffen911
Copy link
Contributor

@VincentMagn Could you test whether the fix on this branch fixes it for you: #42?

@VincentMagn
Copy link
Author

VincentMagn commented Nov 26, 2024

@Steffen911 Sorry for the delay. I tried it, but it still doesn't work. I deployed it using both my custom values and your default ones, but both failed.

Additionally, I'm uncertain about the line name: {{ include "langfuse.postgresql.fullname" . }} in the deployment.
Should it instead be name: {{ include "langfuse.postgresqlSecretName" . }}? This value is used it the postgresql-secret.yaml, which is used to save the sql pdw in a K8s secret.

I also tried with the modification above, but it still didn't work.

Also:

image

When I edit the username in the values yaml and replace it by another one, I have this error. The line with the ´Role does not exist´ is unexpected. Do not know if it may help to debug.

This also have the effect to create another data in the langfuse-postgresql. So with a user not named postgresql it not only the data postgres-password but also password

@Steffen911
Copy link
Contributor

Steffen911 commented Nov 26, 2024

Hey @VincentMagn ,
I think I was able to reproduce your issue. There are a set of gotchas involved:

  1. One needs to provide username and password in the values.yaml for postgresql. Only supplying a password is insufficient as the postgresql bitnami chart doesn't add password to its secret if one skips that.
  2. We should use the correct secret name there. langfuse.postgresql.fullname will resolve to a secret that the postgresql chart creates. We only create langfuse.postgresqlSecretName if postgresql.deploy=false in the values.yaml. In that case, one would mostly overwrite the secret to an external value anyway. I.e. that setup is expected.
  3. A helm uninstall langfuse keeps PersistentVolumeClaims around. If you later reinstall postgresql with a different configuration, it may not be fully applied as the instance already finds a valid configuration on disk from a previous iteration. If you delete the PersistentVolumeClaims associated with the chart, it should actually create the user on startup and the authentication will succeed.

So as steps to address your issues, I'd recommend:

  1. Uninstall your existing installation via helm uninstall langfuse.
  2. Delete your persistent volume claim that was created via the chart: kubectl delete pvc data-langfuse-postgresql-0. The PersistentVolume should automatically be removed.
  3. Ensure that you provide username, password, and database as overwrites in the postgresql section of the values.yaml.
  4. Reinstall the chart.

Starting from the issue that you describe I was able to install the chart from my branch with a values.yaml overwrite that looked like this:

langfuse:
  nextauth:
    url: http://localhost:3000
    secret: fakeSecret
  salt: fakeSalt
  telemetryEnabled: true
service:
  type: ClusterIP
ingress:
  enabled: false
postgresql:
  deploy: true
  auth:
    username: anotherFakeUser
    password: anotherFakePwd
    database: test

If you confirm that this works for you, I'll go ahead and merge my PR for a new release.

@VincentMagn
Copy link
Author

VincentMagn commented Nov 27, 2024

@Steffen911 sorry but it still does not work.

I did the uninstallation process, then stash the git repo to remove all my modifications.

Then, I made custom_values.yaml within exactly what you gave me in the previous comment.

Finally, I run the cmd helm install langfuse ./charts/langfuse -f ./custom_values.yaml in the langfuse-k8s directory.

Now the connection works but while making the migration, some errors occur :

Applying migration `20230720172051_tokens_non_null`
Applying migration `20230721111651_drop_usage_json`
Applying migration `20230731162154_score_value_float`
Applying migration `20230803093326_add_release_and_version`
Applying migration `20230809093636_remove_foreign_keys`
Applying migration `20230809132331_add_project_id_to_observations`
Applying migration `20230810191452_traceid_nullable_on_observations`
Applying migration `20230810191453_project_id_not_null`
Applying migration `20230814184705_add_viewer_membership_role`
Applying migration `20230901155252_add_pricings_table`
Applying migration `20230901155336_add_pricing_data`
Applying migration `20230907204921_add_cron_jobs_table`
Applying migration `20230907225603_projects_updated_at`
Applying migration `20230907225604_api_keys_publishable_to_public`
Applying migration `20230910164603_cron_add_state`
Applying migration `20230912115644_add_trace_public_bool`
Applying migration `20230918180320_add_indices`
Applying migration `20230922030325_add_observation_index`
Applying migration `20230924232619_datasets_init`
Applying migration `20230924232620_datasets_continued`
Applying migration `20231004005909_add_parent_observation_id_index`
Script executed successfully.
Prisma schema loaded from packages/shared/prisma/schema.prisma
Datasource "db": PostgreSQL database "mydatabase", schema "public" at "langfuse-postgresql"

271 migrations found in prisma/migrations

Error: P3009

migrate found failed migrations in the target database, new migrations will not be applied. Read more about how to resolve migration issues in a production database: https://pris.ly/d/migrate-resolve
The `20240104210052_add_model_indices_pricing` migration started at 2024-11-27 13:59:00.105966 UTC failed


Applying database migrations failed. This is mostly caused by the database being unavailable.
Exiting...

Also, each time pods are created, the first 2 or 3 lagfuse pods are crashing because the pods for postgrsql is not already up. I do not know if this also happen to you

@Steffen911
Copy link
Contributor

Hey @VincentMagn,

Regarding the migrations: Can you connect to postgres and share the information in the _prisma_migrations table? Anything in the logs column would be helpful to us. It seems that Prisma aborts for some reason somewhere in the middle which is odd.

Regarding the restarts: Yes, the same thing happens in my case and from our side that is expected. The container should automatically recover as soon as it's able to connect to Postgres.

@VincentMagn
Copy link
Author

VincentMagn commented Nov 29, 2024

@Steffen911, good to know that the restarts are expected.

For the logs in the _prisma_migrations : SELECT * FROM _prisma_migrations;

                  id                  |                             checksum                             |          finished_at          |         migration_name                | logs | rolled_back_at |          started_at           | applied_steps_count
--------------------------------------+------------------------------------------------------------------+-------------------------------+-------------------------------------------------------------------------+------+----------------+-------------------------------+---------------------
 2597dfcf-951f-4678-b043-2bbb0f63dea6 | c418394abc6167c883f1456639e995ab5054a8257e8dba37b7a95c76ba59af0c | 2024-11-29 09:58:11.75148+00  | 20230710200816_scores_add_comment     |      |                | 2024-11-29 09:58:11.701616+00 |                   1
 e1c75214-96a9-4b3d-840e-bf32735eedf5 | 45fc679b7dbbe0f2954623bfe4e29932374cdc3167f8395728ef5c20115e5665 | 2024-11-29 09:58:05.724033+00 | 20230518191501_init                   |      |                | 2024-11-29 09:58:04.478173+00 |                   1
 ac8d1277-6e84-49b1-ba6a-54a7e3220d44 | 6462cebefe054956e2fa9948435590bd4dae0d58f75cf2ecba57059f2c0909f8 | 2024-11-29 09:58:10.442378+00 | 20230623172401_observation_add_level_and_status_message  |  | | 2024-11-29 09:58:10.375812+00 |                   1
 f3f9bfba-3781-4fe3-adb8-06b3224b0aac | b9c79e332b90d28b1711534e53622f297a6a888aa7d6c1c1832185d1fef2c929 | 2024-11-29 09:58:06.699232+00 | 20230518193415_add_observaionts_and_traces                | | | 2024-11-29 09:58:05.741071+00 |                   1
 80115684-0bdd-4a0b-bdec-58610d8c6c77 | 2f2fd22c3cc8bd21f6f23c88b7d5ef34674431520d0e55a37f8239e4a58afebd | 2024-11-29 09:58:06.765916+00 | 20230518193521_changes                |      |                | 2024-11-29 09:58:06.71625+00  |                   1
 64718f44-1db9-491b-9c92-37f9e8d1f671 | d2c9bf829418360a44d1022156aaa8e95df92c940b5dfe962f8a7f7260cb5520 | 2024-11-29 09:58:07.007786+00 | 20230522092340_add_metrics_and_observation_types          | | | 2024-11-29 09:58:06.783003+00 |                   1
 ac815b32-6789-4360-98a7-9bf87b109bb1 | 2480f771a6b4dea1f541c0b231784e5cebf2c443ac7636da6a411c4914f1cbd4 | 2024-11-29 09:58:10.625801+00 | 20230626095337_external_trace_id      |      |                | 2024-11-29 09:58:10.478643+00 |                   1
 cdb07969-72ff-44b0-8097-86f0cbf10de2 | 28c59a2bd9b846d914083efdc1b51eb96a1db66af370b3dddd5040a57ec9088b | 2024-11-29 09:58:07.191174+00 | 20230522094431_endtime_optional       |      |                | 2024-11-29 09:58:07.077857+00 |                   1
 f50e11ea-400e-4746-b8a9-63874c6e5e44 | 755b1309b9c12e892f5a5f6db4e14f15b2d77ab61f76baab4c3621ea5e94fa6c | 2024-11-29 09:58:07.407956+00 | 20230522131516_default_timestamp      |      |                | 2024-11-29 09:58:07.208137+00 |                   1
 2925d490-c3e1-4288-b9bc-a4dbb4d39e18 | 7f995c9ff2b7e3f70bb5eeebb2108552feaf5f8a51154727c36db9466f0e3ec4 | 2024-11-29 09:58:13.236151+00 | 20230731162154_score_value_float      |      |                | 2024-11-29 09:58:12.961309+00 |                   1
 a8597bd3-3da3-4b5a-b7c4-c6397107c2ac | 66607eae9ccdfb92f30d859bcff0838e5df64c76da43ffbb25a65845dc63234e | 2024-11-29 09:58:07.899593+00 | 20230523082455_rename_metrics_to_gradings                 | | | 2024-11-29 09:58:07.477817+00 |                   1
 54e0d9fc-5534-46ff-91cf-b4974a894982 | e5b55a82f4be9d623abac6ef0d9d00da2bf437f60454ed46bb1defa30e388692 | 2024-11-29 09:58:10.69253+00  | 20230705160335_add_created_updated_timestamps             | | | 2024-11-29 09:58:10.642684+00 |                   1
 7140494c-5bb0-485b-a173-3a01f375f68e | ff4107185d8f98b9d850e571a464bb806dade0f482984b3e29c019cb4d51397c | 2024-11-29 09:58:08.174826+00 | 20230523084523_rename_to_score        |      |                | 2024-11-29 09:58:07.916651+00 |                   1
 15f48c34-e419-4109-a7ad-3e8df03fcfa1 | ab80a534dfa4779eeae4ae5aeac192eea19b283671d6083c8f112e3c8a4229df | 2024-11-29 09:58:08.241444+00 | 20230529140133_user_add_pw            |      |                | 2024-11-29 09:58:08.191643+00 |                   1
 97081cf0-eb93-4977-9188-999fd530409f | f7c8e195215bf8a82ff89093a94aef748c209361aa05a48273f2084c49f05cd6 | 2024-11-29 09:58:11.893266+00 | 20230711104810_traces_add_index       |      |                | 2024-11-29 09:58:11.768359+00 |                   1
 acb2e710-f620-487e-bf97-71c3fa91e228 | f0ef0a5663ceecf04816edea38d3fe93cf07f4c8031d2b7e185ec2e5fe39f0fa | 2024-11-29 09:58:09.86687+00  | 20230530204241_auth_api_ui            |      |                | 2024-11-29 09:58:08.258694+00 |                   1
 7a4e1dc4-6a45-4619-b1e1-1639eeeac40f | 83f6a1d39c744faecc145e812f8ecca54267ac363f6315aa8afc3d890bf1f02d | 2024-11-29 09:58:10.867697+00 | 20230706195819_add_completion_start_time                  | | | 2024-11-29 09:58:10.709395+00 |                   1
 84d1f2a0-f753-4fcb-b1bb-910703ab5fb2 | 5e2e9d168251bab10d33e5f65a848c48d5f4ab762427ddd0f81e907c3339eb9a | 2024-11-29 09:58:09.950245+00 | 20230618125818_remove_status_from_trace                   | | | 2024-11-29 09:58:09.88369+00  |                   1
 cd7b913b-301d-42aa-bc7d-9082e48bc57e | a7808d643321e4bf3d0628b256abb7d088e964c48698af6fdd7f32969dfd41aa | 2024-11-29 09:58:10.242114+00 | 20230620181114_restructure            |      |                | 2024-11-29 09:58:09.967232+00 |                   1
 7358476f-2b6c-4b2f-8c33-be5e6906ac18 | 025c499c8b6f13676087e2e419671177a85a3ebad3a53cf84c7f70b0cfe01efe | 2024-11-29 09:58:10.342168+00 | 20230622114254_new_oservations        |      |                | 2024-11-29 09:58:10.259115+00 |                   1
 e5d26303-fffa-4e75-bce2-026bd07b66c5 | ffbe75ad538d26b0864f8b8915115e0fbdd56fbc93a4d3a634d53488b741d403 | 2024-11-29 09:58:11.009316+00 | 20230707132314_traces_project_id_index                    | | | 2024-11-29 09:58:10.884527+00 |                   1
 617ce6e9-d791-43ab-93a0-8dfdad65423c | 4cd20328eb9aa4ce2f0fe7dab5e00c412215e2c4423902d79cdebd7b0e2325f0 | 2024-11-29 09:58:12.727542+00 | 20230720164603_migrate_tokens         |      |                | 2024-11-29 09:58:12.694355+00 |                   1
 cc2603df-43e4-4072-84ad-842aba24d5ba | 362123c958d4fd06df3c816b74b4336ad2373f1505be12c84046e1364dd9dc10 | 2024-11-29 09:58:11.192891+00 | 20230707133415_user_add_email_index   |      |                | 2024-11-29 09:58:11.026295+00 |                   1
 60b04355-c259-43fb-a511-50fa9c961bfc | 5755c1c8449e6a74016e9e7e42acc446746a3c41f21e07c317a66417fd399d94 | 2024-11-29 09:58:12.043345+00 | 20230711110517_memberships_add_userid_index               | | | 2024-11-29 09:58:11.910238+00 |                   1
 2df7ecb9-6435-4fc4-a570-13ee6219e69d | e7de5bcadea82b38002ead42a8e99f532e5fe2c178ba53d5954ef2c60a0115b3 | 2024-11-29 09:58:11.501385+00 | 20230710105741_added_indices          |      |                | 2024-11-29 09:58:11.209689+00 |                   1
 9434616b-365b-4658-b58b-7273f2d9ca3e | 18a5a7ffe2b0ec8c008a1336826e3e07525f42a27e981f0a778533947b09e92d | 2024-11-29 09:58:11.684842+00 | 20230710114928_traces_add_user_id     |      |                | 2024-11-29 09:58:11.518322+00 |                   1
 102d93d1-5477-4b07-ae64-d4b5881dbb26 | 225ccf9170a395e34586c954db9c71b84f4300a07ef67e5ff116d2d08f80f37f | 2024-11-29 09:58:12.54406+00  | 20230711112235_fix_indices            |      |                | 2024-11-29 09:58:12.060323+00 |                   1
 c602474e-2a24-4680-9ef6-1d384987d921 | 9994a7038fc3ba73d3b5e833ded5825ec58505918d6b4eca646dbfca60a899b8 | 2024-11-29 09:58:12.819403+00 | 20230720172051_tokens_non_null        |      |                | 2024-11-29 09:58:12.744469+00 |                   1
 ab3c3bf2-e4b3-4617-aab1-05e3e17c812b | 502d73e77f606982c12150e119f9214a7d8116d3d4d947ea37130d6aaf9280cd | 2024-11-29 09:58:12.61079+00  | 20230717190411_users_feature_flags    |      |                | 2024-11-29 09:58:12.560952+00 |                   1
 1166ca45-3a5b-4f4e-8e71-0dd6a55aabdf | 9d3edea83f7e43616f70059fd0dbe6236133ac5fcd9883ac59b298e97fcd2e68 | 2024-11-29 09:58:12.677525+00 | 20230720162550_tokens                 |      |                | 2024-11-29 09:58:12.627658+00 |                   1
 fd5158ae-423a-4941-bcf4-7917159fa5f7 | 7c025190192fb785a7f3728ebab61bb167f3be07233341678c640bd31360fce5 | 2024-11-29 09:58:13.669957+00 | 20230810191452_traceid_nullable_on_observations           | | | 2024-11-29 09:58:13.620104+00 |                   1
 dd402c99-6a47-434b-86e3-fac5244604bc | 882b8cd48edf35b50633d13833aa0c8b92f70b707c3fc035fe0e59d2355a3a95 | 2024-11-29 09:58:12.944415+00 | 20230721111651_drop_usage_json        |      |                | 2024-11-29 09:58:12.894296+00 |                   1
 8047cbc6-61b2-497a-a023-57259019f385 | 056d2e25ef8ebb7b2b7eee99a708ab8feffa348896301c8a1a67524e3c2fddf8 | 2024-11-29 09:58:13.586478+00 | 20230809132331_add_project_id_to_observations             | | | 2024-11-29 09:58:13.536587+00 |                   1
 7a369a14-9a50-4c2c-9f3a-cd231694db2f | 05604cd4b32a7e41e21a314c7e78fd1b5883a9582acb5f4308ee7053af9707d7 | 2024-11-29 09:58:13.336321+00 | 20230803093326_add_release_and_version                    | | | 2024-11-29 09:58:13.269814+00 |                   1
 c82ffb4e-62c1-44f7-a599-cd282d82e3f3 | ef6d52cd7eae4e95cf21b942289d9efb69e7f60eb5d3ca281d252c54e2b77ede | 2024-11-29 09:58:13.519695+00 | 20230809093636_remove_foreign_keys    |      |                | 2024-11-29 09:58:13.471526+00 |                   1
 8ee1c346-bb68-4f44-beba-c2194ce9a462 | f409d263846f578bba696959b5ebfaa60a9534a407c6ad8c8fc32604ab7adfd1 | 2024-11-29 09:58:13.73666+00  | 20230810191453_project_id_not_null    |      |                | 2024-11-29 09:58:13.686799+00 |                   1
 f667ab1f-bc95-477b-9b8d-634e7b990402 | f998a3d872a1056949638870ce35fedb364d37297a784ecbcd1f95faf04a4c5c | 2024-11-29 09:58:13.970097+00 | 20230814184705_add_viewer_membership_role                 | | | 2024-11-29 09:58:13.903353+00 |                   1
 438d3188-9e94-4982-a921-d7ecad442fa8 | 51ccaa1ee0828dcb0cf731b019486c2f39c5b1bdd09046ab90f9ba6ec13be1af | 2024-11-29 09:58:14.178712+00 | 20230901155252_add_pricings_table     |      |                | 2024-11-29 09:58:13.987024+00 |                   1
 a265ae15-a525-4897-b5f7-e115fc8d8c0b | 5b8a5e3d5880fa10be8005ca6e4d682104dae3f816e162c3db94c41753a8e1c5 | 2024-11-29 09:58:14.245415+00 | 20230901155336_add_pricing_data       |      |                | 2024-11-29 09:58:14.195764+00 |                   1
 48290140-2908-486b-a4b1-c9e590a05e44 | e31a4c1059dcbabbdc2ab6aecb50328bef42e809ed206485aba37c437c5cebc2 | 2024-11-29 09:58:14.53758+00  | 20230907204921_add_cron_jobs_table    |      |                | 2024-11-29 09:58:14.320679+00 |                   1
 6d028d19-6ae4-4276-8e59-8143a6c3c039 | 800d6b5782b4564cfa092fd57f42ec2283537d439f167419211669aaa7df3ee2 | 2024-11-29 09:58:19.337145+00 | 20231119171940_bookmarked             |      |                | 2024-11-29 09:58:19.182698+00 |                   1
 1ed482d0-0a50-4302-a27f-812639ce6511 | 285bbb0b1c1ad7b8ee2d29ae7477b3f5b1b0e53fc58e9d75a287aaac715d498b | 2024-11-29 09:58:14.604361+00 | 20230907225603_projects_updated_at    |      |                | 2024-11-29 09:58:14.554464+00 |                   1
 a6f5476d-2082-4e96-a02d-27f3dad0cd07 | 578777f46933e33a0dc8e7c78f054c86dd0ed1413f67dc2d6334365cfda4c6bb | 2024-11-29 09:58:17.089294+00 | 20231018130032_add_per_1000_chars_pricing                 | | | 2024-11-29 09:58:16.947658+00 |                   1
 7ef71ed8-04ed-47c0-bc37-fd18109f85cf | d11aeff0b05af374c3306cdb12cc18afb7f73c5b8ce2c50757745ce5775340e2 | 2024-11-29 09:58:14.746096+00 | 20230907225604_api_keys_publishable_to_public             | | | 2024-11-29 09:58:14.621223+00 |                   1
 09d823db-b568-479a-9afb-5f2f4395c745 | 378a5dd5ba691270826895506d53e8a6acc4ebba29f8226dfa0d78e698040c5e | 2024-11-29 09:58:14.812886+00 | 20230910164603_cron_add_state         |      |                | 2024-11-29 09:58:14.762984+00 |                   1
 7d5a60b9-dc1d-4f2e-926c-436e1da73ca6 | 00cea39de0d75e817cfadcd95f852d4a84e00c1f67930d518ae4d452c93ac177 | 2024-11-29 09:58:18.648877+00 | 20231110012457_observation_created_at                     | | | 2024-11-29 09:58:18.599069+00 |                   1
 3b8d47c6-687e-4f75-8cb4-a0c6ece9c631 | d4af17aef307dba854b4b896df6f998cef8ac211fb792b7e90c7fe6fa4a9e4c3 | 2024-11-29 09:58:14.879548+00 | 20230912115644_add_trace_public_bool  |      |                | 2024-11-29 09:58:14.829729+00 |                   1
 54b3020d-1b15-432e-92f8-12675270afc8 | c087cf267a4c8b52ec4cebf0612b840d2136475e4776e9206778830256ce3f32 | 2024-11-29 09:58:17.948208+00 | 20231019094815_add_additional_secret_key_column           | | | 2024-11-29 09:58:17.106211+00 |                   1
 f658a8dd-484d-4ef6-8084-4b2bc8a50614 | 2026ed8d4e73d7d09741dbedf1fe73233e624f3e7f81b2a2b9243f415168ebb2 | 2024-11-29 09:58:15.104175+00 | 20230918180320_add_indices            |      |                | 2024-11-29 09:58:14.896459+00 |                   1
 edf8e64a-c0d7-4484-81da-9cf975003411 | 6bfdc95391ba091dc9d96899dbe7f967814cf42eb6388b664d9d76d8982add70 | 2024-11-29 09:58:15.313187+00 | 20230922030325_add_observation_index  |      |                | 2024-11-29 09:58:15.129978+00 |                   1
 96fbee39-5d4e-4f57-ac90-44c18938b866 | ea9794f2d79f49b88ab95b90335fe97cd7ccc3d7f1dd156259a5e5aa1c107043 | 2024-11-29 09:58:16.155188+00 | 20230924232619_datasets_init          |      |                | 2024-11-29 09:58:15.346892+00 |                   1
 b090f349-a2f4-4e06-aea5-3ef23916ef7f | 44810e0e19455ef071bec618d10951ba956e7a112631eb3f4c313fe903db7267 | 2024-11-29 09:58:18.088785+00 | 20231021182825_user_emails_all_lowercase                  | | | 2024-11-29 09:58:17.98547+00  |                   1
 eceb59af-9689-4fbc-b2c7-f0a6845a3a8e | 6db5841932092efa895afe4c027079a9c48ae252181c8e0c3985c6d08f96ba8a | 2024-11-29 09:58:16.338568+00 | 20230924232620_datasets_continued     |      |                | 2024-11-29 09:58:16.172321+00 |                   1
 3a7a373c-58ca-4b2d-b86a-f07140258aa5 | e8f8302423f78da25f0349a5da4083160f574c98ccc2b3e28f91d16cfa1ad499 | 2024-11-29 09:58:16.472055+00 | 20231004005909_add_parent_observation_id_index            | | | 2024-11-29 09:58:16.355458+00 |                   1
 eb9ba078-e01c-4c08-984c-26ef7586dc88 | 8f1b13112f4627c886c705d33920578b19fea917471b7367191300eebef544fc | 2024-11-29 09:58:16.58869+00  | 20231005064433_add_release_index      |      |                | 2024-11-29 09:58:16.488867+00 |                   1
 c280bb8f-dc12-4de4-a2ae-bb7e4c46a457 | 6456651794d1f7215c7f39238725764948ce71b7df386639d2d4f58da2e93335 | 2024-11-29 09:58:18.181761+00 | 20231025153548_add_headers_to_events  |      |                | 2024-11-29 09:58:18.131632+00 |                   1
 dc5f9a97-0146-4235-8739-0b3cfb0a8c55 | dfeb488d9be2f37c669211d8fee91cc67d384eee1532512a00328195fd259e27 | 2024-11-29 09:58:16.663983+00 | 20231009095917_add_ondelete_cascade   |      |                | 2024-11-29 09:58:16.605634+00 |                   1
 8a2b5ff1-dc3d-4db4-a210-7956612cdfa4 | e08e3d28e1b13a6df4f7eb43bd81d427f86792a9235dfa123db11b67343c1d82 | 2024-11-29 09:58:16.864136+00 | 20231012161041_add_events_table       |      |                | 2024-11-29 09:58:16.680819+00 |                   1
 1c04955c-eccf-4185-841d-e7b3a1ad1730 | 1074f270d9b48baa51d22c0c90218cdc47dc3338a5f0ea90bd72ef5ea5e2cf88 | 2024-11-29 09:58:18.807239+00 | 20231110012829_observation_created_at_index               | | | 2024-11-29 09:58:18.665732+00 |                   1
 d83bb419-7e50-429c-b4e0-a066a0f17ef6 | 52d73a2c8f5927da07492f83ffc94ce4a3cdc93232be0291d0faf77bc5ba8eed | 2024-11-29 09:58:16.930702+00 | 20231014131841_users_add_admin_flag   |      |                | 2024-11-29 09:58:16.881012+00 |                   1
 5a191255-2a61-4c0f-aff2-774aabb2dd24 | cc2235e89e6815af4002bd4aa6941e16dd452efe9dc5d59ac0c390589160a7ac | 2024-11-29 09:58:18.340072+00 | 20231030184329_events_add_index_on_projectid              | | | 2024-11-29 09:58:18.198559+00 |                   1
 17761bfa-4fe3-45c2-9f19-cc0f6a843add | f5ef1377c36e5301cf312bb60c6bb647bdb3de2db1d847003b4cfd3e24ca9ccc | 2024-11-29 09:58:18.423563+00 | 20231104004529_scores_add_index       |      |                | 2024-11-29 09:58:18.357084+00 |                   1
 28055e4d-c782-44b2-ba15-5f24d2a44869 | 9f5a355bf0c6c5fa36b37c898b338a234d43efa01d387eca439a95d674721ca2 | 2024-11-29 09:58:20.933676+00 | 20231230151856_add_prompt_table       |      |                | 2024-11-29 09:58:20.590411+00 |                   1
 2a98ea13-6ff1-40b2-8eba-9ff2921f3f56 | 2f634dc6a7e272e3715472968da531e23c9dda562d5d137e6bfe7195d51761ab | 2024-11-29 09:58:18.515338+00 | 20231104005403_fkey_indicies          |      |                | 2024-11-29 09:58:18.457228+00 |                   1
 c9a7eb15-bad0-4e16-83f3-4e33d4104a03 | 3920714d62de04345531777f14fe9a02b8982890c93f0b57512c0ab55755ee79 | 2024-11-29 09:58:18.949044+00 | 20231112095703_observations_add_unique_constraint         | | | 2024-11-29 09:58:18.824213+00 |                   1
 532b277e-1fbc-4373-84b9-afa8d87dcd92 | 85bf236e16abc39747ea773383c06cd06208e2d147237beb0b20b48318397e7e | 2024-11-29 09:58:18.582105+00 | 20231106213824_add_openai_models      |      |                | 2024-11-29 09:58:18.532287+00 |                   1
 10fd4c29-9622-4ce2-bc5e-8f50e5b6b615 | 0be96056b9709a8b7899d555e228d5c0098f1e6b358c6e016bb3843b7846b3f6 | 2024-11-29 09:58:19.840178+00 | 20231129013314_invites                |      |                | 2024-11-29 09:58:19.358175+00 |                   1
 d7051e81-cdf8-41cf-9ee5-02604b1badc3 | 5881fcf2e0d44375b52e6228413774f3154ab9fab3492f8ff24a24c2f044033b | 2024-11-29 09:58:19.099152+00 | 20231116005353_scores_unique_id_projectid                 | | | 2024-11-29 09:58:18.96597+00  |                   1
 d3207dbe-c6ee-443d-9c15-3e42fde964b2 | 8fee27ef5b07ba63a31cf88aee365f6f9c66b8cb5a08492b7f19c2a1eef249e4 | 2024-11-29 09:58:19.165908+00 | 20231119171939_cron_add_job_started_at                    | | | 2024-11-29 09:58:19.116009+00 |                   1
 2f2ab6ab-f594-4466-ae1c-f0adf0efe5b8 | 1b774d2ddbe9ae0f7cf8b60beaef0d27a6f5e8b09840e342ffd85c63c5de517d | 2024-11-29 09:58:20.458355+00 | 20231223230007_cloud_config           |      |                | 2024-11-29 09:58:20.40844+00  |                   1
 3d48774b-5205-434e-b971-778023f0870c | 401f5230ee1dccb765509321e8075652e71ae4ec28f5648a6b2ee151fc58d90b | 2024-11-29 09:58:20.324837+00 | 20231130003317_trace_session_input_output                 | | | 2024-11-29 09:58:19.856892+00 |                   1
 bd7430c6-3aa8-4fd7-84c9-6d76184b701f | f73f71a1a394677fb4ddd00cfe2238c40190f875525473d9ebf80f15fc89a2e7 | 2024-11-29 09:58:20.391576+00 | 20231204223505_add_unit_to_observations                   | | | 2024-11-29 09:58:20.341742+00 |                   1
 c04e6911-0871-4b19-bfa3-5726fa16a121 | 14911fffc711830a28304af98b2c9fe31f5f78fb568281090a75f4f7958ba942 | 2024-11-29 09:58:20.55684+00  | 20231223230008_accounts_add_cols_azure_ad_auth            | | | 2024-11-29 09:58:20.475237+00 |                   1
 2d37d720-71bc-499e-b503-795cb2317595 | 9f7ef155730980f10cf9c84fdcce91b80822a8ff1d7d35720b544f851397a0e5 | 2024-11-29 09:58:21.308897+00 | 20240104210051_add_model_indices      |      |                | 2024-11-29 09:58:21.04074+00  |                   1
 dcb4539e-7fac-4a1f-8b90-1362880e62e3 | 7919b5dfcacec288b646f23c83f6adbf5f69eba50d2de4a35eb2b9d3029e4729 | 2024-11-29 09:58:21.019445+00 | 20240103135918_add_pricings           |      |                | 2024-11-29 09:58:20.950706+00 |                   1
 c9d94b1b-59f7-42e1-bb74-64f60e91b7d1 | ed03d628f2755b0b16963a8d20b72440588a7ed57a4f1652d9b128e5dcfbf1b3 | 2024-11-29 09:58:21.467392+00 | 20240104210052_add_model_indices_pricing                  | | | 2024-11-29 09:58:21.325925+00 |                   1
 6da31ac5-94cc-4352-a998-15da252e0c01 | 08918b17989f2bd0e36f80c5255042f807afe428186c68cf334fa01953153807 | 2024-11-29 09:58:21.534195+00 | 20240105010215_add_tags_in_traces     |      |                | 2024-11-29 09:58:21.48434+00  |                   1
 83771475-f8ba-4548-9701-e74391124df0 | 18fba86141a537df2fdf6bc8b8d8cd1abcdef25ca0dca43d1983fb23dac4db72 | 2024-11-29 09:58:21.601029+00 | 20240105170551_index_tags_in_traces   |      |                | 2024-11-29 09:58:21.551129+00 |                   1
 0fda1879-e230-43f9-b5b2-a19930593e93 | de4c1bc9e76dc2ad02e5cedc68bc20450c80307c64123469b925b1ba1787449c | 2024-11-29 09:58:21.667696+00 | 20240106195340_drop_dataset_status    |      |                | 2024-11-29 09:58:21.617809+00 |                   1
 1ced78e3-f235-42f0-bb8e-a23688c82681 | 795187b23b16aceb796a10b5a43327cd3f767a0048f7ae8cb4d209695e49f18d | 2024-11-29 09:58:23.977754+00 | 20240215234937_fix_observations_view  |      |                | 2024-11-29 09:58:23.887775+00 |                   1
 fe8f90e5-bd70-4f97-b527-80e67eb8673a | 9d7148c925f6643b17c1aad933fce92bdcbc8fa2304eb97be11c0aa32747664a | 2024-11-29 09:58:21.734339+00 | 20240111152124_add_gpt_35_pricing     |      |                | 2024-11-29 09:58:21.684558+00 |                   1
 9a93a288-1906-4aa9-b6c2-210c2fba2c39 | fcbff614561f2c09501be18aad566624e04bf390aef8c072596ac2b793d10cb7 | 2024-11-29 09:58:22.900562+00 | 20240130100110_usage_unit_nullable    |      |                | 2024-11-29 09:58:22.850657+00 |                   1
 ef943ddb-7d31-4b46-8da0-097bce7cc70c | 9496ee3af1202cb3f9d6f0d4bb88c521e0e796a04bc8e02622718a63ba79b710 | 2024-11-29 09:58:21.816239+00 | 20240117151938_traces_remove_unique_id_external           | | | 2024-11-29 09:58:21.751308+00 |                   1
 e2f84cf1-15ab-4264-b467-f8a9dd74a915 | c5919ee7870f36a7555024eb2256b3a28c8d978032dcd943047e5cff27a86cba | 2024-11-29 09:58:21.876264+00 | 20240117165747_add_cost_to_observations                   | | | 2024-11-29 09:58:21.82636+00  |                   1
 c33914ff-b2e5-4a37-b576-a43cc4a32e64 | ad8869aea6b98159c54bd3f2fcfb4ee1114ba54a7bf5726378dc2edd6f8077eb | 2024-11-29 09:58:22.05005+00  | 20240118204639_add_models_table       |      |                | 2024-11-29 09:58:21.893201+00 |                   1
 c1fb1177-7b29-448f-b683-f9173b653f64 | c301dfa0db4367a4691bf520cb0c0b377b10e2ef4ca66f39f818284b23d0cfa2 | 2024-11-29 09:58:22.967339+00 | 20240130160110_claude_models          |      |                | 2024-11-29 09:58:22.917503+00 |                   1
 4c513aca-84bf-4677-bcfa-8076d3ba03d0 | 7211b935cb3f52c11c7ebd0ac540bbbd01bb2010e51ad412d2956645c02724b7 | 2024-11-29 09:58:22.100051+00 | 20240118204936_add_internal_model     |      |                | 2024-11-29 09:58:22.059961+00 |                   1
 36de31a2-7c99-4315-8f65-b4c3d51d3da4 | b79f2ca2011baa6604eec15e549996af3a10e396b706aff73b6ca36c08291d99 | 2024-11-29 09:58:22.15845+00  | 20240118204937_add_observations_view  |      |                | 2024-11-29 09:58:22.110152+00 |                   1
 631e181b-8309-4e10-be55-f4397f1adb86 | 2ab605d386e52af31b6328f5542d63ec6a6b19db9bda8f2e4888a7de7154b2ae | 2024-11-29 09:58:25.737602+00 | 20240304123642_traces_view_improvement                    | | | 2024-11-29 09:58:25.687767+00 |                   1
 e345cc86-7732-4347-ac95-098365829cb7 | 2c075714bdce7df89f328062021733fd62880ff7cdb91a1d0a7aab2659a89d06 | 2024-11-29 09:58:22.316903+00 | 20240118235424_add_index_to_models    |      |                | 2024-11-29 09:58:22.168445+00 |                   1
 bdde30cb-eab6-4896-9565-dbf09895d51c | af31e8b4be701e97ccf87d4692055d2cc7ece9d74cc424e05dfb2775de5a7efe | 2024-11-29 09:58:23.034066+00 | 20240131184148_add_finetuned_and_vertex_models            | | | 2024-11-29 09:58:22.984694+00 |                   1
 9abcb2c8-f0bd-49ab-830f-7fe5e6e13281 | c76d5a31377660ce77e890a918ffa07bd2db8c8c94b04753befbc27d152492ea | 2024-11-29 09:58:22.391759+00 | 20240119140941_add_tokenizer_id       |      |                | 2024-11-29 09:58:22.327974+00 |                   1
 e6aebfcd-0ff1-4adc-962b-ef41b8391f3d | 08f7d11bd5deec873669ca10101dd0a05669bb04eb300ef0ee7b6d3517ae0c24 | 2024-11-29 09:58:22.492243+00 | 20240119164147_make_model_params_nullable                 | | | 2024-11-29 09:58:22.408647+00 |                   1
 ac5ac33c-3ba6-4e3b-bca8-dfbccce3baa9 | 540712b04f0fbaf449eaf229210e04dec83280878842c7c3d9956e4ff98334ce | 2024-11-29 09:58:24.046112+00 | 20240219162415_add_prompt_config      |      |                | 2024-11-29 09:58:23.996219+00 |                   1
 ae336032-8fdb-46b3-8f57-4ac9f07f38e9 | 3b0d3c46459cc2770d6e8d9db6fc139f859792da5b89937114dd09b17dac0dd4 | 2024-11-29 09:58:22.575266+00 | 20240119164148_add_models             |      |                | 2024-11-29 09:58:22.50899+00  |                   1
 94c23e76-7153-4c17-b559-b3a10c228560 | 3bc4965e82cd4645da383ef6f6582a7efd7f5bf27e912af1efe18ff62e014db1 | 2024-11-29 09:58:23.102056+00 | 20240203184148_update_pricing         |      |                | 2024-11-29 09:58:23.051465+00 |                   1
 456ecfcf-2039-4271-acbf-d1ad6f7d6bca | 73f7212daa54130c6fa91fc17d840262ec948b11aafce49ea3e8ce7d4f3cbef1 | 2024-11-29 09:58:22.700347+00 | 20240124140443_session_composite_key  |      |                | 2024-11-29 09:58:22.592191+00 |                   1
 101679b5-9aa9-43cb-8a23-1c417621596f | 4ec1ad8229c185a7afaa62357879a60d4f59b35a103975030ce43d67823096c9 | 2024-11-29 09:58:22.767094+00 | 20240124164148_correct_models         |      |                | 2024-11-29 09:58:22.717305+00 |                   1
 6e240b34-a32d-4e76-a3cc-b51fbc601c32 | 546c704d2869f4d382fb591fd20b14c489e99fffaa5655c45a3a86e7a7d488c5 | 2024-11-29 09:58:22.83381+00  | 20240126184148_new_models copy        |      |                | 2024-11-29 09:58:22.784064+00 |                   1
 3b747051-c233-41e5-ba72-3cd6c426c8b9 | 3e0cc893b4ec41ef43740af577aef359e2c742c338c8fc5421f766d75cce1292 | 2024-11-29 09:58:23.493984+00 | 20240212175433_add_audit_log_table    |      |                | 2024-11-29 09:58:23.118982+00 |                   1
 53e34020-5ff5-4b30-a9a6-a6e3221f8614 | f2af6a57ddd2aab8adeaa5a3c6571cd8ab8538b071fb01e07c35d277203ae6b8 | 2024-11-29 09:58:25.12778+00  | 20240226202041_add_observations_trace_id_project_id_type_start_time_idx | | | 2024-11-29 09:58:24.951189+00 |     1
 0af82082-d8cc-4d59-a713-199100f9c0c9 | 4a1b6917569327219e620f0cca78446c360958d5a91226b7f60bd4626ffb38d0 | 2024-11-29 09:58:23.562292+00 | 20240213124148_update_openai_pricing  |      |                | 2024-11-29 09:58:23.512537+00 |                   1
 8e2d9158-28bc-4c45-bb14-3b618910209b | 909cae9daaf399b3ab6e9c03142fa4b80d7b09f44165944b9a09007d829d6f28 | 2024-11-29 09:58:24.279562+00 | 20240226165118_add_observations_index                     | | | 2024-11-29 09:58:24.063018+00 |                   1
 66984990-83f8-4434-a36d-c6f73fd477f0 | a942356a983650fb3aa2974690956869324993c3a546ea83d3ae26d2a98db7c1 | 2024-11-29 09:58:23.787408+00 | 20240214232619_prompts_add_indicies   |      |                | 2024-11-29 09:58:23.579216+00 |                   1
 029e2cd4-5045-40bc-8225-37955d7eb79e | 00a42d4d8bd4090cf94d90eeb82fe803d23d802dcdb6c058b2371a75d951519a | 2024-11-29 09:58:23.870894+00 | 20240215224148_update_openai_pricing  |      |                | 2024-11-29 09:58:23.804452+00 |                   1
 3654fa6a-ce67-4b0f-a431-42b28db413b0 | d498837088f8de279f4c04655af668c34f3febd961c95390a0441cb0ee0a3db6 | 2024-11-29 09:58:25.529027+00 | 20240228103642_observations_view_cte  |      |                | 2024-11-29 09:58:25.453414+00 |                   1
 c2fab2b8-f7bf-436f-bb05-b2f2293c108b | 58e1bb0a84cb20a36c750b9d13c1371e44cd1a4947d5bdb37754a23d664c5e33 | 2024-11-29 09:58:24.47139+00  | 20240226182815_add_model_index        |      |                | 2024-11-29 09:58:24.296348+00 |                   1
 f8f40639-b796-4570-953a-c511d0c940ed | e31ee1ec510ded08a1813273056149bfe345651ce02d9ab31883dde10e390afe | 2024-11-29 09:58:25.194527+00 | 20240226203642_rewrite_observations_view                  | | | 2024-11-29 09:58:25.144679+00 |                   1
 74abde8e-0b01-4f3f-9115-98f53adb8b16 | 2cb0786da90de9c0a6e2983075362c76163e0635f9d347da0686b9c0434b8f0f | 2024-11-29 09:58:24.663255+00 | 20240226183642_add_observations_index                     | | | 2024-11-29 09:58:24.488286+00 |                   1
 50fb524c-e338-432c-a8fe-13e9163c78cf | e733981599148cbb086a4eb4e7276fac2059ce3b60b3acf1443c3ec648f1d233 | 2024-11-29 09:58:24.855109+00 | 20240226202040_add_observations_trace_id_project_id_start_time_idx | | | 2024-11-29 09:58:24.680122+00 |          1
 0772ae0c-c799-485e-8d80-8f847c516d5d | 5603e17abf74b6c9e4191ff261e56e63641a90c5e04d99c5f04be174d1a90d76 | 2024-11-29 09:58:25.436341+00 | 20240227112101_index_prompt_id_in_observations            | | | 2024-11-29 09:58:25.211441+00 |                   1
 9f811a68-16b3-4517-8e91-1c8186121def | 83902ab9281b0b9b7257768518cbfb6895d382f30e6594b2058507d173bfa519 | 2024-11-29 09:58:25.670875+00 | 20240304123642_traces_view            |      |                | 2024-11-29 09:58:25.620998+00 |                   1
 87921671-dca7-444d-bff2-5f3437e65661 | 96e0223ba9bb5ec06dc4c53988451298d6cf9df6b83da89262280ceb3c203d59 | 2024-11-29 09:58:25.604175+00 | 20240228123642_observations_view_fix  |      |                | 2024-11-29 09:58:25.546042+00 |                   1
 0352c970-893b-4437-9dc8-5c1056e05a4a | b9abacb6b7858085eff8230a9950eaffe2e557c67981592097a2b93204b3c5ec | 2024-11-29 09:58:25.904401+00 | 20240304222519_scores_add_index       |      |                | 2024-11-29 09:58:25.754463+00 |                   1
 c9a97288-44af-47be-b391-76d7c017872c | f8e14cfb18416f04c49e67c2e9c97675b1d01a1a60a549d784cfbcd52f308771 | 2024-11-29 09:58:26.072896+00 | 20240305095119_add_observations_index                     | | | 2024-11-29 09:58:25.921328+00 |                   1
 dd6ed748-a503-45c2-9484-cb2409cf22cb | 498c50087ca98fffe98b041b77c8ef195888e35e607b3c0d64643d9275e83935 | 2024-11-29 09:58:26.2797+00   | 20240305100713_traces_add_index       |      |                | 2024-11-29 09:58:26.089832+00 |                   1
 b43a1f51-94c4-4791-8217-d0ea67401fad | 89a9d0e9dd25662dd684333947df23ea4165a4adec9995e281b33fecdd60b775 | 2024-11-29 09:58:26.396567+00 | 20240307090110_claude_model_three     |      |                | 2024-11-29 09:58:26.298322+00 |                   1
 49333bca-3368-4ca7-9983-024ec52218b8 | 7a8d3f1cb3ce402ca6de3b8af2f9f402770d7bb1b9a0ba740dd691b5e88feb1f | 2024-11-29 09:58:26.483438+00 | 20240307185543_score_add_source_nullable                  | | | 2024-11-29 09:58:26.43023+00  |                   1
 dd6c7a4b-64b8-494b-ba35-4f9f5de4632e | cbf36bf3115f7c66934d46e7d8f4a21c7465f9d00569d619b7382028ee422eb3 | 2024-11-29 09:58:28.1744+00   | 20240404210315_dataset_add_descriptions                   | | | 2024-11-29 09:58:28.124507+00 |                   1
 4dd3758d-b54a-447b-9373-083027a7245b | b9c551f91d345926b3c740563aecff3904717185b84dcdf74c0b2521ffa2cb63 | 2024-11-29 09:58:26.775383+00 | 20240307185544_score_add_name_index   |      |                | 2024-11-29 09:58:26.523401+00 |                   1
 781b5de9-5e33-437d-93ac-87996d162f62 | 0cec970448bd9ff3a78acdcce5519f9c2154378ccc3a3acbd79266478f66238e | 2024-11-29 09:58:26.825404+00 | 20240307185725_backfill_score_source  |      |                | 2024-11-29 09:58:26.792182+00 |                   1
 b895f66b-dbef-4132-89a0-ca74b2e07860 | 1a476db15f8f2a6becbde3c804623832542a9d2dc1233389e9b4d1c9047a5b43 | 2024-11-29 09:58:26.892087+00 | 20240312195727_score_source_drop_default                  | | | 2024-11-29 09:58:26.842262+00 |                   1
 704d8960-cf0d-4c99-bffe-58483accc848 | b5d68c44ed85196b038921cde3faf6241050b76781a9d93981346165436c6ed7 | 2024-11-29 09:58:28.224468+00 | 20240404232317_dataset_items_backfill_source_trace_id     | | | 2024-11-29 09:58:28.191278+00 |                   1
 4da20c79-26e2-4982-aad5-9c53fa9fb0f8 | 137f83659a950bdc6497c2030f61bd070264ee14387f3e11143f55ae2c3d810e | 2024-11-29 09:58:26.958835+00 | 20240314090110_claude_model           |      |                | 2024-11-29 09:58:26.909008+00 |                   1
 d78f915d-7fed-45d1-9f60-5e3af39d400a | 9e7f1d6a2d8e12037a931e8d8c86e552366e8056d2a9adb847f84da5c6972398 | 2024-11-29 09:58:27.192283+00 | 20240325211959_remove_example_table   |      |                | 2024-11-29 09:58:26.975703+00 |                   1
 5a4d1cda-4e4d-4bc4-bc6c-762c2e5d71ad | 48d049e8d66ed3f4b0336d857ae4bfeb7f39dd9ee1070fbe4bede32630478e7b | 2024-11-29 09:58:27.392452+00 | 20240325212245_dataset_runs_add_metadata                  | | | 2024-11-29 09:58:27.209169+00 |                   1
 bc42a49d-1834-4001-b9c3-8e7debc0c581 | 82c21f5f2399c1173c734d8a157b4b0dac6821cbbc36dce8ba058caf40681ff7 | 2024-11-29 09:58:28.299538+00 | 20240405124810_prompt_to_json         |      |                | 2024-11-29 09:58:28.241293+00 |                   1
 05400cc4-cb59-4900-ad7e-36a66f35cf19 | 3fa446eb946ec9e8f56c4665e02aea106727c4058acd89dd758900273a2183d8 | 2024-11-29 09:58:27.677639+00 | 20240326114211_dataset_run_item_bind_to_trace             | | | 2024-11-29 09:58:27.40929+00  |                   1
 50a9bacc-1459-4931-b447-b7c8b86e54fc | 206607c9c910399b23bb8217092e4b17fd428f2890efb49f1ad65dceaa55f3d1 |                               | 20240408133037_add_objects_for_evals  |      |                | 2024-11-29 09:58:28.316852+00 |                   0
 e1f6159b-492d-44b6-a38e-8d92ab490e94 | f6efc777385ff3f04b4c93745d7a66fe953a4fb4544203ad22808b80468f3578 | 2024-11-29 09:58:27.725884+00 | 20240326114337_dataset_run_item_backfill_trace_id         | | | 2024-11-29 09:58:27.692707+00 |                   1
 57a79b67-7140-4ca4-8e20-783f2a68b308 | 7c084b86913a91f9b8658084f6b8f6526bce2d0de4842c8f68e07f30f1f46fe9 | 2024-11-29 09:58:27.790624+00 | 20240326115136_dataset_run_item_traceid_non_null          | | | 2024-11-29 09:58:27.742809+00 |                   1
 75ec2a88-f6b8-4484-b893-c4f1bbcd70c5 | afe59690f207d0f4481d9a54af3e743622a88a68ad46d4eb2597c2b7a953fc66 | 2024-11-29 09:58:27.974141+00 | 20240326115424_dataset_run_item_index_trace               | | | 2024-11-29 09:58:27.807545+00 |                   1
 0d8e69d4-1eef-487c-a75c-f4e886f69001 | 10e5a3983b46239bbb0b6ad8617901df3c7eaa53df0b879577528d7e14d84d91 | 2024-11-29 09:58:28.040892+00 | 20240328065738_dataset_item_input_nullable                | | | 2024-11-29 09:58:27.991+00    |                   1
 05029787-65eb-4b1f-b5e7-115af451905c | 04c22689adda42b47ce94563fc3e834507c8b214a20ae1d379b2cfa9ed4e6d73 | 2024-11-29 09:58:28.10759+00  | 20240404203640_dataset_item_source_trace_id               | | | 2024-11-29 09:58:28.059759+00 |                   1
(134 rows)```

@Steffen911
Copy link
Contributor

Steffen911 commented Nov 29, 2024

@VincentMagn Initially you wrote that

migrate found failed migrations in the target database, new migrations will not be applied. Read more about how to resolve migration issues in a production database: https://pris.ly/d/migrate-resolve
The `20240104210052_add_model_indices_pricing` migration started at 2024-11-27 13:59:00.105966 UTC failed

i.e. it failed at a different migration step. If you reset the postgresql instance in between runs and delete the PV, do you see issues happening at different stages?

I assume this might happen if the web container exceeds the default liveness and readiness probe thresholds on Kubernetes which would make it get killed. With a default period of 10s and a default failure threshold of 3, the container has about 30s before it receives an interrupt. On my machine with my tests that is usually sufficient, but it might not be in your case as I see a more than 20s range around your migration start times.

Could you adjust the charts/langfuse/templates/deployment-web.yaml and add initialDelaySeconds: 30 to the livenessProbe in L117 and the readinessProbe in L121?
They should look like this afterwards:

          livenessProbe:
            initialDelaySeconds: 30
            httpGet:
              path: {{ .Values.langfuse.next.healthcheckBasePath | default "" | trimSuffix "/" }}/api/public/health
              port: http

This change allows the pod up to 30s to do the migrations before the probes start, i.e. a total of 60s to complete the migrations.

See https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes for more details on those.

If those settings work for you, I'll make sure to have those configurable via the values.yaml.

@VincentMagn
Copy link
Author

Hi @Steffen911, good news, it works well, thanks a lot

@Steffen911
Copy link
Contributor

@VincentMagn Thank you for the confirmation. I'll go ahead and create a separate ticket to track the liveness/readiness/startupProbe configurability and will close this one.
Please create a new one in one you run into any other surprises.

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

Successfully merging a pull request may close this issue.

2 participants