首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Postgres permissions.yml for fileLoad(permissions.yml) CONFIG_ERROR

Postgres permissions.yml for fileLoad(permissions.yml) CONFIG_ERROR
EN

Stack Overflow用户
提问于 2022-04-24 21:19:11
回答 1查看 28关注 0票数 0

我遵循的是https://deepstream.io/tutorials/plugins/database/postgres/,我创建了一个拥有用户james的所有者和权限的testDB

在conf/config.yml中,我有以下配置

代码语言:javascript
复制
 plugins:
  storage:
    name: postgres
    options:
      user: james
      database: testDB
      password: james
      host: localhost
      port: 5432 #postgres default post
      schema: ds #schema defaults to ds. Will be created if it doesn't exist
      max: 10 #concurrent connections
      idleTimeoutMillis: 30000 #timeout after which connection will be cut
      writeInterval: 200 #amout of milliseconds during which writes will be buffered
      notifications:
        CREATE_TABLE: true #Get notified when tables are created
        DESTROY_TABLE: true #Get notified when tables are dropped
        INSERT: true # Get notified when records are created
        UPDATE: false # Get notified when records are updated

然而,当我运行深流启动时,我得到了以下错误

从/Users/james/Workspace/deepstream.io/conf/permissions.yml (permissions.yml) fileLoad(permissions.yml) CONFIG_ERROR错误加载模块加载内容,退出

有人能告诉我我错过了什么吗。谢谢你的帮助。

打招呼,

约翰

EN

回答 1

Stack Overflow用户

发布于 2022-04-25 14:50:47

最后,我解决了这个问题,配置是正确的,只是为了确保postgres数据库和角色的正确完成。该角色需要有密码和登录。另外,我从github克隆代码,这样我就可以看到npm启动时的错误是什么。这将显示详细的错误消息。如果没有显示错误,npm测试,这将显示所有丢失的包,并尝试重新安装npm。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71992419

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档