SuperAGI: Cannot view WebGUI - 422 Unprocessable Entity - Stuck at 'Initializing SuperAGI'

After pulling the latest commits, cannot access the webgui – gets stuck at Initializing SuperAGI…

Errors just say Unprocessable Entity.

Running windows, already tried to delete + redownload; tried in VScode and powershell; not sure how to troubleshoot this because the error messages dont really point to specific files…


✔ Container superagi-super__postgres-1  Created                                                                                                                                                                                 0.0s
 ✔ Container superagi-gui-1              Created                                                                                                                                                                                 0.0s
 ✔ Container superagi-super__redis-1     Created                                                                                                                                                                                 0.0s
 ✔ Container superagi-backend-1          Recreated                                                                                                                                                                               0.1s
 ✔ Container superagi-celery-1           Recreated                                                                                                                                                                               0.1s
Attaching to superagi-backend-1, superagi-celery-1, superagi-gui-1, superagi-super__postgres-1, superagi-super__redis-1
superagi-super__redis-1     | 1:C 07 Jun 2023 15:52:23.641 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
superagi-super__redis-1     | 1:C 07 Jun 2023 15:52:23.641 # Redis version=7.0.11, bits=64, commit=00000000, modified=0, pid=1, just started
superagi-super__redis-1     | 1:C 07 Jun 2023 15:52:23.641 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
superagi-super__redis-1     | 1:M 07 Jun 2023 15:52:23.641 * monotonic clock: POSIX clock_gettime
superagi-super__redis-1     | 1:M 07 Jun 2023 15:52:23.642 * Running mode=standalone, port=6379.
superagi-super__redis-1     | 1:M 07 Jun 2023 15:52:23.642 # Server initialized
superagi-super__redis-1     | 1:M 07 Jun 2023 15:52:23.642 # 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.
superagi-super__redis-1     | 1:M 07 Jun 2023 15:52:23.642 * Loading RDB produced by version 7.0.11
superagi-super__redis-1     | 1:M 07 Jun 2023 15:52:23.642 * RDB age 54 seconds
superagi-super__redis-1     | 1:M 07 Jun 2023 15:52:23.642 * RDB memory usage when created 1.18 Mb
superagi-super__redis-1     | 1:M 07 Jun 2023 15:52:23.642 * Done loading RDB, keys loaded: 1, keys expired: 0.
superagi-super__redis-1     | 1:M 07 Jun 2023 15:52:23.642 * DB loaded from disk: 0.000 seconds
superagi-super__redis-1     | 1:M 07 Jun 2023 15:52:23.642 * Ready to accept connections
superagi-super__postgres-1  |
superagi-super__postgres-1  | PostgreSQL Database directory appears to contain a database; Skipping initialization
superagi-super__postgres-1  |
superagi-super__postgres-1  | 2023-06-07 15:52:23.975 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
superagi-super__postgres-1  | 2023-06-07 15:52:24.031 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
superagi-super__postgres-1  | 2023-06-07 15:52:24.031 UTC [1] LOG:  listening on IPv6 address "::", port 5432
superagi-super__postgres-1  | 2023-06-07 15:52:24.038 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
superagi-super__postgres-1  | 2023-06-07 15:52:24.046 UTC [30] LOG:  database system was shut down at 2023-06-07 15:51:30 UTC
superagi-super__postgres-1  | 2023-06-07 15:52:24.051 UTC [1] LOG:  database system is ready to accept connections
superagi-gui-1              |
superagi-gui-1              | > super-agi@0.1.0 dev
superagi-gui-1              | > next dev
superagi-gui-1              |
superagi-gui-1              | - ready started server on 0.0.0.0:3000, url: http://localhost:3000
superagi-gui-1              | - warn Invalid next.config.js options detected:
superagi-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).
superagi-gui-1              | - warn See more info here: https://nextjs.org/docs/messages/invalid-next-config
superagi-backend-1          | wait-for-it.sh: waiting 60 seconds for super__postgres:5432
superagi-backend-1          | wait-for-it.sh: super__postgres:5432 is available after 0 seconds
superagi-backend-1          | INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
superagi-backend-1          | INFO  [alembic.runtime.migration] Will assume transactional DDL.
superagi-backend-1          | INFO:     Will watch for changes in these directories: ['/app']
superagi-backend-1          | INFO:     Uvicorn running on http://0.0.0.0:8001 (Press CTRL+C to quit)
superagi-backend-1          | INFO:     Started reloader process [1] using WatchFiles
superagi-celery-1           | Connected to the database! @ postgresql://superagi:password@super__postgres/super_agi_main
superagi-backend-1          | Connected to the database! @ postgresql://superagi:password@super__postgres/super_agi_main
superagi-celery-1           | /usr/local/lib/python3.9/site-packages/celery/platforms.py:840: SecurityWarning: You're running the worker with superuser privileges: this is
superagi-celery-1           | absolutely not recommended!
superagi-celery-1           |
superagi-celery-1           | Please specify a different user using the --uid option.
superagi-celery-1           |
superagi-celery-1           | User information: uid=0 euid=0 gid=0 egid=0
superagi-celery-1           |
superagi-celery-1           |   warnings.warn(SecurityWarning(ROOT_DISCOURAGED.format(
superagi-celery-1           |
superagi-celery-1           |  -------------- celery@c0245bbcaf39 v5.2.7 (dawn-chorus)
superagi-celery-1           | --- ***** -----
superagi-celery-1           | -- ******* ---- Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.31 2023-06-07 15:52:27
superagi-celery-1           | - *** --- * ---
superagi-celery-1           | - ** ---------- [config]
superagi-celery-1           | - ** ---------- .> app:         superagi:0x7faae925e9a0
superagi-celery-1           | - ** ---------- .> transport:   redis://super__redis:6379/0
superagi-celery-1           | - ** ---------- .> results:     redis://super__redis:6379/0
superagi-celery-1           | - *** --- * --- .> concurrency: 10 (prefork)
superagi-celery-1           | -- ******* ---- .> task events: OFF (enable -E to monitor tasks in this worker)
superagi-celery-1           | --- ***** -----
superagi-celery-1           |  -------------- [queues]
superagi-celery-1           |                 .> celery           exchange=celery(direct) key=celery
superagi-celery-1           |
superagi-celery-1           |
superagi-celery-1           | [tasks]
superagi-celery-1           |   . execute_agent
superagi-celery-1           |
superagi-gui-1              | - event compiled client and server successfully in 1182 ms (781 modules)
superagi-gui-1              | - wait compiling...
superagi-celery-1           | [2023-06-07 15:52:28,117: INFO/MainProcess] Connected to redis://super__redis:6379/0
superagi-celery-1           | [2023-06-07 15:52:28,121: INFO/MainProcess] mingle: searching for neighbors
superagi-gui-1              | - event compiled client and server successfully in 431 ms (781 modules)
superagi-backend-1          | INFO:     Started server process [21]
superagi-backend-1          | INFO:     Waiting for application startup.
superagi-backend-1          | INFO:     Application startup complete.
superagi-celery-1           | [2023-06-07 15:52:29,130: INFO/MainProcess] mingle: all alone
superagi-celery-1           | [2023-06-07 15:52:29,138: INFO/MainProcess] celery@c0245bbcaf39 ready.
superagi-gui-1              | - wait compiling /_error (client and server)...
superagi-gui-1              | - event compiled client and server successfully in 222 ms (782 modules)
superagi-gui-1              | Do not add stylesheets using next/head (see <link rel="stylesheet"> tag with href="https://fonts.googleapis.com/css2?family=Source+Code+Pro&display=swap"). Use Document instead.
superagi-gui-1              | See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component
superagi-gui-1              | Do not add stylesheets using next/head (see <link rel="stylesheet"> tag with href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap"). Use Document instead.
superagi-gui-1              | See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component
superagi-gui-1              | - wait compiling /favicon.ico/route (client and server)...
superagi-backend-1          | INFO:     192.168.16.1:40470 - "GET /configs/get/env HTTP/1.1" 200 OK
superagi-backend-1          | INFO:     192.168.16.1:40484 - "GET /projects/get/organisation/null HTTP/1.1" 422 Unprocessable Entity
superagi-gui-1              | - event compiled client and server successfully in 589 ms (848 modules)

About this issue

Most upvoted comments

http://127.0.0.1:8001

yes this fixed stuck on Initializing SuperAgi… screen for me too, thank you!

–update-- I just fixed it as follows:

docker-compose down git pull docker-compose up --build

… my issue was that I was trying to go to 127.0.0.1:3000 in the web browser. It just sits at Initializing SuperAGI. i changed it to localhost:3000 in the web browser, and it loaded fine and sees all of my agents and tools.

there is some issue with 127.0.0.1 versus localhost.

hi, thanks, contacting you on Discord now

I fixed this for me with an extra tunnel for 8001, thanks! I suspect I had an VERY similar and spookily timed problem unrelated so I will delete my comments except this.

I did