Someone commented: "Reinstalling and leaving Rails at 4.1.1 solved our issue."

Best regards,
Sytse Sijbrandij
CEO GitLab B.V.


On Mon, Dec 8, 2014 at 6:22 PM, James Riordon <[email protected]> wrote:
> We ended up finding the migration after a short bit of time, but it didn't
> help in our case.
>
> On Dec 4, 2014, at 1:21 PM, Alex Elman <[email protected]> wrote:
>
> It should be added that the events table requires that the updated_at and
> created_at columns be not null. This constraint in the database will cause
> the transaction to be rolled back and this ultimately caused the failure to
> create the event model.
>
> On Thu, Dec 4, 2014 at 12:17 PM, Alex Elman <[email protected]> wrote:
>>
>> 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 <[email protected]>
>> 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
>>> <[email protected]> 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 [email protected].
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/gitlabhq/7ed1b5aa-ee6d-437b-95f2-944dbaf627b1%40googlegroups.com.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>>
>>
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "GitLab" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/gitlabhq/o2U6QZq3UGU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/gitlabhq/CAGWx_yZpqh7NhEjopxzjHge2Npxn9CEpbhrEnhaF-ugskxU_Xg%40mail.gmail.com.
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/gitlabhq/52465AB9-0D68-496B-8796-4C7C9BEA1639%40outofcontrol.ca.
>
> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/gitlabhq/CAJTzhG_2Tu1S0KUxXaA9d9xzNpocGbyhS-7Z9dhoZ8sL_z3c3w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to