Could not fetch the UserContext for a getPatientByUuid() Call from EMRAPI module

I got similar error in the past OpenMRS login page and the fix was to set default location by clicking on the My Profile on the legacy OpenMRS UI. But obvously this need to be set automatically during installation.