Error with the build in the Deploy process
I try to deploy the new version of invoice_template in staging environment and the process raises the next error:
"PermissionError: [Errno 13] Permission denied: /home/opencell/postgresql/data"
Context:
TASK [deploy : Ensure our docker-compose definition is up and rebuild opencell image.] ***************
fatal: [stagingopencell.coopdevs.org]: FAILED! =>
{
"changed": true,
"cmd": [
"docker-compose",
"up",
"-d",
"--build"
],
"delta": "0:00:00.642150",
"end": "2019-10-07 17:04:05.612510",
"msg": "non-zero return code",
"rc": 255,
"start": "2019-10-07 17:04:04.970360",
"stderr": "Building opencell\n[18313] Failed to execute script docker-compose\nTraceback (most recent call last):\n File \"bin/docker-compose\", line 6, in <module>\n File \"compose/cli/main.py\", line 71, in main\n File \"compose/cli/main.py\", line 127, in perform_command\n File \"compose/cli/main.py\", line 1052, in up\n File \"compose/cli/main.py\", line 1048, in up\n File \"compose/project.py\", line 471, in up\n File \"compose/service.py\", line 336, in ensure_image_exists\n File \"compose/service.py\", line 1067, in build\n File \"site-packages/docker/api/build.py\", line 154, in build\n File \"site-packages/docker/utils/build.py\", line 30, in tar\n File \"site-packages/docker/utils/build.py\", line 49, in exclude_paths\n File \"site-packages/docker/utils/build.py\", line 214, in rec_walk\n File \"site-packages/docker/utils/build.py\", line 214, in rec_walk\n File \"site-packages/docker/utils/build.py\", line 184, in rec_walk\nPermissionError: [Errno 13] Permission denied: /home/opencell/postgresql/data",
"stderr_lines": [
"Building opencell",
"[18313] Failed to execute script docker-compose",
"Traceback (most recent call last):",
" File \"bin/docker-compose\", line 6, in <module>",
" File \"compose/cli/main.py\", line 71, in main",
" File \"compose/cli/main.py\", line 127, in perform_command",
" File \"compose/cli/main.py\", line 1052, in up",
" File \"compose/cli/main.py\", line 1048, in up",
" File \"compose/project.py\", line 471, in up",
" File \"compose/service.py\", line 336, in ensure_image_exists",
" File \"compose/service.py\", line 1067, in build",
" File \"site-packages/docker/api/build.py\", line 154, in build",
" File \"site-packages/docker/utils/build.py\", line 30, in tar",
" File \"site-packages/docker/utils/build.py\", line 49, in exclude_paths",
" File \"site-packages/docker/utils/build.py\", line 214, in rec_walk",
" File \"site-packages/docker/utils/build.py\", line 214, in rec_walk",
" File \"site-packages/docker/utils/build.py\", line 184, in rec_walk",
"PermissionError: [Errno 13] Permission denied: /home/opencell/postgresql/data"
],
"stdout": "",
"stdout_lines": []
}
Edited by Administrator