Re: Clearcase Repository

2011-07-08 Thread Marcel Skalický
Hello Jan,

good news! with wsgi we made it work. i can now upload diff for
checkouted file! many thanks for your great help.

now i need to get back to my --tracking option question. i got error
for cleartool get. i am pretty sure it is because it is trying to get
copy of directory, but cleartool get is working only for files.

regards
marcel

2011/7/7 Jan Koprowski :
> marcel,
>
> 2011/7/7 Marcel Skalický :
>> jan,
>>
>> i am not sure what do you mean with "context of one group". does this
>> mean apache must have proper group as its primary?
>
> It is quite complicated. It is not must be primary group but process
> in unix system can be deprived of some groups which could be possible
> in theory because this user is member of this group but they are not
> part of process working in operating system.
>
> I will suggest You to set this by "supplemetary-groups" option in
> mod_wsgi and leave primary group in peace but this option was not
> release yet and will be released with mod_wsgi 4.0.
>
> There is hope changing primary group for mod_wsgi application helps.
>
>> i have found in reviewboard server logs it can see size of diff.
>
> I do not have idea what does it mean. Is this diff very big? You can
> try do something very simple and send something small using
>
> post-review 
> --revision-range="vobs/vob/file.c@@/main/5;vobs/vob/file.c@@/main/6"
> and check it works or not.
>
>> i think there is standard cgi used. i will focus on this tomorrow. it
>> seems like loaded friday...
>
> Standard CGI should have option to change group too but by default
> this group is inherited from Apache process as far as i know.
>
> Good luck!
> --
> Jan
>
>> -- marcel
>>
>> 2011/7/7 Jan Koprowski :
>>> marcel,
>>>
>>>  It is good news: path is good, and www-user can read it but Apache
>>> or Python can't.
>>> As far as I know Apache server process run only in context of one
>>> group - not more.
>>>
>>> Did You restart Apache server after You add appropriate groups to
>>> www-user? I am only checking :)
>>>
>>> I hope You are using mod_wsgi because it looks like this can be the
>>> only way to run clearcase properly.
>>> There is 
>>> http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIDaemonProcess
>>> property which allow you to choose different user and different group
>>> for python application run by mod_wsgi. Try to set appropriate group
>>> setting this inside your Review Board VirtualHost. I hope this help.
>>>
>>> Run post-review with --debug option and put whole output - without
>>> this further help can be very hard.
>>>
>>> P.S. Weather is not bad right now but last days it raining all the time.
>>>
>>> Greetings from Poland!
>>> --
>>> Jan
>>>
>>> 2011/7/7 Marcel Skalický :
 hello jan,

 i am now off (is there so bloody hot weather in poland too?), but i am
 pretty sure, i already tested all these things except double cat.

 apache is added into proper group, cat on long clearcase-like path to file
 works.

 now i have an idea, kries did checkout for test.txt file and i think he has
 another primary group... but if cat works... i need to check this tomorrow.

 many thanks for now,
 marcelmarcel

 Dne 7.7.2011 18:35 "Jan Koprowski"  napsal(a):

 --
 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
>>>
>>>
>>>
>>> --
<> Jan Koprowski
>>>
>>> --
>>> 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
>>
>> --
>> 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
>
>
>
> --
>><> Jan Koprowski
>
> --
> 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/gr

Re: Clearcase Repository

2011-07-08 Thread Jan Koprowski
Marcel,

  Fantastic :) I'm so glad it works.

  I'm confused. Where do You use --tracking. In dynamic or in snapshot view?


