sclorg / container-workflow-tool

MIT License
1 stars 9 forks source link

betka-generator failed on permission denied #27

Closed phracek closed 3 years ago

phracek commented 3 years ago

Betka tries to generate sources for Fedora land, but it failed with the error:

+ '[' -z /tmp/betka-generator/20210309115017-nginx-container ']'
+ '[' -z nginx ']'
+ '[' -z nginx-container ']'
+ SOURCES=/tmp/betka-generator/20210309115017-nginx-container
+ RESULTS=/tmp/betka-generator/20210309115017-nginx-container/results
+ CWT_WD_PREFIX=sync
+ CWT_WD=/tmp/sync
+ CWT_CONFIG_DIR=/tmp/container-workflow-tool/container_workflow_tool/config
+ cd /tmp/betka-generator/20210309115017-nginx-container/results
++ git rev-parse --abbrev-ref HEAD
+ config=f32
+ echo f32
+ grep -q master
+ cd /tmp/container-workflow-tool
+ read -r _ ups_name _
++ cwt --config /tmp/container-workflow-tool/container_workflow_tool/config/f32.yaml --do-image nginx utils listupstream
+ mkdir -p /tmp/sync/upstreams/
mkdir: cannot create directory '/tmp/sync': Permission denied
phracek commented 3 years ago

again traceback

+ '[' -z /tmp/betka-generator/20210507102101-s2i-php-container ']'
+ '[' -z php ']'
+ '[' -z s2i-php-container ']'
+ SOURCES=/tmp/betka-generator/20210507102101-s2i-php-container
+ RESULTS=/tmp/betka-generator/20210507102101-s2i-php-container/results
+ CWT_WD_PREFIX=sync
+ CWT_WD=/tmp/sync
+ CWT_CONFIG_DIR=/tmp/container-workflow-tool/container_workflow_tool/config
+ cd /tmp/betka-generator/20210507102101-s2i-php-container/results
++ git rev-parse --abbrev-ref HEAD
+ config=f32
+ echo f32
+ grep -q main
+ cd /tmp/container-workflow-tool
+ read -r _ ups_name _
++ cwt --config /tmp/container-workflow-tool/container_workflow_tool/config/f32.yaml --do-image php utils listupstream
+ mkdir -p /tmp/sync/upstreams/
mkdir: cannot create directory '/tmp/sync': Permission denied
phracek commented 3 years ago

It looks like the same problem as in s2i-base container here: https://github.com/sclorg/s2i-base-container/issues/208

phracek commented 3 years ago

This is fixed by the new version of betka which is based on Fedora 34.