-
web | 218.82.136.139 - - [10/Apr/2023:09:13:46 +0000] "POST /api/chat_stream HTTP/1.1" 500 61 "http://1x:8084/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36" "-" |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
chatgpt 答案, 你看一下docker-compose 里面你的 PG_USER This error message usually occurs when trying to access PostgreSQL database using the root user. To fix this error, you need to create a new PostgreSQL user with administrative privileges and grant access to the database. Here is an example code snippet to create a new user and grant administrative access: CREATE USER new_user WITH PASSWORD 'password';
ALTER ROLE new_user CREATEDB;
GRANT ALL PRIVILEGES ON DATABASE my_database TO new_user; In the above code, replace "new_user" with the desired username and "password" with the desired password. Also, replace "my_database" with the name of your PostgreSQL database. Once you have created the new user and granted access, you can connect to the database using the new user credentials instead of root. |
Beta Was this translation helpful? Give feedback.
-
https://github.com/swuecho/chat/actions/runs/4655410555/jobs/8238056235 看了下测试的log, 也有类似的问题, 貌似这个 root user 不影响. 确认一下你的 api key 是否正确, 有效. 贴一下你的 docker-compose file |
Beta Was this translation helpful? Give feedback.
-
root user 不影响注册和登录。就是一直报比较烦人
|
Beta Was this translation helpful? Give feedback.
-
去掉 “ docker 这个地方比较坑 |
Beta Was this translation helpful? Give feedback.
-
解决 FATAL: role "root" does not exist |
Beta Was this translation helpful? Give feedback.
去掉 “
docker 这个地方比较坑