First time here? Check out the FAQ!

timewasted's profile - activity

2022-08-26 09:59:00 -0500 received badge Popular Question (source)
2022-08-26 09:59:00 -0500 received badge Notable Question (source)
2022-04-14 22:37:50 -0500 received badge Notable Question (source)
2016-04-18 06:28:03 -0500 received badge Notable Question (source)
2016-04-07 22:48:56 -0500 received badge Popular Question (source)
2014-10-01 09:34:37 -0500 asked a question Is there a way to rebuild the search text index?

I'm potentially way off base here since I am not sure how askbot handles searching. I'm using it for an internal knowledge base and things have been pretty good for a while, but recently we noticed that text searches don't always return good results. Is there a search text indexing job that runs or something that I need to do to refresh that?

2014-03-05 06:54:16 -0500 received badge Popular Question (source)
2013-12-06 00:15:10 -0500 received badge Famous Question (source)
2013-03-08 12:17:43 -0500 received badge Famous Question (source)
2012-09-24 16:08:22 -0500 received badge Famous Question (source)
2012-04-23 17:39:20 -0500 received badge Nice Answer ( source )
2012-04-23 11:27:01 -0500 answered a question Can we have a feed of just unanswered questions?

I just sent a pull request for this change. My commit log is here: https://github.com/markfreeman/askbot-devel/commit/46254dfb6be89280cc48fa69970cfaf7e78ca201

2012-04-17 18:36:13 -0500 received badge Scholar ( source )
2012-04-17 13:03:29 -0500 received badge Self-Learner ( source )
2012-04-17 12:44:28 -0500 answered a question Error uploading images into post

I should have waited 5 more minutes before posting. It was a perms issue. I didn't realize that askbot itself logs to the project_folder/log directory. It was using a folder I didn't expect for uploads. I corrected permissions on that and all is well.

2012-04-17 12:03:01 -0500 asked a question Error uploading images into post

Forgive me for what is probably a simple question/solution, but I am unable to upload images into post. A javascript popup comes up and I choose the local file. Then I get a message "Error uploading file. Please contact the system administrator."

I have no idea what to look at to address this. I turned on debug mode and there are no errors. I looked in my apache logs and see no errors. My settings has this for images. I created the directory and chmod'ed it to 775.

#UPLOAD SETTINGS
FILE_UPLOAD_TEMP_DIR = os.path.join(
                                os.path.dirname(__file__),
                                'tmp'
                            ).replace('\\','/')

FILE_UPLOAD_HANDLERS = (
    'django.core.files.uploadhandler.MemoryFileUploadHandler',
    'django.core.files.uploadhandler.TemporaryFileUploadHandler',
)
ASKBOT_ALLOWED_UPLOAD_FILE_TYPES = ('.jpg', '.jpeg', '.gif', '.bmp', '.png', '.tiff')
ASKBOT_MAX_UPLOAD_FILE_SIZE = 1024 * 1024 #result in bytes
DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'

FILE_UPLOAD_TEMP_DIR translates to:

>>> from django.conf import settings
>>> settings.FILE_UPLOAD_TEMP_DIR
'/home/lmeadm/Sites/askbot-site/../askbot-site/tmp'
>>>

And my directory with perms:

drwxrwxr-x 2 lmeadm lmeadm  4096 2012-04-17 11:10 tmp

I don't see any other file/upload related settings.

2012-04-17 09:46:02 -0500 received badge Supporter
2012-04-13 13:52:38 -0500 received badge Self-Learner ( source )
2012-04-13 13:52:38 -0500 received badge Teacher ( source )
2012-04-13 13:52:36 -0500 received badge Nice Question (source)
2012-04-12 16:40:11 -0500 received badge Student (source)
2012-04-12 13:04:48 -0500 answered a question ldap login works during initial login/registration, but fails to recognize existing user if relogging in.

