I just borked my system by unknowingly upgrading from 3.8-14 to 3.8.16. According to this, what I should have done is upgrading to 3.8.15 first before upgrading to 3.8.16. However, when I do
Thanks @Tomasz_Kusmierz, I guess theyāll respond when theyāre free
As an update, I ended up working around this by nuking my PostgreSQL database:
systemctl stop postgresql
rm -rf /var/lib/pgsql
Then re-initialize the database by hand-executing the commands under sections [postgres-conf] and [postgres-setup] in buildout.cfg.
After these steps the rockstor service starts fine and prompts me to create a new user. Using the existing user turned out to be the trickiest part that required me to hack the rockstor source. It might have been easier if I just removed my existing user temporarily.
Hope this helps anyone else having similar problems.
It would be awesome if you could put it in more step by step solution - a lot of people pop up recently with this upgrade problem and I even didnāt knew you can just nuke database like that
I think the necessary steps should be all there for everyone who is comfortable enough with command lines to do that. I didnāt list the commands in buildout.cfg because it might be modified anytime in the future; so better just look at the most recent version. For anyone else with a mostly stock system, a clean re-install would be quicker.
And the showstopper of my system wasnāt even related to the database! Turned out the current version of initrock doesnāt like my network configuration and complains that the default interface isnāt configured. I still had to modify the source to get around that.
wait wait wait ā¦ what ? please describe the problem with network interface (me sitting on the edge of the seat because he might have found an ancient bug that eluded us)
@Tomasz_Kusmierz Oops, didnāt think it was relevant to anyone else. The problem I had was that initrock.py looks for ādefault viaā from the output of ip route, which does not match any of my interfaces. (Itās actually ādefault devā if thatās what I think itās looking for.) So I just hacked it to use one of my interfaces (which isnāt the default dev anyway.) Hope this helps!
< strikethrough > As an aside, nuking the database still turned out to be a PITA because Iām left setting up all the services again I still have the old database so hopefully someone chips in so I can upgrade temporarily to 3.8.15!< /strikethrough > So it turns out my old database somehow still works (of course I didnāt check first), and that that network interface bug was the only problem. Duh!!
I think that you actually found the problem ( seem from where I sit ). Weāve had a problem where
if you would set up a teaming interface the system would fail to start (even with dhcp) unless you would add a normal interface with dhcp.
system would not start if no cable was connected to any interface and there was no lease from dhcp -> system would timeout after ~10 minutes and only bailout was to log in through physical console and reboot it or use āthe buttonā
I did not engage with solving this any further because Iāve had other stuff to do (donāt ask :/)
Iām not involved in Rockstorās development so this may be wrong, but I donāt think initrock is invoked during normal boot. So if itās the same bug maybe the code is duplicated elsewhere?
Might be completelly different script, but your scenario would explain why my systems didnāt get up when I was setting stuff in manual IP without gateway where there was not other interface with gateway in ā¦ and I didnāt occur to me that route might be used as check ā¦
Hi guys sorry for being late, but had 1)flu after Xmas 2)āsoftware fluā (new laptop with win10 on default ā¦it seems win10 not happy with some wifi cards, we started wrong way )
By jan 2nd Iāll be back on my desk so probably will have those gigaupdates win requires, my linux dual boot and all that code I hoped to have during these holidays!
Back to @haoto : performing a downgrade to 3.8-14 then back to 3.8-15 and finally to 3.8-16 should solve
Note: currently Iām not sure if all of them had dot notation or minus notation
Really useful thread, sorry for chipping in very late. Thanks for your input @haoto. I think you are right about the initrock bug, and it does run on every boot ā updating default interface part of it anyway. Weāll get to it. Please feel free to open a github issue.
Regarding 3.8.15 not being available on testing channel, I just added 3.8.15.-1. I know this is too little too late for you, but others may find it useful. Typically, we donāt remove the previous major versionās testing updates from the repo, but looks like I was a bit overzealous cleaning up.