VMware Cloud Community
aliguo
Contributor
Contributor

Issue on vCD 9 installation using psql db

Hi guys, did anyone try out the install using a PSQL backed DB? Im facing this issue:

017-10-09 16:39:07,078 | DEBUG    | main                      | RawSQLTask

             | Executing sql 'CREATE AGGREGATE max(value BOOLEAN) (

SFUNC=boolor_statefunc,

STYPE=bool,

SORTOP='>'

);' |

2017-10-09 16:39:07,083 | WARN     | main                      | SerialAggregateTask            | Func_Proc.sql: Task failed due to uncaught exception |

org.postgresql.util.PSQLException: ERROR: syntax error at or near "BOOLEAN"

  Position: 28

        at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2477)

        at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2190)

        at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:300)

...

        at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:428)

        at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:354)

        at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:301)

        at org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:287)

        at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:264)

        at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:260)

        at com.vmware.upgrade.sql.task.RawSQLTask.call(RawSQLTask.java:125)

        at com.vmware.upgrade.task.SerialAggregateTask.call(SerialAggregateTask.java:65)

        at com.vmware.upgrade.task.AbstractDelegatingTask.doCall(AbstractDelegatingTask.java:144)

        at com.vmware.upgrade.task.AbstractDelegatingTask.call(AbstractDelegatingTask.java:123)

        at com.vmware.vcloud.upgrade.tasks.ViewRefreshTask.call(ViewRefreshTask.java:63)

        ... 20 more

2017-10-09 16:39:07,088 | DEBUG    | main                      | LoggingProgressListener        | database initialization and upgrade Received progress report: com.vmware.upgrade.progress.impl.ImmutableProgressReport@401f81b4 {state: FAILED, progress: 64%} |

0 Kudos
2 Replies
mjha
Hot Shot
Hot Shot

A somewhat similar config. Please see my post on this

http://www.vstellar.com/2017/10/02/migrate-vcloud-director-9-0-db-from-mssql-to-postgres/

Please consider marking this answer "correct" or "helpful" if you think your query have been answered correctly. Manish Jha | Operations Support Engineer | vCloud Air Operations vExpert 2015-17 | vExpert-NSX | vExpert-Cloud | VCAP6-DCV | VCP6-DCV | RHCE-7 Website : http://vstellar.com
CMS201110141
Contributor
Contributor

Thanks Manish Jha,

I did encounter the same issue as allugo and just had missed the fact that PostgreSQL needs to be version 9.5 (the version included in CentOS 7 is just 9.2.x).

After installing PSQL 9.5 the DB configuration completed successfully.

Good thing your article did mention the version requirement already in the first paragraph! Smiley Happy

Regards,

  CM

0 Kudos