Hi Christian,

Thank you for your quick reply. To get my setup up and running I used a backup 
and created links to the real directories. I'll try your fix when my colleages 
don't try to access ReviewBoard.

Sleep well,
François Beerten.

________________________________
From: reviewboard@googlegroups.com [mailto:reviewbo...@googlegroups.com] On 
Behalf Of Christian Hammond
Sent: vendredi 2 janvier 2009 12:20
To: reviewboard@googlegroups.com
Subject: Re: JSONField decode error.

Hi,

Sorry you ran into this. I have some code I just put into Djblets SVN that will 
hopefully help recover from this. I need to add bullet-proofing to prevent 
saving a SiteConfiguration from the admin UI, though. In the future, you should 
go to the Settings page to change these paths.

You can try the following to fix your install. Just in case, back up your 
database first.

1) Run: rb-site manage /path/to/your/site shell
2) Type:
>>> djblets.siteconfig.models import SiteConfiguration
>>> siteconfig.settings = eval(siteconfig.settings)
>>> siteconfig.save()

This will hopefully fix your setup. If not, let me know. (It's 3:20 AM here, so 
I won't be up much longer).

Christian

--
Christian Hammond - chip...@chipx86.com<mailto:chip...@chipx86.com>
VMware, Inc.


On Fri, Jan 2, 2009 at 2:36 AM, François Beerten 
<francois.beer...@euresys.com<mailto:francois.beer...@euresys.com>> wrote:
Hi,

After moving and updating from a ReviewBoard SVN installation to a rb-site 
installation, the site still used bad paths for htdocs/media and alike. I 
wanted to fix those in "Home<http://lisette.euresys.com/admin/db/> > 
Siteconfig<http://lisette.euresys.com/admin/db/siteconfig/> > Site 
configurations<http://lisette.euresys.com/admin/db/siteconfig/siteconfiguration/>
 >" in the admin interface of django. Unfortunately, after editing those 
ReviewBoard fails miserably with this error:

2009-01-02 02:05:54,986 - WARNING - JSONField decode error. Expected dictionary,
 got string for input '"{u'mail_host_password': u'', u'cache_backend': u'locmem:
//',
*** CROPPED FOR BRIEVITY AND SECURITY REASONS ***
 u'site_admin_name': u'Example Joe'}"'

After that, the only way to get ReviewBoard running again is to use a backup 
copy of the database. The database uses SQLite. The versions used are:
  ReviewBoard-0.9.dev_20081230-py2.4.egg
  Djblets-0.4.dev_20081230-py2.4.egg
  Django-1.0.2_final-py2.4.egg
  django_evolution-0.0.0-py2.4.egg

The error is raised in djblets/utils/fields.py. A comment says:

        # XXX We need to investigate why this is happening once we have
        #     a solid repro case.

Saving a change in the Django admin interface is a reproducible way to get the 
error. I tried several times. Unfortunately, I dont't know Django and Djblets 
well enough to fix this. (And my colleages don't like it when I break the DB :) 
)

Happy new year,
Francois Beerten.




________________________________

The information contained in this message or any of its attachments may be 
privileged and confidential and intended for the exclusive use of the 
addressee. If you are not the addressee any disclosure, reproduction, 
distribution or other dissemination or use of this communication is strictly 
prohibited. If you have received this transmission by error please notify the 
sender immediately and then delete this email. EURESYS shall not be liable for 
any loss of or damage to revenues, profits, goodwill, data, information systems 
or other special, incidental, indirect, consequential or punitive damages of 
any kind arising in connection with the use of information contained in this 
mail or its attachments. Email transmission cannot be guaranteed to be secure 
or error free as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses. The sender therefore is in no 
way liable for any errors or omissions in the content of this message, which 
may arise as a result of email transmission. If verification is required, 
please request a hard copy. Please note that neither EURESYS, nor the sender 
accepts any responsibility for viruses and it is your responsibility to scan 
attachments (if any).






________________________________

The information contained in this message or any of its attachments may be 
privileged and confidential and intended for the exclusive use of the 
addressee. If you are not the addressee any disclosure, reproduction, 
distribution or other dissemination or use of this communication is strictly 
prohibited. If you have received this transmission by error please notify the 
sender immediately and then delete this email. EURESYS shall not be liable for 
any loss of or damage to revenues, profits, goodwill, data, information systems 
or other special, incidental, indirect, consequential or punitive damages of 
any kind arising in connection with the use of information contained in this 
mail or its attachments. Email transmission cannot be guaranteed to be secure 
or error free as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses. The sender therefore is in no 
way liable for any errors or omissions in the content of this message, which 
may arise as a result of email transmission. If verification is required, 
please request a hard copy. Please note that neither EURESYS, nor the sender 
accepts any responsibility for viruses and it is your responsibility to scan 
attachments (if any).

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To post to this group, send email to reviewboard@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to