Project

General

Profile

Actions

Bug #10754

closed

fail: make doc-local

Added by Carsten Rose almost 4 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Carsten Rose
Target version:
Start date:
14.06.2020
Due date:
% Done:

0%

Estimated time:
Discuss:
Prio Planung:
Vote:

Description

Hallo Marc

Es gibt ein `permission denied` bei mir bei `make doc-local`. Koenntest Du Dir das mal anschauen (Branch: Master')?

Vielen Dank.

CU
Carsten

$ make doc-local
cd Documentation && make docker-html
make[1]: Entering directory '/home/a/crose/PhpstormProjects/qfq/Documentation'
rm -rf _build
docker build -t sphinx-qfq ./docker-sphinx-qfq
Sending build context to Docker daemon  3.072kB
Step 1/5 : FROM sphinxdoc/sphinx
 ---> 431d54224cd4
Step 2/5 : WORKDIR /docs
 ---> Using cache
 ---> db2039c2af09
Step 3/5 : ADD requirements.txt /docs
 ---> Using cache
 ---> 6c0408373559
Step 4/5 : RUN apt-get update &&     apt-get upgrade -y &&     apt-get install -y git
 ---> Using cache
 ---> 0ae935d330d1
Step 5/5 : RUN pip3 install -r requirements.txt
 ---> Using cache
 ---> 04db80ca1562
Successfully built 04db80ca1562
Successfully tagged sphinx-qfq:latest
docker run --rm --user $(id -u):$(id -g) -v ${PWD}:/docs sphinx-qfq sphinx-build -M html "." "_build" 
docker: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "chdir to cwd (\"/docs\") set in config.json failed: permission denied": unknown.
ERRO[0000] error waiting for container: context canceled 
Makefile:5: recipe for target 'docker-html' failed
make[1]: *** [docker-html] Error 126
make[1]: Leaving directory '/home/a/crose/PhpstormProjects/qfq/Documentation'
Makefile:129: recipe for target 'doc-local' failed
make: *** [doc-local] Error 2

Actions #1

Updated by Marc Egger almost 4 years ago

  • Status changed from New to In Progress
Actions #2

Updated by Marc Egger almost 4 years ago

  • Status changed from In Progress to New
  • Assignee changed from Marc Egger to Carsten Rose

Made some changes which might cause the problem.
Try with branch: B10754failMakeDocLocal

Actions #3

Updated by Carsten Rose over 3 years ago

  • Assignee changed from Carsten Rose to Marc Egger

Hallo Marc

  • Das Problem ist mit d9d69bb5 nicht geloest.
    make /home executable
    chmod: changing permissions of '.': Operation not permitted
    docker run --rm --user $(id -u):$(id -g) -v ${PWD}:/docs sphinx-qfq sphinx-build -M html "." "_build" 
    docker: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "chdir to cwd (\"/docs\") set in config.json failed: permission denied": unknown.
    Makefile:5: recipe for target 'docker-html' failed
    make[1]: *** [docker-html] Error 126
    make[1]: Leaving directory '/home/a/crose/PhpstormProjects/qfq/Documentation'
    Makefile:129: recipe for target 'doc-local' failed
    make: *** [doc-local] Error 2
    

Du versuchst einen Rundumschlag mit `chmod o+x`, inkl. im Pfad nach oben steigen. Das ist aus folgenden Gruenden schlecht:

  • Vermutlich wurde das Problem nicht verstanden, darum einen Rundumschlag. Besser ist den Einzelfall anzuschauen und zu verstehen was schief laeuft - am besten zusammen mit mir um zu verstehen warum es bei Dir laeuft udn bei mir nicht.
  • Ich will mein lokales GIT Repo vielleicht nicht fuer alle oeffnen (evtl. geht es nicht anders - aber dann muessten wir das besprechen).
  • Das gleiche trifft fuer User zu, die QFQ auschecken und laufen lassen: ohne Zustimming das Home zu oeffnen ist nicht nett.
  • Bei normal konfigurierten Systemen kann man davon ausgehen das /home nicht schreibbar ist fuer regulaere User - damit gibt es jedesmal eine Fehlermeldung beim start >> unschoen.

Zum debuggen: zeige doch bitte direkt vor `docker run` an pwd, permission, ls.

Vielen Dank

Actions #4

Updated by Marc Egger over 3 years ago

  • Status changed from New to In Progress
Actions #5

Updated by Marc Egger over 3 years ago

Um das Berechtigungsproblem nich lösen zu müssen, sämmtliche files nach /var/temp/ZUFALLSZAHL kopieren und nach dem ausführen wieder zurück kopieren.
Oder die Feils gleich in den Docker kopieren anstatt ein Volume zu mounten.

Ticket hat an Priorität verloren, weil ReadTheDocs die Doku sowieso bei jedem Commit nach Master und Develop automatisch rendert, unabhängig davon ob `make dok-local` überall funktioniert.

Actions #6

Updated by Marc Egger over 3 years ago

  • Status changed from In Progress to Priorize
Actions #7

Updated by Marc Egger about 3 years ago

  • Status changed from Priorize to New
  • Assignee changed from Marc Egger to Carsten Rose

Diese Docker berechtigungsprobleme sind hartnäckig und ich kenne bis jetzt nur workarounds, keine wirklichen lösungen.
Ich kann mich nochmal dran setzen wenn du willst. ist aber ein zeitfresser

Actions #8

Updated by Carsten Rose about 3 years ago

  • Status changed from New to Closed

Ja, mit RTD haben wir eine halbwegs zeitnahe Loesung beim rendern - das reicht erstmal.

Danke.

Actions #9

Updated by Carsten Rose almost 3 years ago

  • Target version changed from next5 to 21.3.1
Actions #10

Updated by Carsten Rose almost 3 years ago

  • Target version changed from 21.3.1 to 21.5.0
Actions

Also available in: Atom PDF