ViperX7 / Alpaca-Turbo

Web UI to run alpaca model locally
GNU Affero General Public License v3.0
876 stars 92 forks source link

Error using docker-compose #66

Closed clausdk closed 1 year ago

clausdk commented 1 year ago

When trying the docker-compose, I get this:

 => [internal] load build definition from Dockerfile                                                                                                        0.0s
 => => transferring dockerfile: 668B                                                                                                                        0.0s
 => [internal] load .dockerignore                                                                                                                           0.0s
 => => transferring context: 2B                                                                                                                             0.0s
 => [internal] load metadata for docker.io/library/python:3.8-slim                                                                                          0.3s
 => [ 1/10] FROM docker.io/library/python:3.8-slim@sha256:f4efb39d02df8cdc44485a0956ea62e63aab6bf2a1dcfb12fb5710bf95583e72                                  0.0s
 => [internal] load build context                                                                                                                           0.0s
 => => transferring context: 37B                                                                                                                            0.0s
 => CACHED [ 2/10] RUN apt-get update &&     apt-get install -y --no-install-recommends cmake &&     apt-get clean                                          0.0s
 => CACHED [ 3/10] RUN apt-get install -y --no-install-recommends curl wget vim git gcc make libc6-dev g++ unzip                                            0.0s
 => CACHED [ 4/10] RUN mkdir -p /app/models                                                                                                                 0.0s
 => CACHED [ 5/10] RUN git clone https://github.com/ViperX7/llama.cpp /llama.cpp                                                                            0.0s
 => CACHED [ 6/10] RUN cd /llama.cpp && make                                                                                                                0.0s
 => ERROR [ 7/10] RUN mv /llama.cpp/main /main                                                                                                              0.3s
------
 > [ 7/10] RUN mv /llama.cpp/main /main:
#0 0.272 mv: cannot move '/llama.cpp/main' to a subdirectory of itself, '/main'
------
failed to solve: process "/bin/sh -c mv /llama.cpp/main /main" did not complete successfully: exit code: 1
root@docker-containers:~/alpaca#

It's running Debian 11(updated)

FrostKiwi commented 1 year ago

Same issue as me in https://github.com/ViperX7/Alpaca-Turbo/pull/56. I'll install the update and see if I run into the same deal.

FrostKiwi commented 1 year ago

yeah same issue as before. It fails, not because the mv fails, but because the delete operation fails. So just replace it with a copy and everything works. cp -r instead of mv

clausdk commented 1 year ago

Yeah, that's what I did aswell. Thanks

FrostKiwi commented 1 year ago

I'd still consider this a bug, that we both worked around. @clausdk consider reopening this, as it it a problem again, as soon as you update Alpaca-Turbo, this having the Dockerfile reverted to it's previous state. Also other new users will stumble upon the same issue as we both did.

@ViperX7 consider merging https://github.com/ViperX7/Alpaca-Turbo/pull/56 as a fix, as it solved both mine and @clausdk's install issues. Alternatively you might investigate, why mv fails when it tries to remove the file llama.cpp/main, if you wish for a more elegant solution.