2011/7/8 Marcel Skalický :
> Hello Jan,
>
> good news! with wsgi we made it work. i can now upload diff for
> checkouted file! many thanks for your great help.
>
> now i need to get back to my --tracking option question. i got error
> for cleartool get. i am pretty sure it is because it is trying to get
> copy of directory, but cleartool get is working only for files.
>
> regards
> marcel
>
> 2011/7/7 Jan Koprowski :
>> marcel,
>>
>> 2011/7/7 Marcel Skalický :
>>> jan,
>>>
>>> i am not sure what do you mean with "context of one group". does this
>>> mean apache must have proper group as its primary?
>>
>> It is quite complicated. It is not must be primary group but process
>> in unix system can be deprived of some groups which could be possible
>> in theory because this user is member of this group but they are not
>> part of process working in operating system.
>>
>> I will suggest You to set this by "supplemetary-groups" option in
>> mod_wsgi and leave primary group in peace but this option was not
>> release yet and will be released with mod_wsgi 4.0.
>>
>> There is hope changing primary group for mod_wsgi application helps.
>>
>>> i have found in reviewboard server logs it can see size of diff.
>>
>> I do not have idea what does it mean. Is this diff very big? You can
>> try do something very simple and send something small using
>>
>> post-review 
>> --revision-range="vobs/vob/file.c@@/main/5;vobs/vob/file.c@@/main/6"
>> and check it works or not.
>>
>>> i think there is standard cgi used. i will focus on this tomorrow. it
>>> seems like loaded friday...
>>
>> Standard CGI should have option to change group too but by default
>> this group is inherited from Apache process as far as i know.
>>
>> Good luck!
>> --
>> Jan
>>
>>> -- marcel
>>>
>>> 2011/7/7 Jan Koprowski :
 marcel,

  It is good news: path is good, and www-user can read it but Apache
 or Python can't.
 As far as I know Apache server process run only in context of one
 group - not more.

 Did You restart Apache server after You add appropriate groups to
 www-user? I am only checking :)

 I hope You are using mod_wsgi because it looks like this can be the
 only way to run clearcase properly.
 There is 
 http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIDaemonProcess
 property which allow you to choose different user and different group
 for python application run by mod_wsgi. Try to set appropriate group
 setting this inside your Review Board VirtualHost. I hope this help.

 Run post-review with --debug option and put whole output - without
 this further help can be very hard.

 P.S. Weather is not bad right now but last days it raining all the time.

 Greetings from Poland!
 --
 Jan

 2011/7/7 Marcel Skalický :
> hello jan,
>
> i am now off (is there so bloody hot weather in poland too?), but i am
> pretty sure, i already tested all these things except double cat.
>
> apache is added into proper group, cat on long clearcase-like path to file
> works.
>
> now i have an idea, kries did checkout for test.txt file and i think he 
> has
> another primary group... but if cat works... i need to check this 
> tomorrow.
>
> many thanks for now,
> marcelmarcel
>
> Dne 7.7.2011 18:35 "Jan Koprowski"  napsal(a):
>
> --
> 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



 --
><> Jan Koprowski

 --
 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
>>>
>>> --
>>> 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
>>
>>
>>
>> --
>>><> Jan Koprowski
>>
>> --
>> Want to help the Review Board project? Donate today at 
>>

Re: Clearcase Repository

2011-07-08 Thread Marcel Skalický
jan,

it was in dynamic view. i suppose it is used for copy version of file
for doing diff.

i have tried --tracking because my goal is to get all changes made on
one branch. if it is possible to do this without checkout, because
some changes are done on another site and such checkouts will
complicate process.

do you have any advice for me how to get there?

thanks
marcel


2011/7/8 Jan Koprowski :
> Marcel,
>
>  Fantastic :) I'm so glad it works.
>
>  I'm confused. Where do You use --tracking. In dynamic or in snapshot view?
>
>
> 2011/7/8 Marcel Skalický :
>> Hello Jan,
>>
>> good news! with wsgi we made it work. i can now upload diff for
>> checkouted file! many thanks for your great help.
>>
>> now i need to get back to my --tracking option question. i got error
>> for cleartool get. i am pretty sure it is because it is trying to get
>> copy of directory, but cleartool get is working only for files.
>>
>> regards
>> marcel
>>
>> 2011/7/7 Jan Koprowski :
>>> marcel,
>>>
>>> 2011/7/7 Marcel Skalický :
 jan,

 i am not sure what do you mean with "context of one group". does this
 mean apache must have proper group as its primary?
