-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Issue
Hello,
I had an old semaphore running on a VM. It was linked to a postgresql instance and a gitea. It was working flawlessly.
I've reinstalled semaphore to a new VM, migrated the DB. had issues with version. Made a backup from the project, scratched the DB, recreated it, and reinjected the project backup to the new semaphore, found my kids again.
Except the ssh keys. And now the real hassle begin :
Recreated an ssh key on the user@semaphore-host which is running semaphore.
ansible@semaphore:~$ which semaphore
/usr/bin/semaphore
ansible@semaphore:~$ systemctl status semaphore
● semaphore.service - Semaphore Ansible
Loaded: loaded (/etc/systemd/system/semaphore.service; enabled; preset: enabled)
Active: active (running) since Sun 2025-11-23 15:05:04 CET; 9min ago
Docs: https://github.com/semaphoreui/semaphore
Main PID: 3373 (semaphore)
Tasks: 4 (limit: 2311)
Memory: 8.2M
CPU: 46ms
CGroup: /system.slice/semaphore.service
└─3373 /usr/bin/semaphore server --config=/home/ansible/config.json
ansible@semaphore:~$ ls
ansible@semaphore:~$ ps -eF | grep semaphore
root 3373 1 0 314373 22680 0 15:05 ? 00:00:00 /usr/bin/semaphore server --config=/home/ansible/config.json
the git clone works on the host :
ansible@semaphore:~$ git clone [email protected]:interlope/semaphore.git
Cloning into 'semaphore'...
This is the hlb1.lan network.
If you ever find this, mail me on [email protected]
remote: Enumerating objects: 551, done.
remote: Counting objects: 100% (551/551), done.
remote: Compressing objects: 100% (541/541), done.
remote: Total 551 (delta 314), reused 0 (delta 0), pack-reused 0 (from 0)
Receiving objects: 100% (551/551), 62.85 KiB | 2.86 MiB/s, done.
Resolving deltas: 100% (314/314), done.
But if i launch a template, it just breaks and do nothing :
Running
Started by admin at 12 minutes ago (15:04) a few seconds
3:04:54 PM
Task 13 added to queue
3:04:54 PM
Started: 13
3:04:54 PM
Run TaskRunner with template: DEV_apt_update
3:04:54 PM
Preparing: 13
3:04:54 PM
Cloning Repository https://gitea.hlb1.ovh/interlope/semaphore.git
3:04:54 PM
Cloning into 'repository_1_template_2'...
3:04:54 PM
Get current commit hash
3:04:54 PM
Get current commit message
3:04:54 PM
No /home/ansible/semaphore_tmp/project_1/repository_1_template_2/apt/collections/requirements.yml file found. Skip galaxy install process.
3:04:54 PM
No /home/ansible/semaphore_tmp/project_1/repository_1_template_2/apt/requirements.yml file found. Skip galaxy install process.
It has been stuck since 12 minutes.
It does create correctly the files :
ansible@semaphore:~/semaphore_tmp$ tree -d
.
└── project_1
└── repository_1_template_2
├── apt
│ └── conf
├── hosts
├── ntp
├── snpmd
├── ssh
│ └── conf
└── utilities
11 directories
Any help is welcome.
Impact
Ansible (task execution)
Installation method
Binary
Database
Postgres
Browser
No response
Semaphore Version
2.15.0-1e13324-1749881537
Ansible Version
ansible [core 2.14.18]
config file = None
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3/dist-packages/ansible
ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/bin/ansible
python version = 3.11.2 (main, Apr 28 2025, 14:11:48) [GCC 12.2.0] (/usr/bin/python3)
jinja version = 3.1.2
libyaml = TrueLogs & errors
Nov 23 15:20:20 semaphore semaphore[3373]: time="2025-11-23T15:20:20+01:00" level=info msg="Task 14 added to queue"
Nov 23 15:20:20 semaphore semaphore[3373]: time="2025-11-23T15:20:20+01:00" level=info msg="Set resource locker with TaskRunner 14"
Nov 23 15:20:20 semaphore semaphore[3373]: time="2025-11-23T15:20:20+01:00" level=info msg="Task 14 started"
Nov 23 15:20:20 semaphore semaphore[3373]: time="2025-11-23T15:20:20+01:00" level=error msg="pq: syntax error at or near "end""
Nov 23 15:20:21 semaphore semaphore[3373]: time="2025-11-23T15:20:21+01:00" level=warning msg="Failed to run task" context=task_runner error="exit status 4" task_id=14 task_status=running
Nov 23 15:20:21 semaphore semaphore[3373]: time="2025-11-23T15:20:21+01:00" level=info msg="Stopped running TaskRunner 14"
Nov 23 15:20:21 semaphore semaphore[3373]: time="2025-11-23T15:20:21+01:00" level=info msg="Release resource locker with TaskRunner 14"
Manual installation - system information
ansible@semaphore:~$ uname -r
6.1.0-41-amd64
Configuration
No response
Additional information
No response