Author Topic: Update using raidf-install-mgr.sh on Ubuntu  (Read 2353 times)

Offline frbastiat

  • Newbie
  • *
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Update using raidf-install-mgr.sh on Ubuntu
« on: September 17, 2015, 01:42:49 pm »
I've run into some issues using the installer shell script and am hoping to get a little guidance before I do more harm. So during the install process I changed the install path:
Code: [Select]
[code]Enter destination path[/opt/raidf/host]: /var/lib/flexraid[/code]

Everything seemed to be going along fine.
Code: [Select]
/var/lib/flexraid/ext/smart/placeholder.txt
/var/lib/flexraid/ext/fusermount
/var/lib/flexraid/ext/l.dat
/var/lib/flexraid/ext/libfuse.so
/var/lib/flexraid/ext/libJetCallback.so
/var/lib/flexraid/ext/libNativeOS.so
/var/lib/flexraid/ext/libulockmgr.so
etc.

Then at the end I get an error:
Code: [Select]
RAID-F 2.1 has been successfully installed on your computer.
chmod: cannot access ‘/opt/raidf/host/FlexRAID’: No such file or directory
chmod: cannot access ‘/opt/raidf/host/FlexRAID’: No such file or directory
chmod: cannot access ‘/opt/raidf/host/Uninstall’: No such file or directory
chmod: cannot access ‘/opt/raidf/host/Uninstall’: No such file or directory
chmod: cannot access ‘/opt/raidf/host/ext/fusermount’: No such file or directory
chmod: cannot access ‘/opt/raidf/host/ext/ulockmgr_server’: No such file or directory

It almost looks as thought the .bin installer should have passed my desired path back into the shell script as $HOST_INST_DIR. Obvious speculation as I am not a coder.
So in this state FlexRAID does not start. I ran the failed chmod commands and FlexRAID will now start and the web portal opens but does not prompt for a password. Are there other privileges that need to be set? Is there another workaround that I could try? I was thinking as a last resort I would run the uninstaller and install directly from the .bin which was not removed by the shell script.

Thanks.

Offline Brahim

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8,547
  • Karma: +204/-16
    • View Profile
Re: Update using raidf-install-mgr.sh on Ubuntu
« Reply #1 on: September 17, 2015, 03:14:34 pm »
You can ignore those errors. The installation manager will be updated to skip those operations. Just remember to run the app as root.
When using the installation script, you really should not change the installation directory as recommended.

If you want a custom install, use the bin file directly.
http://www.flexraid.com/download-try-buy-raid-f/#download-raidf talks of a "manual install", and that's the route you should take for custom installations.

Offline frbastiat

  • Newbie
  • *
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Re: Update using raidf-install-mgr.sh on Ubuntu
« Reply #2 on: September 17, 2015, 07:17:54 pm »
I did an uninstall and reinstalled using the default path for the installation directory and still have the same result.

I am prompted with an error at the webUI but it's cut off.

Code: [Select]
com.google.gwt.user.client.rpc.StatusCodeException
com.google.gwt.user.client.rpc.StatusCodeException: 503
HTTP ERROR: 503
Problem accessing /gwt/rpc. Reason:
    java.lang.ClassCastException: com.db4o.reflect.generic.

FlexRAID is run as root.

Code: [Select]
2739 root      20   0  471916  56064  35664 S   0.0  0.3   0:00.43 FlexRAID

Offline Brahim

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8,547
  • Karma: +204/-16
    • View Profile
Re: Update using raidf-install-mgr.sh on Ubuntu
« Reply #3 on: September 18, 2015, 12:14:44 am »
Backup and delete the FlexRAID config DB under /root and restart.

Offline frbastiat

  • Newbie
  • *
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Re: Update using raidf-install-mgr.sh on Ubuntu
« Reply #4 on: September 19, 2015, 07:01:14 am »
So I got everything mostly up and running with the new install directory but am getting failures when I update. The log error messsage is:
Code: [Select]
ERROR: PBEWITHSHAAND128BITAES-CBC-BC SecretKeyFactory not available
Is this a java issue?

Code: [Select]
[2015-09-19 01:00:00,065] ERROR: PBEWITHSHAAND128BITAES-CBC-BC SecretKeyFactory not available
java.security.NoSuchAlgorithmException: PBEWITHSHAAND128BITAES-CBC-BC SecretKeyFactory not available
        at javax.crypto.SecretKeyFactory.<unknown>(Unknown Source)
        at javax.crypto.SecretKeyFactory.getInstance(Unknown Source)
        at com.tchegbe.lib.c.a.a.<init>(Unknown Source)
        at com.tchegbe.lib.c.a.a.<unknown>(Unknown Source)
        at com.tchegbe.lib.c.a.a.a.a(Unknown Source)
        at com.tchegbe.lib.c.a.a.a.<unknown>(Unknown Source)
        at com.tchegbe.lib.c.a.a.a.<unknown>(Unknown Source)
        at com.tchegbe.lib.c.a.a.a.a(Unknown Source)
        at com.tchegbe.lib.io.a.g.c.<unknown>(Unknown Source)
        at com.tchegbe.lib.io.a.g.c.a(Unknown Source)
        at com.tchegbe.lib.io.a.e.o.a(Unknown Source)
        at com.tchegbe.lib.io.a.e.c.a.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
