Cannot install server 4.3.1 using console installer

8 posts / 0 new
Last post
Anonymous
Cannot install server 4.3.1 using console installer

I'm trying to install Tigase Server 4.3.1-b1858 from the JAR on a CentOS 4.7 server running Java 1.6.0_01-b06.

md5sum: dfb151e901b5e123f587b0ee69d7c033 tigase-server-4.3.1-b1858.jar

I get as far as selecting the modules I want and unpacking before this happens:

[ Starting to unpack ]
[ Processing package: Base (1/5) ]
[ Processing package: Unix Files (2/5) ]
[ Processing package: Docs (3/5) ]
[ Processing package: Extras (4/5) ]
[ Processing package: MySQL Database driver (DB not included) (5/5) ]
[ WARNING: Error executing
/bin/chmod a+x /opt/tigase/scripts/tigase.sh ]
[ ERROR: The installation was not completed ]
[ Unpacking finished ]

If I then manually run /bin/chmod a+x /opt/tigase/scripts/tigase.sh, that works fine.

Re-running the installer at this point (btw, paging through the GPL every time gets tiresome) gets me slightly further, but now fails in a different way:

[ Starting to unpack ]
[ Processing package: Base (1/5) ]
[ Processing package: Unix Files (2/5) ]
[ Processing package: Docs (3/5) ]
[ Processing package: Extras (4/5) ]
[ Unpacking finished ]
[ ERROR: Internal error occured : java.io.EOFException ]
java.io.EOFException
at java.io.DataInputStream.readInt(DataInputStream.java:375)
at java.io.ObjectInputStream$BlockDataInputStream.readInt(ObjectInputStream.java:2774)
at java.io.ObjectInputStream.readInt(ObjectInputStream.java:950)
at com.izforge.izpack.installer.Unpacker.run(Unknown Source)
at java.lang.Thread.run(Thread.java:619)

As to why MySQL (5/5) is skipped, I don't know.

Any ideas about this?

Application: 

You install the Tigase in the /opt directory, do you do it as a root user or as a normal user? Please note the normal user may have not enough permission to create files in certain locations of the filesystem.
There might be some special setting for the /opt directory which prevent setting executable bit for files. Which in turn generates an exception in the installer, I am not sure. To be honest nobody ever reported such a problem.
As for the last error. As far as I know the installer has some problems with installing files on the existing installation. We are trying to resolve this. Hopefully the problem is fixed in the next version.

Anonymous

I tried this as a regular user in my home directory, then as root into /opt.

It can write the files and I can manually run chmod without any problems.. there are no special noexec permissions or anything like that.

I guess I'll wait for the next release!

anton

I have exactly the same problem the topicstarter has described for both steps.

I am running "java -jar tigase-server-4.3.1-b1858.jar -console" on remote ssh server

java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Server VM (build 10.0-b23, mixed mode)

I am trying to install tigase to my remote home directory and I have write permissions to this dir (as soon as most of files are created) and I can also execute "/bin/chmod a+x /home/benderamp/apps/tigase/scripts/tigase.sh" command manually with no problems, though the script reports it can't do this.

anton

And I have just checked - I do not have this problem on my local linux machine, though I'm doing almost same things here. I can provide more info/perform experiments on remote machine on request.

This is an interesting thing indeed. I have to check it out.

I am almost certain that in some cases operating system settings force the initial file permissions to be noexec for /home directory (and sometimes others). To be honest I am not an expert admin, so I can not provide you with any more details or a reliable way to check it out.

I will try to work on the installer, maybe there is a way to set permissions correctly in a different way.

Anyway, thank you for reporting the problem. If you happen to have any more details or suggestions, please do not hesitate to let me know.

anton

I have checked filesystem on the remote host:

$ cat /etc/fstab
none /dev/pts devpts rw 0 0
/dev/vzfs / vzfs rw 0 0

$ mount
/dev/vzfs on / type vzfs (rw)

filesystem is vzfs - as I could quickly see from its description, it is used on hostings with virtualization and it migh have some special distinctions from common filesystems, so this might be the most probable source of this issue.

Ritsu

Same problem here:

[ Starting to unpack ]
[ Processing package: Base (1/6) ]
[ Processing package: Unix Files (2/6) ]
[ Processing package: Docs (3/6) ]
[ Processing package: Extras (4/6) ]
[ Processing package: Groovy scripting (5/6) ]
[ Processing package: MySQL Database driver (DB not included) (6/6) ]
[ WARNING: Error executing
/bin/chmod a+x /opt/tigase/scripts/tigase.sh ]
[ ERROR: The installation was not completed ]
[ Unpacking finished ]

Manually chmod works perfect. CentOS5, root user, latest Tigase, console installation.