semaphore
semaphore copied to clipboard
Problem: Unable to access local repository with Semaphore installed via Snap
Issue
Hello,
I'm having trouble running a playbook from the Semaphore Web UI installed via Snap. It seems that Snap is unable to access local folders on the host machine. Is this a known issue?
I've tried using the None, SSH and SSH Key authentication keys, and the result is the same each time -> /opt/ansible not found.
I've tried to use a local home dir but this time I get a permission denied:
Can you please help me troubleshooting the issue?
Have a nice day/week
Kind regards,
Impact
Ansible (task execution)
Installation method
Snap
Database
BoltDB
Browser
Microsoft Edge
Semaphore Version
The last one available from Snap for ubuntu 24
Ansible Version
Logs & errors
2024-10-07T10:25:58.744884+02:00 ansible semaphore.semaphored[1127]: time="2024-10-07T10:25:58+02:00" level=info msg="Task 2147483636 added to queue" 2024-10-07T10:26:00.899200+02:00 ansible semaphore.semaphored[1127]: time="2024-10-07T10:26:00+02:00" level=info msg="Set resource locker with TaskRunner 2147483636" 2024-10-07T10:26:00.899334+02:00 ansible semaphore.semaphored[1127]: time="2024-10-07T10:26:00+02:00" level=info msg="Task 2147483636 removed from queue" 2024-10-07T10:26:00.902334+02:00 ansible kernel: audit: type=1400 audit(1728289560.901:132): apparmor="DENIED" operation="capable" class="cap" profile="snap.semaphore.semaphored" pid=1127 comm="semaphore" capability=2 capname="dac_read_search" 2024-10-07T10:26:00.902348+02:00 ansible kernel: audit: type=1400 audit(1728289560.901:133): apparmor="DENIED" operation="capable" class="cap" profile="snap.semaphore.semaphored" pid=1127 comm="semaphore" capability=1 capname="dac_override" 2024-10-07T10:26:00.904191+02:00 ansible semaphore.semaphored[1127]: time="2024-10-07T10:26:00+02:00" level=info msg="Stopped running TaskRunner 2147483636" 2024-10-07T10:26:00.904250+02:00 ansible semaphore.semaphored[1127]: time="2024-10-07T10:26:00+02:00" level=info msg="Release resource locker with TaskRunner 2147483636"
Manual installation - system information
Linux ansible 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Configuration
Additional information
No response