Error Message: 'FATAL: invalid value for parameter "TimeZone": "Asia/Calcutta"
Cause
This error occurs when the PostgreSQL server returns a timezone value that the AppManager JVM does not recognize.
Troubleshooting
Run the following query on the PostgreSQL server you are trying to add as a monitor:
Resolution
Case 1:
If the result of the SHOW TimeZone query is Asia/Calcutta, update it to Asia/Kolkata, then try adding the PostgreSQL monitor again.
Case 2:
Set the correct timezone for the AppManager service:
- Open <AppManager_Home>/working/conf/wrapper.conf
Add (or update) the following entry:
wrapper.java.additional.33=-Duser.timezone=Asia/Kolkata
- Save the file and restart Applications Manager.
Verification
After restarting the service, try re-adding the PostgreSQL monitor. The connection should now succeed without the 'TimeZone' parameter error.
Ensure that:
- The server OS timezone,
- The PostgreSQL configuration (postgresql.conf → timezone), and
- The JVM timezone (in wrapper.conf)
are consistent and use valid timezone identifiers.