slub / ocrd_manager

frontend for ocrd_controller and adapter towards ocrd_kitodo
MIT License
11 stars 3 forks source link

handle missing controller gracefully #48

Closed bertsky closed 1 year ago

bertsky commented 1 year ago

ATM if the admin forgot to activate the controller service or point to an external instance with CONTROLLER_HOST / CONTROLLER_PORT_SSH, for both entry points (for_production/presentation.sh) we have a very unfortunate behaviour:

bertsky commented 1 year ago
  • Manager logs show the workflow is started, nothing more (no error that Controller cannot be reached)

That's actually not true: the Manager logs will "unwind" from the correct error message

ocrd-manager process_images.sh: ssh: Could not resolve hostname ocrd-controller: Temporary failure in name resolution#015

That log is directly accessible as ocrd.log in the inactive job list.

  • script does not terminate

Also not true.

@SvenMarcus is there something I am missing? (I dimly recall you found the original problem...)