Re: Upgrading from 1.0 to… well… anything
Ahh, thanks Anton. That's the critical piece of information I was missing: I didn't realise easy_install was not an RB but a Python tool. I think, Christian, I may have given you the wrong impression as to how serious the problem is. So, it's all going significantly better now: I've upgraded RB to 1.6.1 (successfully, I think), and the install package did, indeed, give me an rb-site tool with which I then attempted to update my site. Unfortunately, I got this back: Rebuilding directory structure Upgrading site settings_local.py Updating database. This may take a while. C:\Python26\lib\site-packages\django-1.3.1-py2.6.egg\django\db \__init__.py:19: DeprecationWarning: settings.DATABASE_* is deprecated; use settings.DATABA SES instead. DeprecationWarning C:\Python26\lib\site-packages\django-1.3.1-py2.6.egg\django\db \__init__.py:60: DeprecationWarning: Short names for ENGINE in database configurations are deprecated. Prepend default.ENGINE with 'django.db.backends.' DeprecationWarning Traceback (most recent call last): File c:\Python26\Scripts\rb-site-script.py, line 8, in module load_entry_point('ReviewBoard==1.6.1', 'console_scripts', 'rb-site')() File C:\Python26\lib\site-packages\reviewboard-1.6.1-py2.6.egg \reviewboard\cmdline\rbsite.py, line 1747, in maincommand.run() File C:\Python26\lib\site-packages\reviewboard-1.6.1-py2.6.egg \reviewboard\cmdline\rbsite.py, line 1644, in run site.sync_database() File C:\Python26\lib\site-packages\reviewboard-1.6.1-py2.6.egg \reviewboard\cmdline\rbsite.py, line 346, in sync_database self.run_manage_command(syncdb, params) File C:\Python26\lib\site-packages\reviewboard-1.6.1-py2.6.egg \reviewboard\cmdline\rbsite.py, line 472, in run_manage_command execute_manager(reviewboard.settings, [__file__, cmd] + params) File C:\Python26\lib\site-packages\django-1.3.1-py2.6.egg\django \core\management\__init__.py, line 438, in execute_manager utility.execute() File C:\Python26\lib\site-packages\django-1.3.1-py2.6.egg\django \core\management\__init__.py, line 379, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File C:\Python26\lib\site-packages\django-1.3.1-py2.6.egg\django \core\management\base.py, line 191, in run_from_argv self.execute(*args, **options.__dict__) File C:\Python26\lib\site-packages\django-1.3.1-py2.6.egg\django \core\management\base.py, line 220, in executeoutput = self.handle(*args, **options) File C:\Python26\lib\site-packages\django-1.3.1-py2.6.egg\django \core\management\base.py, line 351, in handlereturn self.handle_noargs(**options) File C:\Python26\lib\site-packages\django-1.3.1-py2.6.egg\django \core\management\commands\syncdb.py, line 56, in handle_noargs cursor = connection.cursor() File C:\Python26\lib\site-packages\django-1.3.1-py2.6.egg\django\db \backends\__init__.py, line 250, in cursorcursor = self.make_debug_cursor(self._cursor()) File C:\Python26\lib\site-packages\django-1.3.1-py2.6.egg\django\db \backends\sqlite3\base.py, line 207, in _cursorself.connection = Database.connect(**kwargs) sqlite3.OperationalError: unable to open database file Now, I'm not sure about the rest of this, but I'm pretty sure we're running a MySQL database (at least I hope we are as that's what's been backed up) so I don't know what it's trying to open an sqlite db. Any ideas? My site seems to still be up and running so nothing too disastrous just yet. Sandeep On Sep 12, 10:56 pm, Anton Cohen an...@antoncohen.com wrote: I did an upgrade from pre-1.0 SVN to 1.5.5. The instructions are in a previous post:http://goo.gl/KFIiT Your steps will be a little different because you are using easy_install. And you might not have the missing table issue I had. easy_install is generally easy to get: Red Hat-based: yum install python-setuptools Debian-based: apt-get install python-setuptools Considering how old 1.0 is, the OS could be EOL'd, you might want to start on a new server. If you don't have spare servers/VMs, at least do the testing in a VM on your workstation. I would dump the database and restore it to a test database. And copy the site files to a test location. Then test doing upgrades of the test DB and files until you get it right. Then shutdown the real site, do a backup, then upgrade. -Anton On Mon, Sep 12, 2011 at 12:33 PM, Christian Hammond chip...@chipx86.com wrote: rb-site is provided by the ReviewBoard package, which you should install by doing easy_install -U ReviewBoard. You shouldn't need to touch the tatballs. I don't know why it was angry about setup.py, but perhaps it's just too old. Best way to back up the database is by doing an SQL dump. That varies depending on whether you're using MySQL, PostreSQL, etc. It won't be in our site directory unless you're using SQLite (which we don't recommend).- Hide quoted text - - Show quoted text - -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy
Re: Upgrading from 1.0 to… well… anything
Ok, so I made the cardinal sin of not reading everything you sent. I guess what I need to know is whether that error looks like migrating this site is the best option or whether to go with generating a new site and linking it to the old database. Thanks again for everyone's help. On Sep 13, 11:56 am, insysion s.tai...@insysion.net wrote: Ahh, thanks Anton. That's the critical piece of information I was missing: I didn't realise easy_install was not an RB but a Python tool. I think, Christian, I may have given you the wrong impression as to how serious the problem is. So, it's all going significantly better now: I've upgraded RB to 1.6.1 (successfully, I think), and the install package did, indeed, give me an rb-site tool with which I then attempted to update my site. Unfortunately, I got this back: Rebuilding directory structure Upgrading site settings_local.py Updating database. This may take a while. C:\Python26\lib\site-packages\django-1.3.1-py2.6.egg\django\db \__init__.py:19: DeprecationWarning: settings.DATABASE_* is deprecated; use settings.DATABA SES instead. DeprecationWarning C:\Python26\lib\site-packages\django-1.3.1-py2.6.egg\django\db \__init__.py:60: DeprecationWarning: Short names for ENGINE in database configurations are deprecated. Prepend default.ENGINE with 'django.db.backends.' DeprecationWarning Traceback (most recent call last): File c:\Python26\Scripts\rb-site-script.py, line 8, in module load_entry_point('ReviewBoard==1.6.1', 'console_scripts', 'rb-site')() File C:\Python26\lib\site-packages\reviewboard-1.6.1-py2.6.egg \reviewboard\cmdline\rbsite.py, line 1747, in main command.run() File C:\Python26\lib\site-packages\reviewboard-1.6.1-py2.6.egg \reviewboard\cmdline\rbsite.py, line 1644, in run site.sync_database() File C:\Python26\lib\site-packages\reviewboard-1.6.1-py2.6.egg \reviewboard\cmdline\rbsite.py, line 346, in sync_database self.run_manage_command(syncdb, params) File C:\Python26\lib\site-packages\reviewboard-1.6.1-py2.6.egg \reviewboard\cmdline\rbsite.py, line 472, in run_manage_command execute_manager(reviewboard.settings, [__file__, cmd] + params) File C:\Python26\lib\site-packages\django-1.3.1-py2.6.egg\django \core\management\__init__.py, line 438, in execute_manager utility.execute() File C:\Python26\lib\site-packages\django-1.3.1-py2.6.egg\django \core\management\__init__.py, line 379, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File C:\Python26\lib\site-packages\django-1.3.1-py2.6.egg\django \core\management\base.py, line 191, in run_from_argv self.execute(*args, **options.__dict__) File C:\Python26\lib\site-packages\django-1.3.1-py2.6.egg\django \core\management\base.py, line 220, in execute output = self.handle(*args, **options) File C:\Python26\lib\site-packages\django-1.3.1-py2.6.egg\django \core\management\base.py, line 351, in handle return self.handle_noargs(**options) File C:\Python26\lib\site-packages\django-1.3.1-py2.6.egg\django \core\management\commands\syncdb.py, line 56, in handle_noargs cursor = connection.cursor() File C:\Python26\lib\site-packages\django-1.3.1-py2.6.egg\django\db \backends\__init__.py, line 250, in cursor cursor = self.make_debug_cursor(self._cursor()) File C:\Python26\lib\site-packages\django-1.3.1-py2.6.egg\django\db \backends\sqlite3\base.py, line 207, in _cursor self.connection = Database.connect(**kwargs) sqlite3.OperationalError: unable to open database file Now, I'm not sure about the rest of this, but I'm pretty sure we're running a MySQL database (at least I hope we are as that's what's been backed up) so I don't know what it's trying to open an sqlite db. Any ideas? My site seems to still be up and running so nothing too disastrous just yet. Sandeep On Sep 12, 10:56 pm, Anton Cohen an...@antoncohen.com wrote: I did an upgrade from pre-1.0 SVN to 1.5.5. The instructions are in a previous post:http://goo.gl/KFIiT Your steps will be a little different because you are using easy_install. And you might not have the missing table issue I had. easy_install is generally easy to get: Red Hat-based: yum install python-setuptools Debian-based: apt-get install python-setuptools Considering how old 1.0 is, the OS could be EOL'd, you might want to start on a new server. If you don't have spare servers/VMs, at least do the testing in a VM on your workstation. I would dump the database and restore it to a test database. And copy the site files to a test location. Then test doing upgrades of the test DB and files until you get it right. Then shutdown the real site, do a backup, then upgrade. -Anton On Mon, Sep 12, 2011 at 12:33 PM, Christian Hammond chip...@chipx86.com wrote: rb-site is provided by the ReviewBoard package, which you should install by doing easy_install -U ReviewBoard. You shouldn't need to touch the tatballs. I don't know why
Re: Upgrading from 1.0 to… well… anything
On Tue, Sep 13, 2011 at 5:33 AM, insysion s.tai...@insysion.net wrote: Ok, so I made the cardinal sin of not reading everything you sent. I guess what I need to know is whether that error looks like migrating this site is the best option or whether to go with generating a new site and linking it to the old database. I'm not sure about the error. settings_local.py should tell you what DB you are using. I think a new site is the best way to go. By site I mean the directory structure and files created by 'rb-site install'. The directory structure and files of an old SVN pull are totally different than a new easy_install/rb-site created site. After creating the new site you point local settings at the old database (or better, a copy of the old database), and run 'rb-site upgrade' to evolve the database. You also need to copy any persistent data stored in the file system, from the old site to the new site, which as far as I know is only the stuff in htdocs/media/uploaded. -Anton -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en
Re: Upgrading from 1.0 to… well… anything
Hi, What version exactly is this? Almost sounds like a pre-1.0. Before you do anything, back up the site directory and database. Things could get hairy. Can you describe to me the steps you're doing to upgrade? setup.cfg shouldn't come into play unless you're dealing with a source tree. I'm not at a computer right now but will get back to you about turning your account into an admin account. Christian On Monday, September 12, 2011, insysion s.tai...@insysion.net wrote: I'm in a bit of a bind. Administration for Reviewboard at work has fallen to me after the previous administrator (and installer) left with well intentioned but insufficient documentation. My first problem, I'm looking to upgrade from 1.0 to 1.5 / 1.6 in order to get email notifications, however I appear to have no easy_install tool. Nor any rb-site tool. I tried installing the rb-tools as an independent release however the setup.cfg file appears to have an undocumented [egg_info] tag_build = variable that needs to be set. In addition, I have access to the local installation but only a partial admin account. Is there any way to add/reset a full admin account? All help gratefully received, insysion -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -- -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en
Re: Upgrading from 1.0 to… well… anything
Okay, to make yourself a superuser, do: $ rb-site manage /path/to/site shell from django.contrib.auth.models import User user = User.objects.get(username=your username) user.is_superuser = True user.save() Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Mon, Sep 12, 2011 at 11:28 AM, Christian Hammond chip...@chipx86.comwrote: Hi, What version exactly is this? Almost sounds like a pre-1.0. Before you do anything, back up the site directory and database. Things could get hairy. Can you describe to me the steps you're doing to upgrade? setup.cfg shouldn't come into play unless you're dealing with a source tree. I'm not at a computer right now but will get back to you about turning your account into an admin account. Christian On Monday, September 12, 2011, insysion s.tai...@insysion.net wrote: I'm in a bit of a bind. Administration for Reviewboard at work has fallen to me after the previous administrator (and installer) left with well intentioned but insufficient documentation. My first problem, I'm looking to upgrade from 1.0 to 1.5 / 1.6 in order to get email notifications, however I appear to have no easy_install tool. Nor any rb-site tool. I tried installing the rb-tools as an independent release however the setup.cfg file appears to have an undocumented [egg_info] tag_build = variable that needs to be set. In addition, I have access to the local installation but only a partial admin account. Is there any way to add/reset a full admin account? All help gratefully received, insysion -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -- -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en
Re: Upgrading from 1.0 to… well… anything
Sounds great, unfortunately first I need to get me an rb-site tool :) I've scoured the machine where RB is installed and the closest I have is an rb-site.txt describing it's use. But the tool is nowhere to be found. On Sep 12, 8:03 pm, Christian Hammond chip...@chipx86.com wrote: Okay, to make yourself a superuser, do: $ rb-site manage /path/to/site shell from django.contrib.auth.models import User user = User.objects.get(username=your username) user.is_superuser = True user.save() Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.reviewboard.org VMware, Inc. -http://www.vmware.com On Mon, Sep 12, 2011 at 11:28 AM, Christian Hammond chip...@chipx86.comwrote: Hi, What version exactly is this? Almost sounds like a pre-1.0. Before you do anything, back up the site directory and database. Things could get hairy. Can you describe to me the steps you're doing to upgrade? setup.cfg shouldn't come into play unless you're dealing with a source tree. I'm not at a computer right now but will get back to you about turning your account into an admin account. Christian On Monday, September 12, 2011, insysion s.tai...@insysion.net wrote: I'm in a bit of a bind. Administration for Reviewboard at work has fallen to me after the previous administrator (and installer) left with well intentioned but insufficient documentation. My first problem, I'm looking to upgrade from 1.0 to 1.5 / 1.6 in order to get email notifications, however I appear to have no easy_install tool. Nor any rb-site tool. I tried installing the rb-tools as an independent release however the setup.cfg file appears to have an undocumented [egg_info] tag_build = variable that needs to be set. In addition, I have access to the local installation but only a partial admin account. Is there any way to add/reset a full admin account? All help gratefully received, insysion -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know athttp://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -- -- Christian Hammond - chip...@chipx86.com Review Board -http://www.reviewboard.org VMware, Inc. -http://www.vmware.com- Hide quoted text - - Show quoted text - -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en
Re: Upgrading from 1.0 to… well… anything
Hi, rb-site is provided by the ReviewBoard package, which you should install by doing easy_install -U ReviewBoard. You shouldn't need to touch the tatballs. I don't know why it was angry about setup.py, but perhaps it's just too old. Best way to back up the database is by doing an SQL dump. That varies depending on whether you're using MySQL, PostreSQL, etc. It won't be in our site directory unless you're using SQLite (which we don't recommend). Christian On Monday, September 12, 2011, insysion s.tai...@insysion.net wrote: Hi Christian, In the Admin control panel, the server information says Review Board 1.0. The EGG-INFO/PKG-INFO doesn't really elaborate: Metadata-Version: 1.0 Name: ReviewBoard Version: 1.0 Summary: Review Board, a web-based code review tool Home-page: http://www.review-board.org/ Author: Christian Hammond Author-email: chip...@chipx86.com License: MIT Download-URL: http://downloads.review-board.org/releases/ Description: UNKNOWN Platform: UNKNOWN Classifier: Development Status :: 4 - Beta Classifier: Environment :: Web Environment Classifier: Framework :: Django Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: MIT License Classifier: Natural Language :: English Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python Classifier: Topic :: Software Development Classifier: Topic :: Software Development :: Quality Assurance So far all I've done is realise I'm missing the easy_install and rb- site tools and have tried to get one of those by trying to install the latest rb-tools from http://downloads.reviewboard.org/releases/RBTools/ and running python setup.py install which throws up a python exception down to the missing tag in the setup.cfg. With regards to backing up, I've back up the site directory and the associates SVN respository however I'm not sure I've backed up the reviews database. Where in the directory structure would that live? Warm regards, insysion On Sep 12, 7:28 pm, Christian Hammond chip...@chipx86.com wrote: Hi, What version exactly is this? Almost sounds like a pre-1.0. Before you do anything, back up the site directory and database. Things could get hairy. Can you describe to me the steps you're doing to upgrade? setup.cfg shouldn't come into play unless you're dealing with a source tree. I'm not at a computer right now but will get back to you about turning your account into an admin account. Christian On Monday, September 12, 2011, insysion s.tai...@insysion.net wrote: I'm in a bit of a bind. Administration for Reviewboard at work has fallen to me after the previous administrator (and installer) left with well intentioned but insufficient documentation. My first problem, I'm looking to upgrade from 1.0 to 1.5 / 1.6 in order to get email notifications, however I appear to have no easy_install tool. Nor any rb-site tool. I tried installing the rb-tools as an independent release however the setup.cfg file appears to have an undocumented [egg_info] tag_build = variable that needs to be set. In addition, I have access to the local installation but only a partial admin account. Is there any way to add/reset a full admin account? All help gratefully received, insysion -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know athttp:// www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -- -- Christian Hammond - chip...@chipx86.com Review Board -http://www.reviewboard.org VMware, Inc. -http://www.vmware.com- Hide quoted text - - Show quoted text - -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -- -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en
Re: Upgrading from 1.0 to… well… anything
I did an upgrade from pre-1.0 SVN to 1.5.5. The instructions are in a previous post: http://goo.gl/KFIiT Your steps will be a little different because you are using easy_install. And you might not have the missing table issue I had. easy_install is generally easy to get: Red Hat-based: yum install python-setuptools Debian-based: apt-get install python-setuptools Considering how old 1.0 is, the OS could be EOL'd, you might want to start on a new server. If you don't have spare servers/VMs, at least do the testing in a VM on your workstation. I would dump the database and restore it to a test database. And copy the site files to a test location. Then test doing upgrades of the test DB and files until you get it right. Then shutdown the real site, do a backup, then upgrade. -Anton On Mon, Sep 12, 2011 at 12:33 PM, Christian Hammond chip...@chipx86.com wrote: rb-site is provided by the ReviewBoard package, which you should install by doing easy_install -U ReviewBoard. You shouldn't need to touch the tatballs. I don't know why it was angry about setup.py, but perhaps it's just too old. Best way to back up the database is by doing an SQL dump. That varies depending on whether you're using MySQL, PostreSQL, etc. It won't be in our site directory unless you're using SQLite (which we don't recommend). -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en