开发者

Problems running paster shell example.ini in Ubuntu while trying to install reddit

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

conn开发者_如何转开发ection failure: TLEngine(postgres://reddit/password@127.0.0.1/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!


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!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