Comments (11)
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.
same here for win11
from superagi.
I am also getting this as well. I've redownloaded the application and i still get this error.
from superagi.
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.
Same issue on Mac OS 14
from superagi.
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.
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.
Same issue on Mac M2
from superagi.
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.
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
from superagi.
We have fixed this issue in #1353 (fixes for the main branch) and #1354 (fixes for the dev branch).
from superagi.
Related Issues (20)
- Add support for Epsilla vector db
- Cannot connect to redis://super__redis:6379/0: Error 111
- local-llm-gpu installation / setup not working HOT 2
- When will the Visual Agent workflow in SuperAGI v0.0.14 be released? Is there a release plan?
- installation problem HOT 1
- pinecone and qdrant "unable to connect database" HOT 4
- Searx returned 429 status code
- NEW INSTALLATION ERROR; runc create failed: unable to start container process: exec: "/app/wait-for-it.sh": permission denied: unknown
- Windows 11 Install Issues
- Using Mixtral as Local LLM Fails HOT 3
- GETTING ISSUE WITH DIGITALOCEAN DEPLOYMENT HOT 1
- The port 3000 (http://localhost:3000) is not open after deploying with docker compose
- Unhandled Runtime Error HOT 1
- CUDA version (11.8) mismatches PyTorch (12.1) HOT 1
- Hugginface requiring an endpoint url on web version
- Ai projects
- Bugs - Vulnerabilities in `Pillow` 6.2.2
- Feature req: Please integrate apipie.ai HOT 1
- Minor Issue With comment order in Config.yaml
- Thinking Loop because the prompt is not fully transmitted to Local OpenAI API Server HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from superagi.