lollms-webui icon indicating copy to clipboard operation
lollms-webui copied to clipboard

[Bug] Docker build not working

Open short-circuit opened this issue 1 year ago • 6 comments

Expected Behavior

I expect to use the Dockerfile from the repository and that the image builds and runs correctly

Current Behavior

Requirements are not installed correctly.

Steps to Reproduce

  1. Clone repo
  2. Docker build
  3. Docker run
  4. app.py crashes
lollms-1  | Traceback (most recent call last):
lollms-1  |   File "/srv/app.py", line 16, in <module>
lollms-1  |     from lollms_webui import LOLLMSWebUI
lollms-1  | ModuleNotFoundError: No module named 'lollms_webui'
lollms-1 exited with code 1

Possible Solution

Fix Dockerfile with correct requirements

short-circuit avatar Feb 29 '24 12:02 short-circuit

hi. The docker needs a refreshing :(

ParisNeo avatar Mar 01 '24 01:03 ParisNeo

At this point, the Docker build fails. The Dockerfile references a directory "static" and a directory "templates" that don't appear in the context (i.e. in the git pulled directory, where the Dockerfile resides). Did those directories used to exist but are now obsolete?

COPY ./static /srv/static

COPY ./templates /srv/templates

RChasedev avatar May 07 '24 03:05 RChasedev

the error is still present:

docker compose build
...
 => CACHED [webui  5/10] COPY ./api /srv/api                                                                                                                             0.0s
 => ERROR [webui  6/10] COPY ./static /srv/static                                                                                                                        0.0s
 => ERROR [webui  7/10] COPY ./templates /srv/templates                                                                                                                  0.0s
------
 > [webui  6/10] COPY ./static /srv/static:
------
------
 > [webui  7/10] COPY ./templates /srv/templates:
------
failed to solve: failed to compute cache key: failed to calculate checksum of ref XT5Z:RCE6:UGTN:DFHA:FGIA:T6JW:DS54:AJRU:EMHT:P4VY:WIUY:TFWH::o9ze5jido9zq9o856ntw6bj3m: "/templates": not found

shuther avatar May 27 '24 15:05 shuther

Any solution? I am experiencing the same problem after installing with linux_install.sh and after configuring to enable remote access it fails at the same point trying to do Docker compose.

Niskeletor avatar Jun 05 '24 17:06 Niskeletor

The answer to your question probably lies in the status: Assignment: No one Assigned Labels: None yet Projects: None yet Milestone: No milestone Development: No branches or pull requests

My heart is willing to contribute, but I can't afford the time to try to understand dependencies, and reverse engineer this application, so we wait for the developer to fix it, and I'm sure he has competing priorities in life as well.

For now, these are not the droids I'm looking for. I did find koboldcpp to work for me, with the caveat that it requires GGML or GGUF models only. It does allow me to split my models between CPU/SystemRAM and GPU/VRAM, which is nice since I can only afford a consumer grade GPU. AFAIK, this is a feature only available with GGML/GGUF format models anyway.

RChasedev avatar Jun 05 '24 18:06 RChasedev

Hi everyone,

I am really sorry for this. I did not have time to upgrade the docker. It is waaaay out of sync compared to the new version of lollms and basically needs to be rewritten.

Unfortunately, these days I have alot of work and can't afford enough time to fix this. Lollms is a big project and I only work on it in my spare time. By now it is already taking alot of my time so I can queue this into my already long todo list.

Any contribution is ofcourse welcome.

Best regards

ParisNeo avatar Jun 19 '24 13:06 ParisNeo