>>>
>>> It is quite complicated. It is not must be primary group but process
>>> in unix system can be deprived of some groups which could be possible
>>> in theory because this user is member of this group but they are not
>>> part of process working in operating system.
>>>
>>> I will suggest You to set this by "supplemetary-groups" option in
>>> mod_wsgi and leave primary group in peace but this option was not
>>> release yet and will be released with mod_wsgi 4.0.
>>>
>>> There is hope changing primary group for mod_wsgi application helps.
>>>
 i have found in reviewboard server logs it can see size of diff.
>>>
>>> I do not have idea what does it mean. Is this diff very big? You can
>>> try do something very simple and send something small using
>>>
>>> post-review 
>>> --revision-range="vobs/vob/file.c@@/main/5;vobs/vob/file.c@@/main/6"
>>> and check it works or not.
>>>
 i think there is standard cgi used. i will focus on this tomorrow. it
 seems like loaded friday...
>>>
>>> Standard CGI should have option to change group too but by default
>>> this group is inherited from Apache process as far as i know.
>>>
>>> Good luck!
>>> --
>>> Jan
>>>
 -- marcel

 2011/7/7 Jan Koprowski :
> marcel,
>
>  It is good news: path is good, and www-user can read it but Apache
> or Python can't.
> As far as I know Apache server process run only in context of one
> group - not more.
>
> Did You restart Apache server after You add appropriate groups to
> www-user? I am only checking :)
>
> I hope You are using mod_wsgi because it looks like this can be the
> only way to run clearcase properly.
> There is 
> http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIDaemonProcess
> property which allow you to choose different user and different group
> for python application run by mod_wsgi. Try to set appropriate group
> setting this inside your Review Board VirtualHost. I hope this help.
>
> Run post-review with --debug option and put whole output - without
> this further help can be very hard.
>
> P.S. Weather is not bad right now but last days it raining all the time.
>
> Greetings from Poland!
> --
> Jan
>
> 2011/7/7 Marcel Skalický :
>> hello jan,
>>
>> i am now off (is there so bloody hot weather in poland too?), but i am
>> pretty sure, i already tested all these things except double cat.
>>
>> apache is added into proper group, cat on long clearcase-like path to 
>> file
>> works.
>>
>> now i have an idea, kries did checkout for test.txt file and i think he 
>> has
>> another primary group... but if cat works... i need to check this 
>> tomorrow.
>>
>> many thanks for now,
>> marcelmarcel
>>
>> Dne 7.7.2011 18:35 "Jan Koprowski"  napsal(a):
>>
>> --
>> 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
>
>
>
> --
>><> Jan Koprowski
>
> --
> 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/rev

Re: Clearcase Repository

2011-07-08 Thread Jan Koprowski
Marcel,

  I do not have any idea how it is possible. In my configuration
cleartool does not ask about files because dynamic view provide all
files, branches, labels "just like that". My knwoledge about clearcase
told me this is very strange behaviour for clearcase and You. I
suspect this can be some configuration/administration detail but I am
not aware this far in clearcase so I can not help You. Maybe IT guys
will be able to help You.
  It looks like (which is strange) view You are using does not have
knowledge about all files and try to fetch missing files but as far as
i know dynamic views always know everything :| so it is strange and
defienitly different then behaviour I see in my dynamic view.

Sorry but I can not help You in this case.

Greetings!

Jan

