My rockstor wont update to the latest testing update.
Clicking update in the webinterface seems to work (no errors are reported), but the update icon still shows up.
Running Yum update gives this:
I think the lines showing:
“Error unpacking rpm package rockstor-3.8-14.11.x86_64
error: unpacking of archive failed on file /opt/rockstor/eggs/setuptools-26.1.1-py2.7.egg: cpio: rename
Verifying : rockstor-3.8-14.11.x86_64 1/2
rockstor-3.8-14.10.x86_64 was supposed to be removed but is not!”
What could be preventing my system from installing the update?
Interesting. Could you check the following things:
# ls -al /opt/rockstor/eggs/setuptools-26.1.1-py2.7.egg
# lsattr /opt/rockstor/eggs/setuptools-26.1.1-py2.7.egg
If there is nothing peculiar about this file, you could try removing and installing rockstor manually first:
# yum erase rockstor
# yum install rockstor
It should also be safe to clean yum’s caches and check for any problems:
# yum clean all
# package-cleanup --problems
@KarstenV and @sfranzen Pretty sure this is as a result of executing build / developer commands over the top of an rpm install of Rockstor ie:
the “buildout install collectstatic” you may well have run to try out @sfranzen recent pool usage widget:
over in the related thread: Usage data on pools and shares not updated - #29 by sfranzen
No worries though as all that is needed is a:
rm -rf /opt/rockstor/eggs/setuptools-2*
then try the upgrade again.
The build tools you invoked to install the new widget code default to retrieving stuff that is not recognised by the rpm so it breaks the removal of the existing rpm which is necessary for the upgrade, this in turn breaks the upgrade.
Hope that helps and sorry I couldn’t chip in earlier with this.
Thanks, well spotted! I guess a safer way to do this next time is running
/opt/rockstor/bin/django collectstatic directly instead of the buildout script.
That is probably the cause of it. Had no idea it would break anything.
No worries about your response time, I wasn’t in a hurry
Your suggested fix did the job, and rockstor updated fine.
I dont see a new pool size widget on the dashboard though. Perhaps one of the old ones was just replaced?
It should be a fourth option under “Storage”. Try
systemctl restart rockstor and a browser refresh.
I should have added that I tried rebooting the system, without it making any difference.
Your command, followed by browser refresh, sadly didn’t work either.
Something must have gone wrong, probably something due to my previous problems with setuptools.
Oh well, doing the “systemctl restart rockstor” actually did something.
Now I get this error:
And now it has fixed itself…
I’m slightly perplexed by this
Just… pretend that nothing happened I guess