danny-avila / LibreChat

Enhanced ChatGPT Clone: Features Anthropic, OpenAI, Assistants API, Azure, Groq, GPT-4o, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, langchain, DALL-E-3, ChatGPT Plugins, OpenAI Functions, Secure Multi-User System, Presets, completely open-source for self-hosting. Actively in public development.
https://librechat.ai/
MIT License
17.2k stars 2.87k forks source link

[Bug]: cannot register user #664

Closed thunderbug1 closed 1 year ago

thunderbug1 commented 1 year ago

Contact Details

No response

What happened?

I am trying to deploy libreChat to azure but I get an error on user sign-up

image

despite the error it seems to do some database inserts because sometimes when I try it again it says that the email is already in use.

Steps to Reproduce

  1. Run ghcr.io/danny-avila/librechat:latest with these settings (based on this deplyoment: (don't worry, I destroyed the azure infrastructure)
    APP_TITLE=librechat
    AZURE_OPENAI_API_COMPLETIONS_DEPLOYMENT_NAME=gpt-35-turbo
    AZURE_OPENAI_API_DEPLOYMENT_NAME=gpt-35-turbo
    AZURE_OPENAI_API_EMBEDDINGS_DEPLOYMENT_NAME=text-embedding-ada-002
    AZURE_OPENAI_API_KEY=1b6cd19c9fce450dabff07c071994bee
    AZURE_OPENAI_API_VERSION=2023-05-15
    CREDS_IV=rsruisqehxvlw8lnfd25f1dh2a8dk6zb
    CREDS_KEY=d15shp8cmaz58kyc7qvzg5aohqpyrp936g1byvo7vtovwouucngv6a63h38hirt1
    DOCKER_CUSTOM_IMAGE_NAME=ghcr.io/danny-avila/librechat:latest
    DOCKER_ENABLE_CI=false
    DOCKER_REGISTRY_SERVER_URL=https://index.docker.io
    DOMAIN_CLIENT=http://localhost:3080
    DOMAIN_SERVER=http://localhost:3080
    HOST=0.0.0.0
    JWT_SECRET=bka7rpcqtg74wzk8cspy5ta5efrhp17135kr4xotq2c5k00cc5tjzp9d2vb96u5h
    MEILI_HOST=meilisearchapp8a35gsev.azurewebsites.net
    MEILI_MASTER_KEY=13PlWqQ7SWvwW4dL2CXz
    MONGO_URI=mongodb://librechatdb8a35gsev:udNPygUGW1EMLwYzIbUbLJp4cyUvtzdIaQw9R7vklLy0mKlpFynnkWct2P0b9FKNa4rju9y9lncEACDbh8Z3kw==@librechatdb8a35gsev.mongo.cosmos.azure.com:10255/?ssl=true&replicaSet=globaldb&retrywrites=false&maxIdleTimeMS=120000&appName=@librechatdb8a35gsev@
    OPENAI_API_KEY=
    PORT=80
    VITE_SHOW_GOOGLE_LOGIN_OPTION=false
    WEBSITE_HEALTHCHECK_MAXPINGFAILURES=0
    WEBSITE_RUN_FROM_PACKAGE=1
    WEBSITES_ENABLE_APP_SERVICE_STORAGE=false
    WEBSITES_PORT=80
  2. Try to register new user

What browsers are you seeing the problem on?

No response

Relevant log output

No response

Screenshots

No response

Code of Conduct

fuegovic commented 1 year ago

(I left you a comment on discord)

I'm not familiar with what you're doing but it seems to be related to the missing SESSION_EXPIRY=(1000 * 60 * 60 * 24) * 7 variable.

image

thunderbug1 commented 1 year ago

(I left you a comment on discord)

I'm not familiar with what you're doing but it seems to be related to the missing SESSION_EXPIRY=(1000 * 60 * 60 * 24) * 7 variable.

image

Thank you very much, that was the solution :)