从H2切换到Postgres后,Corda无法找到现有表

时间:2019-03-21 10:11:54

标签: postgresql corda

在我的corda(4.0版)环境中,我配置了一个postgres数据库(docker“ postgres:11-alpine”)而不是H2;据我所知,我的流程正常运行;但是数据库日志当前显示错误消息如下所示;两个提到的表public.databasechangeloglocknode_checkpoints都在那儿并且可以通过数据库工具选择;我必须配置什么?

2019-03-21T09:45:51.883686800Z 2019-03-21 09:45:51.922 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 2019-03-21 09:45:51.922 UTC [1] LOG: listening on IPv6 address "::", port 5432 2019-03-21 09:45:51.930 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" 2019-03-21 09:45:52.055 UTC [40] LOG: database system was shut down at 2019-03-21 09:45:51 UTC 2019-03-21 09:45:52.095 UTC [1] LOG: database system is ready to accept connections 2019-03-21 09:47:12.376 UTC [48] ERROR: relation "node_checkpoints" does not exist at character 22 2019-03-21 09:47:12.376 UTC [48] STATEMENT: select count(*) from node_checkpoints 2019-03-21 09:47:31.346 UTC [48] ERROR: relation "public.databasechangeloglock" does not exist at character 22 2019-03-21 09:47:31.346 UTC [48] STATEMENT: select count(*) from public.databasechangeloglock

我的node.conf是:

myLegalName="O=XYZ,L=Frankfurt,C=DE"
p2pAddress="issuer:10010"
rpcSettings {
    address="issuer:10011"
    adminAddress="issuer:10012"
}
security {
    authService {
        dataSource {
            type=INMEMORY
            users=[
                {
                    password=test
                    permissions=[
                        ALL
                    ]
                    user=user1
                }
            ]
        }
    }
}

dataSourceProperties: {
    dataSourceClassName: "org.postgresql.ds.PGSimpleDataSource",
    dataSource.url: "jdbc:postgresql://postgres-xyz:5432/postgres?currentSchema=public",
    dataSource.user: "xyz",
    dataSource.password: "xyz",
    dataSource.currentSchema: "public"
}
database: {
    transactionIsolationLevel: "READ_COMMITTED"
}

0 个答案:

没有答案
相关问题