2011/7/8 Marcel Skalický :
> jan,
>
> it was in dynamic view. i suppose it is used for copy version of file
> for doing diff.
>
> i have tried --tracking because my goal is to get all changes made on
> one branch. if it is possible to do this without checkout, because
> some changes are done on another site and such checkouts will
> complicate process.
>
> do you have any advice for me how to get there?
>
> thanks
> marcel
>
>
> 2011/7/8 Jan Koprowski :
>> Marcel,
>>
>>  Fantastic :) I'm so glad it works.
>>
>>  I'm confused. Where do You use --tracking. In dynamic or in snapshot view?
>>
>>
>> 2011/7/8 Marcel Skalický :
>>> Hello Jan,
>>>
>>> good news! with wsgi we made it work. i can now upload diff for
>>> checkouted file! many thanks for your great help.
>>>
>>> now i need to get back to my --tracking option question. i got error
>>> for cleartool get. i am pretty sure it is because it is trying to get
>>> copy of directory, but cleartool get is working only for files.
>>>
>>> regards
>>> marcel
>>>
>>> 2011/7/7 Jan Koprowski :
 marcel,

 2011/7/7 Marcel Skalický :
> jan,
>
> i am not sure what do you mean with "context of one group". does this
> mean apache must have proper group as its primary?

 It is quite complicated. It is not must be primary group but process
 in unix system can be deprived of some groups which could be possible
 in theory because this user is member of this group but they are not
 part of process working in operating system.

 I will suggest You to set this by "supplemetary-groups" option in
 mod_wsgi and leave primary group in peace but this option was not
 release yet and will be released with mod_wsgi 4.0.

 There is hope changing primary group for mod_wsgi application helps.

> i have found in reviewboard server logs it can see size of diff.

 I do not have idea what does it mean. Is this diff very big? You can
 try do something very simple and send something small using

 post-review 
 --revision-range="vobs/vob/file.c@@/main/5;vobs/vob/file.c@@/main/6"
 and check it works or not.

> i think there is standard cgi used. i will focus on this tomorrow. it
> seems like loaded friday...

 Standard CGI should have option to change group too but by default
 this group is inherited from Apache process as far as i know.

 Good luck!
 --
 Jan

> -- marcel
>
> 2011/7/7 Jan Koprowski :
>> marcel,
>>
>>  It is good news: path is good, and www-user can read it but Apache
>> or Python can't.
>> As far as I know Apache server process run only in context of one
>> group - not more.
>>
>> Did You restart Apache server after You add appropriate groups to
>> www-user? I am only checking :)
>>
>> I hope You are using mod_wsgi because it looks like this can be the
>> only way to run clearcase properly.
>> There is 
>> http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIDaemonProcess
>> property which allow you to choose different user and different group
>> for python application run by mod_wsgi. Try to set appropriate group
>> setting this inside your Review Board VirtualHost. I hope this help.
>>
>> Run post-review with --debug option and put whole output - without
>> this further help can be very hard.
>>
>> P.S. Weather is not bad right now but last days it raining all the time.
>>
>> Greetings from Poland!
>> --
>> Jan
>>
>> 2011/7/7 Marcel Skalický :
>>> hello jan,
>>>
>>> i am now off (is there so bloody hot weather in poland too?), but i am
>>> pretty sure, i already tested all these things except double cat.
>>>
>>> apache is added into proper group, cat on long clearcase-like path to 
>>> file
>>> works.
>>>
>>> now i have an idea, kries did checkout for test.txt file and i think he 
>>> has
>>> another primary group... but if cat works... i need to check this 
>>> tomorrow.
>>>
>>> many thanks for now,
>>> marcelmarcel
>>>
>>> Dne 7.7.2011 18:35 "Jan Koprowski"  napsal(

Re: Clearcase Repository

2011-07-08 Thread Jan Koprowski
* "for clearcase and You should contact with Your IT department to ask
about details."

sorry :)

