Giter Club home page Giter Club logo

Comments (9)

JuergenCornely avatar JuergenCornely commented on July 26, 2024

if i set the SQL Servername at the env file to localhost my oc_web container sdtops working..

from openchat.

codebanesr avatar codebanesr commented on July 26, 2024

when running inside docker, the server name will be the same as container name in dockerfile. Please go through this readme once, it should answer your question
https://github.com/openchatai/OpenChat/tree/main/dj_backend_server#dockerizing-project-execution

from openchat.

codebanesr avatar codebanesr commented on July 26, 2024

Hey @JuergenCornely , add your openai key and use the following .env
For now add the same to both .env and .env.docker

I am trying to figure out which release broke it

OPENAI_API_TYPE=openai


# For openai
OPENAI_API_KEY=<>

EMBEDDING_PROVIDER=openai

STORE=QDRANT

VECTOR_STORE_INDEX_NAME=someindex

QDRANT_URL=http://qdrant:6333

MAX_PAGES_CRAWL=15

CELERY_BROKER_URL=redis://redis:6379/0
CELERY_RESULT_BACKEND=redis://redis:6379/0
DATABASE_NAME=openchat
DATABASE_USER=dbuser
DATABASE_PASSWORD=dbpass
DATABASE_HOST=mysql
DATABASE_PORT=3306

ALLOWED_HOSTS=localhost,0.0.0.0
APP_URL=http://0.0.0.0:8000

from openchat.

codebanesr avatar codebanesr commented on July 26, 2024

now you can do the following

cd dj_backend_server
make pre-install
make install

from openchat.

JuergenCornely avatar JuergenCornely commented on July 26, 2024

i ll try and give feedback

from openchat.

JuergenCornely avatar JuergenCornely commented on July 26, 2024

i tried oc_web is up and running again. Adminer can connect to sql database but backend lists error
image

from openchat.

lvalics avatar lvalics commented on July 26, 2024

Normally python depend on MySQL, is mandatory to wait to start, but seems sometimes mySQL send a message that started but is not yet finished. I think this is why you get and finally the site will work. Confirm please if the site is working after a while or just the adminer.

from openchat.

JuergenCornely avatar JuergenCornely commented on July 26, 2024

Confirmed

from openchat.

JuergenCornely avatar JuergenCornely commented on July 26, 2024

Thanks a lot for the very quick support

from openchat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.