尝试安装 reddit 时在 Ubuntu 中运行 Paster shell example.ini 时出现问题

发布于 2024-10-06 18:15:04 字数 419 浏览 0 评论 0原文

当我尝试运行 Paster shell example.ini 时,我遇到:

connection failure: TLEngine(postgres://reddit/[email protected]/reddit)

后面跟着一长串回溯列表。

最后,我得到:

FATAL: password authentication failed for user "reddit"

有人能帮我解决这个问题吗?非常感谢任何帮助。谢谢!

When I try to run paster shell example.ini, I run into:

connection failure: TLEngine(postgres://reddit/[email protected]/reddit)

followed by a laundry list of traceback.

At the end, I get:

FATAL: password authentication failed for user "reddit"

Would anyone be able to help me resolve this issue? Any help is much appreciated. Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

时光与爱终年不遇 2024-10-13 18:15:04

Reddit 设置指南 似乎已经过时了。我在两台不同的机器上遇到了与您完全相同的问题。

以下是我克服它的方法:

$ sudo su - postgresq
$ psql reddit
reddit=# CREATE USER reddit WITH PASSWORD 'password';

我查看了 example.ini 文件,reddit/password 是数据库的默认用户名/密码。此时,如果您重新运行命令 (paster shell example.ini),它应该会成功完成。

公平警告,过了这一点之后,此设置还会出现更多问题,但我自己还没有克服这些问题。

祝你好运,朋友!

The Reddit Setup Guide seems to be out of date or something. I had the exact same problem as you on two different machines.

Here's how I overcame it:

$ sudo su - postgresq
$ psql reddit
reddit=# CREATE USER reddit WITH PASSWORD 'password';

I looked in the example.ini file and reddit/password was the default username/password for the DB. At this point, if you re-run your command (paster shell example.ini), it should complete successfully.

Fair warning, there are more problems with this setup after you get past this point, but I haven't yet conquered those myself.

Best of luck, friend!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文