semaphoreui / semaphore

Modern UI and powerful API for Ansible, Terraform, OpenTofu, PowerShell and other DevOps tools.
https://semaphoreui.com
MIT License
10.7k stars 1.07k forks source link

Problem: Tasks not start #2365

Open kszyma opened 1 month ago

kszyma commented 1 month ago

Issue

I have a several templates in severals environments. When i try to start one, i get

8:49:38 AM Task 217 added to queue 8:49:39 AM Started: 217 8:49:39 AM Run TaskRunner with template: Turn on Puppet

But the nothing else happens.

Impact

Service (scheduled tasks, alerts)

Installation method

Package

Database

MySQL

Browser

Chrome, Microsoft Edge

Semaphore Version

2.10.22-e44910d-1721658299

Ansible Version

ansible 2.9.6
  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/dist-packages/ansible
  executable location = /usr/bin/ansible
  python version = 3.8.10 (default, Sep 11 2024, 16:02:53) [GCC 9.4.0]

Logs & errors

Sep 27 08:49:19 example.host systemd[1]: Started Semaphore Ansible. Sep 27 08:49:19 example.host semaphore[4181838]: Loading config Sep 27 08:49:19 example.host semaphore[4181838]: Validating config Sep 27 08:49:19 example.host semaphore[4181838]: MySQL ansiblesemaphore@127.0.0.1:3306 ansiblesemaphore Sep 27 08:49:19 example.host semaphore[4181838]: Tmp Path (projects home) /opt/Software/ansible-semaphore Sep 27 08:49:19 example.host semaphore[4181838]: Semaphore 2.10.22-e44910d-1721658299 Sep 27 08:49:19 example.host semaphore[4181838]: Interface Sep 27 08:49:19 example.host semaphore[4181838]: Port :3000 Sep 27 08:49:19 example.host semaphore[4181838]: Server is running Sep 27 08:49:38 example.host semaphore[4181838]: time="2024-09-27T08:49:38+02:00" level=info msg="Task 217 added to queue" Sep 27 08:49:39 example.host semaphore[4181838]: time="2024-09-27T08:49:39+02:00" level=info msg="Set resource locker with TaskRunner 217" Sep 27 08:49:39 example.host semaphore[4181838]: time="2024-09-27T08:49:39+02:00" level=info msg="Task 217 removed from queu

Manual installation - system information

Kemp Loadmaster

Configuration

{
        "mysql": {
                "host": "127.0.0.1:3306",
                "user": "user",
                "pass": "xx",
                "name": "dd",
                "options": null
        },
        "bolt": {
                "host": "",
                "user": "",
                "pass": "",
                "name": "",
                "options": null
        },
        "postgres": {
                "host": "",
                "user": "",
                "pass": "",
                "name": "",
                "options": null
        },
        "dialect": "mysql",
        "port": "",
        "interface": "",
        "tmp_path": "/opt/Software/ansible-semaphore",
        "cookie_hash": "xxx",
        "cookie_encryption": "xxx",
        "access_key_encryption": "xxx",
        "email_sender": "semaphore@localhost",
        "email_host": "localhost",
        "email_port": "25",
        "email_username": "",
        "email_password": "",
        "web_host": "",
        "ldap_binddn": "",
        "ldap_bindpassword": "",
        "ldap_server": "",
        "ldap_searchdn": "",
        "ldap_searchfilter": "",
        "ldap_mappings": {
                "dn": "",
                "mail": "",
                "uid": "",
                "cn": ""
        },
        "use_remote_runner": true,
        "runner_registration_token": "xxx",
        "telegram_chat": "",
        "telegram_token": "",
        "slack_url": "",
        "max_parallel_tasks": 0,
        "email_alert": true,
        "email_secure": false,
        "telegram_alert": false,
        "slack_alert": false,
        "ldap_enable": false,
        "ldap_needtls": false,
        "ssh_config_path": "",
        "demo_mode": false,
        "git_client": ""
 }
`
{
        "mysql": {
                "host": "127.0.0.1:3306",
                "user": "user",
                "pass": "xx",
                "name": "dd",
                "options": null
        },
        "bolt": {
                "host": "",
                "user": "",
                "pass": "",
                "name": "",
                "options": null
        },
        "postgres": {
                "host": "",
                "user": "",
                "pass": "",
                "name": "",
                "options": null
        },
        "dialect": "mysql",
        "port": "",
        "interface": "",
        "tmp_path": "/opt/Software/ansible-semaphore",
        "cookie_hash": "xxx",
        "cookie_encryption": "xxx",
        "access_key_encryption": "xxx",
        "email_sender": "semaphore@localhost",
        "email_host": "localhost",
        "email_port": "25",
        "email_username": "",
        "email_password": "",
        "web_host": "",
        "ldap_binddn": "",
        "ldap_bindpassword": "",
        "ldap_server": "",
        "ldap_searchdn": "",
        "ldap_searchfilter": "",
        "ldap_mappings": {
                "dn": "",
                "mail": "",
                "uid": "",
                "cn": ""
        },
        "use_remote_runner": true,
        "runner_registration_token": "xxx",
        "telegram_chat": "",
        "telegram_token": "",
        "slack_url": "",
        "max_parallel_tasks": 0,
        "email_alert": true,
        "email_secure": false,
        "telegram_alert": false,
        "slack_alert": false,
        "ldap_enable": false,
        "ldap_needtls": false,
        "ssh_config_path": "",
        "demo_mode": false,
        "git_client": ""
 }

Additional information

No response

Hassensgh69 commented 1 month ago

Hello I have the same problem and I don't understand why. Can someone help me ?

fiftin commented 1 month ago

@Hassensgh69 please provide more details.

fiftin commented 1 month ago

hi @kszyma did you solve the issue?

fiftin commented 1 month ago

@kszyma is it whole log?

image

Hassensgh69 commented 1 month ago

@Hassensgh69 please provide more details.

When I try to launch the playbook the task runs without ever stopping image

Hassensgh69 commented 1 month ago

@Hassensgh69 please provide more details.

When I try to launch the playbook the task runs without ever stopping image

It's now been 30 minutes whereas before I reinstalled semaphore on a new server it was less than a minute

kszyma commented 1 month ago

hi @kszyma did you solve the issue?

Hi,

no, same problem.

kszyma commented 1 month ago

@kszyma is it whole log?

image

Hi,

yes, this is the full log.

kszyma commented 1 month ago

Ah...OK..i have more Information: I try to use a external runner:

use_remote_runner: true

and set a token. Today set use_remote_runner to false and everything works like before.

Maybe a bug when using remote runners ?

kszyma commented 1 month ago

Hi,

is there any suggestion how to solve the problem ?

Thanks :)

kszyma commented 1 month ago

I upgrade to 2.10.32. But same problem:

Set use_remote_runner to true => No job starts anymore Set use_remote_runner to false=> All job starts (ofcourse without the "runnerjobs)