Quantcast
Viewing latest article 22
Browse Latest Browse All 31

Gitlab Runner setup issues on Mac Mini with M2 processor

I have a pair of Mac Minis with M2 processors that I am trying to setup as runners on a locally hosted gitlab setup. For a variety of other systems I simply followed the instructions on the runners page. When I select Mac and Arm64 here are the instructions I see:

Download and install binary

# Download the binary for your systemsudo curl --output /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-darwin-arm64`# Give it permission to executesudo chmod +x /usr/local/bin/gitlab-runner# The rest of the commands execute as the user who will run the runner# Register the runner (steps below), then runcd ~gitlab-runner installgitlab-runner start

Command to register runner

gitlab-runner register --url https://gitlab.blacktoppstudios.com/ --registration-token Fj3n5ngFakeToken

I needed to create the output folder for the download from AWS, but that seemed to work. But when I try to do gitlab-runner start I get the following error:

FATAL: Failed to start gitlab-runner: exit status 134

I couldn't see any results for exist status 134. A number of people had issues with the log files not being writable. I tried setting permissions on the log files and get the same error. If I change the log file location there is no apparent effect also.

I tried to perform the registration step and this appeared to work and create the toml file but didn't change the error message.

If I copy the command out of the file plist file at ~/Library/LaunchAgents/gitlab-runner.plist and add --debug I get this command:

% /usr/local/bin/gitlab-runner --debug run --working-directory /Users/cisadmin --config /Users/cisadmin/.gitlab-runner/config.toml --service gitlab-runner --syslog

and that gives me this:

Runtime platform                                    arch=arm64 os=darwin pid=2562 revision=436955cb version=15.11.0Starting multi-runner from /Users/cisadmin/.gitlab-runner/config.toml...  builds=0Checking runtime mode                               GOOS=darwin uid=501WARNING: Running in user-mode.                     WARNING: Use sudo for system-mode:                 WARNING: $ sudo gitlab-runner...                   Configuration loaded                                builds=0listenaddress: ""sessionserver:  listenaddress: ""  advertiseaddress: ""  sessiontimeout: 1800concurrent: 1checkinterval: 0loglevel: nulllogformat: nulluser: ""runners: []sentrydsn: nullmodtime: 2023-05-09T16:43:47.632488987-05:00loaded: trueshutdowntimeout: 0  builds=0Waiting for stop signal                             builds=0listen_address not defined, metrics & debug endpoints disabled  builds=0[session_server].listen_address not defined, session endpoints disabled  builds=0Initializing executor providers                     builds=0Feeding runners to channel                          builds=0Starting worker                                     builds=0 worker=0Feeding runners to channel                          builds=0

The listen_address not defined has me concerned but I have no further insight into what this means or how to troubleshoot it. I would appreciate any insight on how to approach Failed to start gitlab-runner: exit status 134.

EDIT - Some Docs suggested that local terminal have different permissions somehow than ssh connections. Well I tried following the steps from a local prompt and rebooted and now gitlab-runner status says that it is running, but it still isn't showing as connected from the runners listing on the gitlab web ui.

I looked into the config.toml and it is missing the [[runners]] section. I tried creating one by copying and adapting from a


Viewing latest article 22
Browse Latest Browse All 31

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>