Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker crashes whenever I try to send a message or edit the settings #1651

Closed
Ahmad4kTesting opened this issue Jun 11, 2024 · 2 comments
Closed
Labels
possible bug Bug was reported but is not confirmed or is unable to be replicated.

Comments

@Ahmad4kTesting
Copy link

How are you running AnythingLLM?

Docker (local)

What happened?

I can't get AnythingLLM to work on my Ubuntu 24.04 running on intel Xeon. Connected to Ollama running on the local machine.

I get the following error in the logs:

/usr/local/bin/docker-entrypoint.sh: line 7: 123 Illegal instruction (core dumped) node /app/server/index.js

The full log dump:

Collector hot directory and tmp storage wiped!
Document processor app listening on port 8888
Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma

✔ Generated Prisma Client (v5.3.1) to ./node_modules/@prisma/client in 496ms

Start using Prisma Client in Node.js (See: https://pris.ly/d/client)

import { PrismaClient } from '@prisma/client'
const prisma = new PrismaClient()

or start using Prisma Client at the edge (See: https://pris.ly/d/accelerate)

import { PrismaClient } from '@prisma/client/edge'
const prisma = new PrismaClient()

See other ways of importing Prisma Client: http://pris.ly/d/importing-client

Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Datasource "db": SQLite database "anythingllm.db" at "file:../storage/anythingllm.db"

20 migrations found in prisma/migrations

No pending migrations to apply.
┌─────────────────────────────────────────────────────────┐
│ Update available 5.3.1 -> 5.15.0 │
│ Run the following to update │
│ npm i --save-dev prisma@latest │
│ npm i @prisma/client@latest │
└─────────────────────────────────────────────────────────┘
[TELEMETRY ENABLED] Anonymous Telemetry enabled. Telemetry helps Mintplex Labs Inc improve AnythingLLM.
prisma:info Starting a sqlite pool with 13 connections.
fatal: not a git repository (or any of the parent directories): .git
getGitVersion Command failed: git rev-parse HEAD
fatal: not a git repository (or any of the parent directories): .git

[TELEMETRY SENT] {
event: 'server_boot',
distinctId: '9c10440f-e20f-43c9-b27f-062c6f731e19',
properties: { commit: '--', runtime: 'docker' }
}
[CommunicationKey] RSA key pair generated for signed payloads within AnythingLLM services.
Primary server in HTTP mode listening on port 3001
OpenAIError: The OPENAI_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAI client with an apiKey option, like new OpenAI({ apiKey: 'My API Key' }).
at new OpenAI (/app/server/node_modules/openai/index.js:53:19)
at openAiModels (/app/server/utils/helpers/customModels.js:59:18)
at getCustomModels (/app/server/utils/helpers/customModels.js:29:20)
at /app/server/endpoints/system.js:929:41
at Layer.handle [as handle_request] (/app/server/node_modules/express/lib/router/layer.js:95:5)
at next (/app/server/node_modules/express/lib/router/route.js:149:13)
at validatedRequest (/app/server/utils/middleware/validatedRequest.js:18:5)
[Event Logged] - update_llm_provider
[Event Logged] - update_embedding_engine
[Event Logged] - update_vector_db
[TELEMETRY SENT] {
event: 'workspace_created',
distinctId: '9c10440f-e20f-43c9-b27f-062c6f731e19',
properties: {
multiUserMode: false,
LLMSelection: 'ollama',
Embedder: 'native',
VectorDbSelection: 'lancedb',
runtime: 'docker'
}
}
[Event Logged] - workspace_created
[TELEMETRY SENT] {
event: 'onboarding_complete',
distinctId: '9c10440f-e20f-43c9-b27f-062c6f731e19',
properties: { runtime: 'docker' }
}
[NativeEmbedder] Initialized
/usr/local/bin/docker-entrypoint.sh: line 7: 123 Illegal instruction (core dumped) node /app/server/index.js

I tried to search the closed issues and landed on #1265 which I guess is a similar situation but I'm new to linux and can't wrap my head around the solution

Are there known steps to reproduce?

No response

@Ahmad4kTesting Ahmad4kTesting added the possible bug Bug was reported but is not confirmed or is unable to be replicated. label Jun 11, 2024
@timothycarambat
Copy link
Member

Same as the pinned issue #1331 (comment)

@Ahmad4kTesting
Copy link
Author

Thank you, the lancedb_revert image worked like a charm. I think I'll have to work with that for now until I can upgrade my CPU.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
possible bug Bug was reported but is not confirmed or is unable to be replicated.
Projects
None yet
Development

No branches or pull requests

2 participants