Hello Sir,
This is my settings_local.py
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'reviewboard',
'USER': 'root',
'PASSWORD': 'xxxx',
'HOST': 'localhost',
'PORT': '3307',
},
}
# Unique secret key. Don't share this with anybody.
SECRET_KEY = '1j6wd#oic00jdgvwn6xxxxxxxxxxxxxxxxxxxxxxxxxxxx'
# Cache backend settings.
CACHE_BACKEND = 'memcached://localhost:11211/'
# Extra site information.
SITE_ID = 1
SITE_ROOT = '/'
FORCE_SCRIPT_NAME = ''
DEBUG = False
I have copied DB too.
Thanks and regards,
Harihar Pai
On Tuesday, 24 September 2013 13:46:45 UTC+5:30, Christian Hammond wrote:
>
> Hi,
>
> Sorry, been out of town.
>
> Either your database is not copied over, not referenced correctly in
> settings_local.py, or you have set SITE_ID to something other than 1 in
> settings_local.py.
>
> Christian
>
> --
> Christian Hammond - [email protected] <javascript:>
> Review Board - http://www.reviewboard.org
> Beanbag, Inc. - http://www.beanbaginc.com
>
>
> On Mon, Sep 23, 2013 at 5:36 AM, Harihar Pai <[email protected]<javascript:>
> > wrote:
>
>> Any help on this please. I am having hard time with it please help.
>>
>> Thanks and regards,
>> Harihar Pai
>>
>>
>> On Friday, 20 September 2013 15:24:23 UTC+5:30, Harihar Pai wrote:
>>>
>>> Hello Christian,
>>>
>>> Thanks for the reply . But still the problem is not solved. I did what
>>> you suggested copied the entire from /var/www/Reviewboard form production
>>> to my current location. I even took the mysql dump and put it in to test.
>>>
>>> Next while upgrading I get this.
>>> easy_install -U ReviewBoard (this runs fine)
>>>
>>> rb-site upgrade /var/www/reviewboard this runs with problem. Kindly help.
>>>
>>> ==============================**==============================**
>>> ================
>>>
>>> Traceback (most recent call last):
>>> File "/usr/local/bin/rb-site", line 9, in <module>
>>> load_entry_point('ReviewBoard=**=1.7.14', 'console_scripts',
>>> 'rb-site')()
>>> File "/usr/local/lib/python2.6/**dist-packages/ReviewBoard-1.7.**
>>> 14-py2.6.egg/reviewboard/**cmdline/rbsite.py", line 2027, in main
>>> command.run()
>>> File "/usr/local/lib/python2.6/**dist-packages/ReviewBoard-1.7.**
>>> 14-py2.6.egg/reviewboard/**cmdline/rbsite.py", line 1837, in run
>>> static_media_upgrade_needed = site.get_static_media_upgrade_**
>>> needed()
>>> File "/usr/local/lib/python2.6/**dist-packages/ReviewBoard-1.7.**
>>> 14-py2.6.egg/reviewboard/**cmdline/rbsite.py", line 385, in
>>> get_static_media_upgrade_**needed
>>> siteconfig = SiteConfiguration.objects.get_**current()
>>> File "/usr/local/lib/python2.6/**dist-packages/Djblets-0.7.18-**
>>> py2.6.egg/djblets/siteconfig/**managers.py", line 47, in get_current
>>> site = Site.objects.get_current()
>>> File "/usr/local/lib/python2.6/**dist-packages/Django-1.4.8-**
>>> py2.6.egg/django/contrib/**sites/models.py", line 25, in get_current
>>> current_site = self.get(pk=sid)
>>> File "/usr/local/lib/python2.6/**dist-packages/Django-1.4.8-**
>>> py2.6.egg/django/db/models/**manager.py", line 131, in get
>>> return self.get_query_set().get(***args, **kwargs)
>>> File "/usr/local/lib/python2.6/**dist-packages/Django-1.4.8-**
>>> py2.6.egg/django/db/models/**query.py", line 366, in get
>>> % self.model._meta.object_name)
>>> django.contrib.sites.models.**DoesNotExist: Site matching query does
>>> not exist.
>>> ==============================**==============================**
>>> ==============================**==============================**
>>> =========
>>>
>>> I don't understand what is this. Kindly help.
>>>
>>> On Wednesday, 14 August 2013 00:23:26 UTC+5:30, Christian Hammond wrote:
>>>>
>>>> Hi,
>>>>
>>>> If you're planning on using the production DB on a new system, you'll
>>>> need to treat it like an upgrade. You should copy over the database, copy
>>>> over the old site directory, and do an 'rb-site upgrade'. This assumes the
>>>> paths haven't changed. If they have, you'll need to copy over the old site
>>>> directory and then update $sitedir/conf/settings_local.**py and
>>>> $siteconfig/htdocs/**reviewboard.wsgi to point to the correct paths.
>>>>
>>>> Christian
>>>>
>>>> --
>>>> Christian Hammond - [email protected]
>>>> Review Board - http://www.reviewboard.org
>>>> Beanbag, Inc. - http://www.beanbaginc.com
>>>>
>>>>
>>>> On Tue, Aug 13, 2013 at 3:03 AM, Harihar Pai <[email protected]>wrote:
>>>>
>>>>> Hello Christian,
>>>>>
>>>>> Well what I am doing is .
>>>>>
>>>>> This is a fresh new test machine I am installing. We have production
>>>>> RB in some other machine. But I want all the DB dump of review board in
>>>>> this machine.
>>>>> So I did take the mysql dump of out production RB database and
>>>>> undumped in into new fresh machine I am working on. Secondly On the new
>>>>> machine I am installing the fresh latest RB.
>>>>>
>>>>> Thanks and regards,
>>>>> Hari
>>>>>
>>>>> On Tuesday, 13 August 2013 14:43:42 UTC+5:30, Christian Hammond wrote:
>>>>>
>>>>>> Is this intended to be a brand new install, or an upgrade? If an
>>>>>> upgrade, or if moving from one server to another, do not use 'rb-site
>>>>>> install'. Copy over the site directory (if moving), and do 'rb-site
>>>>>> upgrade'.
>>>>>>
>>>>>> The traceback says you're doing a new install, whereas you mentioned
>>>>>> that you had 1.6.3, so I suspect a new install is not what you want.
>>>>>>
>>>>>> Christian
>>>>>>
>>>>>> --
>>>>>> Christian Hammond - [email protected]
>>>>>> Review Board - http://www.reviewboard.org
>>>>>> Beanbag, Inc. - http://www.beanbaginc.com
>>>>>>
>>>>>>
>>>>>> On Tue, Aug 13, 2013 at 1:48 AM, Harihar Pai <[email protected]>wrote:
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Monday, 12 August 2013 23:17:49 UTC+5:30, Christian Hammond wrote:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> What version are you upgrading from?
>>>>>>>>
>>>>>>>> Ill need to see your settings_local.py file (with SECRET_KEY and
>>>>>>>> any other sensitive information masked).
>>>>>>>>
>>>>>>>> Christian
>>>>>>>>
>>>>>>>>
>>>>>>>> On Monday, August 12, 2013, Harihar Pai wrote:
>>>>>>>>
>>>>>>>>> I have using latest RB version . While installing I am getting
>>>>>>>>> this error
>>>>>>>>>
>>>>>>>>> Traceback (most recent call last):
>>>>>>>>> File "/usr/local/bin/rb-site", line 9, in <module>
>>>>>>>>> load_entry_point('ReviewBoard=******=1.7.12',
>>>>>>>>> 'console_scripts', 'rb-site')()
>>>>>>>>> File "/usr/local/lib/python2.6/**dist****
>>>>>>>>> -packages/ReviewBoard-1.7.**12-**p**y2.6.egg/reviewboard/**
>>>>>>>>> cmdline/**r**bsite.py", line 1937, in main
>>>>>>>>> command.run()
>>>>>>>>> File "/usr/local/lib/python2.6/**dist****
>>>>>>>>> -packages/ReviewBoard-1.7.**12-**p**y2.6.egg/reviewboard/**
>>>>>>>>> cmdline/**r**bsite.py", line 1405, in run
>>>>>>>>> self.show_install_status()
>>>>>>>>> File "/usr/local/lib/python2.6/**dist****
>>>>>>>>> -packages/ReviewBoard-1.7.**12-**p**y2.6.egg/reviewboard/**
>>>>>>>>> cmdline/**r**bsite.py", line 1684, in show_install_status
>>>>>>>>> site.sync_database)
>>>>>>>>> File "/usr/local/lib/python2.6/**dist****
>>>>>>>>> -packages/ReviewBoard-1.7.**12-**p**y2.6.egg/reviewboard/**
>>>>>>>>> cmdline/**r**bsite.py", line 885, in step
>>>>>>>>> func()
>>>>>>>>> File "/usr/local/lib/python2.6/**dist****
>>>>>>>>> -packages/ReviewBoard-1.7.**12-**p**y2.6.egg/reviewboard/**
>>>>>>>>> cmdline/**r**bsite.py", line 370, in sync_database
>>>>>>>>> self.run_manage_command("**syncd****b", params)
>>>>>>>>> File "/usr/local/lib/python2.6/**dist****
>>>>>>>>> -packages/ReviewBoard-1.7.**12-**p**y2.6.egg/reviewboard/**
>>>>>>>>> cmdline/**r**bsite.py", line 560, in run_manage_command
>>>>>>>>> execute_manager(reviewboard.**se****ttings, [__file__, cmd] +
>>>>>>>>> params)
>>>>>>>>> File "/usr/local/lib/python2.6/**dist****-packages/Django-1.4.5-
>>>>>>>>> **py2.6.**e**gg/django/core/**management/__**in**it__.py", line
>>>>>>>>> 459, in execute_manager
>>>>>>>>> utility.execute()
>>>>>>>>> File "/usr/local/lib/python2.6/**dist****-packages/Django-1.4.5-
>>>>>>>>> **py2.6.**e**gg/django/core/**management/__**in**it__.py", line
>>>>>>>>> 382, in execute
>>>>>>>>> self.fetch_command(subcommand)******.run_from_argv(self.argv)
>>>>>>>>> File "/usr/local/lib/python2.6/**dist****-packages/Django-1.4.5-
>>>>>>>>> **py2.6.**e**gg/django/core/**management/**base**.py", line 196,
>>>>>>>>> in run_from_argv
>>>>>>>>> self.execute(*args, **options.__dict__)
>>>>>>>>> File "/usr/local/lib/python2.6/**dist****-packages/Django-1.4.5-
>>>>>>>>> **py2.6.**e**gg/django/core/**management/**base**.py", line 232,
>>>>>>>>> in execute
>>>>>>>>> output = self.handle(*args, **options)
>>>>>>>>> File "/usr/local/lib/python2.6/**dist****-packages/Django-1.4.5-
>>>>>>>>> **py2.6.**e**gg/django/core/**management/**base**.py", line 371,
>>>>>>>>> in handle
>>>>>>>>> return self.handle_noargs(**options)
>>>>>>>>> File "/usr/local/lib/python2.6/**dist****-packages/Django-1.4.5-
>>>>>>>>> **py2.6.**e**gg/django/core/**management/**comm**ands/syncdb.py"**,
>>>>>>>>> line 110, in handle_noargs
>>>>>>>>> emit_post_sync_signal(created_******models, verbosity,
>>>>>>>>> interactive, db)
>>>>>>>>> File "/usr/local/lib/python2.6/**dist****-packages/Django-1.4.5-
>>>>>>>>> **py2.6.**e**gg/django/core/**management/**sql.**py", line 189,
>>>>>>>>> in emit_post_sync_signal
>>>>>>>>> interactive=interactive, db=db)
>>>>>>>>> File "/usr/local/lib/python2.6/**dist****-packages/Django-1.4.5-
>>>>>>>>> **py2.6.**e**gg/django/dispatch/**dispatcher**.**py", line 172,
>>>>>>>>> in send
>>>>>>>>> response = receiver(signal=self, sender=sender, **named)
>>>>>>>>> File "/usr/local/lib/python2.6/**dist****
>>>>>>>>> -packages/ReviewBoard-1.7.**12-**p**y2.6.egg/reviewboard/**admin/*
>>>>>>>>> *man**agement/evolutions.**py", line 58, in init_evolutions
>>>>>>>>> verbosity=0)
>>>>>>>>> File "/usr/local/lib/python2.6/**dist****-packages/Django-1.4.5-
>>>>>>>>> **py2.6.**e**gg/django/core/**management/**comm**ands/loaddata.**py",
>>>>>>>>> line 40, in handle
>>>>>>>>> connection = connections[using]
>>>>>>>>> File "/usr/local/lib/python2.6/**dist****-packages/Django-1.4.5-
>>>>>>>>> **py2.6.**e**gg/django/db/utils.py", line 87, in __getitem__
>>>>>>>>> if hasattr(self._connections, alias):
>>>>>>>>> TypeError: hasattr(): attribute name must be string
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> kindly help fast
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Want to help the Review Board project? Donate today at
>>>>>>>>> http://www.reviewboard.org/**don****ate/<http://www.reviewboard.org/donate/>
>>>>>>>>> Happy user? Let us know at
>>>>>>>>> http://www.reviewboard.org/**use****rs/<http://www.reviewboard.org/users/>
>>>>>>>>> -~----------~----~----~----~--******----~----~------~--~---
>>>>>>>>> To unsubscribe from this group, send email to
>>>>>>>>> reviewboard+unsubscribe@**google****groups.com
>>>>>>>>> For more options, visit this group at http://groups.google.com/**
>>>>>>>>> group****/reviewboard?hl=en<http://groups.google.com/group/reviewboard?hl=en>
>>>>>>>>> ---
>>>>>>>>> You received this message because you are subscribed to the Google
>>>>>>>>> Groups "reviewboard" group.
>>>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>>>> send an email to reviewboard+unsubscribe@**google****groups.com.
>>>>>>>>> For more options, visit https://groups.google.com/**grou****
>>>>>>>>> ps/opt_out <https://groups.google.com/groups/opt_out>.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> --
>>>>>>>> Christian Hammond - [email protected]
>>>>>>>>
>>>>>>>> Review Board - http://www.reviewboard.org
>>>>>>>> Beanbag, Inc. - http://www.beanbaginc.com
>>>>>>>>
>>>>>>>
>>>>>>> Sir ,
>>>>>>>
>>>>>>> I have dumped the DB of 1.6.3 RB from another machine and now I am
>>>>>>> using latest RB.
>>>>>>> my setting_local.py is as below
>>>>>>>
>>>>>>> # Site-specific configuration settings for Review Board
>>>>>>> # Definitions of these settings can be found at
>>>>>>> #
>>>>>>> http://docs.djangoproject.com/****en/dev/ref/settings/<http://docs.djangoproject.com/en/dev/ref/settings/>
>>>>>>>
>>>>>>> # Database configuration
>>>>>>> DATABASES = {
>>>>>>> 'default': {
>>>>>>> 'ENGINE': 'django.db.backends.mysql',
>>>>>>> 'NAME': 'reviewboard',
>>>>>>> 'USER': '****',
>>>>>>> 'PASSWORD': '****',
>>>>>>> 'HOST': 'localhost',
>>>>>>> 'PORT': '',
>>>>>>> },
>>>>>>> }
>>>>>>>
>>>>>>> # Unique secret key. Don't share this with anybody.
>>>>>>> SECRET_KEY = '-8l1pw9md^m&xc6a8y$#*******************'
>>>>>>>
>>>>>>> # Cache backend settings.
>>>>>>> CACHES = {
>>>>>>> 'default': {
>>>>>>> 'BACKEND': 'django.core.cache.backends.**me**
>>>>>>> mcached.MemcachedCache',
>>>>>>> 'LOCATION': '1',
>>>>>>> },
>>>>>>> }
>>>>>>>
>>>>>>> # Extra site information.
>>>>>>> SITE_ID = 1
>>>>>>> SITE_ROOT = '/'
>>>>>>> FORCE_SCRIPT_NAME = ''
>>>>>>> DEBUG = False
>>>>>>>
>>>>>>> Kindly help.
>>>>>>>
>>>>>>> Thanks and regards,
>>>>>>> Hari
>>>>>>>
>>>>>>> --
>>>>>>> Want to help the Review Board project? Donate today at
>>>>>>> http://www.reviewboard.org/**don**ate/<http://www.reviewboard.org/donate/>
>>>>>>> Happy user? Let us know at
>>>>>>> http://www.reviewboard.org/**use**rs/<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<http://groups.google.com/group/reviewboard?hl=en>
>>>>>>> ---
>>>>>>> You received this message because you are subscribed to the Google
>>>>>>> Groups "reviewboard" group.
>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>> send an email to reviewboard...@**googlegroups.**com.
>>>>>>>
>>>>>>> For more options, visit
>>>>>>> https://groups.google.com/**grou**ps/opt_out<https://groups.google.com/groups/opt_out>
>>>>>>> .
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> --
>>>>> Want to help the Review Board project? Donate today at
>>>>> http://www.reviewboard.org/**donate/<http://www.reviewboard.org/donate/>
>>>>> Happy user? Let us know at
>>>>> http://www.reviewboard.org/**users/<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<http://groups.google.com/group/reviewboard?hl=en>
>>>>> ---
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "reviewboard" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to reviewboard...@googlegroups.**com.
>>>>> For more options, visit
>>>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>>>> .
>>>>>
>>>>
>>>> --
>> Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
>> ---
>> Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
>> ---
>> Happy user? Let us know at http://www.reviewboard.org/users/
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "reviewboard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
--
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.