Hi
On log i found
1: ERROR:The upgrade of the instance "DB2EPD" has failed. The return value is "2".
1: ERROR:An error occurred while configuring the instance "DB2EPD".
Action 14:46:54: DB2CustomAction. Configuring DB2 instances
1: Configuring DB2 instances:.......Failure
Action 14:46:54: DB2CustomAction. Configuring DB2 extended security
1: ERROR:SQL1390C The environment variable DB2INSTANCE is not defined or is invalid.
Below links will help you to fix the issue,
Connect to database not possible | SCN
Thanks
Sadiq