James,

There is a database migration in v7.5.1 that added missing timestamps to
the updated_at and created_at columns in the members table (the table that
deals with project membership). Without running this migration, the values
of the created_at and updated_at columns for memberships created after
commit c8e78d972a5a628870eefca0f2ccea0199c55bda are NULL. This will cause
the membership destroy system hook to fail if the user has memberships that
have NULL created_at or updated_at columns when the destroy event is
inserted into the events table and an event model is attempted to be built.

You do not have to upgrade, you just have to run the db migrations. In the
gitlab directory run bundle exec rake db:migrate RAILS_ENV=production.


-Alex

On Thu, Dec 4, 2014 at 11:52 AM, Alex Elman <chicagoatn...@gmail.com> wrote:

> Upgrading to v7.5.2 seemed to fix this issue for me. I don't have an
> explanation yet, but I'll look into it.
>
> On Tue, Nov 25, 2014 at 4:04 PM, James Riordon <
> outofcontrolim...@gmail.com> wrote:
>
>> I've deleted and blocked some accounts. This one account that used to be
>> an admin account, and has created a few repos and posted information
>> already, we can't delete. In the server logs we are getting this error:
>>
>> Completed 500 Internal Server Error in 63ms
>>
>> NoMethodError (undefined method `xmlschema' for nil:NilClass):
>>   app/services/system_hooks_service.rb:21:in `build_event_data'
>>   app/services/system_hooks_service.rb:3:in `execute_hooks_for'
>>   app/models/members/project_member.rb:138:in `post_destroy_hook'
>>   app/models/user.rb:149:in `block (3 levels) in <class:User>'
>>   app/models/user.rb:145:in `block (2 levels) in <class:User>'
>>   app/controllers/admin/users_controller.rb:25:in `block'
>>
>>
>> This is our current running version of Gitlab:
>>
>> Gitlab   7.5.1
>> GitLab   Shell 2.2.0
>> GitLab   API v3
>> Ruby     2.1.4p265
>> Rails    4.1.8
>>
>> Anyone have an idea why?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "GitLab" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to gitlabhq+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/gitlabhq/7ed1b5aa-ee6d-437b-95f2-944dbaf627b1%40googlegroups.com
>> <https://groups.google.com/d/msgid/gitlabhq/7ed1b5aa-ee6d-437b-95f2-944dbaf627b1%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to gitlabhq+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/gitlabhq/CAGWx_yZ%2BNA1pY-c79bXoUsSU3_eTqHUzDFeWA_aLY0qez%3D%2BfWA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to