Have you tested this?

`$settings['metadata']['admin']` is not set and `site_path/login` is not a valid route in `anchor/routes/admin.php`