semaphoreui / semaphore

Modern UI for Ansible, Terraform, OpenTofu, Bash, Pulumi.
https://semaphoreui.com
MIT License
10.31k stars 1.04k forks source link

Problem: Project backup files are not restored correctly #2227

Open Sombeyyy opened 1 month ago

Sombeyyy commented 1 month ago

Issue

Project backup files are not restored correctly. After importing the backup file, variables defined in the task templates have disappeared. Recreating the variables in this template results in the following error: "Invalid app_id:" image

Steps to reproduce

  1. Create a project as usual
  2. Create a template as usual and set any number of variables that are required when the playbook is started
  3. Create a backup via Dashboard -> Settings -> Backup
  4. Delete the project drom step 1 or use another semaphore instance
  5. Restore the update via "Restore project..."
  6. Check whether variables are still present
  7. Recreate the variables in the template and then save them

Impact

Other

Installation method

Docker

Database

Postgres

Browser

Microsoft Edge

Semaphore Version

v2.10.22-e44910d-1721658561

Ansible Version

No response

Logs & errors

No response

Manual installation - system information

No response

Configuration

No response

Additional information

Template before the backup image

Template after importing the backup image

kevingavran commented 1 month ago

Had the same issue. Fixed by manually adding the label in the NEW column "app" in the "project_template" table the correct app id (which is ansible)

Edit: got this issue after an update

ezekiel commented 1 month ago

This affects more than just variable modification. Semaphore fails to Run any/all Tasks in a restored project because Semaphore doesn't know what to execute: Running app failed: exec: no command.

kevingavran commented 1 month ago

Yea got it working again after altering the db

alphkn commented 3 weeks ago

same here. Is there any quick solution? restoring project completely useless now.

terman37 commented 2 weeks ago

Same for me. Restore is not working anymore since 2.10 and the ability to launch different apps.

Running app failed: exec: no command

christianbur commented 1 week ago

For me it was the browser cache, just try a different browser.