Problem to solve
My CI job executed by the shell executor on a macOS Catalina machine fails in uploading the job artifacts. This is the job log:
Uploading artifacts for successful job 03:04
Uploading artifacts...
Runtime platform arch=amd64 os=darwin pid=61838 revision=fe451d5a version=17.1.0
build/: found 1489 matching artifact files and directories
assets/: found 19 matching artifact files and directories
WARNING: Uploading artifacts as "archive" to coordinator... 499 status code 499 id=95953 responseStatus=499 status code 499 status=499 token=glcbt-64
WARNING: Retrying... context=artifacts-uploader error=invalid argument
WARNING: Uploading artifacts as "archive" to coordinator... 499 status code 499 id=95953 responseStatus=499 status code 499 status=499 token=glcbt-64
WARNING: Retrying... context=artifacts-uploader error=invalid argument
WARNING: Uploading artifacts as "archive" to coordinator... 499 status code 499 id=95953 responseStatus=499 status code 499 status=499 token=glcbt-64
FATAL: invalid argument
Cleaning up project directory and file based variables 00:00
ERROR: Job failed: exit status 1
and this is the relevant output of the gitlab-runner instace started with --debug
flag:
Executing build stage build_stage=upload_artifacts_on_success job=95953 project=9 runner=MqdvDjJs
Uploading artifacts for successful job job=95953 project=9 runner=MqdvDjJs
Using new shell command execution job=95953 project=9 runner=MqdvDjJs
Appending trace to coordinator...ok code=202 job=95953 job-log=0-44203 job-status=running runner=MqdvDjJs sent-log=44163-44202 status=202 Accepted update-interval=3s
Appending trace to coordinator...ok code=202 job=95953 job-log=0-44699 job-status=running runner=MqdvDjJs sent-log=44203-44698 status=202 Accepted update-interval=3s
Updating job... bytesize=44699 checksum=crc32:96b9c9bc job=95953 runner=MqdvDjJs
Submitting job to coordinator...ok bytesize=44699 checksum=crc32:96b9c9bc code=200 job=95953 job-status=running runner=MqdvDjJs update-interval=0s
Appending trace to coordinator...ok code=202 job=95953 job-log=0-45048 job-status=running runner=MqdvDjJs sent-log=44699-45047 status=202 Accepted update-interval=3s
Updating job... bytesize=45048 checksum=crc32:30e46182 job=95953 runner=MqdvDjJs
Submitting job to coordinator...ok bytesize=45048 checksum=crc32:30e46182 code=200 job=95953 job-status=running runner=MqdvDjJs update-interval=0s
Appending trace to coordinator...ok code=202 job=95953 job-log=0-45397 job-status=running runner=MqdvDjJs sent-log=45048-45396 status=202 Accepted update-interval=3s
Updating job... bytesize=45397 checksum=crc32:2caff401 job=95953 runner=MqdvDjJs
Submitting job to coordinator...ok bytesize=45397 checksum=crc32:2caff401 code=200 job=95953 job-status=running runner=MqdvDjJs update-interval=0s
Updating job... bytesize=45397 checksum=crc32:2caff401 job=95953 runner=MqdvDjJs
Submitting job to coordinator...ok bytesize=45397 checksum=crc32:2caff401 code=200 job=95953 job-status=running runner=MqdvDjJs update-interval=0s
Skipping referees execution job=95953 project=9 runner=MqdvDjJs
Executing build stage build_stage=cleanup_file_variables job=95953 project=9 runner=MqdvDjJs
Cleaning up project directory and file based variables job=95953 project=9 runner=MqdvDjJs
Using new shell command execution job=95953 project=9 runner=MqdvDjJs
WARNING: Job failed: exit status 1
duration_s=697.729202121 job=95953 project=9 runner=MqdvDjJs
Appending trace to coordinator...ok code=202 job=95953 job-log=0-45951 job-status=running runner=MqdvDjJs sent-log=45397-45950 status=202 Accepted update-interval=3s
Updating job... bytesize=45951 checksum=crc32:72148933 job=95953 runner=MqdvDjJs
WARNING: Submitting job to coordinator... job failed bytesize=45951 checksum=crc32:72148933 code=200 job=95953 job-status=failed runner=MqdvDjJs status=200 OK update-interval=0s
Removed job from processing list builds=0 job=95953 max_builds=1 project=9 repo_url=https://git.herd.cloud.infn.it/herd/HerdSoftware.git time_in_queue_seconds=1
The same jobs executed on Linux using the docker executor succeeds.
Configuration
config.toml:
concurrent = 1
check_interval = 0
[session_server]
session_timeout = 1800
[[runners]]
name = "macos-runner-pg"
url = "https://git.herd.cloud.infn.it/"
token = "XXX"
executor = "shell"
[runners.custom_build_dir]
[runners.cache]
[runners.cache.s3]
[runners.cache.gcs]
Versions
- Self-managed Gitlab instance 17.1.2
- Self-hosted runner on macOS 17.1.0