On Fri, Jul 8, 2011 at 5:52 PM, Jan Koprowski  wrote:
> Marcel,
>
>  I do not have any idea how it is possible. In my configuration
> cleartool does not ask about files because dynamic view provide all
> files, branches, labels "just like that". My knwoledge about clearcase
> told me this is very strange behaviour for clearcase and You. I
> suspect this can be some configuration/administration detail but I am
> not aware this far in clearcase so I can not help You. Maybe IT guys
> will be able to help You.
>  It looks like (which is strange) view You are using does not have
> knowledge about all files and try to fetch missing files but as far as
> i know dynamic views always know everything :| so it is strange and
> defienitly different then behaviour I see in my dynamic view.
>
> Sorry but I can not help You in this case.
>
> Greetings!
>
> Jan
>
> 2011/7/8 Marcel Skalický :
>> jan,
>>
>> it was in dynamic view. i suppose it is used for copy version of file
>> for doing diff.
>>
>> i have tried --tracking because my goal is to get all changes made on
>> one branch. if it is possible to do this without checkout, because
>> some changes are done on another site and such checkouts will
>> complicate process.
>>
>> do you have any advice for me how to get there?
>>
>> thanks
>> marcel
>>
>>
>> 2011/7/8 Jan Koprowski :
>>> Marcel,
>>>
>>>  Fantastic :) I'm so glad it works.
>>>
>>>  I'm confused. Where do You use --tracking. In dynamic or in snapshot view?
>>>
>>>
>>> 2011/7/8 Marcel Skalický :
 Hello Jan,

 good news! with wsgi we made it work. i can now upload diff for
 checkouted file! many thanks for your great help.

 now i need to get back to my --tracking option question. i got error
 for cleartool get. i am pretty sure it is because it is trying to get
 copy of directory, but cleartool get is working only for files.

 regards
 marcel

 2011/7/7 Jan Koprowski :
> marcel,
>
> 2011/7/7 Marcel Skalický :
>> jan,
>>
>> i am not sure what do you mean with "context of one group". does this
>> mean apache must have proper group as its primary?
>
> It is quite complicated. It is not must be primary group but process
> in unix system can be deprived of some groups which could be possible
> in theory because this user is member of this group but they are not
> part of process working in operating system.
>
> I will suggest You to set this by "supplemetary-groups" option in
> mod_wsgi and leave primary group in peace but this option was not
> release yet and will be released with mod_wsgi 4.0.
>
> There is hope changing primary group for mod_wsgi application helps.
>
>> i have found in reviewboard server logs it can see size of diff.
>
> I do not have idea what does it mean. Is this diff very big? You can
> try do something very simple and send something small using
>
> post-review 
> --revision-range="vobs/vob/file.c@@/main/5;vobs/vob/file.c@@/main/6"
> and check it works or not.
>
>> i think there is standard cgi used. i will focus on this tomorrow. it
>> seems like loaded friday...
>
> Standard CGI should have option to change group too but by default
> this group is inherited from Apache process as far as i know.
>
> Good luck!
> --
> Jan
>
>> -- marcel
>>
>> 2011/7/7 Jan Koprowski :
>>> marcel,
>>>
>>>  It is good news: path is good, and www-user can read it but Apache
>>> or Python can't.
>>> As far as I know Apache server process run only in context of one
>>> group - not more.
>>>
>>> Did You restart Apache server after You add appropriate groups to
>>> www-user? I am only checking :)
>>>
>>> I hope You are using mod_wsgi because it looks like this can be the
>>> only way to run clearcase properly.
>>> There is 
>>> http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIDaemonProcess
>>> property which allow you to choose different user and different group
>>> for python application run by mod_wsgi. Try to set appropriate group
>>> setting this inside your Review Board VirtualHost. I hope this help.
>>>
>>> Run post-review with --debug option and put whole output - without
>>> this further help can be very hard.
>>>
>>> P.S. Weather is not bad right now but last days it raining all the time.
>>>
>>> Greetings from Poland!
>>> --
>>> Jan
>>>
>>> 2011/7/7 Marcel Skalický :
 hello jan,

 i am now off (is there so bloody hot weather in poland too?), but i am
 pretty sure, i already tested all these things except double cat.

 apache is added into proper group, cat on long clearcase-like path to 
 file
 works.


Problem encountered during site upgrade from 1.5 to 1.5.5

