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

Railway deployment failed - no idea why #5712

Closed
agileben opened this issue Sep 15, 2024 · 7 comments · Fixed by #5723 or #5731
Closed

Railway deployment failed - no idea why #5712

agileben opened this issue Sep 15, 2024 · 7 comments · Fixed by #5723 or #5731

Comments

@agileben
Copy link

✔ Generated Prisma Client Python (v0.11.0) to ./../../prisma in 335ms

INFO: Started server process [1]

INFO: Waiting for application startup.

ERROR: Traceback (most recent call last):

File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 732, in lifespan

async with self.lifespan_context(app) as maybe_state:

File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 608, in aenter

await self._router.startup()

File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 709, in startup

await handler()

File "/usr/local/lib/python3.11/site-packages/litellm/proxy/proxy_server.py", line 2905, in startup_event

create_view_response = await prisma_client.check_view_exists()

                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/usr/local/lib/python3.11/site-packages/backoff/_async.py", line 151, in retry

ret = await target(*args, **kwargs)

      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/usr/local/lib/python3.11/site-packages/litellm/proxy/utils.py", line 995, in check_view_exists

if required_view not in ret[0]["view_names"]:

   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

TypeError: argument of type 'NoneType' is not iterable

ERROR: Application startup failed. Exiting.

@krrishdholakia
Copy link
Contributor

Hey @agileben this issue is fixed here - #5723

I'm assuming this is a new db with no existing views. It relates to a recent change made (v1.44.28+) which moved the view creation logic out of the proxy startup.

@lackeyi
Copy link

lackeyi commented Sep 16, 2024

Is there a workaround for this? I am trying to get an instance running in Azure, and it looks like this may be the issue I am running into as well.

@krrishdholakia
Copy link
Contributor

It'll be out by eod. if it's urgent use v1.44.27

@lackeyi
Copy link

lackeyi commented Sep 16, 2024

That is impressive turn around! Thanks for the quick response!

@lackeyi
Copy link

lackeyi commented Sep 17, 2024

I have tried rolling back to 1.44.27 and also tried the new 1.46.1 this morning. I am still seeing this same issue.

@ishaan-jaff
Copy link
Contributor

fixed here: #5740

we needed a check for if the ret value is None

@lackeyi
Copy link

lackeyi commented Sep 17, 2024

I was able to get it to run on v1.44.17-stable as a temporary workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants