SuperAGI icon indicating copy to clipboard operation
SuperAGI copied to clipboard

No Tools available

Open mhsekr opened this issue 2 years ago • 18 comments

hi there, thank you for the solution.

currently I cannot chose tools when creating an agent.

the tools tab shows: No Tools available.

can you please help? image

mhsekr avatar Jun 05 '23 18:06 mhsekr

@mhsekr Did you try docker compose up --build?

luciferlinx101 avatar Jun 05 '23 19:06 luciferlinx101

i ran docker-compose up --build yes

mhsekr avatar Jun 05 '23 19:06 mhsekr

Can you please share the docker logs? Also, you are running on which OS?

luciferlinx101 avatar Jun 05 '23 19:06 luciferlinx101

I have the same issue. Used docker compose up --build on 2 different laptops. No tools available.

paulroberttaylor avatar Jun 05 '23 20:06 paulroberttaylor

running on win11 here are the logs (if this is what you're looking for): 2023-06-05 23:01:39 1:C 05 Jun 2023 20:01:39.670 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 2023-06-05 23:01:39 1:C 05 Jun 2023 20:01:39.671 # Redis version=7.0.11, bits=64, commit=00000000, modified=0, pid=1, just started 2023-06-05 23:01:39 1:C 05 Jun 2023 20:01:39.671 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf 2023-06-05 23:01:39 1:M 05 Jun 2023 20:01:39.671 * monotonic clock: POSIX clock_gettime 2023-06-05 23:01:39 1:M 05 Jun 2023 20:01:39.679 * Running mode=standalone, port=6379. 2023-06-05 23:01:39 1:M 05 Jun 2023 20:01:39.679 # Server initialized 2023-06-05 23:01:39 1:M 05 Jun 2023 20:01:39.679 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. 2023-06-05 23:01:39 1:M 05 Jun 2023 20:01:39.680 * Loading RDB produced by version 7.0.11 2023-06-05 23:01:39 1:M 05 Jun 2023 20:01:39.680 * RDB age 862 seconds 2023-06-05 23:01:39 1:M 05 Jun 2023 20:01:39.680 * RDB memory usage when created 1.18 Mb 2023-06-05 23:01:39 1:M 05 Jun 2023 20:01:39.680 * Done loading RDB, keys loaded: 1, keys expired: 0. 2023-06-05 23:01:39 1:M 05 Jun 2023 20:01:39.680 * DB loaded from disk: 0.000 seconds 2023-06-05 23:01:39 1:M 05 Jun 2023 20:01:39.680 * Ready to accept connections

mhsekr avatar Jun 05 '23 20:06 mhsekr

For windows specially can you once check https://github.com/TransformerOptimus/SuperAGI/issues/160 it might help

luciferlinx101 avatar Jun 05 '23 20:06 luciferlinx101

For windows check #160

it helped me.

Quickly:

Open files entrypoint.sh and wait-for-it.sh in Visual Studio Code.

For each of them:

in vscode at bottom right check for CLRF if it is CLRF then click on it and change it to LF

Save it

Delete your previous docker container from Docker.

Then re-run:

docker-compose up --build

Enjoy

alperinugur avatar Jun 05 '23 20:06 alperinugur

& it worked @luciferlinx101 thanks a lot for the quick guidance!

mhsekr avatar Jun 05 '23 20:06 mhsekr

@alperinugur Thanks. CRLF -> LF worked for me. Although I did check out main too.

paulroberttaylor avatar Jun 05 '23 20:06 paulroberttaylor

I'm still having this issue and have updated to main as well as checked for CRLF vs. LF. I still have no tools listed after having re-cloned and rebuilt several times. I believe there may be another issue besides the CRLF.

On Ubuntu LInux

winston1000 avatar Jun 05 '23 21:06 winston1000

@winston1000 try docker compose up --build if it still doesn't work do share backend docker logs.

luciferlinx101 avatar Jun 05 '23 21:06 luciferlinx101

Still no luck, I've tried to delete and reinstall several times as well. I thought maybe a container or image stuck around but deleted all of them as well.

Building gui Sending build context to Docker daemon 762.4kB Step 1/6 : FROM node:lts ---> 78b037dbb659 Step 2/6 : WORKDIR /app ---> Using cache ---> ab89e9b2f2db Step 3/6 : COPY package*.json ./ ---> Using cache ---> 2c5c1bfd315d Step 4/6 : RUN npm install ---> Using cache ---> 02b0c1d795c0 Step 5/6 : COPY . . ---> da3197b652dd Step 6/6 : CMD ["npm", "run", "dev"] ---> Running in 2009386fd624 Removing intermediate container 2009386fd624 ---> 51d34791890e Successfully built 51d34791890e Successfully tagged superagi_gui:latest Building celery Sending build context to Docker daemon 3.081MB Step 1/7 : FROM python:3.9 ---> 3a6891e6dad7 Step 2/7 : WORKDIR /app ---> Using cache ---> ea7aeef309b1 Step 3/7 : COPY requirements.txt . ---> Using cache ---> f5bf763b4a68 Step 4/7 : RUN pip install --no-cache-dir -r requirements.txt ---> Using cache ---> 5be6aa641963 Step 5/7 : COPY . . ---> 327d255ef36e Step 6/7 : COPY config.yaml . ---> a9bb3eea4178 Step 7/7 : CMD ["celery", "-A", "superagi.worker", "worker", "--loglevel=info"] ---> Running in a4fc3b0a13b3 Removing intermediate container a4fc3b0a13b3 ---> 5a0f49d82d89 Successfully built 5a0f49d82d89 Successfully tagged superagi_celery:latest Building backend Sending build context to Docker daemon 3.081MB Step 1/10 : FROM python:3.9 ---> 3a6891e6dad7 Step 2/10 : WORKDIR /app ---> Using cache ---> ea7aeef309b1 Step 3/10 : COPY requirements.txt . ---> Using cache ---> f5bf763b4a68 Step 4/10 : RUN pip install --no-cache-dir -r requirements.txt ---> Using cache ---> 5be6aa641963 Step 5/10 : COPY . . ---> Using cache ---> 327d255ef36e Step 6/10 : COPY config.yaml ./config.yaml ---> adfd1dbc8a03 Step 7/10 : COPY entrypoint.sh /entrypoint.sh ---> cc8116fc31e0 Step 8/10 : COPY wait-for-it.sh /wait-for-it.sh ---> 92e0049c17ac Step 9/10 : RUN chmod +x /entrypoint.sh /wait-for-it.sh ---> Running in 0b49728e7c4c Removing intermediate container 0b49728e7c4c ---> 1c6dd5f0f1b8 Step 10/10 : CMD ["/wait-for-it.sh", "super__postgres:5432","-t","60","--","/entrypoint.sh"] ---> Running in ab1ba92a9f9f Removing intermediate container ab1ba92a9f9f ---> 2c5b03107771 Successfully built 2c5b03107771 Successfully tagged superagi_backend:latest Starting superagi_super__redis_1 ... done Recreating superagi_gui_1 ... done Starting superagi_super__postgres_1 ... done Recreating superagi_backend_1 ... done Recreating superagi_celery_1 ... done Attaching to superagi_super__postgres_1, superagi_super__redis_1, superagi_gui_1, superagi_celery_1, superagi_backend_1 super__postgres_1 | super__postgres_1 | PostgreSQL Database directory appears to contain a database; Skipping initialization super__postgres_1 | super__postgres_1 | 2023-06-05 21:37:39.342 UTC [1] LOG: starting PostgreSQL 15.3 (Debian 15.3-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit super__postgres_1 | 2023-06-05 21:37:39.343 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 super__postgres_1 | 2023-06-05 21:37:39.343 UTC [1] LOG: listening on IPv6 address "::", port 5432 super__postgres_1 | 2023-06-05 21:37:39.389 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" super__postgres_1 | 2023-06-05 21:37:39.440 UTC [29] LOG: database system was shut down at 2023-06-05 21:29:52 UTC super__postgres_1 | 2023-06-05 21:37:39.448 UTC [1] LOG: database system is ready to accept connections super__redis_1 | 1:C 05 Jun 2023 21:37:39.260 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo super__redis_1 | 1:C 05 Jun 2023 21:37:39.260 # Redis version=7.0.11, bits=64, commit=00000000, modified=0, pid=1, just started super__redis_1 | 1:C 05 Jun 2023 21:37:39.260 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf super__redis_1 | 1:M 05 Jun 2023 21:37:39.261 * monotonic clock: POSIX clock_gettime super__redis_1 | 1:M 05 Jun 2023 21:37:39.263 * Running mode=standalone, port=6379. super__redis_1 | 1:M 05 Jun 2023 21:37:39.263 # Server initialized super__redis_1 | 1:M 05 Jun 2023 21:37:39.263 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. super__redis_1 | 1:M 05 Jun 2023 21:37:39.263 * Loading RDB produced by version 7.0.11 super__redis_1 | 1:M 05 Jun 2023 21:37:39.263 * RDB age 467 seconds super__redis_1 | 1:M 05 Jun 2023 21:37:39.263 * RDB memory usage when created 1.18 Mb super__redis_1 | 1:M 05 Jun 2023 21:37:39.263 * Done loading RDB, keys loaded: 1, keys expired: 0. super__redis_1 | 1:M 05 Jun 2023 21:37:39.263 * DB loaded from disk: 0.000 seconds super__redis_1 | 1:M 05 Jun 2023 21:37:39.263 * Ready to accept connections gui_1 | gui_1 | > [email protected] dev gui_1 | > next dev gui_1 | gui_1 | - ready started server on 0.0.0.0:3000, url: http://localhost:3000 backend_1 | wait-for-it.sh: waiting 60 seconds for super__postgres:5432 backend_1 | wait-for-it.sh: super__postgres:5432 is available after 0 seconds gui_1 | - warn Invalid next.config.js options detected: gui_1 | - warn The root value has an unexpected property, webpackDevMiddleware, which is not in the list of allowed properties (amp, analyticsId, assetPrefix, basePath, cleanDistDir, compiler, compress, configOrigin, crossOrigin, devIndicators, distDir, env, eslint, excludeDefaultMomentLocales, experimental, exportPathMap, generateBuildId, generateEtags, headers, httpAgentOptions, i18n, images, modularizeImports, onDemandEntries, optimizeFonts, output, outputFileTracing, pageExtensions, poweredByHeader, productionBrowserSourceMaps, publicRuntimeConfig, reactStrictMode, redirects, rewrites, sassOptions, serverRuntimeConfig, skipMiddlewareUrlNormalize, skipTrailingSlashRedirect, staticPageGenerationTimeout, swcMinify, target, trailingSlash, transpilePackages, typescript, useFileSystemPublicRoutes, webpack). gui_1 | - warn See more info here: https://nextjs.org/docs/messages/invalid-next-config backend_1 | INFO [alembic.runtime.migration] Context impl PostgresqlImpl. backend_1 | INFO [alembic.runtime.migration] Will assume transactional DDL. celery_1 | Connected to the database! @ postgresql://superagi:password@super__postgres/super_agi_main backend_1 | INFO: Will watch for changes in these directories: ['/app'] backend_1 | INFO: Uvicorn running on http://0.0.0.0:8001 (Press CTRL+C to quit) backend_1 | INFO: Started reloader process [1] using WatchFiles backend_1 | Connected to the database! @ postgresql://superagi:password@super__postgres/super_agi_main celery_1 | /usr/local/lib/python3.9/site-packages/celery/platforms.py:840: SecurityWarning: You're running the worker with superuser privileges: this is celery_1 | absolutely not recommended! celery_1 | celery_1 | Please specify a different user using the --uid option. celery_1 | celery_1 | User information: uid=0 euid=0 gid=0 egid=0 celery_1 | celery_1 | warnings.warn(SecurityWarning(ROOT_DISCOURAGED.format( celery_1 | celery_1 | -------------- celery@4fb4b30b0234 v5.2.7 (dawn-chorus) celery_1 | --- ***** ----- celery_1 | -- ******* ---- Linux-5.15.0-71-generic-x86_64-with-glibc2.31 2023-06-05 21:37:41 celery_1 | - *** --- * --- celery_1 | - ** ---------- [config] celery_1 | - ** ---------- .> app: superagi:0x7f47c54b25b0 celery_1 | - ** ---------- .> transport: redis://super__redis:6379/0 celery_1 | - ** ---------- .> results: redis://super__redis:6379/0 celery_1 | - *** --- * --- .> concurrency: 10 (prefork) celery_1 | -- ******* ---- .> task events: OFF (enable -E to monitor tasks in this worker) celery_1 | --- ***** ----- celery_1 | -------------- [queues] celery_1 | .> celery exchange=celery(direct) key=celery celery_1 | celery_1 | celery_1 | [tasks] celery_1 | . execute_agent celery_1 | celery_1 | [2023-06-05 21:37:42,382: INFO/MainProcess] Connected to redis://super__redis:6379/0 celery_1 | [2023-06-05 21:37:42,384: INFO/MainProcess] mingle: searching for neighbors backend_1 | INFO: Started server process [20] backend_1 | INFO: Waiting for application startup. backend_1 | INFO: Application startup complete. celery_1 | [2023-06-05 21:37:43,391: INFO/MainProcess] mingle: all alone celery_1 | [2023-06-05 21:37:43,404: INFO/MainProcess] celery@4fb4b30b0234 ready. gui_1 | - event compiled client and server successfully in 1125 ms (775 modules) gui_1 | - wait compiling... gui_1 | - event compiled client and server successfully in 326 ms (775 modules)

Additionally

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 14ae9b7a6a3a superagi_backend "/wait-for-it.sh sup…" 49 minutes ago Up 44 minutes 0.0.0.0:8001->8001/tcp, :::8001->8001/tcp superagi_backend_1 4fb4b30b0234 superagi_celery "celery -A superagi.…" 49 minutes ago Up 44 minutes superagi_celery_1 47d6ecb4d50f superagi_gui "docker-entrypoint.s…" 49 minutes ago Up 44 minutes 0.0.0.0:3000->3000/tcp, :::3000->3000/tcp superagi_gui_1 d8b625d92469 redis:latest "docker-entrypoint.s…" 57 minutes ago Up 44 minutes 6379/tcp superagi_super__redis_1 64782cd76608 postgres:latest "docker-entrypoint.s…" 57 minutes ago Up 44 minutes 5432/tcp superagi_super__postgres_1

winston1000 avatar Jun 05 '23 21:06 winston1000

For windows check #160

it helped me.

Quickly:

Open files entrypoint.sh and wait-for-it.sh in Visual Studio Code.

For each of them:

in vscode at bottom right check for CLRF if it is CLRF then click on it and change it to LF

Save it

Delete your previous docker container from Docker.

Then re-run:

docker-compose up --build

Enjoy

This worked for me, but now it is stuck in a thinking loop. How do I fix that?

FinesseJones avatar Jun 05 '23 23:06 FinesseJones

I've run the suggested solutions as well and still have the issue on Windows 11. Here's the log for backen from docker:

2023-06-05 20:01:48 wait-for-it.sh: waiting 60 seconds for super__postgres:5432 2023-06-05 20:01:48 wait-for-it.sh: super__postgres:5432 is available after 0 seconds 2023-06-05 20:01:49 Traceback (most recent call last): 2023-06-05 20:01:49 File "/usr/local/bin/alembic", line 8, in 2023-06-05 20:01:49 sys.exit(main()) 2023-06-05 20:01:49 File "/usr/local/lib/python3.9/site-packages/alembic/config.py", line 632, in main 2023-06-05 20:01:49 CommandLine(prog=prog).main(argv=argv) 2023-06-05 20:01:49 File "/usr/local/lib/python3.9/site-packages/alembic/config.py", line 626, in main 2023-06-05 20:01:49 self.run_cmd(cfg, options) 2023-06-05 20:01:49 File "/usr/local/lib/python3.9/site-packages/alembic/config.py", line 603, in run_cmd 2023-06-05 20:01:49 fn( 2023-06-05 20:01:49 File "/usr/local/lib/python3.9/site-packages/alembic/command.py", line 385, in upgrade 2023-06-05 20:01:49 script.run_env() 2023-06-05 20:01:49 File "/usr/local/lib/python3.9/site-packages/alembic/script/base.py", line 582, in run_env 2023-06-05 20:01:49 util.load_python_file(self.dir, "env.py") 2023-06-05 20:01:49 File "/usr/local/lib/python3.9/site-packages/alembic/util/pyfiles.py", line 94, in load_python_file 2023-06-05 20:01:49 module = load_module_py(module_id, path) 2023-06-05 20:01:49 File "/usr/local/lib/python3.9/site-packages/alembic/util/pyfiles.py", line 110, in load_module_py 2023-06-05 20:01:49 spec.loader.exec_module(module) # type: ignore 2023-06-05 20:01:49 File "", line 850, in exec_module 2023-06-05 20:01:49 File "", line 228, in _call_with_frames_removed 2023-06-05 20:01:49 File "migrations/env.py", line 8, in 2023-06-05 20:01:49 from superagi.config.config import get_config 2023-06-05 20:01:49 ModuleNotFoundError: No module named 'superagi' 2023-06-05 20:01:49 INFO: Will watch for changes in these directories: ['/app'] 2023-06-05 20:01:49 INFO: Uvicorn running on http://0.0.0.0:8001 (Press CTRL+C to quit) 2023-06-05 20:01:49 INFO: Started reloader process [1] using WatchFiles 2023-06-05 20:01:50 Process SpawnProcess-1: 2023-06-05 20:01:50 Traceback (most recent call last): 2023-06-05 20:01:50 File "/usr/local/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap 2023-06-05 20:01:50 self.run() 2023-06-05 20:01:50 File "/usr/local/lib/python3.9/multiprocessing/process.py", line 108, in run 2023-06-05 20:01:50 self._target(*self._args, **self._kwargs) 2023-06-05 20:01:50 File "/usr/local/lib/python3.9/site-packages/uvicorn/_subprocess.py", line 76, in subprocess_started 2023-06-05 20:01:50 target(sockets=sockets) 2023-06-05 20:01:50 File "/usr/local/lib/python3.9/site-packages/uvicorn/server.py", line 61, in run 2023-06-05 20:01:50 return asyncio.run(self.serve(sockets=sockets)) 2023-06-05 20:01:50 File "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run 2023-06-05 20:01:50 return loop.run_until_complete(main) 2023-06-05 20:01:50 File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete 2023-06-05 20:01:50 File "/usr/local/lib/python3.9/site-packages/uvicorn/server.py", line 68, in serve 2023-06-05 20:01:50 config.load() 2023-06-05 20:01:50 File "/usr/local/lib/python3.9/site-packages/uvicorn/config.py", line 473, in load 2023-06-05 20:01:50 self.loaded_app = import_from_string(self.app) 2023-06-05 20:01:50 File "/usr/local/lib/python3.9/site-packages/uvicorn/importer.py", line 24, in import_from_string 2023-06-05 20:01:50 raise exc from None 2023-06-05 20:01:50 File "/usr/local/lib/python3.9/site-packages/uvicorn/importer.py", line 21, in import_from_string 2023-06-05 20:01:50 module = importlib.import_module(module_str) 2023-06-05 20:01:50 File "/usr/local/lib/python3.9/importlib/init.py", line 127, in import_module 2023-06-05 20:01:50 return _bootstrap._gcd_import(name[level:], package, level) 2023-06-05 20:01:50 File "", line 1030, in _gcd_import 2023-06-05 20:01:50 File "", line 1007, in _find_and_load 2023-06-05 20:01:50 File "", line 986, in _find_and_load_unlocked 2023-06-05 20:01:50 File "", line 680, in _load_unlocked 2023-06-05 20:01:50 File "", line 850, in exec_module 2023-06-05 20:01:50 File "", line 228, in _call_with_frames_removed 2023-06-05 20:01:50 File "/app/main.py", line 7, in 2023-06-05 20:01:50 from superagi.models.project import Project 2023-06-05 20:01:50 ModuleNotFoundError: No module named 'superagi' 2023-06-05 20:01:55 WARNING: WatchFiles detected changes in 'tests/helper/test_json_cleaner.py', 'tests/helper/init.py'. Reloading... 2023-06-05 20:01:55 WARNING: WatchFiles detected changes in 'tests/helper/test_json_cleaner.py', 'tests/helper/init.py'. Reloading... 2023-06-05 20:01:56 Process SpawnProcess-3: 2023-06-05 20:01:56 Traceback (most recent call last): 2023-06-05 20:01:56 File "/usr/local/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap 2023-06-05 20:01:56 self.run() 2023-06-05 20:01:56 File "/usr/local/lib/python3.9/multiprocessing/process.py", line 108, in run 2023-06-05 20:01:56 self._target(*self._args, **self._kwargs) 2023-06-05 20:01:56 File "/usr/local/lib/python3.9/site-packages/uvicorn/_subprocess.py", line 76, in subprocess_started 2023-06-05 20:01:56 target(sockets=sockets) 2023-06-05 20:01:56 File "/usr/local/lib/python3.9/site-packages/uvicorn/server.py", line 61, in run 2023-06-05 20:01:56 return asyncio.run(self.serve(sockets=sockets)) 2023-06-05 20:01:56 File "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run 2023-06-05 20:01:56 return loop.run_until_complete(main) 2023-06-05 20:01:56 File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete 2023-06-05 20:01:56 File "/usr/local/lib/python3.9/site-packages/uvicorn/server.py", line 68, in serve 2023-06-05 20:01:56 config.load() 2023-06-05 20:01:56 File "/usr/local/lib/python3.9/site-packages/uvicorn/config.py", line 473, in load 2023-06-05 20:01:56 self.loaded_app = import_from_string(self.app) 2023-06-05 20:01:56 File "/usr/local/lib/python3.9/site-packages/uvicorn/importer.py", line 24, in import_from_string 2023-06-05 20:01:56 raise exc from None 2023-06-05 20:01:56 File "/usr/local/lib/python3.9/site-packages/uvicorn/importer.py", line 21, in import_from_string 2023-06-05 20:01:56 module = importlib.import_module(module_str) 2023-06-05 20:01:56 File "/usr/local/lib/python3.9/importlib/init.py", line 127, in import_module 2023-06-05 20:01:56 return _bootstrap._gcd_import(name[level:], package, level) 2023-06-05 20:01:56 File "", line 1030, in _gcd_import 2023-06-05 20:01:56 File "", line 1007, in _find_and_load 2023-06-05 20:01:56 File "", line 986, in _find_and_load_unlocked 2023-06-05 20:01:56 File "", line 680, in _load_unlocked 2023-06-05 20:01:56 File "", line 850, in exec_module 2023-06-05 20:01:56 File "", line 228, in _call_with_frames_removed 2023-06-05 20:01:56 File "/app/main.py", line 7, in 2023-06-05 20:01:56 from superagi.models.project import Project 2023-06-05 20:01:56 ModuleNotFoundError: No module named 'superagi'

bonimo avatar Jun 06 '23 00:06 bonimo

Still no luck, I've tried to delete and reinstall several times as well. I thought maybe a container or image stuck around but deleted all of them as well.

Building gui Sending build context to Docker daemon 762.4kB Step 1/6 : FROM node:lts ---> 78b037dbb659 Step 2/6 : WORKDIR /app ---> Using cache ---> ab89e9b2f2db Step 3/6 : COPY package*.json ./ ---> Using cache ---> 2c5c1bfd315d Step 4/6 : RUN npm install ---> Using cache ---> 02b0c1d795c0 Step 5/6 : COPY . . ---> da3197b652dd Step 6/6 : CMD ["npm", "run", "dev"] ---> Running in 2009386fd624 Removing intermediate container 2009386fd624 ---> 51d34791890e Successfully built 51d34791890e Successfully tagged superagi_gui:latest Building celery Sending build context to Docker daemon 3.081MB Step 1/7 : FROM python:3.9 ---> 3a6891e6dad7 Step 2/7 : WORKDIR /app ---> Using cache ---> ea7aeef309b1 Step 3/7 : COPY requirements.txt . ---> Using cache ---> f5bf763b4a68 Step 4/7 : RUN pip install --no-cache-dir -r requirements.txt ---> Using cache ---> 5be6aa641963 Step 5/7 : COPY . . ---> 327d255ef36e Step 6/7 : COPY config.yaml . ---> a9bb3eea4178 Step 7/7 : CMD ["celery", "-A", "superagi.worker", "worker", "--loglevel=info"] ---> Running in a4fc3b0a13b3 Removing intermediate container a4fc3b0a13b3 ---> 5a0f49d82d89 Successfully built 5a0f49d82d89 Successfully tagged superagi_celery:latest Building backend Sending build context to Docker daemon 3.081MB Step 1/10 : FROM python:3.9 ---> 3a6891e6dad7 Step 2/10 : WORKDIR /app ---> Using cache ---> ea7aeef309b1 Step 3/10 : COPY requirements.txt . ---> Using cache ---> f5bf763b4a68 Step 4/10 : RUN pip install --no-cache-dir -r requirements.txt ---> Using cache ---> 5be6aa641963 Step 5/10 : COPY . . ---> Using cache ---> 327d255ef36e Step 6/10 : COPY config.yaml ./config.yaml ---> adfd1dbc8a03 Step 7/10 : COPY entrypoint.sh /entrypoint.sh ---> cc8116fc31e0 Step 8/10 : COPY wait-for-it.sh /wait-for-it.sh ---> 92e0049c17ac Step 9/10 : RUN chmod +x /entrypoint.sh /wait-for-it.sh ---> Running in 0b49728e7c4c Removing intermediate container 0b49728e7c4c ---> 1c6dd5f0f1b8 Step 10/10 : CMD ["/wait-for-it.sh", "super__postgres:5432","-t","60","--","/entrypoint.sh"] ---> Running in ab1ba92a9f9f Removing intermediate container ab1ba92a9f9f ---> 2c5b03107771 Successfully built 2c5b03107771 Successfully tagged superagi_backend:latest Starting superagi_super__redis_1 ... done Recreating superagi_gui_1 ... done Starting superagi_super__postgres_1 ... done Recreating superagi_backend_1 ... done Recreating superagi_celery_1 ... done Attaching to superagi_super__postgres_1, superagi_super__redis_1, superagi_gui_1, superagi_celery_1, superagi_backend_1 super__postgres_1 | super__postgres_1 | PostgreSQL Database directory appears to contain a database; Skipping initialization super__postgres_1 | super__postgres_1 | 2023-06-05 21:37:39.342 UTC [1] LOG: starting PostgreSQL 15.3 (Debian 15.3-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit super__postgres_1 | 2023-06-05 21:37:39.343 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 super__postgres_1 | 2023-06-05 21:37:39.343 UTC [1] LOG: listening on IPv6 address "::", port 5432 super__postgres_1 | 2023-06-05 21:37:39.389 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" super__postgres_1 | 2023-06-05 21:37:39.440 UTC [29] LOG: database system was shut down at 2023-06-05 21:29:52 UTC super__postgres_1 | 2023-06-05 21:37:39.448 UTC [1] LOG: database system is ready to accept connections super__redis_1 | 1:C 05 Jun 2023 21:37:39.260 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo super__redis_1 | 1:C 05 Jun 2023 21:37:39.260 # Redis version=7.0.11, bits=64, commit=00000000, modified=0, pid=1, just started super__redis_1 | 1:C 05 Jun 2023 21:37:39.260 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf super__redis_1 | 1:M 05 Jun 2023 21:37:39.261 * monotonic clock: POSIX clock_gettime super__redis_1 | 1:M 05 Jun 2023 21:37:39.263 * Running mode=standalone, port=6379. super__redis_1 | 1:M 05 Jun 2023 21:37:39.263 # Server initialized super__redis_1 | 1:M 05 Jun 2023 21:37:39.263 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can can also cause failures without low memory condition, see jemalloc/jemalloc#1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. super__redis_1 | 1:M 05 Jun 2023 21:37:39.263 * Loading RDB produced by version 7.0.11 super__redis_1 | 1:M 05 Jun 2023 21:37:39.263 * RDB age 467 seconds super__redis_1 | 1:M 05 Jun 2023 21:37:39.263 * RDB memory usage when created 1.18 Mb super__redis_1 | 1:M 05 Jun 2023 21:37:39.263 * Done loading RDB, keys loaded: 1, keys expired: 0. super__redis_1 | 1:M 05 Jun 2023 21:37:39.263 * DB loaded from disk: 0.000 seconds super__redis_1 | 1:M 05 Jun 2023 21:37:39.263 * Ready to accept connections gui_1 | gui_1 | > [email protected] dev gui_1 | > next dev gui_1 | gui_1 | - ready started server on 0.0.0.0:3000, url: http://localhost:3000 backend_1 | wait-for-it.sh: waiting 60 seconds for super__postgres:5432 backend_1 | wait-for-it.sh: super__postgres:5432 is available after 0 seconds gui_1 | - warn Invalid next.config.js options detected: gui_1 | - warn The root value has an unexpected property, webpackDevMiddleware, which is not in the list of allowed properties (amp, analyticsId, assetPrefix, basePath, cleanDistDir, compiler, compress, configOrigin, crossOrigin, devIndicators, distDir, env, eslint, excludeDefaultMomentLocales, experimental, exportPathMap, generateBuildId, generateEtags, headers, httpAgentOptions, i18n, images, modularizeImports, onDemandEntries, optimizeFonts, output, outputFileTracing, pageExtensions, poweredByHeader, productionBrowserSourceMaps, publicRuntimeConfig, reactStrictMode, redirects, rewrites, sassOptions, serverRuntimeConfig, skipMiddlewareUrlNormalize, skipTrailingSlashRedirect, staticPageGenerationTimeout, swcMinify, target, trailingSlash, transpilePackages, typescript, useFileSystemPublicRoutes, webpack). gui_1 | - warn See more info here: https://nextjs.org/docs/messages/invalid-next-config backend_1 | INFO [alembic.runtime.migration] Context impl PostgresqlImpl. backend_1 | INFO [alembic.runtime.migration] Will assume transactional DDL. celery_1 | Connected to the database! @ postgresql://superagi:password@super__postgres/super_agi_main backend_1 | INFO: Will watch for changes in these directories: ['/app'] backend_1 | INFO: Uvicorn running on http://0.0.0.0:8001 (Press CTRL+C to quit) backend_1 | INFO: Started reloader process [1] using WatchFiles backend_1 | Connected to the database! @ postgresql://superagi:password@super__postgres/super_agi_main celery_1 | /usr/local/lib/python3.9/site-packages/celery/platforms.py:840: SecurityWarning: You're running the worker with superuser privileges: this is celery_1 | absolutely not recommended! celery_1 | celery_1 | Please specify a different user using the --uid option. celery_1 | celery_1 | User information: uid=0 euid=0 gid=0 egid=0 celery_1 | celery_1 | warnings.warn(SecurityWarning(ROOT_DISCOURAGED.format( celery_1 | celery_1 | -------------- celery@4fb4b30b0234 v5.2.7 (dawn-chorus) celery_1 | --- ***** ----- celery_1 | -- ******* ---- Linux-5.15.0-71-generic-x86_64-with-glibc2.31 2023-06-05 21:37:41 celery_1 | - *** --- * --- celery_1 | - ** ---------- [config] celery_1 | - ** ---------- .> app: superagi:0x7f47c54b25b0 celery_1 | - ** ---------- .> transport: redis://super__redis:6379/0 celery_1 | - ** ---------- .> results: redis://super__redis:6379/0 celery_1 | - *** --- * --- .> concurrency: 10 (prefork) celery_1 | -- ******* ---- .> task events: OFF (enable -E to monitor tasks in this worker) celery_1 | --- ***** ----- celery_1 | -------------- [queues] celery_1 | .> celery exchange=celery(direct) key=celery celery_1 | celery_1 | celery_1 | [tasks] celery_1 | . execute_agent celery_1 | celery_1 | [2023-06-05 21:37:42,382: INFO/MainProcess] Connected to redis://super__redis:6379/0 celery_1 | [2023-06-05 21:37:42,384: INFO/MainProcess] mingle: searching for neighbors backend_1 | INFO: Started server process [20] backend_1 | INFO: Waiting for application startup. backend_1 | INFO: Application startup complete. celery_1 | [2023-06-05 21:37:43,391: INFO/MainProcess] mingle: all alone celery_1 | [2023-06-05 21:37:43,404: INFO/MainProcess] celery@4fb4b30b0234 ready. gui_1 | - event compiled client and server successfully in 1125 ms (775 modules) gui_1 | - wait compiling... gui_1 | - event compiled client and server successfully in 326 ms (775 modules)

Additionally

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 14ae9b7a6a3a superagi_backend "/wait-for-it.sh sup…" 49 minutes ago Up 44 minutes 0.0.0.0:8001->8001/tcp, :::8001->8001/tcp superagi_backend_1 4fb4b30b0234 superagi_celery "celery -A superagi.…" 49 minutes ago Up 44 minutes superagi_celery_1 47d6ecb4d50f superagi_gui "docker-entrypoint.s…" 49 minutes ago Up 44 minutes 0.0.0.0:3000->3000/tcp, :::3000->3000/tcp superagi_gui_1 d8b625d92469 redis:latest "docker-entrypoint.s…" 57 minutes ago Up 44 minutes 6379/tcp superagi_super__redis_1 64782cd76608 postgres:latest "docker-entrypoint.s…" 57 minutes ago Up 44 minutes 5432/tcp superagi_super__postgres_1

Also getting the same, ubuntu 22

josh900 avatar Jun 06 '23 00:06 josh900

"Hello everyone, I wanted to share that I've managed to resolve the 'no tools' issue. Here's what worked for me:

First, I opened the standard terminal and navigated to the directory where 'SuperAGI' is located. Then, I ran the Docker Compose command directly from there. Everything worked smoothly when I followed this approach.

Interestingly, I encountered issues when I tried to run it through Visual Studio Code. I'm not sure why, but running Docker Compose directly from the terminal instead of through Visual Studio Code seemed to do the trick. I hope this information might be helpful to anyone facing a similar issue!"

Thelyoncrypt avatar Jun 06 '23 10:06 Thelyoncrypt

I've run the suggested solutions as well and still have the issue on Windows 11. Here's the log for backen from docker:

2023-06-05 20:01:48 wait-for-it.sh: waiting 60 seconds for super__postgres:5432 2023-06-05 20:01:48 wait-for-it.sh: super__postgres:5432 is available after 0 seconds 2023-06-05 20:01:49 Traceback (most recent call last): 2023-06-05 20:01:49 File "/usr/local/bin/alembic", line 8, in 2023-06-05 20:01:49 sys.exit(main()) 2023-06-05 20:01:49 File "/usr/local/lib/python3.9/site-packages/alembic/config.py", line 632, in main 2023-06-05 20:01:49 CommandLine(prog=prog).main(argv=argv) 2023-06-05 20:01:49 File "/usr/local/lib/python3.9/site-packages/alembic/config.py", line 626, in main 2023-06-05 20:01:49 self.run_cmd(cfg, options) 2023-06-05 20:01:49 File "/usr/local/lib/python3.9/site-packages/alembic/config.py", line 603, in run_cmd 2023-06-05 20:01:49 fn( 2023-06-05 20:01:49 File "/usr/local/lib/python3.9/site-packages/alembic/command.py", line 385, in upgrade 2023-06-05 20:01:49 script.run_env() 2023-06-05 20:01:49 File "/usr/local/lib/python3.9/site-packages/alembic/script/base.py", line 582, in run_env 2023-06-05 20:01:49 util.load_python_file(self.dir, "env.py") 2023-06-05 20:01:49 File "/usr/local/lib/python3.9/site-packages/alembic/util/pyfiles.py", line 94, in load_python_file 2023-06-05 20:01:49 module = load_module_py(module_id, path) 2023-06-05 20:01:49 File "/usr/local/lib/python3.9/site-packages/alembic/util/pyfiles.py", line 110, in load_module_py 2023-06-05 20:01:49 spec.loader.exec_module(module) # type: ignore 2023-06-05 20:01:49 File "", line 850, in exec_module 2023-06-05 20:01:49 File "", line 228, in _call_with_frames_removed 2023-06-05 20:01:49 File "migrations/env.py", line 8, in 2023-06-05 20:01:49 from superagi.config.config import get_config 2023-06-05 20:01:49 ModuleNotFoundError: No module named 'superagi' 2023-06-05 20:01:49 INFO: Will watch for changes in these directories: ['/app'] 2023-06-05 20:01:49 INFO: Uvicorn running on http://0.0.0.0:8001 (Press CTRL+C to quit) 2023-06-05 20:01:49 INFO: Started reloader process [1] using WatchFiles 2023-06-05 20:01:50 Process SpawnProcess-1: 2023-06-05 20:01:50 Traceback (most recent call last): 2023-06-05 20:01:50 File "/usr/local/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap 2023-06-05 20:01:50 self.run() 2023-06-05 20:01:50 File "/usr/local/lib/python3.9/multiprocessing/process.py", line 108, in run 2023-06-05 20:01:50 self._target(*self._args, **self._kwargs) 2023-06-05 20:01:50 File "/usr/local/lib/python3.9/site-packages/uvicorn/_subprocess.py", line 76, in subprocess_started 2023-06-05 20:01:50 target(sockets=sockets) 2023-06-05 20:01:50 File "/usr/local/lib/python3.9/site-packages/uvicorn/server.py", line 61, in run 2023-06-05 20:01:50 return asyncio.run(self.serve(sockets=sockets)) 2023-06-05 20:01:50 File "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run 2023-06-05 20:01:50 return loop.run_until_complete(main) 2023-06-05 20:01:50 File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete 2023-06-05 20:01:50 File "/usr/local/lib/python3.9/site-packages/uvicorn/server.py", line 68, in serve 2023-06-05 20:01:50 config.load() 2023-06-05 20:01:50 File "/usr/local/lib/python3.9/site-packages/uvicorn/config.py", line 473, in load 2023-06-05 20:01:50 self.loaded_app = import_from_string(self.app) 2023-06-05 20:01:50 File "/usr/local/lib/python3.9/site-packages/uvicorn/importer.py", line 24, in import_from_string 2023-06-05 20:01:50 raise exc from None 2023-06-05 20:01:50 File "/usr/local/lib/python3.9/site-packages/uvicorn/importer.py", line 21, in import_from_string 2023-06-05 20:01:50 module = importlib.import_module(module_str) 2023-06-05 20:01:50 File "/usr/local/lib/python3.9/importlib/init.py", line 127, in import_module 2023-06-05 20:01:50 return _bootstrap._gcd_import(name[level:], package, level) 2023-06-05 20:01:50 File "", line 1030, in _gcd_import 2023-06-05 20:01:50 File "", line 1007, in _find_and_load 2023-06-05 20:01:50 File "", line 986, in _find_and_load_unlocked 2023-06-05 20:01:50 File "", line 680, in _load_unlocked 2023-06-05 20:01:50 File "", line 850, in exec_module 2023-06-05 20:01:50 File "", line 228, in _call_with_frames_removed 2023-06-05 20:01:50 File "/app/main.py", line 7, in 2023-06-05 20:01:50 from superagi.models.project import Project 2023-06-05 20:01:50 ModuleNotFoundError: No module named 'superagi' 2023-06-05 20:01:55 WARNING: WatchFiles detected changes in 'tests/helper/test_json_cleaner.py', 'tests/helper/init.py'. Reloading... 2023-06-05 20:01:55 WARNING: WatchFiles detected changes in 'tests/helper/test_json_cleaner.py', 'tests/helper/init.py'. Reloading... 2023-06-05 20:01:56 Process SpawnProcess-3: 2023-06-05 20:01:56 Traceback (most recent call last): 2023-06-05 20:01:56 File "/usr/local/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap 2023-06-05 20:01:56 self.run() 2023-06-05 20:01:56 File "/usr/local/lib/python3.9/multiprocessing/process.py", line 108, in run 2023-06-05 20:01:56 self._target(*self._args, **self._kwargs) 2023-06-05 20:01:56 File "/usr/local/lib/python3.9/site-packages/uvicorn/_subprocess.py", line 76, in subprocess_started 2023-06-05 20:01:56 target(sockets=sockets) 2023-06-05 20:01:56 File "/usr/local/lib/python3.9/site-packages/uvicorn/server.py", line 61, in run 2023-06-05 20:01:56 return asyncio.run(self.serve(sockets=sockets)) 2023-06-05 20:01:56 File "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run 2023-06-05 20:01:56 return loop.run_until_complete(main) 2023-06-05 20:01:56 File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete 2023-06-05 20:01:56 File "/usr/local/lib/python3.9/site-packages/uvicorn/server.py", line 68, in serve 2023-06-05 20:01:56 config.load() 2023-06-05 20:01:56 File "/usr/local/lib/python3.9/site-packages/uvicorn/config.py", line 473, in load 2023-06-05 20:01:56 self.loaded_app = import_from_string(self.app) 2023-06-05 20:01:56 File "/usr/local/lib/python3.9/site-packages/uvicorn/importer.py", line 24, in import_from_string 2023-06-05 20:01:56 raise exc from None 2023-06-05 20:01:56 File "/usr/local/lib/python3.9/site-packages/uvicorn/importer.py", line 21, in import_from_string 2023-06-05 20:01:56 module = importlib.import_module(module_str) 2023-06-05 20:01:56 File "/usr/local/lib/python3.9/importlib/init.py", line 127, in import_module 2023-06-05 20:01:56 return _bootstrap._gcd_import(name[level:], package, level) 2023-06-05 20:01:56 File "", line 1030, in _gcd_import 2023-06-05 20:01:56 File "", line 1007, in _find_and_load 2023-06-05 20:01:56 File "", line 986, in _find_and_load_unlocked 2023-06-05 20:01:56 File "", line 680, in _load_unlocked 2023-06-05 20:01:56 File "", line 850, in exec_module 2023-06-05 20:01:56 File "", line 228, in _call_with_frames_removed 2023-06-05 20:01:56 File "/app/main.py", line 7, in 2023-06-05 20:01:56 from superagi.models.project import Project 2023-06-05 20:01:56 ModuleNotFoundError: No module named 'superagi'

I had the same issue, and managed to solve this issue by installing on my main disk, try install it in C: and check if it works

Therealkorris avatar Jun 06 '23 20:06 Therealkorris

For windows check #160

it helped me.

Quickly:

Open files entrypoint.sh and wait-for-it.sh in Visual Studio Code.

For each of them:

in vscode at bottom right check for CLRF if it is CLRF then click on it and change it to LF

Save it

Delete your previous docker container from Docker.

Then re-run:

docker-compose up --build

Enjoy

Were you able to get a write to a file with the results of a Run?

Vonnegut1 avatar Jun 06 '23 21:06 Vonnegut1

This issue should be resolved in the latest version of superagi. Closing this thread. Please reopen if the issue persists.

TransformerOptimus avatar Jul 03 '23 08:07 TransformerOptimus