3019: Cannot upgrade site configured with sqlite3

ste****@gallaghe********* (Google Code) (Is this you? Claim this profile.)
Jan. 28, 2014
What version are you running?
ReviewBoard 1.7.9
DJblets 0.7.15

What's the URL of the page containing the problem?
N/A

What steps will reproduce the problem?

1) Create a new virtualenv and activate it:
virtualenv ~/workspace/rb-sqlite
source ~/workspace/rb-sqlite/bin/activate

2) Install ReviewBoard 1.7.9 (I did this so I could test upgrading to 1.7.10)
easy_install ReviewBoard==1.7.9

3) Install a ReviewBoard site using sqlite:
rb-site install /home/sgallagh/workspace/rb-sqlite/site \
       --noinput --domain-name=sgallagh520.home \
       --site-root=/ --db-type=sqlite3 --cache-type=file \
       --cache-info=/home/sgallagh/sites/site1/cache \
       --web-server-type=apache --python-loader=wsgi \
       --admin-user=admin --admin-password=****** \
       --admin-email=sgallagh@redhat.com

4) Attempt to run an upgrade[*]
rb-site upgrade /home/sgallagh/workspace/rb-sqlite


[*] I was originally going to do easy_install ReviewBoard==1.7.10 here, but it wasn't necessary. The same thing occurs if I *do* upgrade to 1.7.10.


What is the expected output? What do you see instead?
This should report that the software is already fully up to date (when upgrading to 1.7.9) or perform the upgrade (when upgrading to 1.7.10).

Instead, I get the traceback attached.

What operating system are you using? What browser?
Fedora 19, x86_64 with python 2.7.5

Please provide any additional information below.

With 'rb-site manage <site> dbshell', I can see that:

sqlite> select * from django_site;
1|sgallagh520.home|example.com
Traceback (most recent call last):
  File "/home/sgallagh/workspace/rb-sqlite/bin/rb-site", line 8, in <module>
    load_entry_point('ReviewBoard==1.7.9', 'console_scripts', 'rb-site')()
  File "/home/sgallagh/workspace/rb-sqlite/lib/python2.7/site-packages/ReviewBoard-1.7.9-py2.7.egg/reviewboard/cmdline/rbsite.py", line 1937, in main
    command.run()
  File "/home/sgallagh/workspace/rb-sqlite/lib/python2.7/site-packages/ReviewBoard-1.7.9-py2.7.egg/reviewboard/cmdline/rbsite.py", line 1762, in run
    static_media_upgrade_needed = site.get_static_media_upgrade_needed()
  File "/home/sgallagh/workspace/rb-sqlite/lib/python2.7/site-packages/ReviewBoard-1.7.9-py2.7.egg/reviewboard/cmdline/rbsite.py", line 383, in get_static_media_upgrade_needed
    siteconfig = SiteConfiguration.objects.get_current()
  File "/home/sgallagh/workspace/rb-sqlite/lib/python2.7/site-packages/Djblets-0.7.15-py2.7.egg/djblets/siteconfig/managers.py", line 47, in get_current
    site = Site.objects.get_current()
david
#1 david
Hmm. Stephen, has this been an issue lately? I can't reproduce it.
  • +NeedInfo
  • +Component-RB-Site
#2 ste****@gallaghe********* (Google Code) (Is this you? Claim this profile.)
I haven't seen it lately either. May have worked itself out at some point. I'll reopen this bug if it reappears.
david
#3 david
  • -NeedInfo
    +Fixed