the-paperless-project / paperless

Scan, index, and archive all of your paper documents
GNU General Public License v3.0
7.84k stars 501 forks source link

Problem using docker-compose #704

Closed JoergPalmer closed 3 years ago

JoergPalmer commented 3 years ago

Tried to install with the docker method, following this instructions.

When issuing the docker-compose up -d command, it starts fetching packages and finally fails after some commands:

Building webserver
Step 1/15 : FROM alpine:3.11
 ---> f70734b6a266
Step 2/15 : LABEL maintainer="The Paperless Project https://github.com/the-paperless-project/paperless"       contributors="Guy Addadi <addadi@gmail.com>, Pit Kleyersburg <pitkley@googlemail.com>,         Sven Fischer <git-dev@linux4tw.de>"
 ---> Using cache
 ---> 59b07b7b0c40
Step 3/15 : COPY Pipfile* /usr/src/paperless/
 ---> Using cache
 ---> f19cca32678c
Step 4/15 : COPY scripts/docker-entrypoint.sh /sbin/docker-entrypoint.sh
 ---> Using cache
 ---> acb5cf04e77b
Step 5/15 : COPY scripts/gunicorn.conf /usr/src/paperless/
 ---> Using cache
 ---> 7d0975088d6d
Step 6/15 : ENV PAPERLESS_EXPORT_DIR=/export     PAPERLESS_CONSUMPTION_DIR=/consume
 ---> Using cache
 ---> f21616b808b4
Step 7/15 : RUN apk add --no-cache       bash       curl       ghostscript       gnupg       imagemagick       libmagic       libpq       optipng       poppler       python3       shadow       sudo       tesseract-ocr           tzdata       unpaper &&     apk add --no-cache --virtual .build-dependencies       g++       gcc       jpeg-dev       musl-dev       poppler-dev       postgresql-dev       python3-dev       zlib-dev &&     python3 -m ensurepip &&     rm -r /usr/lib/python*/ensurepip &&     cd /usr/src/paperless &&     pip3 install --upgrade pip pipenv &&     pipenv install --system --deploy &&     apk del .build-dependencies &&     mkdir -p $PAPERLESS_CONSUMPTION_DIR &&     addgroup -g 1000 paperless &&     adduser -D -u 1000 -G paperless -h /usr/src/paperless paperless &&     chown -Rh paperless:paperless /usr/src/paperless &&     mkdir -p $PAPERLESS_EXPORT_DIR &&     echo 'Set disable_coredump false' >> /etc/sudo.conf &&     chmod 755 /sbin/docker-entrypoint.sh
 ---> Running in c6210505d181
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86_64/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz: temporary error (try again later)
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86_64/APKINDEX.tar.gz: temporary error (try again later)
ERROR: unsatisfiable constraints:
  bash (missing):
    required by: world[bash]
  curl (missing):
    required by: world[curl]
  ghostscript (missing):
    required by: world[ghostscript]
  gnupg (missing):
    required by: world[gnupg]
  imagemagick (missing):
    required by: world[imagemagick]
  libmagic (missing):
    required by: world[libmagic]
  libpq (missing):
    required by: world[libpq]
  optipng (missing):
    required by: world[optipng]
  poppler (missing):
    required by: world[poppler]
  python3 (missing):
    required by: world[python3]
  shadow (missing):
    required by: world[shadow]
  sudo (missing):
    required by: world[sudo]
  tesseract-ocr (missing):
    required by: world[tesseract-ocr]
  tzdata (missing):
    required by: world[tzdata]
  unpaper (missing):
    required by: world[unpaper]
ERROR: Service 'webserver' failed to build: The command '/bin/sh -c apk add --no-cache       bash       curl       ghostscript       gnupg       imagemagick       libmagic       libpq       optipng       poppler       python3       shadow       sudo       tesseract-ocr           tzdata       unpaper &&     apk add --no-cache --virtual .build-dependencies       g++       gcc       jpeg-dev       musl-dev       poppler-dev       postgresql-dev       python3-dev       zlib-dev &&     python3 -m ensurepip &&     rm -r /usr/lib/python*/ensurepip &&     cd /usr/src/paperless &&     pip3 install --upgrade pip pipenv &&     pipenv install --system --deploy &&     apk del .build-dependencies &&     mkdir -p $PAPERLESS_CONSUMPTION_DIR &&     addgroup -g 1000 paperless &&     adduser -D -u 1000 -G paperless -h /usr/src/paperless paperless &&     chown -Rh paperless:paperless /usr/src/paperless &&     mkdir -p $PAPERLESS_EXPORT_DIR &&     echo 'Set disable_coredump false' >> /etc/sudo.conf &&     chmod 755 /sbin/docker-entrypoint.sh' returned a non-zero code: 15

I notice it says "temporary error (try again later) ..", but I did this over several hours now, to no avail. Can someone shed light on what's the problem here?

JoergPalmer commented 3 years ago

Well, obviously there was a temporary problem with the alpinelinux repos. Tried again this morning and it worked!

JoergPalmer commented 3 years ago

Temporary problem with alpinelinux repos are solved