Canner / WrenAI

πŸš€ An open-source SQL AI (Text-to-SQL) Agent that empowers data, product teams to chat with their data. 🀘
https://getwren.ai/oss
GNU Affero General Public License v3.0
2.06k stars 217 forks source link

Failed to create asking task error while prompting #319

Closed matthieuganivet closed 4 months ago

matthieuganivet commented 6 months ago

Hi,

Juste after installing, at first used / first prompt, I got this error : Failed to create asking task. image

OpenAI token is OK and checked on another system.

I tried to restart an reinstall twice, I don't really know what to do now.

The full log are here :

2024-05-24 18:53:32 qdrant-1           |            _                 _    
2024-05-24 18:53:32 qdrant-1           |   __ _  __| |_ __ __ _ _ __ | |_  
2024-05-24 18:53:32 qdrant-1           |  / _` |/ _` | '__/ _` | '_ \| __| 
2024-05-24 18:53:32 qdrant-1           | | (_| | (_| | | | (_| | | | | |_  
2024-05-24 18:53:32 qdrant-1           |  \__, |\__,_|_|  \__,_|_| |_|\__| 
2024-05-24 18:53:32 qdrant-1           |     |_|                           
2024-05-24 18:53:32 qdrant-1           | 
2024-05-24 18:53:32 qdrant-1           | Access web UI at http://0.0.0.0:6333/dashboard
2024-05-24 18:53:32 qdrant-1           | 
2024-05-24 18:53:32 qdrant-1           | 2024-05-24T16:53:32.342347Z  INFO storage::content_manager::consensus::persistent: Loading raft state from ./storage/raft_state.json    
2024-05-24 18:53:32 qdrant-1           | 2024-05-24T16:53:32.384192Z  INFO storage::content_manager::toc: Loading collection: Document    
2024-05-24 18:53:32 qdrant-1           | 2024-05-24T16:53:32.501350Z  INFO storage::content_manager::toc: Loading collection: view_questions    
2024-05-24 18:53:32 qdrant-1           | 2024-05-24T16:53:32.573230Z  INFO qdrant: Distributed mode disabled    
2024-05-24 18:53:32 qdrant-1           | 2024-05-24T16:53:32.573245Z  INFO qdrant: Telemetry reporting enabled, id: 6e3fdd78-637a-4578-b79a-b24c1434b6f4    
2024-05-24 18:53:32 qdrant-1           | 2024-05-24T16:53:32.574343Z  INFO qdrant::actix: TLS disabled for REST API    
2024-05-24 18:53:32 qdrant-1           | 2024-05-24T16:53:32.574514Z  INFO qdrant::actix: Qdrant HTTP listening on 6333    
2024-05-24 18:53:32 qdrant-1           | 2024-05-24T16:53:32.574528Z  INFO actix_server::builder: Starting 7 workers
2024-05-24 18:53:32 qdrant-1           | 2024-05-24T16:53:32.574559Z  INFO actix_server::server: Actix runtime found; starting in Actix runtime
2024-05-24 18:53:32 qdrant-1           | 2024-05-24T16:53:32.576518Z  INFO qdrant::tonic: Qdrant gRPC listening on 6334    
2024-05-24 18:53:32 qdrant-1           | 2024-05-24T16:53:32.576552Z  INFO qdrant::tonic: TLS disabled for gRPC API    
2024-05-24 18:53:33 wren-ui-1          | Using SQLite
2024-05-24 18:53:33 wren-engine-1      | INFO:     Started server process [8]
2024-05-24 18:53:33 wren-engine-1      | INFO:     Waiting for application startup.
2024-05-24 18:53:33 wren-engine-1      | INFO:     Application startup complete.
2024-05-24 18:53:33 wren-engine-1      | INFO:     Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
2024-05-24 18:53:33 wren-ui-1          | Already up to date
2024-05-24 18:53:34 wren-engine-1      | May 24, 2024 4:53:33 PM io.airlift.log.Logger info
2024-05-24 18:53:34 wren-engine-1      | INFO: Java version: 21.0.3
2024-05-24 18:53:34 wren-engine-1      | 2024-05-24T16:53:34.146ZINFOmainio.airlift.log.LoggingLogging to stderr
2024-05-24 18:53:34 wren-engine-1      | 2024-05-24T16:53:34.148ZINFOmainBootstrapLoading configuration
2024-05-24 18:53:34 wren-engine-1      | 2024-05-24T16:53:34.379ZINFOmainorg.hibernate.validator.internal.util.VersionHV000001: Hibernate Validator 0.4.4-1-g1539ef3
2024-05-24 18:53:34 wren-engine-1      | 2024-05-24T16:53:34.721ZINFOmainBootstrapInitializing logging
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.594ZINFOmainBootstrapPROPERTY                                       DEFAULT                   RUNTIME                                          DESCRIPTION
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.595ZINFOmainBootstraphttp-server.admin.enabled                      false                     false
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.595ZINFOmainBootstraphttp-server.admin.threads.max                  200                       200
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.595ZINFOmainBootstraphttp-server.admin.threads.min                  2                         2
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.595ZINFOmainBootstraphttp-server.admin.port                         0                         0
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.595ZINFOmainBootstraphttp-server.http2.session-receive-window-size  16MB                      16MB                                             Initial size of session's flow control receive window for HTTP/2
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.595ZINFOmainBootstraphttp-server.http2.stream-receive-window-size   16MB                      16MB                                             Initial size of stream's flow control receive window for HTTP/2
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.595ZINFOmainBootstraphttp-server.http2.input-buffer-size            8kB                       8kB                                              Size of the buffer used to read from the network for HTTP/2
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.595ZINFOmainBootstraphttp-server.http2.max-concurrent-streams       16384                     16384                                            Maximum concurrent streams per connection for HTTP/2
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.596ZINFOmainBootstraphttp-server.http2.stream-idle-timeout          15.00s                    15.00s
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.596ZINFOmainBootstraphttp-server.accept-queue-size                  8000                      8000
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.596ZINFOmainBootstraphttp-server.http.acceptor-threads              ----                      ----
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.596ZINFOmainBootstraphttp-server.http.enabled                       true                      true
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.596ZINFOmainBootstraphttp-server.http.port                          8080                      8080
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.596ZINFOmainBootstraphttp-server.http.selector-threads              ----                      ----
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.596ZINFOmainBootstraphttp-server.https.acceptor-threads             ----                      ----
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.596ZINFOmainBootstraphttp-server.https.enabled                      false                     false
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.596ZINFOmainBootstraphttp-server.https.selector-threads             ----                      ----
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.596ZINFOmainBootstraphttp-server.log.compression.enabled            true                      true
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.596ZINFOmainBootstraphttp-server.log.enabled                        true                      true
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.596ZINFOmainBootstraphttp-server.log.max-history                    15                        15
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.596ZINFOmainBootstraphttp-server.log.max-size                       100MB                     100MB
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.596ZINFOmainBootstraphttp-server.log.path                           var/log/http-request.log  var/log/http-request.log
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.596ZINFOmainBootstraphttp-server.log.queue-size                     10000                     10000
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.596ZINFOmainBootstraphttp-server.max-request-header-size            ----                      ----
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.597ZINFOmainBootstraphttp-server.max-response-header-size           ----                      ----
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.597ZINFOmainBootstraphttp-server.threads.max                        200                       200
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.597ZINFOmainBootstraphttp-server.threads.min                        2                         2
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.597ZINFOmainBootstraphttp-server.net.max-idle-time                  200.00s                   200.00s
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.597ZINFOmainBootstraphttp-server.process-forwarded                  false                     false                                            Process Forwarded and X-Forwarded headers (for proxied environments)
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.597ZINFOmainBootstraphttp-server.show-stack-trace                   true                      true                                             Show the stack trace when generating an error response
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.597ZINFOmainBootstraphttp-server.threads.max-idle-time              1.00m                     1.00m
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.597ZINFOmainBootstraphttp-server.auth.users-file                    ----                      ----
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.597ZINFOmainBootstrapnode.annotation-file                           ----                      ----
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.597ZINFOmainBootstrapnode.binary-spec                               ----                      ----
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.597ZINFOmainBootstrapnode.config-spec                               ----                      ----
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.597ZINFOmainBootstrapnode.environment                               ----                      production
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.597ZINFOmainBootstrapnode.internal-address-source                   IP                        IP
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.597ZINFOmainBootstrapnode.location                                  ----                      ----
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.597ZINFOmainBootstrapnode.bind-ip                                   ----                      ----
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.598ZINFOmainBootstrapnode.external-address                          ----                      ----
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.598ZINFOmainBootstrapnode.id                                        ----                      ----
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.598ZINFOmainBootstrapnode.internal-address                          ----                      ----
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.598ZINFOmainBootstrapnode.pool                                      general                   general
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.598ZINFOmainBootstrapduckdb.cache-task-retry-delay                  60                        60
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.600ZINFOmainBootstrapduckdb.home-directory                          ----                      ----
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.600ZINFOmainBootstrapduckdb.max-cache-query-timeout                 20                        20
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.600ZINFOmainBootstrapduckdb.max-cache-table-size-ratio              0.5                       0.5
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.600ZINFOmainBootstrapduckdb.max-concurrent-metadata-queries         10                        10
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.600ZINFOmainBootstrapduckdb.max-concurrent-tasks                    10                        10
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.600ZINFOmainBootstrapduckdb.memory-limit                            1028653056B               1028653056B
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.600ZINFOmainBootstrapduckdb.temp-directory                          /tmp/duck                 /tmp/duck
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.600ZINFOmainBootstrapduckdb.connector.init-sql-path                 etc/duckdb/init.sql       etc/duckdb/init.sql
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.600ZINFOmainBootstrapduckdb.connector.session-sql-path              etc/duckdb/session.sql    etc/duckdb/session.sql
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.600ZINFOmainBootstrapduckdb.storage.access-key                      [REDACTED]                [REDACTED]                                       The storage access key
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.600ZINFOmainBootstrapduckdb.storage.endpoint                        storage.googleapis.com    storage.googleapis.com                           The storage endpoint; default is storage.googleapis.com
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.601ZINFOmainBootstrapduckdb.storage.region                          ----                      ----                                             The storage region
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.601ZINFOmainBootstrapduckdb.storage.secret-key                      [REDACTED]                [REDACTED]                                       The storage secret key
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.601ZINFOmainBootstrapduckdb.storage.url-style                       path                      path                                             The storage url style; default is path
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.601ZINFOmainBootstrapbigquery.bucket-name                           ----                      ----                                             The Google Cloud bucket name used to temporarily store the metric cached results
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.601ZINFOmainBootstrapbigquery.credentials-file                      ----                      ----                                             The path to the JSON credentials file
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.601ZINFOmainBootstrapbigquery.credentials-key                       [REDACTED]                [REDACTED]                                       The base64 encoded credentials key
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.601ZINFOmainBootstrapbigquery.location                              ----                      ----                                             The Google Cloud Project ID where the data reside
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.602ZINFOmainBootstrapbigquery.metadata.schema.prefix                                                                                           Wren needs to create two schemas in BigQuery: wren_temp, pg_catalog. This is a config to add a prefix to the names of these two schemas if it's set.
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.602ZINFOmainBootstrapbigquery.project-id                            ----                      ----                                             The Google Cloud Project ID where the data reside
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.602ZINFOmainBootstrappostgres.jdbc.url                              ----                      jdbc:postgresql://dev01.comete.ai:5432/postgres
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.602ZINFOmainBootstrappostgres.password                              ----                      MR5}[By{n75r!
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.602ZINFOmainBootstrappostgres.user                                  ----                      user_test
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.602ZINFOmainBootstrappg-wire-protocol.auth.file                     etc/accounts              etc/accounts
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.602ZINFOmainBootstrappg-wire-protocol.netty.thread.count            0                         0
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.602ZINFOmainBootstrappg-wire-protocol.enabled                       false                     false
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.602ZINFOmainBootstrappg-wire-protocol.port                          7432                      7432
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.602ZINFOmainBootstrappg-wire-protocol.ssl.enabled                   false                     false
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.602ZINFOmainBootstrapsqlglot.port                                   8000                      8000
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.603ZINFOmainBootstrapsnowflake.database                             ----                      ----
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.603ZINFOmainBootstrapsnowflake.jdbc.url                             ----                      ----
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.603ZINFOmainBootstrapsnowflake.password                             ----                      ----
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.603ZINFOmainBootstrapsnowflake.role                                 ----                      ----
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.603ZINFOmainBootstrapsnowflake.schema                               ----                      ----
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.603ZINFOmainBootstrapsnowflake.user                                 ----                      ----
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.603ZINFOmainBootstrapsnowflake.warehouse                            ----                      ----
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.603ZINFOmainBootstrapwren.datasource.type                           DUCKDB                    POSTGRES
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.603ZINFOmainBootstrapwren.experimental-enable-dynamic-fields        false                     true
2024-05-24 18:53:35 wren-engine-1      | 2024-05-24T16:53:35.603ZINFOmainBootstrapwren.directory                                 etc/mdl                   etc/mdl
2024-05-24 18:53:35 wren-ui-1          |   β–² Next.js 13.5.6
2024-05-24 18:53:35 wren-ui-1          |   - Local:        http://localhost:3000
2024-05-24 18:53:35 wren-ui-1          |   - Network:      http://0.0.0.0:3000
2024-05-24 18:53:35 wren-ui-1          | 
2024-05-24 18:53:35 wren-ui-1          |  βœ“ Ready in 898ms
2024-05-24 18:53:38 wren-engine-1      | 2024-05-24T16:53:38.385ZINFOmainstdout# WARNING: Unable to get Instrumentation. Dynamic Attach failed. You may add this JAR as -javaagent manually, or supply -Djdk.attach.allowAttachSelf
2024-05-24 18:53:42 wren-engine-1      | 2024-05-24T16:53:42.587ZINFOmainstdout# WARNING: Unable to attach Serviceability Agent. sun.jvm.hotspot.memory.Universe.getNarrowOopBase()
2024-05-24 18:53:43 wren-ai-service-1  | INFO:     Started server process [6]
2024-05-24 18:53:43 wren-ai-service-1  | INFO:     Waiting for application startup.
2024-05-24 18:53:43 wren-engine-1      | 2024-05-24T16:53:43.594ZINFOmainorg.eclipse.jetty.server.Serverjetty-12.0.7; built: 2024-02-29T21:19:41.771Z; git: c89aca8fd34083befd79f328a3b8b6ffff04347e; jvm 21.0.3+9-LTS
2024-05-24 18:53:43 wren-engine-1      | 2024-05-24T16:53:43.606ZINFOmainorg.eclipse.jetty.server.handler.ContextHandlerStarted oeje10s.ServletContextHandler@5c41b8d8{ROOT,/,b=null,a=AVAILABLE,vh=[@https,@http],h=GzipHandler@77ea960f{STARTED,min=32,inflate=-1}}
2024-05-24 18:53:43 wren-ai-service-1  | 2024-05-24 16:53:43,618 - wren-ai-service - INFO - Initializing providers... (utils.py:190)
2024-05-24 18:53:43 wren-ai-service-1  | 2024-05-24 16:53:43,618 - wren-ai-service - INFO - Using OpenAI Generation Model: gpt-3.5-turbo (utils.py:191)
2024-05-24 18:53:43 qdrant-1           | 2024-05-24T16:53:43.653169Z  INFO actix_web::middleware::logger: 172.19.0.4 "GET /collections/Document HTTP/1.1" 200 430 "-" "python-httpx/0.27.0" 0.001296    
2024-05-24 18:53:43 qdrant-1           | 2024-05-24T16:53:43.764990Z  INFO actix_web::middleware::logger: 172.19.0.4 "GET /collections/Document HTTP/1.1" 200 430 "-" "python-httpx/0.27.0" 0.000522    
2024-05-24 18:53:43 qdrant-1           | 2024-05-24T16:53:43.799412Z  INFO actix_web::middleware::logger: 172.19.0.4 "GET /collections/view_questions HTTP/1.1" 200 427 "-" "python-httpx/0.27.0" 0.000520    
2024-05-24 18:53:44 wren-ai-service-1  | INFO:     Application startup complete.
2024-05-24 18:53:44 wren-ai-service-1  | INFO:     Uvicorn running on http://0.0.0.0:5555 (Press CTRL+C to quit)
2024-05-24 18:53:44 wren-engine-1      | 2024-05-24T16:53:44.338ZWARNmainorg.glassfish.jersey.internal.ErrorsThe following warnings have been detected: WARNING: A HTTP GET method, public void io.wren.main.web.AnalysisResource.getSqlAnalysis(io.wren.main.web.dto.SqlAnalysisInputDto,jakarta.ws.rs.container.AsyncResponse), should not consume any entity.
2024-05-24 18:53:44 wren-engine-1      | WARNING: A HTTP GET method, public void io.wren.main.web.MDLResource.dryRun(io.wren.main.web.dto.PreviewDto,jakarta.ws.rs.container.AsyncResponse), should not consume any entity.
2024-05-24 18:53:44 wren-engine-1      | WARNING: A HTTP GET method, public void io.wren.main.web.MDLResource.preview(io.wren.main.web.dto.PreviewDto,jakarta.ws.rs.container.AsyncResponse), should not consume any entity.
2024-05-24 18:53:44 wren-engine-1      | WARNING: A HTTP GET method, public void io.wren.main.web.MDLResource.dryPlan(io.wren.main.web.dto.DryPlanDto,jakarta.ws.rs.container.AsyncResponse), should not consume any entity.
2024-05-24 18:53:44 wren-engine-1      | 
2024-05-24 18:53:44 wren-engine-1      | 2024-05-24T16:53:44.343ZINFOmainorg.eclipse.jetty.ee10.servlet.ServletContextHandlerStarted oeje10s.ServletContextHandler@5c41b8d8{ROOT,/,b=null,a=AVAILABLE,vh=[@https,@http],h=GzipHandler@77ea960f{STARTED,min=32,inflate=-1}}
2024-05-24 18:53:44 wren-engine-1      | 2024-05-24T16:53:44.347ZINFOmainorg.eclipse.jetty.server.AbstractConnectorStarted http@34e9de8d{HTTP/1.1, (http/1.1, h2c)}{0.0.0.0:8080}
2024-05-24 18:53:44 wren-engine-1      | 2024-05-24T16:53:44.349ZINFOmainorg.eclipse.jetty.server.ServerStarted oejs.Server@186295cc{STARTING}[12.0.7,sto=0] @11673ms
2024-05-24 18:53:44 wren-engine-1      | 2024-05-24T16:53:44.360ZINFOmainio.wren.main.server.Server======== SERVER STARTED ========
2024-05-24 18:53:48 wren-ai-service-1  | INFO:     192.168.65.1:24189 - "GET /health HTTP/1.1" 200 OK
2024-05-24 18:53:49 wren-ui-1          | [2024-05-24T16:53:49.070] [INFO] TELEMETRY - Telemetry initialized
2024-05-24 18:53:49 wren-ui-1          | using sqlite
2024-05-24 18:53:49 wren-ui-1          | [2024-05-24T16:53:49.357] [INFO] AskingService - Background tracker started
2024-05-24 18:53:49 wren-ui-1          | [2024-05-24T16:53:49.388] [INFO] AskingService - Initialization: adding unfininshed thread responses (total: 0) to background tracker
2024-05-24 18:53:49 wren-ui-1          | Persisted queries are enabled and are using an unbounded cache. Your server is vulnerable to denial of service attacks via memory exhaustion. Set `cache: "bounded"` or `persistedQueries: false` in your ApolloServer constructor, or see https://go.apollo.dev/s/cache-backends for other alternatives.
2024-05-24 18:54:01 wren-ai-service-1  | INFO:     172.19.0.5:44838 - "POST /v1/asks HTTP/1.1" 400 Bad Request
2024-05-24 18:54:01 wren-ui-1          | [2024-05-24T16:54:01.414] [DEBUG] WrenAIAdaptor - Got error when asking wren AI: Request failed with status code 400, detail: [{'type': 'string_type', 'loc': ('body', 'id'), 'msg': 'Input should be a valid string', 'input': None, 'url': 'https://errors.pydantic.dev/2.7/v/string_type'}]
rohitranjan1991 commented 6 months ago

+1 Facing same issue. For me the api http://localhost:3000/api/graphql is returning 400 with the following response

{ "errors": [ { "locations": [ { "line": 2, "column": 3 } ], "path": [ "createAskingTask" ], "message": "Request failed with status code 400", "extensions": { "code": "INTERNAL_SERVER_ERROR", "message": "Request failed with status code 400", "shortMessage": "Internal server error" } } ], "data": null }

cyyeh commented 6 months ago

@rohitranjan1991 @matthieuganivet could you share with us what is your OS version, docker version and WrenAI version? Thank you!

wwwy3y3 commented 6 months ago

@cyyeh I'm able to reproduce this issue by using an OpenAI API key under free plan OpenAI account.

Errors displayed in containers: (notice You exceeded your current quota... part)

Calculating embeddings:   0%|          | 0/1 [00:00<?, ?it/s]
Calculating embeddings:   0%|          | 0/1 [00:03<?, ?it/s]
2024-05-25 04:04:44 wren-ai-service-1  | 2024-05-24 20:04:44,179 - wren-ai-service - ERROR - ask pipeline - Failed to prepare semantics: Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}} (ask.py:121)

If anyone saw the same error on UI, let us know if you saw the same error messages in logs. Also, @rohitranjan1991 @matthieuganivet could you guys check if your account is using free plan or not ?

cyyeh commented 6 months ago

@matthieuganivet @rohitranjan1991 or maybe another possible condition here is that please make sure the model is deployed successfully by going to the modeling page, there should be a "synced" message shown on the top right of the page. If it's not showing "synced", please click the deploy button. After the model is deployed successfully, you can start to ask questions.

image

matthieuganivet commented 6 months ago

Hello, for me, after deleting the containers & the docker volume wrenai_data all together, and reinstall every thing , it's running fine.

creativeson commented 6 months ago
ζˆͺεœ– 2024-05-26 δΈ‹εˆ3 36 33

@wwwy3y3 i have similar issue. i think because we are both unpaid users for chatgpt

wwwy3y3 commented 6 months ago

@creativeson thanks for letting us know.

We're thinking simply adding an API validation in our launcher, so users will know why the API key failed to work at the very start.

rohitranjan1991 commented 5 months ago

Fixed for me by clicking on deploy and syncing the table

Ramana-vummenthala commented 5 months ago

+1

For me the http://localhost:3000/api/graphql API is returning status 200, with following error

image

{ "errors": [ { "locations": [ { "line": 2, "column": 3 } ], "path": [ "createAskingTask" ], "message": "Cannot read properties of null (reading 'hash')", "extensions": { "code": "INTERNAL_SERVER_ERROR", "message": "Cannot read properties of null (reading 'hash')", "shortMessage": "Internal server error" } } ], "data": null }

zfanswer commented 5 months ago

+1

For me the http://localhost:3000/api/graphql API is returning status 200, with following error

image

{ "errors": [ { "locations": [ { "line": 2, "column": 3 } ], "path": [ "createAskingTask" ], "message": "Cannot read properties of null (reading 'hash')", "extensions": { "code": "INTERNAL_SERVER_ERROR", "message": "Cannot read properties of null (reading 'hash')", "shortMessage": "Internal server error" } } ], "data": null }

same here, +1

cyyeh commented 5 months ago

@zfanswer @Ramana-vummenthala could you try re-deploying the model by going to the modeling page and click the deploy button on the top right. If the model is deployed successfully, you will see "Synced" to the left of the deploy button. Then, you can try asking questions again