Skip to content

Problem: Runner panics with "fork/exec: not a directory" #3123

Open
@UMMAN2005

Description

@UMMAN2005

Issue

Relevant Logs

Jul 03 13:03:20 ansible-new semaphore[840844]: panic: fork/exec /usr/bin/ansible-playbook: not a directory
Jul 03 13:03:20 ansible-new semaphore[840844]: goroutine 438 [running]:
Jul 03 13:03:20 ansible-new semaphore[840844]: github.com/semaphoreui/semaphore/db_lib.AnsiblePlaybook.RunPlaybook({0xa, {0x2, {0xc000256ea6, 0x5}, 0x1, {0xc0000d3980, 0x26}, {0x0, 0x0}, 0x1, ...}, ...}, ...)
Jul 03 13:03:20 ansible-new semaphore[840844]: /home/runner/work/semaphore/semaphore/db_lib/AnsiblePlaybook.go:52 +0x1fd
Jul 03 13:03:20 ansible-new semaphore[840844]: github.com/semaphoreui/semaphore/db_lib.(*AnsibleApp).Run(0x0?, {{0xc000494080, 0x5, 0x8}, {0x0, 0x0, 0x0}, 0xc000490330, {0xc6ce60, 0xc0000a5800}, ...})
Jul 03 13:03:20 ansible-new semaphore[840844]: /home/runner/work/semaphore/semaphore/db_lib/AnsibleApp.go:65 +0xca
Jul 03 13:03:20 ansible-new semaphore[840844]: github.com/semaphoreui/semaphore/services/tasks.(*LocalJob).Run(0xc0000cf108, {0xc000256e10, 0x5}, 0x0, {0x0, 0x0})
Jul 03 13:03:20 ansible-new semaphore[840844]: /home/runner/work/semaphore/semaphore/services/tasks/LocalJob.go:604 +0xb7c
Jul 03 13:03:20 ansible-new semaphore[840844]: github.com/semaphoreui/semaphore/services/runners.(*JobPool).Run.func2(0xc000110100)
Jul 03 13:03:20 ansible-new semaphore[840844]: /home/runner/work/semaphore/semaphore/services/runners/job_pool.go:190 +0x65
Jul 03 13:03:20 ansible-new semaphore[840844]: created by github.com/semaphoreui/semaphore/services/runners.(*JobPool).Run in goroutine 1
Jul 03 13:03:20 ansible-new semaphore[840844]: /home/runner/work/semaphore/semaphore/services/runners/job_pool.go:187 +0x48c
Jul 03 13:03:20 ansible-new systemd[1]: semaphore-runner.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jul 03 13:03:20 ansible-new systemd[1]: semaphore-runner.service: Failed with result 'exit-code'.
Jul 03 13:03:30 ansible-new systemd[1]: semaphore-runner.service: Scheduled restart job, restart counter is at 2.

Impact

Ansible (task execution)

Installation method

Binary

Database

BoltDB

Browser

Firefox

Semaphore Version

2.15.0-1e13324-1749881537

Ansible Version

ansible [core 2.14.18]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.9/site-packages/ansible
  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
  executable location = /bin/ansible
  python version = 3.9.21 (main, Feb 10 2025, 00:00:00) [GCC 11.5.0 20240719 (Red Hat 11.5.0-5)] (/usr/bin/python3)
  jinja version = 3.1.2
  libyaml = True

Logs & errors

No response

Manual installation - system information

No response

Configuration

No response

Additional information

No response

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions