Incompatible fleeting plugin installed
Summary
When running the gitlab-runner fleeting install
command, it was observed that the runner crashes due to exec format error
.
WARNING: plugin failed to exit gracefully runner=XXXXXXXXX subsystem=fleeting-plugin
WARNING: Failed to process runner builds=0 error=failed to update executor: initializing taskscaler: running autoscaler plugin: fork/exec /root/.config/fleeting/plugins/registry.gitlab.com/gitlab-org/fleeting/plugins/aws/1.0.0/plugin: exec format error executor=instance max_builds=1 runner=XXXXXXXXX
On closer examination, it appears that the gitlab-runner fleeting install
command seems to be installing the 32-bit binary on a 64-bit system.
Linux x86_64
$ gitlab-runner --version
Version: 17.4.0
Git revision: b92ee590
Git branch: 17-4-stable
GO version: go1.22.5
Built: 2024-09-19T11:11:17+0000
OS/Arch: linux/amd64
$ uname -a
Linux c8df96a69297 6.8.0-39-generic #39-Ubuntu SMP PREEMPT_DYNAMIC Sat Jul 6 02:50:39 UTC 2024 x86_64 Linux
$ file /root/.config/fleeting/plugins/registry.gitlab.com/gitlab-org/fleeting/plugins/aws/1.0.0/plugin
/root/.config/fleeting/plugins/registry.gitlab.com/gitlab-org/fleeting/plugins/aws/1.0.0/plugin: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, Go BuildID=b8N4HDZ7FKbsC-5hWUpb/y63RMhIhWU8P4v0pm8eC/83unESdwQP_BwIkDcObL/K86D5bwV-fUVjfQ4iym8, not stripped
Linux aarch64
$ gitlab-runner --version
Version: 17.4.0
Git revision: b92ee590
Git branch: 17-4-stable
GO version: go1.22.5
Built: 2024-09-19T11:11:17+0000
OS/Arch: linux/arm64
$ uname -a
Linux 3a4c9d22e4ff 6.8.0-39-generic #39-Ubuntu SMP PREEMPT_DYNAMIC Sat Jul 6 02:50:39 UTC 2024 aarch64 Linux
$ file /root/.config/fleeting/plugins/registry.gitlab.com/gitlab-org/fleeting/plugins/aws/1.0.0/plugin
/root/.config/fleeting/plugins/registry.gitlab.com/gitlab-org/fleeting/plugins/aws/1.0.0/plugin: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically linked, Go BuildID=ZuwT4-7q5hPZ6MjpNHJ-/3MF-mJib_QmXNk2oWTxh/iF9sFvM5xAj5rt62iaDj/ao0QEEm9nj3dSGZD_mY5, not stripped