Frank Kim
2008-Apr-02 21:59 UTC
Error in my_thread_global_end() when running rake db:migrate
When I run rake db:migrate I get this error at the end. Error in my_thread_global_end(): 1 threads didn''t exit I pinned it down to this code which is in 004_create_permissions.rb. # create admin user user = User.new user.login = ''admin'' user.password = ''password'' user.save(false) If I don''t run user.save(false) I don''t get the error. I am not sure why, the user does get saved properly to the database. Any help would be appreciated. Thanks, -- Frank Kim --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Max Shytikov
2008-May-26 14:43 UTC
Re: Error in my_thread_global_end() when running rake db:mig
Hi Frank Kim!. I had similar problem ( my config: "mysql Ver 14.12 Distrib 5.0.46, for Win32"). I found an answer here http://lists.mysql.com/commits/25160 After update to "mysql Ver 14.12 Distrib 5.0.51b, for Win32 (ia32)" a problem disappeared. Try to update your msql, I hope it will help you. Frank Kim wrote:> When I run rake db:migrate I get this error at the end. > > Error in my_thread_global_end(): 1 threads didn''t exit > > I pinned it down to this code which is in 004_create_permissions.rb. > > # create admin user > user = User.new > user.login = ''admin'' > user.password = ''password'' > user.save(false) > > If I don''t run user.save(false) I don''t get the error. I am not sure > why, the user does get saved properly to the database. > > Any help would be appreciated. > > Thanks, > -- > Frank Kim-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---