Ask Your Question

alci's profile - activity

2015-09-21 01:24:34 -0500 received badge  Notable Question (source)
2014-11-20 06:35:52 -0500 received badge  Famous Question (source)
2014-10-08 11:54:41 -0500 received badge  Popular Question (source)
2014-05-02 06:20:28 -0500 received badge  Famous Question (source)
2014-02-21 05:13:34 -0500 received badge  Editor (source)
2014-02-21 04:27:53 -0500 answered a question Cannot login after install

I think I forgot to configure the BaseURL in settings to make it work. Or maybe, missed for migration on the db. Anyway I reinstalled and it now works. Clossing the question.

2014-02-21 04:24:51 -0500 asked a question How to configure Askbot to run behind reverse-proxy ?

I have Askbot setup on a server, and running fine on our internal network. Now I need to make it available in our extranet, meaning make the server accessible from the internet.

I have an Apache2 server with reverse-proxy acting as an entry point for our extranet applications, with several of them already running (vtiger, wordpress, roundcube, ...).

So I am trying to get Askbot working from behind this reverse proxy.

Here is my setup on the reverse-proxy:

<VirtualHost *:443>
    ServerName mydomain.com
    ServerAlias www.mydomain.com
    SSLEngine on
    SSLCertificateFile    /etc/ssl/certs/mydomain.com.crt
    SSLCertificateKeyFile /etc/ssl/private/mydomain.com.key
    SSLCertificateChainFile /etc/ssl/certs/mydomain.com.ca-bundle
    SSLProxyEngine On

    <Location /evolution>
            ProxyPass h t t p://192.168.1.17/
            ProxyPassReverse h t t p://192.168.1.17/
    </Location>
</VirtualHost>

On the Askbot side, I have set this in BaseURL:

BaseURL h t t p://192.168.1.17/evolution/"

When coming from the internet, I get the following error:

The requested URL /evolutionaccount/signin/ was not found on this server.

A slash is missing. Adding it manually in my url make things kind of work, that I get the page, altough the css seems to be missing...

So here is my question: how should I setup Askbot to work behind my reverse-proxy (maybe some parameter in settings.py?)

2014-02-21 02:17:42 -0500 received badge  Enthusiast
2014-02-11 11:19:04 -0500 answered a question Fresh Installation migration errors

I just went through the very same process, with same output... Reading this QA site, I came accross this command,

python manage.py syncdb --migrate --noinput

which seems to work better than the

python manage.py migrate askbot python manage.py migrate django_authopenid

found in the installation doc.

It seemed to work for me (although I'm stuck later, not being able to login, which is another problem).

2014-02-11 11:08:42 -0500 asked a question Cannot login after install

After installing Askbot on a (virtual) Ubuntu box, I have it running in debug mode with sudo python manage.py runserver 192.168.1.17:8000

I can create new users, and the first user I created was ganted admin rights, which was expected. Once logged in, I could go to settings, etc...

My problem is that after I logout, I cannot login anymore. When I click on "Hi here, please sign in", I get a login page, and server says:

[11/Feb/2014 11:05:48] "POST /compte/connexion/ HTTP/1.1" 200 19517 [11/Feb/2014 11:05:48] "GET /m/default/media/style/style.css?v=1 HTTP/1.1" 304 0 [11/Feb/2014 11:05:48] "GET /m/default/media/bootstrap/css/bootstrap.css?v=1 HTTP/1.1" 304 0 [11/Feb/2014 11:05:48] "GET /m/default/media/jquery-openid/openid.css?v=1 HTTP/1.1" 304 0 [11/Feb/2014 11:05:48] "GET /m/default/media/js/modernizr.custom.js?v=1 HTTP/1.1" 304 0 [11/Feb/2014 11:05:48] "GET /jsi18n/ HTTP/1.1" 200 16984 [11/Feb/2014 11:05:48] "GET /m/default/media/js/jquery-1.7.2.min.js?v=1 HTTP/1.1" 304 0 [11/Feb/2014 11:05:48] "GET /m/default/media/bootstrap/js/bootstrap.js?v=1 HTTP/1.1" 304 0 [11/Feb/2014 11:05:48] "GET /m/default/media/js/jquery.history.js?v=1 HTTP/1.1" 304 0 [11/Feb/2014 11:05:48] "GET /m/default/media/js/utils.js?v=1 HTTP/1.1" 304 0 [11/Feb/2014 11:05:48] "GET /m/default/media/js/live_search.js?v=1 HTTP/1.1" 304 0 [11/Feb/2014 11:05:48] "GET /m/default/media/js/jquery.validate.min.js?v=1 HTTP/1.1" 304 0 [11/Feb/2014 11:05:48] "GET /m/default/media/jquery-openid/jquery.openid.js?v=1 HTTP/1.1" 304 0

I type in my login and password, hit the login button, and... nothing happens. After a while, I get this on the server side:


Exception happened during processing of request from ('10.0.0.80', 60917) Traceback (most recent call last): File "/usr/lib/python2.7/SocketServer.py", line 582, in process_request_thread self.finish_request(request, client_address) File "/usr/lib/python2.7/SocketServer.py", line 323, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python2.7/dist-packages/django/core/servers/basehttp.py", line 150, in __init__ super(WSGIRequestHandler, self).__init__(args, *kwargs) File "/usr/lib/python2.7/SocketServer.py", line 638, in __init__ self.handle() File "/usr/lib/python2.7/wsgiref/simple_server.py", line 116, in handle self.raw_requestline = self.rfile.readline() File "/usr/lib/python2.7/socket.py", line 447, in readline data = self._sock.recv(self._rbufsize)

timeout: timed out

Any idea of what is happening ?