[2015-09-19 01:00:00,065] ERROR: [update] error: NullPointerException[null]
java.lang.NullPointerException
        at javax.crypto.CipherInputStream.getMoreData(Unknown Source)
        at javax.crypto.CipherInputStream.read(Unknown Source)
        at java.util.zip.CheckedInputStream.read(Unknown Source)
        at java.util.zip.GZIPInputStream.<unknown>(Unknown Source)
        at java.util.zip.GZIPInputStream.readUShort(Unknown Source)
        at java.util.zip.GZIPInputStream.readHeader(Unknown Source)
        at java.util.zip.GZIPInputStream.<unknown>(Unknown Source)
        at java.util.zip.GZIPInputStream.<unknown>(Unknown Source)
        at com.tchegbe.lib.c.a.a.a.<unknown>(Unknown Source)
        at com.tchegbe.lib.c.a.a.a.<unknown>(Unknown Source)
        at com.tchegbe.lib.c.a.a.a.a(Unknown Source)
        at com.tchegbe.lib.io.a.g.c.<unknown>(Unknown Source)
        at com.tchegbe.lib.io.a.g.c.a(Unknown Source)
        at com.tchegbe.lib.io.a.e.o.a(Unknown Source)
        at com.tchegbe.lib.io.a.e.c.a.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

Offline Brahim

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8,547
  • Karma: +204/-16
    • View Profile
Re: Update using raidf-install-mgr.sh on Ubuntu
« Reply #5 on: September 19, 2015, 07:42:09 am »
Please, re-run the installation manager and update your installation. There is newer release.
Also, if you wish for a custom install, edit the installation manger and update the root install path. There is only one variable you need to edit at the very top.

Offline frbastiat

  • Newbie
  • *
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Re: Update using raidf-install-mgr.sh on Ubuntu
« Reply #6 on: September 19, 2015, 08:03:42 am »
You may have a problem with the curl call checking to see if you have the latest install manager.
Code: [Select]
LATEST_MGR=$(curl -s dl.flexraid.com/RAID-F_Mgr_Latest.txt)
Returns:
Code: [Select]
2015-09-09
But the install manager has:
Code: [Select]
MANAGER_VERSION=2015-09-19
So this check never passes and loops you back:
Code: [Select]
if [ "$LATEST_MGR" = "$MANAGER_VERSION" ]

Offline Brahim

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8,547
  • Karma: +204/-16
    • View Profile
Re: Update using raidf-install-mgr.sh on Ubuntu
« Reply #7 on: September 19, 2015, 08:14:38 am »
Fixed. Thanks.

Offline brdhse1

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Update using raidf-install-mgr.sh on Ubuntu
« Reply #8 on: September 19, 2015, 11:25:27 am »
I did a manual update. Everything appeared to go smoothly like usual, but like frbastiat I saw this error when opened the WebUI

Code: [Select]
com.google.gwt.user.client.rpc.StatusCodeException
com.google.gwt.user.client.rpc.StatusCodeException: 503
HTTP ERROR: 503
Problem accessing /gwt/rpc. Reason:
    java.lang.ClassCastException: com.db4o.reflect.generic.

My pool was not mounted and my snapshot configuration was gone. 

I backed up /deleted /root/FLexRAID-Config.db and restarted the service.  The error in the WebUI was gone, but so was my snapshot configuration and my pool was still not mounted.

Next I restored the config.cb and reverted back to the previous version of FlexRAID (I made a copy of the install folder before upgrading) and everything is good again. 

Like I said, everything appeared to go smoothly during the manual install, so I'm not sure what I did wrong.  Any ideas?

Offline Brahim

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8,547
  • Karma: +204/-16
    • View Profile
Re: Update using raidf-install-mgr.sh on Ubuntu
« Reply #9 on: September 19, 2015, 12:10:05 pm »
PM me a copy of your DB.
The error is because a configuration entry in your DB could not be migrated properly. The workaround is to start with a new DB and import your RAID configuration.
To start with a new DB, backup the old DB and then delete it. The service will create a new one on startup.

Offline brdhse1

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Update using raidf-install-mgr.sh on Ubuntu
« Reply #10 on: September 20, 2015, 03:52:40 pm »
I sent a copy of my DB.

When you say "import your RAID configuration", are you talking about importing with a backup that I create somewhere or do you mean that I have to recreate the configuration from scratch?  I don't see how to do the former.