Re: [gitorious] rake db:migrate error
Hi Peter and Rodrigo, haven't seen this on my end but I'm helping a customer facing the same issue. Peter, thanks a lot for that reference. We may create a hotfix or hurry up the next minor version to fix this once we've fixed it in master/mainline. cheers, Thomas On 10/30/2012 09:18 PM, Peter Kjellerstedt wrote: I stumbled upon the same problem the other day when I migrated our server. I have created a merge request https://gitorious.org/gitorious/mainline/merge_requests/220 that should fix the migration (once the MR is completely created, which is taking unusually long...) Otherwise you can find the actual change in my clone of Gitorious here: https://gitorious.org/~saur/gitorious/saurs-mainline/commit/edaebc8129c851b574573041a1e6817c61c1f0b2 https://gitorious.org/%7Esaur/gitorious/saurs-mainline/commit/edaebc8129c851b574573041a1e6817c61c1f0b2 The problem for you, however, is that you will have to revert the part of the failed migration that actually took place before you can apply the corrected version (unless you can revert using backups). You will have to remove the content_type column from the project_memberships table. //Peter *From:*gitorious@googlegroups.com [mailto:gitorious@googlegroups.com] *On Behalf Of *Rodrig Lima *Sent:* 30 October 2012 14:03 *To:* gitorious@googlegroups.com *Subject:* [gitorious] rake db:migrate error Hi all, This is my error: git@maverick:~$ pwd /var/www/gitorious git@maverick:~$ bundle exec rake db:migrate . . . == AddProjectMemberships: migrating == -- create_table(:project_memberships) - 0.0043s -- add_index(:project_memberships, [:project_id, :member_id, :member_type], {:name=project_memberships_index}) - 0.0062s == AddProjectMemberships: migrated (0.0110s) = == MakeProjectMembershipPolymorphicOnSubject: migrating == -- add_column(:project_memberships, :content_type, :string) - 0.0062s rake aborted! An error has occurred, all later migrations canceled: Mysql::Error: Table 'gitorious_production.content_memberships' doesn't exist: SELECT * FROM `content_memberships` (See full trace by running task with --trace) === *with --trace* *git@maverick:~$ bundle exec rake db:migrate --trace* *(in /var/www/gitorious)* *** Invoke db:migrate (first_time)* *** Invoke environment (first_time)* *** Execute environment* *** Execute db:migrate* *== MakeProjectMembershipPolymorphicOnSubject: migrating ==* *-- add_column(:project_memberships, :content_type, :string)* *rake aborted!* *An error has occurred, all later migrations canceled:* ** *Mysql::Error: Duplicate column name 'content_type': ALTER TABLE `project_memberships` ADD `content_type` varchar(255)* ** I'm following this steps: http://gitorious.org/gitorious/pages/DebianSqueezeInstallation How can I fix it? -- To post to this group, send email to gitorious@googlegroups.com mailto:gitorious@googlegroups.com To unsubscribe from this group, send email to gitorious+unsubscr...@googlegroups.com mailto:gitorious+unsubscr...@googlegroups.com -- To post to this group, send email to gitorious@googlegroups.com To unsubscribe from this group, send email to gitorious+unsubscr...@googlegroups.com -- best regards, Thomas Kjeldahl Nilsson http://gitorious.com -- To post to this group, send email to gitorious@googlegroups.com To unsubscribe from this group, send email to gitorious+unsubscr...@googlegroups.com
[gitorious] Re: SystemTimeout and Ruby 1.9.3
Did you run into the same sort of issue when the bundler comes upto this gem named: nokogiri? On Thursday, August 2, 2012 11:34:22 PM UTC+5, Carlos wrote: Hi. I understand that gitorious.org is running Ruby 1.8 for encodings. But suppose I am crazy enough to run gitorious with Ruby 1.9.3. From what I can see, the SystemTimer hack is no longer needed in Ruby 1.9.x. Even so, when I try to run bundle install it dies because it cannot build SystemTimer. What is the recommended action or alternative if I want to try gitorious with Ruby 1.9.3? Thanks! -- To post to this group, send email to gitorious@googlegroups.com To unsubscribe from this group, send email to gitorious+unsubscr...@googlegroups.com
[gitorious] Create merge request from command-line using mechanize
Hello all, For automating the proccess of creating merge request in gitorious' repositories I've create a ruby script using mechanize to login and create a new merge request. For usage and source, checkout https://github.com/brauliobo/gitorious-merge-request Contributions are welcome. best regards, brĂ¡ulio -- To post to this group, send email to gitorious@googlegroups.com To unsubscribe from this group, send email to gitorious+unsubscr...@googlegroups.com
Re: [gitorious] Re: SystemTimeout and Ruby 1.9.3
I am trying to get Gitorious running here as well. Just got into the same issue, following the same advice of removing it out from the gemfile :rescue group. Will let you guys know what happens. Wish me luck! On Friday, August 3, 2012 5:39:03 AM UTC+5, Carlos wrote: That's good news. This is my first exposure to Ruby, and I feel like I'm asking a lot of silly questions. I hope to document my experience, perhaps in the form of updates to the installation notes. Thanks! On Thursday, August 2, 2012 5:34:14 PM UTC-7, Bas Vodde wrote: Hi Carlos, We had removed it in our installation and worked fine. Bas On 3 Aug, 2012, at 3:19 AM, Carlos cmu...@gmail.com javascript: wrote: Note for those who find this thread by googling: commenting out SystemTimer seems to be ok, assuming you're running Ruby 1.9 On Thursday, August 2, 2012 11:55:07 AM UTC-7, Carlos wrote: FWIW, I just commented out the SystemTimer line of group :resque in the Gemfile and bundler was happy. We'll see what happens... On Thursday, August 2, 2012 11:34:22 AM UTC-7, Carlos wrote: Hi. I understand that gitorious.org is running Ruby 1.8 for encodings. But suppose I am crazy enough to run gitorious with Ruby 1.9.3. From what I can see, the SystemTimer hack is no longer needed in Ruby 1.9.x. Even so, when I try to run bundle install it dies because it cannot build SystemTimer. What is the recommended action or alternative if I want to try gitorious with Ruby 1.9.3? Thanks! -- To post to this group, send email to gito...@googlegroups.comjavascript: To unsubscribe from this group, send email to gitorious+...@googlegroups.com javascript: -- To post to this group, send email to gitorious@googlegroups.com To unsubscribe from this group, send email to gitorious+unsubscr...@googlegroups.com
Re: [gitorious] Re: SystemTimeout and Ruby 1.9.3
Christian is in the middle of porting Gitorious to Rails3/Ruby 1.9.x as well, so you'll be covered by the mainlne branch in the not-distant-future. cheers, Thomas On 10/31/2012 11:03 AM, Ahmed Rishwan wrote: I am trying to get Gitorious running here as well. Just got into the same issue, following the same advice of removing it out from the gemfile :rescue group. Will let you guys know what happens. Wish me luck! On Friday, August 3, 2012 5:39:03 AM UTC+5, Carlos wrote: That's good news. This is my first exposure to Ruby, and I feel like I'm asking a lot of silly questions. I hope to document my experience, perhaps in the form of updates to the installation notes. Thanks! On Thursday, August 2, 2012 5:34:14 PM UTC-7, Bas Vodde wrote: Hi Carlos, We had removed it in our installation and worked fine. Bas On 3 Aug, 2012, at 3:19 AM, Carlos cmu...@gmail.com javascript: wrote: Note for those who find this thread by googling: commenting out SystemTimer seems to be ok, assuming you're running Ruby 1.9 On Thursday, August 2, 2012 11:55:07 AM UTC-7, Carlos wrote: FWIW, I just commented out the SystemTimer line of group :resque in the Gemfile and bundler was happy. We'll see what happens... On Thursday, August 2, 2012 11:34:22 AM UTC-7, Carlos wrote: Hi. I understand that gitorious.org http://gitorious.org is running Ruby 1.8 for encodings. But suppose I am crazy enough to run gitorious with Ruby 1.9.3. From what I can see, the SystemTimer hack is no longer needed in Ruby 1.9.x. Even so, when I try to run bundle install it dies because it cannot build SystemTimer. What is the recommended action or alternative if I want to try gitorious with Ruby 1.9.3? Thanks! -- To post to this group, send email to gito...@googlegroups.com javascript: To unsubscribe from this group, send email to gitorious+...@googlegroups.com javascript: -- To post to this group, send email to gitorious@googlegroups.com To unsubscribe from this group, send email to gitorious+unsubscr...@googlegroups.com -- best regards, Thomas Kjeldahl Nilsson http://gitorious.com -- To post to this group, send email to gitorious@googlegroups.com To unsubscribe from this group, send email to gitorious+unsubscr...@googlegroups.com
Re: [gitorious] rake db:migrate error
Hi again, we were finally able to reproduce on our end, and have pushed a minor version/hotfix for the issue. http://blog.gitorious.org/2012/10/31/gitorious-2-3-2-released-small-hotfix-for-installationdb-setup-issue/ Peter: I'm closing your merge request as we found a simpler/more direct way of fixing the problem in the migration. Both of you: Let us know if you have any further issues related to this. This one was a bit tricky since we haven't seen the issue locally in our own installations up till now. Lesson learned on our part: using Rails model classes in migrations is brittle, so prefer to manipulate columns/tables directly instead. cheers, Thomas On 10/30/2012 09:18 PM, Peter Kjellerstedt wrote: I stumbled upon the same problem the other day when I migrated our server. I have created a merge request https://gitorious.org/gitorious/mainline/merge_requests/220 that should fix the migration (once the MR is completely created, which is taking unusually long...) Otherwise you can find the actual change in my clone of Gitorious here: https://gitorious.org/~saur/gitorious/saurs-mainline/commit/edaebc8129c851b574573041a1e6817c61c1f0b2 https://gitorious.org/%7Esaur/gitorious/saurs-mainline/commit/edaebc8129c851b574573041a1e6817c61c1f0b2 The problem for you, however, is that you will have to revert the part of the failed migration that actually took place before you can apply the corrected version (unless you can revert using backups). You will have to remove the content_type column from the project_memberships table. //Peter *From:*gitorious@googlegroups.com [mailto:gitorious@googlegroups.com] *On Behalf Of *Rodrig Lima *Sent:* 30 October 2012 14:03 *To:* gitorious@googlegroups.com *Subject:* [gitorious] rake db:migrate error Hi all, This is my error: git@maverick:~$ pwd /var/www/gitorious git@maverick:~$ bundle exec rake db:migrate . . . == AddProjectMemberships: migrating == -- create_table(:project_memberships) - 0.0043s -- add_index(:project_memberships, [:project_id, :member_id, :member_type], {:name=project_memberships_index}) - 0.0062s == AddProjectMemberships: migrated (0.0110s) = == MakeProjectMembershipPolymorphicOnSubject: migrating == -- add_column(:project_memberships, :content_type, :string) - 0.0062s rake aborted! An error has occurred, all later migrations canceled: Mysql::Error: Table 'gitorious_production.content_memberships' doesn't exist: SELECT * FROM `content_memberships` (See full trace by running task with --trace) === *with --trace* *git@maverick:~$ bundle exec rake db:migrate --trace* *(in /var/www/gitorious)* *** Invoke db:migrate (first_time)* *** Invoke environment (first_time)* *** Execute environment* *** Execute db:migrate* *== MakeProjectMembershipPolymorphicOnSubject: migrating ==* *-- add_column(:project_memberships, :content_type, :string)* *rake aborted!* *An error has occurred, all later migrations canceled:* ** *Mysql::Error: Duplicate column name 'content_type': ALTER TABLE `project_memberships` ADD `content_type` varchar(255)* ** I'm following this steps: http://gitorious.org/gitorious/pages/DebianSqueezeInstallation How can I fix it? -- To post to this group, send email to gitorious@googlegroups.com mailto:gitorious@googlegroups.com To unsubscribe from this group, send email to gitorious+unsubscr...@googlegroups.com mailto:gitorious+unsubscr...@googlegroups.com -- To post to this group, send email to gitorious@googlegroups.com To unsubscribe from this group, send email to gitorious+unsubscr...@googlegroups.com -- best regards, Thomas Kjeldahl Nilsson http://gitorious.com -- To post to this group, send email to gitorious@googlegroups.com To unsubscribe from this group, send email to gitorious+unsubscr...@googlegroups.com
[gitorious] Help with change user admin for gitorius private on database
Hello to all, I need your help please! I want to assign permission to administrator an any user in my private gitorious. To achieve this I did it as follows: Join in mysql mysql show databases; mysql use gitorious mysql show tables; mysql desc users; mysql update users set is_admin = '1 'where login =' user '; By doing this, the user user can access the Administration section on the web. The problem is I can not assign permissions to other users in repositories with this user What am I doing wrong? I can see all Projects, I can see all repository, I can see all users but i can not see inside the any proyect: Add repository Edit project Manage access Edit repository Could you please help me?? Thanks for your time! Regards, -- To post to this group, send email to gitorious@googlegroups.com To unsubscribe from this group, send email to gitorious+unsubscr...@googlegroups.com