2011-07-08 Thread Dan Brook
The problem at hand is this error when upgrading a site:

$ sudo rb-site upgrade /path/to/site
Rebuilding directory structure
Updating database. This may take a while.
There are unapplied evolutions for diffviewer.
There are unapplied evolutions for reviews.
There are unapplied evolutions for scmtools.
Project signature has changed - an evolution is required
No fixtures found.
/usr/lib/python2.4/site-packages/pycrypto-2.3-py2.4-linux-i686.egg/
Crypto/Util/randpool.py:40: RandomPool_DeprecationWarning: This
application uses RandomPool, which is BROKEN in older releases.  See
http://www.pycrypto.org/randpool-broken
Error: Error applying evolution: column "basedir" of relation
"diffviewer_diffset" already exists

I had already updated ReviewBoard with easy_install from 1.5 to 1.5.3
and then 1.5.3 to 1.5.5 (IIRC) but had forgotten to upgrade the site
during those updates which I suspect is the cause of the problem.

Doing the naive thing and dropping the diffviewer_diffset.basedir
column results in this error:

Error: Error applying evolution: cannot ALTER TABLE
"diffviewer_diffset" because it has pending trigger events

So I feel like I'm rather stuck between a rock and a hard place of my
own making. Any advice on how I might proceed would be very much
appreciated.

Cheers,
Dan Brook

-- 
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: Problem encountered during site upgrade from 1.5 to 1.5.5

2011-07-08 Thread Christian Hammond
Did you back up before dropping the table?

If you dropped the table, with no backup, you're basically screwed. That
table represents the diffs.

If you have a backup to come back to, then one thing to try first is to
upgrade django_evolution using easy_install -U. Then try the upgrade again.

Christian

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


On Fri, Jul 8, 2011 at 7:01 AM, Dan Brook  wrote:

> The problem at hand is this error when upgrading a site:
>
> $ sudo rb-site upgrade /path/to/site
> Rebuilding directory structure
> Updating database. This may take a while.
> There are unapplied evolutions for diffviewer.
> There are unapplied evolutions for reviews.
> There are unapplied evolutions for scmtools.
> Project signature has changed - an evolution is required
> No fixtures found.
> /usr/lib/python2.4/site-packages/pycrypto-2.3-py2.4-linux-i686.egg/
> Crypto/Util/randpool.py:40: RandomPool_DeprecationWarning: This
> application uses RandomPool, which is BROKEN in older releases.  See
> http://www.pycrypto.org/randpool-broken
> Error: Error applying evolution: column "basedir" of relation
> "diffviewer_diffset" already exists
>
> I had already updated ReviewBoard with easy_install from 1.5 to 1.5.3
> and then 1.5.3 to 1.5.5 (IIRC) but had forgotten to upgrade the site
> during those updates which I suspect is the cause of the problem.
>
> Doing the naive thing and dropping the diffviewer_diffset.basedir
> column results in this error:
>
> Error: Error applying evolution: cannot ALTER TABLE
> "diffviewer_diffset" because it has pending trigger events
>
> So I feel like I'm rather stuck between a rock and a hard place of my
> own making. Any advice on how I might proceed would be very much
> appreciated.
>
> Cheers,
> Dan Brook
>
> --
> 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

-- 
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: Problem encountered during site upgrade from 1.5 to 1.5.5

2011-07-08 Thread Dan Brook
On Fri, Jul 8, 2011 at 8:03 PM, Christian Hammond  wrote:
> Did you back up before dropping the table?

Indeed, that was the first thing I did before touching the DB.

> If you have a backup to come back to, then one thing to try first is to
> upgrade django_evolution using easy_install -U. Then try the upgrade again.

I gave that a try and django_evolution was upgraded from 0.6.2 ->
0.6.4 but to no avail unfortunately - I'm still seeing the same error
on rb-site upgrade: column "basedir" of relation "diffviewer_diffset"
already exists.

Any other suggestions? :)

Cheers,
Dan Brook

-- 
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