Unable to login to RB Site as any user

627 views
Skip to first unread message

Prashant

unread,
Jan 31, 2011, 10:11:43 AM1/31/11
to reviewboard
Hi,

I recently changed the IP Address of my Linux Box hosting the RB Site.
Post to this, I am unable to login as any user.

I tried to reset the password using :
$ rb-site manage /path/to/site shell
>>> from django.contrib.auth.models import User
>>> u = User.objects.get(username="admin")
>>> u.set_password("the new password")
>>> u.save()

But still cannot login. I am using :
OS : Ubuntu 10.04 LTS - 32 bit
Web Server : Apache/2.2.14 (Ubuntu)
Database : MySQL - 5.1.41-3ubuntu12
Python : 2.6.5
RB : 1.5.2
Djblets : 0.6.7-py2.6
django.VERSION : (1, 2, 1, 'final', 0)

I also have AD / LDAP Authentification enabled

The /path/to/site/conf/settings_local.py is :
# Database configuration
DATABASE_ENGINE = 'mysql'
DATABASE_NAME = 'reviewboard'
DATABASE_USER = 'root'
DATABASE_PASSWORD = 'xyzpcs'
DATABASE_HOST = 'localhost'
DATABASE_PORT = ''
#

The /etc/apache2/sites-enabled/rb_site.conf is
==========================================================
<VirtualHost *:80>
ServerName cr.mydomain.com
DocumentRoot "/path/to/site/htdocs"
# Error handlers
ErrorDocument 500 /errordocs/500.html
# Serve django pages
<Location "/">
PythonPath "['/path/to/site/conf'] + sys.path"
SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings
SetEnv PYTHON_EGG_CACHE "/path/to/site/tmp/egg_cache"
SetEnv HOME "/path/to/site/data"
SetHandler mod_python
PythonHandler django.core.handlers.modpython
PythonAutoReload Off
PythonDebug Off
# Used to run multiple mod_python sites in the same
apache
PythonInterpreter reviewboard_cr_digi_com
</Location>
# Serve static media without running it through mod_python
# (overrides the above)
<Location "/media">
SetHandler None
</Location>
<Location "/errordocs">
SetHandler None
</Location>
<Directory "/path/to/site/htdocs">
AllowOverride All
</Directory>
# Alias static media requests to filesystem
Alias /media "/path/to/site/htdocs/media"
Alias /errordocs "/path/to/site/htdocs/errordocs"
</VirtualHost>
======================================================

There are no errors in the Apache & RB Site Logs

Please help me resolve this

Christian Hammond

unread,
Jan 31, 2011, 3:53:58 PM1/31/11
to revie...@googlegroups.com
Authentication will be going through your AD server. Sounds like some
configuration or communication problem there?

You should be able to log in as the original admin user. If so, turn
on logging (assuming it's off) and see if it says there are issues
talking to your AD server.

Christian

> --
> Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/
> Happy user? Let us know at http://www.reviewboard.org/users/
> -~----------~----~----~----~------~----~------~--~---
> To unsubscribe from this group, send email to reviewboard...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en

--
--
Christian Hammond - chi...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com

Prashant

unread,
Feb 1, 2011, 5:41:15 AM2/1/11
to reviewboard
I am unable to login locally as "admin" user. I created a new super-
user, but that also does not help. I created the new super-user as

$ rb-site manage /path/to/site createsuperuser

Is there a configuration file which I can hand-edit which I can refer
and reflect any changes ?

Prashant

unread,
Feb 2, 2011, 11:22:40 AM2/2/11
to reviewboard
Any help would be great !!!

Christian Hammond

unread,
Feb 2, 2011, 2:53:25 PM2/2/11
to revie...@googlegroups.com
Authentication is supposed to fall through to the local database when you can't access through LDAP/AD. So, something is going horribly wrong.

The only way to reset your authentication is to do:

1) Run rb-site manage /path/to/site shell
2) Type:

    from djblets.siteconfig.models import SiteConfiguration
    siteconfig = SiteConfiguration.objects.get_current()
    siteconfig.set('auth_backend', 'builtin')
    siteconfig.save()


You may then have to restart Apache.

From there, you should be able to log back in as your admin user, turn on logging, and try to figure out where it's going wrong.

Christian


--
Christian Hammond - chi...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com



--

Prashant

unread,
Feb 2, 2011, 11:26:21 PM2/2/11
to reviewboard
Sucess ... With that change I was able to login into the Site.

The AD authentification which was working earlier had been turned off
due to the above setting. I turned it on and AD authentification
started working. The AD name server were all in DNS name and not any
IP Addresses.

The logging was turned on. When I checked the log for the earlier
attempts, it has printed nothing. There are repeated entries like :
==========================================================================
Feb. 1, 2011
16:01:18 INFO Logging to /path/to/site/logs/reviewboard.log with a
minimum level of DEBUG
16:01:18 INFO Log file for Review Board v1.5.2 (PID 8901)
Feb. 2, 2011
13:55:30 INFO Logging to /path/to/site/logs/reviewboard.log with a
minimum level of DEBUG
13:55:30 INFO Log file for Review Board v1.5.2 (PID 14739)
13:57:27 INFO Logging to /path/to/site/logs/reviewboard.log with a
minimum level of DEBUG
13:57:27 INFO Log file for Review Board v1.5.2 (PID 20021)
21:58:01 INFO Logging to /path/to/site/logs/reviewboard.log with a
minimum level of DEBUG
21:58:01 INFO Log file for Review Board v1.5.2 (PID 20026)
Feb. 3, 2011
09:22:52 INFO Logging to /path/to/site/logs/reviewboard.log with a
minimum level of DEBUG
09:22:52 INFO Log file for Review Board v1.5.2 (PID 25530)
09:23:00 INFO Logging to /path/to/site/logs/reviewboard.log with a
minimum level of DEBUG
09:23:00 INFO Log file for Review Board v1.5.2 (PID 25529)
09:23:00 INFO Logging to /path/to/site/logs/reviewboard.log with a
minimum level of DEBUG
09:23:00 INFO Log file for Review Board v1.5.2 (PID 25531)
==========================================================================

I wonder what went wrong !!!

Christian Hammond

unread,
Feb 2, 2011, 11:54:19 PM2/2/11
to revie...@googlegroups.com
Don't know what broke, but I'm glad it's working now :)

Christian

> --
> Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/
> Happy user? Let us know at http://www.reviewboard.org/users/
> -~----------~----~----~----~------~----~------~--~---
> To unsubscribe from this group, send email to reviewboard...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en

--

Reply all
Reply to author
Forward
0 new messages