From Andreas.Semt at gmx.net Mon Aug 4 12:28:11 2008 From: Andreas.Semt at gmx.net (Andreas Semt) Date: Mon, 04 Aug 2008 18:28:11 +0200 Subject: [Retrospectiva-general] What's the correct way to switch from STABLE to TRUNK? Message-ID: <20080804162811.163360@gmx.net> Hello list, i decided to switch from Retrospectiva version 1.03 to the latest development release to get the mail notification feature for ticket changes. However i ask to myself: What's the correct way to do this (without loosing existing data)? In my opinion following steps (in this order) are necessary: 1. - stop MySQL, Apache2 + FCGI 2. - cd to $PATH_TO_RETROSPECTIVA_ROOT 3. - svn switch http://retrospectiva.googlecode.com/svn/trunk 4. - create cron job for the new task feature (as described here: http://www.retrospectiva.org/wiki/Installation%20of%20the%20development%20version) 5. - start MySQL, Apache2 + FCGI and fire up the browser ... Is that the right way of doing this? Has anybody done this in the past? Do I have to delete the file "db/schema.rb" first? Thanks again for any help! Best regards, Andreas Semt From contact at dvisionfactory.com Mon Aug 4 15:18:10 2008 From: contact at dvisionfactory.com (Dimitrij Denissenko) Date: Mon, 04 Aug 2008 20:18:10 +0100 Subject: [Retrospectiva-general] What's the correct way to switch from STABLE to TRUNK? In-Reply-To: <20080804162811.163360@gmx.net> References: <20080804162811.163360@gmx.net> Message-ID: <489755F2.4080005@dvisionfactory.com> What errors are you receiving? You're database is probably outdated. Please try to run 'rake db:migrate'. You might also need to delete your config/runtime.config.yml file and reconfigure your app. Improtant hint: before you go back to 'Apache2 + FCGI', check out his link first: http://retrospectiva.org/wiki/Apache%20Passenger%20configuration. Gruesse, Dimitrij Andreas Semt wrote: > Hello list, > > i decided to switch from Retrospectiva version 1.03 to the latest development release to get the > mail notification feature for ticket changes. However i ask to myself: What's the correct way to do this > (without loosing existing data)? > > In my opinion following steps (in this order) are necessary: > 1. > - stop MySQL, Apache2 + FCGI > 2. > - cd to $PATH_TO_RETROSPECTIVA_ROOT > 3. > - svn switch http://retrospectiva.googlecode.com/svn/trunk > 4. > - create cron job for the new task feature > (as described here: http://www.retrospectiva.org/wiki/Installation%20of%20the%20development%20version) > 5. > - start MySQL, Apache2 + FCGI and fire up the browser ... > > Is that the right way of doing this? Has anybody done this in the past? > > Do I have to delete the file "db/schema.rb" first? > > > Thanks again for any help! > Best regards, > Andreas Semt > _______________________________________________ > Retrospectiva-general mailing list > Retrospectiva-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/retrospectiva-general > From contact at dvisionfactory.com Mon Aug 4 16:09:28 2008 From: contact at dvisionfactory.com (Dimitrij Denissenko) Date: Mon, 04 Aug 2008 21:09:28 +0100 Subject: [Retrospectiva-general] installation problem / postgresql, rails 2.1.0 In-Reply-To: <62100C06-188E-4A86-9866-12A9C4BDA5F2@gmail.com> References: <62100C06-188E-4A86-9866-12A9C4BDA5F2@gmail.com> Message-ID: <489761F8.6060401@dvisionfactory.com> Retrospectiva trunk does not currently run on Rails 2.1, it requires Rails 2.0.2. This will change soon. Christian Ost wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi, > > While trying to install today's trunk ( environment.rb says '1.1-DEV > (503)' ), I have run > into some issues concerning the database setup. > Somehow the rake script fails to add the admin user, please see the > trace output below. > > After running rake, my 'users' table looks like this: > > retrospectiva=# SELECT * FROM users WHERE TRUE; > id | login | password | > created_at | admin | name | email | salt | active | > activation_code | private_key > - > ----+--------+------------------------------------------+----------------------------+-------+-----------+-------+----------+--------+-----------------+------------------------------------------ > > 1 | Public | cf450bd07511d98129a320ae554f4961d1bc8dd9 | 2008-07-28 > 14:20:23.062598 | f | Anonymous | | VJzrmiK9 | t > | | 2c0d0405b3e690c7995e0c7c3cbb7b5b372f06cb > (1 row) > > I am running Rails 2.1.0 on Ruby 1.8.5, using PostgreSQL 8.1.11 as > database backend > on Debian etch. > > Would be very nice, if you could look into this issue - I am new to > retrospectiva and > have no clue how to fix this. > > Thanks a lot! > > > Christian > > > root at host# rake RAILS_ENV=production db:retro:load --trace > (in /var/www/starvingfish/retrospectiva) > ** Invoke db:retro:load (first_time) > ** Invoke environment (first_time) > ** Execute environment > ** Execute db:retro:load > ** Invoke db:retro:load_schema (first_time) > ** Invoke environment > ** Execute db:retro:load_schema > > ===== Load the database schema > ** Invoke db:schema:load (first_time) > ** Invoke environment > ** Execute db:schema:load > [...] > - -- assume_migrated_upto_version(74) > -> 0.0127s > ** Invoke db:retro:extend_default_text_column_size (first_time) > ** Invoke environment > ** Execute db:retro:extend_default_text_column_size > ** Invoke db:retro:load_content (first_time) > ** Invoke environment > ** Execute db:retro:load_content > > ===== Load the initial content > Creating some default priorities > Creating some default status > Creating default group > Creating default public user > Creating default admin > rake aborted! > undefined method `each' for nil:NilClass > /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/association_preload.rb:45:in > `add_preloaded_records_to_collection' > /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/association_preload.rb:63:in > `set_association_collection_records' > /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/association_preload.rb:61:in > `each' > /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/association_preload.rb:61:in > `set_association_collection_records' > /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/association_preload.rb:109:in > `preload_has_and_belongs_to_many_association' > /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/association_preload.rb:40:in > `send' > /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/association_preload.rb:40:in > `preload_one_association' > /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/association_preload.rb:38:in > `each' > /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/association_preload.rb:38:in > `preload_one_association' > /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/association_preload.rb:17:in > `preload_associations' > /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/association_preload.rb:21:in > `preload_associations' > /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/association_preload.rb:19:in > `each' > /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/association_preload.rb:19:in > `preload_associations' > /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/association_preload.rb:16:in > `preload_associations' > /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/association_preload.rb:16:in > `each' > /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/association_preload.rb:16:in > `preload_associations' > /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/base.rb:1343:in > `find_every' > /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/base.rb:1303:in > `find_initial' > /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/base.rb:1644:in > `send' > /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/base.rb:1644:in > `find_by_login' > /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/deprecation.rb:44:in > `silence' > /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/base.rb:1644:in > `find_by_login' > /var/www/starvingfish/retrospectiva/app/models/user.rb:144:in > `public_user' > /var/www/starvingfish/retrospectiva/app/models/user.rb:140:in `current' > /var/www/starvingfish/retrospectiva/app/models/user.rb:190:in `current?' > /var/www/starvingfish/retrospectiva/app/models/user.rb:61:in `validate' > /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/validations.rb:930:in > `valid_without_callbacks?' > /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/callbacks.rb:267:in > `valid?' > /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/validations.rb:910:in > `save_without_dirty!' > /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/dirty.rb:83:in > `save_without_transactions!' > /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/transactions.rb:110:in > `save!' > /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/database_statements.rb:66:in > `transaction' > /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/transactions.rb:79:in > `transaction' > /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/transactions.rb:98:in > `transaction' > /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/transactions.rb:110:in > `save!' > /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/transactions.rb:118:in > `rollback_active_record_state!' > /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/transactions.rb:110:in > `save!' > ./db/default_content.rb:62 > /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in > `load' > /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in > `load' > /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in > `new_constants_in' > /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in > `load' > /var/www/starvingfish/retrospectiva/lib/tasks/database.rake:19 > /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in > `invoke_with_call_chain' > /usr/lib/ruby/1.8/thread.rb:135:in `synchronize' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in > `invoke_with_call_chain' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `invoke' > /var/www/starvingfish/retrospectiva/lib/tasks/database.rake:6 > /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in > `invoke_with_call_chain' > /usr/lib/ruby/1.8/thread.rb:135:in `synchronize' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in > `invoke_with_call_chain' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `invoke' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in `invoke_task' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in > `standard_exception_handling' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `run' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in > `standard_exception_handling' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31 > /usr/bin/rake:19:in `load' > /usr/bin/rake:19 > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.8 (Darwin) > > iEYEARECAAYFAkiNwFkACgkQYGv9SYQqugCOfQCggddQx2h9QIvTK9gxDdsNQuGP > 96EAnjrjjZy7wEVsO7XcroH9w9jH7VKb > =7wbL > -----END PGP SIGNATURE----- > _______________________________________________ > Retrospectiva-general mailing list > Retrospectiva-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/retrospectiva-general From Andreas.Semt at gmx.net Sat Aug 9 12:38:22 2008 From: Andreas.Semt at gmx.net (Andreas Semt) Date: Sat, 09 Aug 2008 18:38:22 +0200 Subject: [Retrospectiva-general] How to deactivate SVN-synching in Retrospectiva TRUNK? In-Reply-To: <489761F8.6060401@dvisionfactory.com> References: <62100C06-188E-4A86-9866-12A9C4BDA5F2@gmail.com> <489761F8.6060401@dvisionfactory.com> Message-ID: <20080809163822.114220@gmx.net> Hello list, first: Thanks Dimitrij and Nathan for the information how to update from stable to trunk. I did it, and it runs fine! I had some problems with migration 063 and 073, but i mastered it (with the information from you, guys!). Now i have - of course ;-) - some question regarding the shiny new version of Retrospectiva i use: 1. In my setup i have the SVN repositories located on another machine and i use NFS to mount a read-only version of the repositories to the machine were Retrospectiva runs. So I have no need for the new Task feature "Sync repositories". How to disable it? Is it sufficient to remove following lines from the file "RETROSPECTIVA_ROOT_PATH/config/runtime/tasks.yml" file? Lines to remove to disable "Sync repositories": ----------8<---------- :sync_repositories: :last_run: 2008-08-09 16:24:00.174669 Z :started: :interval: 300 ---------->8---------- 2. Where can i define the time zone settings? Retrospectiva uses the UTC, but in my setup MESZ (that is UTC+2) would be the right thing. Thanks for any help! Best regards, Andreas Semt From nathan at themechanicalzoo.com Sun Aug 10 14:54:37 2008 From: nathan at themechanicalzoo.com (Nathan Stoll) Date: Sun, 10 Aug 2008 11:54:37 -0700 Subject: [Retrospectiva-general] How to deactivate SVN-synching in Retrospectiva TRUNK? In-Reply-To: <20080809163822.114220@gmx.net> References: <62100C06-188E-4A86-9866-12A9C4BDA5F2@gmail.com> <489761F8.6060401@dvisionfactory.com> <20080809163822.114220@gmx.net> Message-ID: If you set interval to 0, the task won't run and it'll be a moot point. But I think you do need the sync repositories feature, since it reads changesets from svn log and updates a retrospectiva-processed version of them. Timezone settings are usually done in environment configs; e.g. in environment.rb: # Make Active Record use UTC-base instead of local time # config.active_record.default_timezone = :utc but that's commented out in my copy, and it uses local time as the default. What timezone does your server default to? if utc, that's why it looks like it is utc. anyhow, you should be able to set this config to the timezone you want. --Nathan On Sat, Aug 9, 2008 at 9:38 AM, Andreas Semt wrote: > Hello list, > > first: Thanks Dimitrij and Nathan for the information how to update from stable to trunk. > I did it, and it runs fine! I had some problems with migration 063 and 073, but i mastered > it (with the information from you, guys!). > > Now i have - of course ;-) - some question regarding the shiny new version of Retrospectiva i use: > > 1. > In my setup i have the SVN repositories located on another machine and i use NFS to mount a > read-only version of the repositories to the machine were Retrospectiva runs. So I have no need > for the new Task feature "Sync repositories". How to disable it? Is it sufficient to remove following > lines from the file "RETROSPECTIVA_ROOT_PATH/config/runtime/tasks.yml" file? > > Lines to remove to disable "Sync repositories": > ----------8<---------- > :sync_repositories: > :last_run: 2008-08-09 16:24:00.174669 Z > :started: > :interval: 300 > ---------->8---------- > > 2. > Where can i define the time zone settings? Retrospectiva uses the UTC, but in my setup > MESZ (that is UTC+2) would be the right thing. > > > Thanks for any help! > Best regards, > Andreas Semt > _______________________________________________ > Retrospectiva-general mailing list > Retrospectiva-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/retrospectiva-general > From Andreas.Semt at gmx.net Sun Aug 17 05:41:39 2008 From: Andreas.Semt at gmx.net (Andreas Semt) Date: Sun, 17 Aug 2008 11:41:39 +0200 Subject: [Retrospectiva-general] Has anybody fixed the wrong link bug (ticket #400)? Message-ID: <20080817094139.220540@gmx.net> Hello list, i am using Retrospectiva TRUNK version with multiple projects. With this setup i have problems with wrong links in mail notifications as described in the open ticket #400 (currently http://retrospectiva.org is down, so the ticket description is not available :-( ). My question is: Has anybody with the same problems fixed this bug? If so, how? Thanks for any hints and/or help! Best regards, Andreas Semt