You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ /home/user# semaphore runner setup --config /etc/semaphore/runner-config.json
Semaphore server URL: https://semaphore.local/
Path to the file where runner token will be stored: /opt/semaphoreRunner/
Do you have runner token? (yes/no) (default no): yes
Runner token: mytoken
Running: mkdir -p /etc/semaphore..
Configuration written to /etc/semaphore/runner-config.json..
Loading config
Validating config
Re-launch this program pointing to the configuration file
./semaphore runner --config /etc/semaphore/runner-config.json
To run as daemon:
nohup ./semaphore runner --config /etc/semaphore/runner-config.json &
$ /home/user# ls -la /opt/semaphoreRunner/
total 8
drwxr-xr-x 2 root root 4096 Jan 15 10:32 .
drwxr-xr-x 9 root root 4096 Nov 6 17:01 ..
$ /home/user# cat /etc/semaphore/runner-config.json
{
"web_host": "https://semaphore.local/",
"runner": {
"token_file": "/opt/semaphoreRunner/"
}
}
The token_file will not be written (access rights for the directory are ok). When i start the runner i get:
Jan 15 11:03:14 myhost systemd[1]: Started Semaphore Ansible Runner.
Jan 15 11:03:14 myhost semaphore[453192]: Loading config
Jan 15 11:03:14 myhost semaphore[453192]: Validating config
Jan 15 11:03:14 myhost semaphore[453192]: time="2025-01-15T11:03:14+01:00" level=panic msg="can not retrieve runner token" context=running
Jan 15 11:03:14 myhost semaphore[453192]: panic: (*logrus.Entry) 0xc0001e7b90
Jan 15 11:03:14 myhost semaphore[453192]: goroutine 1 [running]:
Jan 15 11:03:14 myhost semaphore[453192]: github.com/sirupsen/logrus.(*Entry).log(0xc0001e7b20, 0x0, {0xc0000e0b20, 0x1d})
Jan 15 11:03:14 myhost semaphore[453192]: /home/runner/work/semaphore/semaphore/vendor/github.com/sirupsen/logrus/entry.go:260 +0x485
Jan 15 11:03:14 myhost semaphore[453192]: github.com/sirupsen/logrus.(*Entry).Log(0xc0001e7b20, 0x0, {0xc000113a18?, 0x7?, 0x10?})
Jan 15 11:03:14 myhost semaphore[453192]: /home/runner/work/semaphore/semaphore/vendor/github.com/sirupsen/logrus/entry.go:304 +0x48
Jan 15 11:03:14 myhost semaphore[453192]: github.com/sirupsen/logrus.(*Entry).Panic(...)
Jan 15 11:03:14 myhost semaphore[453192]: /home/runner/work/semaphore/semaphore/vendor/github.com/sirupsen/logrus/entry.go:342
Jan 15 11:03:14 myhost semaphore[453192]: github.com/semaphoreui/semaphore/services/runners.(*JobLogger).Panic(0xc00003ff20, {0x11?, 0x0?}, {0x0?, 0x0?}, {0xcf5768, 0x1d})
Jan 15 11:03:14 myhost semaphore[453192]: /home/runner/work/semaphore/semaphore/services/runners/job_pool.go:54 +0x15b
Jan 15 11:03:14 myhost semaphore[453192]: github.com/semaphoreui/semaphore/services/runners.(*JobPool).Run(0xc000037b80)
Jan 15 11:03:14 myhost semaphore[453192]: /home/runner/work/semaphore/semaphore/services/runners/job_pool.go:150 +0xb1
Jan 15 11:03:14 myhost semaphore[453192]: github.com/semaphoreui/semaphore/cli/cmd.runRunner()
Jan 15 11:03:14 myhost semaphore[453192]: /home/runner/work/semaphore/semaphore/cli/cmd/runner_start.go:18 +0x39
Jan 15 11:03:14 myhost semaphore[453192]: github.com/semaphoreui/semaphore/cli/cmd.init.func7(0xc0000fb300?, {0xcde222?, 0x4?, 0xcde226?})
Jan 15 11:03:14 myhost semaphore[453192]: /home/runner/work/semaphore/semaphore/cli/cmd/runner_start.go:25 +0xf
Jan 15 11:03:14 myhost semaphore[453192]: github.com/spf13/cobra.(*Command).execute(0x1feae00, {0xc00004be00, 0x2, 0x2})
Jan 15 11:03:14 myhost semaphore[453192]: /home/runner/work/semaphore/semaphore/vendor/github.com/spf13/cobra/command.go:989 +0xa91
Jan 15 11:03:14 myhost semaphore[453192]: github.com/spf13/cobra.(*Command).ExecuteC(0x1fea280)
Jan 15 11:03:14 myhost semaphore[453192]: /home/runner/work/semaphore/semaphore/vendor/github.com/spf13/cobra/command.go:1117 +0x3ff
Jan 15 11:03:14 myhost semaphore[453192]: github.com/spf13/cobra.(*Command).Execute(...)
Jan 15 11:03:14 myhost semaphore[453192]: /home/runner/work/semaphore/semaphore/vendor/github.com/spf13/cobra/command.go:1041
Jan 15 11:03:14 myhost semaphore[453192]: github.com/semaphoreui/semaphore/cli/cmd.Execute()
Jan 15 11:03:14 myhost semaphore[453192]: /home/runner/work/semaphore/semaphore/cli/cmd/root.go:56 +0xc5
Jan 15 11:03:14 myhost semaphore[453192]: main.main()
Jan 15 11:03:14 myhost semaphore[453192]: /home/runner/work/semaphore/semaphore/cli/main.go:8 +0xf
Jan 15 11:03:14 myhost systemd[1]: semaphore-runner.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jan 15 11:03:14 myhost systemd[1]: semaphore-runner.service: Failed with result 'exit-code'.
Impact
Semaphore Project
Installation method
Binary
Database
MySQL
Browser
Microsoft Edge
Semaphore Version
semaphore_2.11.2_linux_amd64.deb
Ansible Version
Meaningless
Logs & errors
See above
Manual installation - system information
Linux myhost 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Configuration
No response
Additional information
We use the Pro Version.
The text was updated successfully, but these errors were encountered:
Issue
I try to register a runner like described in the Documentation (https://docs.semaphoreui.com/administration-guide/runners/):
The token_file will not be written (access rights for the directory are ok). When i start the runner i get:
Impact
Semaphore Project
Installation method
Binary
Database
MySQL
Browser
Microsoft Edge
Semaphore Version
semaphore_2.11.2_linux_amd64.deb
Ansible Version
Logs & errors
See above
Manual installation - system information
Linux myhost 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Configuration
No response
Additional information
We use the Pro Version.
The text was updated successfully, but these errors were encountered: