首页 > 技术文章 > konga 安装中遇到的问题总结

alonewaiting 2021-01-11 19:57 原文

1,konga 连不上数据库

解决方式:DB_URI中写入用户名和密码
DB_URI=postgresql://kong:kong1234@*******:5432/kong


2,[解决]npm ERR! code ELIFECYCLE
解决方式:
npm cache clean --force
rm -rf node_modules
rm -rf package-lock.json
npm install
npm start


3,登录页面登录不上
默认登录名admin,密码是三个admin

4,error: relation "public.konga_users" does not exist
解决方式:
.env中的模式应该改为NODE_ENV=production 改成development
https://github.com/pantsel/konga/issues/40
This issue is created as a reference.
Sails js - the framework Konga is built upon - won't let the app alter database tables when running in production mode.
This is a failsafe to protect against inadvertently damaging your production data during deployment.
More info here .
To get around that for now, you will need to start Konga in develoment mode the first time only. That way the app will be able to create the needed db tables.
You can do that by setting the NODE_ENV environment variable to development

推荐阅读