Unable to upgrade standalone unprivileged instance from 6.2.2 to 6.3.0
During a SOAR upgrade, the process may fail with the error message: "PostgreSQL version is not set when it is expected to be"
{"component": "installation_log", "time": "2024-10-15T13:38:14.550680", "logger": "install", "pid": 86948, "level": "ERROR", "file": "/app/phantom/splunk-soar/./soar-install", "line": 105, "message": "PostgreSQL version is not set when it is expected to be", "install_run_uuid": "7a58abde-babc-411c-9400-9ed3e8fgc12b”, "start_time": "2024-10-15T13:38:12.017448", "install_mode": "upgrade", "installed_version": "6.2.2.134", "proposed_version": "6.3.0.718", "deployment_type": "unpriv", "continue_from": null, "time_elapsed_since_start": 2.533304, "pretty_exc_info": ["Traceback (most recent call last):", " File \"/app/phantom/splunk-soar/./soar-install\", line 82, in main", " deployment.run()", " File \"/app/phantom/splunk-soar/install/deployments/deployment.py\", line 147, in run", " self.run_deploy()", " File \"/app/phantom/splunk-soar/usr/python39/lib/python3.9/contextlib.py\", line 79, in inner", " return func(*args, **kwds)", " File \"/app/phantom/splunk-soar/install/deployments/deployment.py\", line 215, in run_deploy", " operation.run()", " File \"/app/phantom/splunk-soar/install/operations/conditional_deployment_task.py\", line 28, in run", " if self.should_run():", " File \"/app/phantom/splunk-soar/install/operations/conditional_tasks/postgres_upgrade.py\", line 76, in should_run", " raise ValueError(\"PostgreSQL version is not set when it is expected to be\")", "ValueError: PostgreSQL version is not set when it is expected to be"]}
This error can occur even when the database is running properly and the following commands return the expected values.


Upon investigation, it was discovered that the issue was related to the database version in the .soar files in both the installer and the SOAR home directory. The version was incorrectly set to 0.0 as below.
"postgres_version": "0.0"The issue was resolved by updating the .soar files present on the below paths with the correct PostgreSQL version (example "postgres_version": "15.6").
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
29-Sep-2026
|
Initial Release |