I was able to figure this out. in askbot/deps/django_authopenid/backends.py, I had to add a line to bind to the server (our server requires authentication prior to being able to search the tree).

 32         user_filter = "({0}={1})".format(askbot_settings.LDAP_USERID_FIELD,
 33                                          username)
 34 
 35         # Attempt at doing a simple bind to the ldap server
 36         # This is needed before being alllowed to search the ldap tree
 37         ldap_session.simple_bind_s("full_path_to_admin_user", "password")
 38 
 39         # search ldap directory for user
 40         res = ldap_session.search_s(askbot_settings.LDAP_BASEDN, ldap.SCOPE_SUBTREE, user_filter, None)
2012-04-11 15:32:04 -0500 asked a question ldap login works during initial login/registration, but fails to recognize existing user if relogging in.

I'm setting up a new install of askbot and have everything working, with the exception of ldap. I can log into the system and it correctly authenticates against my ldap server, creating the user account. The problem comes in with logging out of the system. When you go to log back in, it is as if askbot doesn't recognize that the user is already registered in askbot. if you attempt to put your display name and email address back in, you get a duplicate key error.

2012-04-08 20:04:38 -0500 commented answer getting error while searching for questions from home page

Thank you very, very much. That seems to have done the trick.

2012-04-07 18:39:06 -0500 commented answer getting error while searching for questions from home page

Thank you. I will try this when I am back in the office on Monday and post back my results.

2012-04-06 12:57:57 -0500 received badge Editor (source)
2012-04-06 12:57:24 -0500 asked a question getting error while searching for questions from home page

I am evaluating askbot for use in an internal Q&A site for my team. I've got everything installed thought I was pretty much there until this. I am running django 1.3.1 and postgres 9.1.3. At first I got migration errors with ./manage.py migrate askbot. thank to http://askbot.org/en/question/6902/error-while-setting-up-askbot, I was able to get past those errors by running;

python manage.py syncdb --all
python manage.py migrate --all --fake

I can now sign in and ask questions. The problem is with searching for questions. I get this message (after putting django in debug mode). Any help getting past this is much appreciated. Here's the error:

DatabaseError at /questions/scope:all/sort:relevance-desc/query:ascii/author:1/page:1/

column askbot_thread.text_search_vector does not exist
LINE 1: ...estion'  AND "askbot_post"."deleted" = false  AND askbot_thr...
                                                             ^

Request Method:     GET
Request URL:    http://127.0.0.1:8000/questions/scope:all/sort:relevance-desc/query:ascii/author:1/page:1/
Django Version:     1.3.1
Exception Type:     DatabaseError
Exception Value:    

column askbot_thread.text_search_vector does not exist
LINE 1: ...estion'  AND "askbot_post"."deleted" = false  AND askbot_thr...
                                                             ^

Exception Location:     /usr/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py in execute, line 44
Python Executable:  /usr/bin/python
Python Version:     2.7.2
Python Path:    

['/home/markf/Programs/askbot_site',
 '/usr/lib/python2.7/site-packages/pip-1.1-py2.7.egg',
 '/usr/lib/python2.7/site-packages/distribute-0.6.25-py2.7.egg',
 '/usr/lib/python2.7/site-packages/askbot-0.7.40-py2.7.egg',
 '/usr/lib/python2.7/site-packages/lamson-1.1-py2.7.egg',
 '/usr/lib/python2.7/site-packages/html5lib-0.90-py2.7.egg',
 '/usr/lib/python2.7/site-packages/python_daemon-1.6-py2.7.egg',
 '/usr/lib/python2.7/site-packages/mock-1.0.0alpha1-py2.7.egg',
 '/usr/lib/python2.7/site-packages/lockfile-0.9.1-py2.7.egg',
 '/usr/lib/python27.zip',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/lib/python2.7/site-packages',
 '/usr/lib/python2.7/site-packages/PIL',
 '/usr/lib/python2.7/site-packages/gst-0.10',
 '/usr/lib/python2.7/site-packages/gtk-2.0',
 '/usr/lib/python2.7/site-packages/wx-2.8-gtk2-unicode',
 '/usr/lib/python2.7/site-packages/askbot-0.7.40-py2.7.egg/askbot/deps']

Server time:    Fri, 6 Apr 2012 12:44:55 -0500