Git Product home page Git Product logo

Comments (11)

alangunning avatar alangunning commented on June 6, 2024 2

Getting the same error. It appears to have been introduced by PR: #1351

For anyone blocked while awaiting a fix, I was able to succesfully startup by commenting out this line.
https://github.com/TransformerOptimus/SuperAGI/blob/b96fdabcf6a20d4309bfb5ff99a144d59cd74dd0/main.py#L249C18-L249C18

from superagi.

Threchette avatar Threchette commented on June 6, 2024

same here for win11

from superagi.

Michspirit99 avatar Michspirit99 commented on June 6, 2024

I am also getting this as well. I've redownloaded the application and i still get this error.

from superagi.

Jldouglas84 avatar Jldouglas84 commented on June 6, 2024

I also get this error.

When I try to load localhost:3000 I see the SuperAGI logo in the top left and Ïnitailizing SuperAGI... loading and get no further

This is happening in the superagi-backend-1 container in docker using superagi-backend

from superagi.

c0d3x avatar c0d3x commented on June 6, 2024

Same issue on Mac OS 14

from superagi.

ryan-james-smith avatar ryan-james-smith commented on June 6, 2024

same error here, if I take the log back a couple of extra lines i have:
superagi-backend-1 | 2023-10-27 19:42:38 UTC - Super AGI - INFO - [/app/main.py:197] - Running Startup tasks superagi-backend-1 | 2023-10-27 19:42:38 UTC - Super AGI - INFO - [/app/main.py:201] - None superagi-backend-1 | 2023-10-27 19:42:39 UTC - Super AGI - INFO - [/app/superagi/models/workflows/agent_workflow_step.py:157] - Finding or creating wait step superagi-backend-1 | ERROR: Traceback (most recent call last): superagi-backend-1 | File "/opt/venv/lib/python3.10/site-packages/starlette/routing.py", line 677, in lifespan superagi-backend-1 | async with self.lifespan_context(app) as maybe_state: superagi-backend-1 | File "/opt/venv/lib/python3.10/site-packages/starlette/routing.py", line 566, in __aenter__ superagi-backend-1 | await self._router.startup() superagi-backend-1 | File "/opt/venv/lib/python3.10/site-packages/starlette/routing.py", line 654, in startup superagi-backend-1 | await handler() superagi-backend-1 | File "/app/main.py", line 249, in startup_event superagi-backend-1 | local_llm_model_config() superagi-backend-1 | File "/app/main.py", line 221, in local_llm_model_config superagi-backend-1 | existing_models_config = session.query(ModelsConfig).filter(ModelsConfig.org_id == default_user.organisation_id, ModelsConfig.provider == 'Local LLM').first() superagi-backend-1 | AttributeError: 'NoneType' object has no attribute 'organisation_id' superagi-backend-1 | superagi-backend-1 | ERROR: Application startup failed. Exiting.

Where the second line says None this is a log of default_user.
The Errr on line 221 is trying to use default_user.organisation_id however as per the previous log our default_user is None so it does not contain an organisation_id.

Unfortunately I can understand why I see the error, but I have not the skill (yet) to go about finding a solution.

from superagi.

gwickman avatar gwickman commented on June 6, 2024

I'm getting the same issue on Windows 11 using the docker install. It seems like the default_user for the postgress database "[email protected]" should exist but doesn't?

Line 200 tries to load the default_user and when line 201 logs it the output is "None" and this seems to fail line 221?

--CODE--
200 default_user = session.query(User).filter(User.email == "[email protected]").first()
201 logger.info(default_user)

221 existing_models_config = session.query(ModelsConfig).filter(ModelsConfig.org_id == default_user.organisation_id, ModelsConfig.provider == 'Local LLM').first()

--LOG--

2023-10-28 09:07:00 superagi-backend-1 | INFO: Started server process [315]
2023-10-28 09:07:00 superagi-backend-1 | INFO: Waiting for application startup.
2023-10-28 09:07:00 superagi-backend-1 | 2023-10-28 08:07:00 UTC - Super AGI - INFO - [/app/main.py:197] - Running Startup tasks
2023-10-28 09:07:00 superagi-backend-1 | 2023-10-28 08:07:00 UTC - Super AGI - INFO - [/app/main.py:201] - None
2023-10-28 09:07:00 superagi-backend-1 | 2023-10-28 08:07:00 UTC - Super AGI - INFO - [/app/superagi/models/workflows/agent_workflow_step.py:157] - Finding or creating wait step
2023-10-28 09:07:00 superagi-backend-1 | ERROR: Traceback (most recent call last):
2023-10-28 09:07:00 superagi-backend-1 | File "/opt/venv/lib/python3.10/site-packages/starlette/routing.py", line 677, in lifespan
2023-10-28 09:07:00 superagi-backend-1 | async with self.lifespan_context(app) as maybe_state:
2023-10-28 09:07:00 superagi-backend-1 | File "/opt/venv/lib/python3.10/site-packages/starlette/routing.py", line 566, in aenter
2023-10-28 09:07:00 superagi-backend-1 | await self._router.startup()
2023-10-28 09:07:00 superagi-backend-1 | File "/opt/venv/lib/python3.10/site-packages/starlette/routing.py", line 654, in startup
2023-10-28 09:07:00 superagi-backend-1 | await handler()
2023-10-28 09:07:00 superagi-backend-1 | File "/app/main.py", line 249, in startup_event
2023-10-28 09:07:00 superagi-backend-1 | local_llm_model_config()
2023-10-28 09:07:00 superagi-backend-1 | File "/app/main.py", line 221, in local_llm_model_config
2023-10-28 09:07:00 superagi-backend-1 | existing_models_config = session.query(ModelsConfig).filter(ModelsConfig.org_id == default_user.organisation_id, ModelsConfig.provider == 'Local LLM').first()
2023-10-28 09:07:00 superagi-backend-1 | AttributeError: 'NoneType' object has no attribute 'organisation_id'

from superagi.

izevar avatar izevar commented on June 6, 2024

Same issue on Mac M2

from superagi.

izevar avatar izevar commented on June 6, 2024

I found a workaround
After the --build command the DB do not have any default user or organization created.
So if you modify the docker-compose file to allow to expose the Postgres ports you can manually create an user and an organization after that do restart the containers and should work.

it's a workaround not a fix.

from superagi.

Michspirit99 avatar Michspirit99 commented on June 6, 2024

Getting the same error. It appears to have been introduced by PR: #1351

For anyone blocked while awaiting a fix, I was able to succesfully startup by commenting out this line. https://github.com/TransformerOptimus/SuperAGI/blob/b96fdabcf6a20d4309bfb5ff99a144d59cd74dd0/main.py#L249C18-L249C18

This is a very good work around.

Specifically this line

image

from superagi.

rounak610 avatar rounak610 commented on June 6, 2024

We have fixed this issue in #1353 (fixes for the main branch) and #1354 (fixes for the dev branch).

from superagi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.