-
Notifications
You must be signed in to change notification settings - Fork 2.9k
FAQ
The CPAL. See https://github.com/reddit/reddit/blob/master/LICENSE
$ sudo svstat /service/*
Look for services that have an uptime much smaller than the rest of the services. Once you’ve found one, check its logs for errors
$ tail -F /service/broken-service/log/main/current
<table> <thead> <tr><th>Error</th><th>Resolution</th></tr> </thead> <tbody> <tr> <td>ImportError: No module named wrapped</td> <td> You need to compile the Cython modules.
$ cd ~/reddit/r2
$ make
$ sudo easy_install "webhelpers==0.6.4"
reddit$ su postgres
postgres$ dropuser reddit
postgres$ createuser -P reddit
At the moment, S3 is required for thumbnails. We are willing to accept patches that would allow you to choose where to store them.
By default, there are no accounts. Create an account and add it to the admins
line in example.ini
. If you populate the database using populatedb
it will generate an account called reddit
with password password
which is in the list of admins by default.
Most browsers won’t deal with cookies from a domain that doesn’t contain dots. For example, http://localhost
will not work, while http://reddit.local
or http://127.0.0.1
will. Make sure you update the .ini file accordingly!
By default, the link to the form for subreddit creation is hidden for accounts newer than 30 days. This was done because a large number of new users were confused about what creating a reddit meant and would use the form to try and post links. The form can be accessed at any time by going to /reddits/create
. It’s also possible to configure the minimum age an account must have to be able to see the link by tweaking the [min_membership_create_community
](https://github.com/reddit/reddit/blob/master/r2/example.ini#L326) property. Setting this value to 0 will allow all users to see the link.
update_reddits.sh
needs to be run. See [[Cron Jobs]] for more information on what this does.
Check that domain
in the ini file matches the domain that you’re accessing your reddit clone with.
The dropdown is only rendered if the current user is subscribed to more than sr_dropdown_threshold
subreddits (see example.ini
.) The default threshold is 15 subreddits.
reddit used to use [Solr](http://lucene.apache.org/solr/) for its search needs, but [switched](http://blog.reddit.com/2010/07/new-search.html) to using [IndexTank](http://indextank.com/) in July 2010. The code for searching with Solr still exists in the repository, but is inactive. A third party running a reddit clone could either create a patch that reactivates Solr, or get an IndexTank account.
If you don’t have INDEXTANK_API_URL
in run.ini set to a valid URL, searching will fail with the following error.
<type 'exceptions.TypeError'>: unsupported operand type(s) for +: 'NoneType' and 'str'
To use IndexTank, you must create an index named "main" on IndexTank, or change the name of the index in /r2/r2/lib/indextank.py line 45 from "main" to your index’s name. # Why doesn’t subreddit search or the "related" tab work?
Solr is still used for subreddit search and the "related" tab. This is transitional until we convert completely to IndexTank. The install script does not currently install or configure Solr and so neither of these features will work until that is done.