[英]Postgres permissions.yml for fileLoad(permissions.yml) CONFIG_ERROR
I am following the https://deepstream.io/tutorials/plugins/database/postgres/ I have create a testDB with owner and permission to user james我正在关注https://deepstream.io/tutorials/plugins/database/postgres/我已经创建了一个拥有所有者和用户 james 权限的 testDB
In the conf/config.yml, I have the following configuration在 conf/config.yml 中,我有以下配置
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
However, when I run deepstream start, I got the following error但是,当我运行 deepstream start 时,出现以下错误
CONFIG_TRANSFORM |配置转换 | Loaded content from /Users/james/Workspace/deepstream.io/conf/permissions.yml for fileLoad(permissions.yml) CONFIG_ERROR |
从 /Users/james/Workspace/deepstream.io/conf/permissions.yml 加载内容以获取 fileLoad(permissions.yml) CONFIG_ERROR | Error loading module, exiting
加载模块时出错,正在退出
Could someone please tell me what I have missed.有人可以告诉我我错过了什么。 Thank you for your help.
谢谢您的帮助。
regards,问候,
Johan约翰
finally, I solved the problem, the configuration is correct, just to make sure that the postgres database and the role is done properly.最后,我解决了问题,配置正确,只是为了确保 postgres 数据库和角色正确完成。 The role needs to have a password and also LOGIN.
该角色需要有密码和登录名。 Also, I clone the codes from github, so I can see what the error is when npm start.
另外,我从 github 克隆了代码,所以我可以看到 npm 启动时的错误是什么。 This will shows you verbose error message.
这将向您显示详细的错误消息。 If no error shown, npm test, this will show you all the missing packages and try to npm install again
如果没有错误显示,npm 测试,这将显示所有丢失的包并尝试 npm 再次安装
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.