true
Version: v1.2.253
Using werf config render file: /tmp/werf-config-render-1580284676
┌ Concurrent build plan (no more than 5 images at the same time)
│ Set #0:
│ - ⛵ image apiapp/stage/python
│
│ Set #1:
│ - ⛵ image apiapp/stage/python-build-stage
│
│ Set #2:
│ - ⛵ image apiapp
└ Concurrent build plan (no more than 5 images at the same time)
⛵ image apiapp/stage/python
00:54
┌ ⛵ image apiapp/stage/python
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x311b543]
goroutine 107 [running]:
github.com/werf/werf/pkg/build.(*BuildPhase).AfterImageStages(0xc0010f6940?, {0x400e795?, 0xc0013199b0?}, 0xc00047cd80)
/git/pkg/build/build_phase.go:571 +0x63
github.com/werf/werf/pkg/build.(*Conveyor).doImage.func2()
/git/pkg/build/conveyor.go:729 +0x489
github.com/werf/logboek/internal/stream.(*Stream).logProcess.func1()
/go/pkg/mod/github.com/werf/logboek@v0.5.5/internal/stream/process.go:150 +0x1b
github.com/werf/logboek/internal/stream.(*Stream).logProcess(0xc00139d020, {0xc000c47480?, 0x38?}, 0xc001319a10, 0xc00138ffc0)
/go/pkg/mod/github.com/werf/logboek@v0.5.5/internal/stream/process.go:157 +0x1cf
github.com/werf/logboek/internal/stream.(*LogProcess).DoError(0xc00138ff80, 0xc00138ffc0)
/go/pkg/mod/github.com/werf/logboek@v0.5.5/internal/stream/process_types.go:201 +0xa5
github.com/werf/werf/pkg/build.(*Conveyor).doImage(0x0?, {0x49be408?, 0xc0013199b0}, 0xc00047cd80, {0xc000d3b160, 0x1, 0x1})
/git/pkg/build/conveyor.go:702 +0x198
github.com/werf/werf/pkg/build.(*Conveyor).doImagesInParallel.func3({0x49be408, 0xc0013199b0}, 0x0?)
/git/pkg/build/conveyor.go:657 +0x215
github.com/werf/werf/pkg/util/parallel.DoTasks.func1()
/git/pkg/util/parallel/parallel.go:80 +0x304
created by github.com/werf/werf/pkg/util/parallel.DoTasks
/git/pkg/util/parallel/parallel.go:73 +0x21e
Cleaning up project directory and file based variables
00:01
ERROR: Job failed: exit status 1
Попробуйте дополнительно включить такой свитч: export WERF_STAGED_DOCKERFILE_VERSION=v2
Спасибо, ща попробую
Тьфу блин, не мне было :)
Попробовал, Version: v1.2.253 Using werf config render file: /tmp/werf-config-render-831986531 ┌ Concurrent build plan (no more than 5 images at the same time) │ Set #0: │ - ⛵ image apiapp/stage/python │ │ Set #1: │ - ⛵ image apiapp/stage/python-build-stage │ │ Set #2: │ - ⛵ image apiapp └ Concurrent build plan (no more than 5 images at the same time) ⛵ image apiapp/stage/python ┌ ⛵ image apiapp/stage/python │ ┌ Pulling base image python:3.11-slim-buster │ │ Resolving "python" using unqualified-search registries ↵ │ │ (/home/gitlab-runner/.werf/service/tmp/buildah/instance3217866140/config/registries.conf) │ │ Trying to pull docker.io/library/python:3.11-slim-buster... │ │ Getting image source signatures │ │ Copying blob sha256:91bdacd599c69598dd6fbd7f97f7059b565f6f3015a04b6ab9e8db254a41652c │ │ Copying blob sha256:824416e234237961c9c5d4f41dfe5b295a3c35a671ee52889bfb08d8e257ec4c │ │ Copying blob sha256:482d64d97d4e63625e51301e23ca7ff526afaf40710da26704d9ce2e1a6168fa │ │ Copying blob sha256:8b91b88d557765cd8c6802668755a3f6dc4337b6ce15a17e4857139e5fc964f3 │ │ Copying blob sha256:c87b3089b2ed5584d9a52ddf02017556958f287dd63945476fbcd191954e6faf │ └ Pulling base image python:3.11-slim-buster (3.30 seconds) FAILED └ ⛵ image apiapp/stage/python (4.90 seconds) FAILED Running time 7.07 seconds Error: phase build on image apiapp/stage/python stage FROM handler failed: unable to fetch base image "python:3.11-slim-buster" for stage apiapp/stage/python/FROM1: unable to pull image python:3.11-slim-buster: error pulling image "python:3.11-slim-buster": copying system image from manifest list: writing blob: adding layer with blob "sha256:8b91b88d557765cd8c6802668755a3f6dc4337b6ce15a17e4857139e5fc964f3": processing tar file(potentially insufficient UIDs or GIDs available in user namespace (requested 0:42 for /etc/gshadow): Check /etc/subuid and /etc/subgid if configured locally and run "podman system migrate": lchown /etc/gshadow: invalid argument): exit status 1 Cleaning up project directory and file based variables 00:01 ERROR: Job failed: exit status 1 Проблему с UID и GIDs вроде решил ранее, записав gitlab-runner в нужные файлы командами - echo "gitlab-runner:100001:65537" | sudo tee -a /etc/subuid - echo "gitlab-runner:100001:65537" | sudo tee -a /etc/subgid
@ilya_lesikov Илья, а что скажите по поводу моей ошибки? Как вы решаете проблему с gid и uid?
если хотите локально поставить запускать werf через buildah (т. е. без контейнера), то следуйте этой инструкции https://werf.io/documentation/v1.2/?usage=localDev&os=linux&buildBackend=buildah
Обсуждают сегодня