Re: [foreman-users] Re: Please help - upgrade Foreman 1.10 to 1.13 has failed.

2016-10-26 Thread Evgeny Vasilchenko
That's what I was doing all the time until 1.10 :))

On Wednesday, October 26, 2016 at 5:41:34 PM UTC-7, Greg Sutcliffe wrote:
>
> On 27 October 2016 at 01:33, Evgeny Vasilchenko  > wrote:
> >
> > I have recovered The Foreman 1.13 following your advises.  
> > Thanks a lot Greg!
>
> Great! For future reference - one major version upgrade at a time :)
>
> Greg
>

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Re: [foreman-users] Re: Please help - upgrade Foreman 1.10 to 1.13 has failed.

2016-10-26 Thread Greg Sutcliffe
On 27 October 2016 at 01:33, Evgeny Vasilchenko <
evgeny.vasilche...@gmail.com> wrote:
>
> I have recovered The Foreman 1.13 following your advises.
> Thanks a lot Greg!

Great! For future reference - one major version upgrade at a time :)

Greg

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Re: [foreman-users] Re: Please help - upgrade Foreman 1.10 to 1.13 has failed.

2016-10-26 Thread Evgeny Vasilchenko
Thanks a lot, Greg - I will try.

On Tuesday, October 25, 2016 at 12:54:17 PM UTC-7, Greg Sutcliffe wrote:
>
> On 25 October 2016 at 20:05, Evgeny Vasilchenko  > wrote:
>
>> I'm sure situation is not that bad - Foreman even sends audit email me to 
>> once a day.
>> Need to figure out what can be done to database if anything. 
>>
>
> Its not the actual database thats the issue, its that the code is too new 
> (the first pending migration is in 1.11 - see [1]).
>
> One possibility is to grab a new VM, install 1.11 and point it at the 
> production db and then run `foreman-rake db:migrate`. If that works, you 
> can do the same with a 1.12 setup, and then run the 1.13 migrations on your 
> production box.
>
> Good luck!
> Greg
>

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Re: [foreman-users] Re: Please help - upgrade Foreman 1.10 to 1.13 has failed.

2016-10-25 Thread Greg Sutcliffe
On 24 October 2016 at 18:06, Evgeny Vasilchenko <
evgeny.vasilche...@gmail.com> wrote:

> Please anyone? Any suggestions beside of 1.10 backup restore?
>

I think there's a few points here:

1) Oracle Linux isn't officially supported - that's probably not the
problem, but it's worth remembering
2) If the system crashed during a db:migrate (which is called by the
packages during upgrade) then it's could well be in an inconsistent state
3) Direct upgrades skipping major releases are known to break - the
migrations care what version of the code they invoke.

Of these, I suspect (3) is your issue. A undefined method suggests that
you've skipped a major version - assuming you have backups, your best
option is a rollback followed by a 1.10->1.11->1.12->1.13 upgrade.

Good luck!
Greg

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.