Comments (9)
For what it's worth, I changed my Dockerfile to this for now and got it working. I immediately ran into #46 though, but this performs the build on the docker container:
FROM python:3.11
RUN apt-get install -y libmagic1
WORKDIR /backend
COPY ./backend .
RUN rm poetry.lock
RUN pip install .
# We are going to install yarn and do the build inside the docker container:
# Install yarn:
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" >> /etc/apt/sources.list.d/yarn.list && \
apt update && \
apt install -y yarn
# Copy the frontend folder into the container:
COPY ./frontend ./frontend
# Install the frontend dependencies and build the frontend:
RUN cd ./frontend && yarn install
RUN cd ./frontend && yarn build
# Now copy the built `dist` folder that is inside of the container into ./ui:
RUN cp -r ./frontend/dist ./ui
CMD exec uvicorn app.server:app --host 0.0.0.0 --port $PORT
from opengpts.
Same here. Blank page when not working locally : http://myhost:8100/ Has anyone managed to make this service available on a server (excluding localhost access)?
You can try tunnelling the localhost using Cloudflare or ngrok or something like that to expose to internet.
from opengpts.
Hi @Suleman-Elahi Thanks for reporting! Follow the instructions in the README for now
from opengpts.
@Suleman-Elahi if you replace ./frontend/dist with ./frontend/src it will work. There is no dist folder inside frontend.
from opengpts.
I tried running the docker compose setup with the config that's currently in the main branch, with the dockerfile of @Taytay and I also replaced the path as @sudarshan-koirala suggested.
All of them show success logs, but when I open the website there's always a blank page.
Logs:
✔ Network opengpts_default Created 0.1s
✔ Container redis Created 0.0s
✔ Container opengpts-backend-1 Created 0.0s
Attaching to backend-1, redis
redis | 1:C 30 Nov 2023 23:03:27.501 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis | 1:C 30 Nov 2023 23:03:27.501 # Redis version=6.2.13, bits=64, commit=00000000, modified=0, pid=1, just started
redis | 1:C 30 Nov 2023 23:03:27.501 # Configuration loaded
redis | 1:M 30 Nov 2023 23:03:27.502 * monotonic clock: POSIX clock_gettime
redis | 1:M 30 Nov 2023 23:03:27.502 * Running mode=standalone, port=6379.
redis | 1:M 30 Nov 2023 23:03:27.502 # Server initialized
redis | 1:M 30 Nov 2023 23:03:27.502 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
redis | 1:M 30 Nov 2023 23:03:27.504 * <search> Redis version found by RedisSearch : 6.2.13 - oss
redis | 1:M 30 Nov 2023 23:03:27.504 * <search> RediSearch version 2.6.13 (Git=HEAD-f966d37f)
redis | 1:M 30 Nov 2023 23:03:27.504 * <search> Low level api version 1 initialized successfully
redis | 1:M 30 Nov 2023 23:03:27.504 * <search> concurrent writes: OFF, gc: ON, prefix min length: 2, prefix max expansions: 200, query timeout (ms): 500, timeout policy: return, cursor read size: 1000, cursor max idle (ms): 300000, max doctable size: 1000000, max number of search results: 1000000, search pool size: 20, index pool size: 8,
redis | 1:M 30 Nov 2023 23:03:27.504 * <search> Initialized thread pool!
redis | 1:M 30 Nov 2023 23:03:27.504 * <search> Enabled diskless replication
redis | 1:M 30 Nov 2023 23:03:27.504 * <search> Enabled role change notification
redis | 1:M 30 Nov 2023 23:03:27.504 * Module 'search' loaded from /usr/lib/redis/modules/redisearch.so
redis | 1:M 30 Nov 2023 23:03:27.505 * <ReJSON> Created new data type 'ReJSON-RL'
redis | 1:M 30 Nov 2023 23:03:27.505 * <ReJSON> version: 999999 git sha: unknown branch: unknown
redis | 1:M 30 Nov 2023 23:03:27.505 * <ReJSON> Exported RedisJSON_V1 API
redis | 1:M 30 Nov 2023 23:03:27.505 * <ReJSON> Exported RedisJSON_V2 API
redis | 1:M 30 Nov 2023 23:03:27.505 * <ReJSON> Exported RedisJSON_V3 API
redis | 1:M 30 Nov 2023 23:03:27.505 * <ReJSON> Exported RedisJSON_V4 API
redis | 1:M 30 Nov 2023 23:03:27.505 * <ReJSON> Enabled diskless replication
redis | 1:M 30 Nov 2023 23:03:27.505 * Module 'ReJSON' loaded from /usr/lib/redis/modules/rejson.so
redis | 1:M 30 Nov 2023 23:03:27.505 * <search> Acquired RedisJSON_V3 API
redis | 1:M 30 Nov 2023 23:03:27.505 * Ready to accept connections
backend-1 | INFO: Started server process [1]
backend-1 | INFO: Waiting for application startup.
backend-1 | INFO: Application startup complete.
backend-1 | INFO: Uvicorn running on http://0.0.0.0:8100 (Press CTRL+C to quit)
from opengpts.
@dentro-innovation Are you working locally? If yes, you can try http://localhost:8100/ instead of http://0.0.0.0:8100/. Locally, it works for me, but I see the white web page on the VPS server. Perhaps, there are some dependences, which I did not have on the server?
from opengpts.
@dentro-innovation I created a video on how to use docker for opengpts, link here -> https://youtu.be/8wZreQL0V44?si=WIkV9MtjfzwGUVu7
from opengpts.
@sudarshan-koirala Thank you for nice video! Unfortunately, I have a problem similar to @dentro-innovation, but on VPS. In the browser, I see just white web page. Logs do not show errors, but I do not see in them good comments as for example ""GET /runs/config_schema HTTP/1.1" 200 OK", which I see locally. Locally my docker is working.
from opengpts.
Same here. Blank page when not working locally : http://myhost:8100/ Has anyone managed to make this service available on a server (excluding localhost access)?
from opengpts.
Related Issues (20)
- Add Ollama as a LLM option HOT 1
- bug - no saved bot edit button with long names
- Editing Assistant: changing agent type overwrites other changes HOT 1
- Editing/viewing a bot: retrieval and files not visible or editable
- Question regarding roadmaps and upcoming features
- Env Variables | Must provide one of the 'base_url' or 'azure_endpoint' arguments HOT 1
- Assistant doesn't seem to have the ability to run Python code HOT 1
- Delete an assistant
- fix error please HOT 2
- Issue with Ingesting/Upserting CSV File in opengpts-backend HOT 2
- Sending a message in a deleted thread leads to a blank screen
- Sequential Custom Tool
- It always returns "Thread not found" by API
- services.postgres.healthcheck value 'start_interval' does not match any of the regexes: '^x-
- run example error
- Groq Provider
- YDC tool broken
- TypeError: string indices must be integers, not 'str' HOT 2
- error when adding message to thread HOT 4
- 'RedisCheckpoint' object has no attribute 'serde' Running Migration Tool HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opengpts.