shieldproject / shield

A standalone system that can perform backup and restore functions for a wide variety of pluggable data systems
MIT License
367 stars 69 forks source link

UI shows inconsistency when shield restore itself while running [BUG] #689

Open xiujiao opened 4 years ago

xiujiao commented 4 years ago

Describe the bug The restore task shows green on the side which means success. While when you click the task log, it shows

EXITING 4
ERR> remote execution failed: Process exited with status 4

Use shield cli to check the jobs that I modified on purpose to test restore, it shows it did not restore successfully.

*To Reproduce When we configure shield backup for shield itself, we use shield URL with http://ip, then with core ca-cert set and skip-ssl-verify to false.

Expected behavior The sideline should be red instead of green when the job fails. If it can give more information on why it fails in the log, it will be a plus. When we change the shield core URL to https://ip , with ca cert and skip-ssl-verify to false, the restore works. If the error message can indicate the configuration error, it will be more helpful.

SHIELD versions (please complete the following information):

Browser version(s) (please complete if reporting a web UI bug):