#Issues with deployment using latest builds

1 messages · Page 1 of 1 (latest)

sterile prairie
#

If I use image: ghcr.io/danny-avila/librechat:latest I get the following error from the LibreChat container:
```2025-02-23 02:19:56 error: An error occurred while fixing Token indexes: Operation tokens.indexes() buffering timed out after 10000ms
2025-02-23 02:20:18 error: There was an uncaught error: Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whitelisted. Make sure your current IP address is on your Atlas cluster's IP whitelist: https://www.mongodb.com/docs/atlas/security-whitelist/

[email protected] backend
cross-env NODE_ENV=production node api/server/index.js```
(I have confirmed network access is open on my mongo atlas instance)

If I use image: ghcr.io/danny-avila/librechat-dev:latest I get the following error:

  throw new ERR_INVALID_ARG_TYPE(
  ^

TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined
    at Function.from (node:buffer:320:9)
    at Object.<anonymous> (/app/api/server/utils/crypto.js:4:20)
    at Module._compile (node:internal/modules/cjs/loader:1469:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
    at Module.load (node:internal/modules/cjs/loader:1288:32)
    at Module._load (node:internal/modules/cjs/loader:1104:12)
    at Module.require (node:internal/modules/cjs/loader:1311:19)
    at require (node:internal/modules/helpers:179:18)
    at Object.<anonymous> (/app/api/server/utils/index.js:6:21)
    at Module._compile (node:internal/modules/cjs/loader:1469:14) {
  code: 'ERR_INVALID_ARG_TYPE'
}```
#

If I try to build images locally I get:

------
 > [api 2/7] RUN apk --no-cache add curl:
0.285 fetch https://dl-cdn.alpinelinux.org/alpine/v3.21/main/aarch64/APKINDEX.tar.gz
5.290 WARNING: fetching https://dl-cdn.alpinelinux.org/alpine/v3.21/main: temporary error (try again later)
5.290 fetch https://dl-cdn.alpinelinux.org/alpine/v3.21/community/aarch64/APKINDEX.tar.gz
10.30 WARNING: fetching https://dl-cdn.alpinelinux.org/alpine/v3.21/community: temporary error (try again later)
10.30 ERROR: unable to select packages:
10.30   curl (no such package):
10.30     required by: world[curl]
------
failed to solve: process "/bin/sh -c apk --no-cache add curl" did not complete successfully: exit code: 1
exit status 1```
sterile prairie
#

And I do have CREDS_KEY and CREDS_IV set

light pasture
sterile prairie
#

I saw that. I tried with network: host in my docker compose override which got me one step further (I could build the images) but then still ran into that first error (tokens.indexes)

light pasture
#

those first mongo errors are also due to network connectivity issue tho...
Are you updating or is this a fresh install?

sterile prairie
#

updating

#

git pull && docker compose up --build -d

#

agreed it has to be something with network of actual host vm maybe. I can curl those addresses fine.

#

@light pasture how long does building images locally take you?

light pasture
#

(it's been a while since I built the docker images locally, might be more or less but you get the point)

#

it takes a bit over 25 minutes for each releases on github

sterile prairie
#

Ahh okay good to know just wanted to make sure it wasn't so slow because of my config

#

Hmm I'm close to just nuking the server and trying again

#

So weird

#

ran fine outside of docker

light pasture
#

yeah, that's weird, updating is usually a pretty smooth process