Joinutility seperatorLogin utility separator Infobright.com
   
 
ICE, Talend and Jaspersoft VM guest running on Linux host..appliance not starting?
Posted: 24 November 2009 10:58 AM   Ignore ]  
Newbie
Rank
Total Posts:  5
Joined  2009-11-24

Hi All,

Apologies if this is documented somewhere but last night I downloaded the latest Infobright and Talend integrated VM (that includes JasperserverCE) to my PC.

I have not seen whether this vm is supported on LINUX HOSTS????  I have only come across windows xp and mac vmware installation steps?

Nonetheless…

I have since extracted the RAR archive to one of our linux servers (RedHat Enterprise Linux 5) and completed the brief configuration of the VM in vmware player (player for 32 bit linux).

The current environment is as follows:

Dual Xeon 3Ghz Intel 32bit Processors
4GB RAM
RAID 10 SCSI disk array
...and in VMWare…
Shared Directory is defined and enabled
Network card placed in Bridged mode
I cannot see any glaring problems, all hardware and SCSI disk array has been detected by vmware (barring the missing floppy disk)

I had a problem initially whereby the network card was not being bound correctly resulting in a failed Appliance startup (stuck at “Powering on”) but thanks to some posts by Geoffrey Falk I have sorted myself out there (delete and recreate of ethernet auto detection).

Now, I am getting past the Powering up portion of the appliance view screen and am getting hung up at the message “Starting Appliance Services”

If I leave appliance view and log into the ubuntu console I have network (ethernet up and pinging peers on my network no problem) so I am ASSUMING that jaspersoft should be able to launch itself and bind to port 8080 on that ip address (dhcp provided)??  Also, tail’ing the vmware.log file I see the references to jaspersoft and the launching of mysql etc… and all appears to be launching no problem?
One item that may bring in an element of complexity for VMWare is that my dual NICS have been bonded together on the linux redhat ent 5 HOST and are communicating through interface “bond0” (bond0=eth0+eth1).  Should I start troubleshooting in the direction of the bonded interfaces??

Any assistance would be a tremendous help!

I really don’t want to have to run a linux guest OS on a windows vmware host when I have some strong production linux boxes available to me!?

TIA for your superb open source efforts!!  I must remind you all how appreciated it is!

TinTin

Profile
 
Posted: 26 November 2009 10:29 AM   Ignore ]   [ # 1 ]  
Administrator
RankRankRank
Total Posts:  125
Joined  2008-08-18

Hi TinTin;

We do run, and create some of the VMs on RedHat Enterprise Linux 64bit host machines.

then run tests using both VMware player and VMware workstation.

if you can go to the console, and see everything is up; that would indicate that the vm itself is running.

I’m assuming inside the VM, can you run mysql-ib and execute some simple sql.

So then it would be a network setup problem between the host network and the VM.

I’ve not worked with bonded networks;  the VMware site may be a place to look for more on that;

Have you any other VMs running on this host?

You say you can ping your network from inside the VM;

Can a machine on your network ping the image?
does the ip the VM has make sense to your network setup?

can you ssh into the image from your Linux host?

if you could post (or email) samples of the logs, that would let me see if there is anything I recognize.

thanks
tw

Profile
 
Posted: 30 November 2009 07:10 AM   Ignore ]   [ # 2 ]  
Newbie
Rank
Total Posts:  5
Joined  2009-11-24

Hi Todd!

Firstly, thanks so much for your reply and apologies I am only getting back to now!  I will be in the office all of this week and am really keen to get this running asap (keep the faith smile )

So as to simplify things I have removed the bonding config from the linux host server and it’s now each interface for itself.  ethernet0 is UP on the host on a 192.168.18.0/24 network (address 192.168.18.11)...so no bonding to complicate things. Ethernet1 is DOWN (it’s a dual NIC server) but there are two vmnet interfaces created by VMWARE Player??

Restarting the VM but no luck, APPLIANCE view doesn’t fire into the jaspersoft login screen [which I suppose is where I should be directed to on bootup of the VM?]  I’ve checked that Bridged Mode is selected for the VM’s network card setup in vmware on the host.

So, going into the CONSOLE of the VM itself…

I can ping myself (ping localhost resolves to 127 address)
I can ping my NIC (dhcp supplied address 192.168.18.109)
I can ping other network hosts both on LAN and through my gateway
These other network peers can also ping back to the VM

running a netstat -an I see that port 8080 has not been bound to anything so no joy with the webserver.  This can be confirmed by trying to browse to localhost:8080/jasperserver [firefox returns an http cannot connect screen]

MYSQL, I can run the command as you suggested mysql-ib and get a mysql console.  I have not queried the database at all (do you know the DB login credentials/name??]  mysql appears to have started and is running OK.

I have checked the logs in var/log/ in the ubuntu VM and they don’t appear to be complaining about anything?
When booting the VM and watching the bootup in CONSOLE mode there are no errors reported [aside from a message after Hardware Detection that “SMBus is not enabled”, but this is followed by an OK]

BUT…
2 things I have found!

checking /etc/hosts in the VM, there is the following:

ice@ice32:/etccat hosts
127.0.0.1       localhost
192.168.3.32    ice32
.localdomain       ice32

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00
::0 ip6-localnet
ff00
::0 ip6-mcastprefix
ff02
::1 ip6-allnodes
ff02
::2 ip6-allrouters
ff02
::3 ip6-allhosts
ice
@ice32:/etc

Why is the ice32.localdomain pointing to 192.168.32? [My network is 192.168.18.0]

The final thing I did find!

I tried to manually start the jaspersoft server…and also logged after numerous VM restarts I see the following in my apache logging dir

Nov 302009 6:58:05 AM org.apache.catalina.startup.Catalina load
INFO
Initialization processed in 1854 ms
Nov 30
2009 6:58:06 AM org.apache.catalina.core.StandardService start
INFO
Starting service Catalina
Nov 30
2009 6:58:06 AM org.apache.catalina.core.StandardEngine start
INFO
Starting Servlet EngineApache Tomcat/6.0.20
Nov 30
2009 6:58:07 AM org.apache.catalina.startup.HostConfig deployWAR
INFO
Deploying web application archive birt.war
Nov 30
2009 6:58:18 AM org.apache.coyote.http11.Http11Protocol start
SEVERE
Error starting endpoint
java
.net.BindExceptionAddress already in use<null>:8080
        at org
.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:509)
        
at org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:526)
        
at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:203)
        
at org.apache.catalina.connector.Connector.start(Connector.java:1131)
        
at org.apache.catalina.core.StandardService.start(StandardService.java:531)
        
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        
at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
        
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        
at java.lang.reflect.Method.invoke(Method.java:597)
        
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Nov 302009 6:58:18 AM org.apache.catalina.startup.Catalina start
SEVERE
Catalina.start:
LifecycleException:  service.getName(): "Catalina";  Protocol handler start failedjava.net.BindExceptionAddress already in use<null>:8080
        at org
.apache.catalina.connector.Connector.start(Connector.java:1138)
        
at org.apache.catalina.core.StandardService.start(StandardService.java:531)
        
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        
at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
        
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        
at java.lang.reflect.Method.invoke(Method.java:597)
        
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Nov 302009 6:58:18 AM org.apache.catalina.startup.Catalina start
INFO
Server startup in 12612 ms
ice
@ice32:/usr/local/apache-tomcat-6.0.20/logs

The path to that file is ice@ice32:/usr/local/apache-tomcat-6.0.20/logs/catalina.2009-11-30.log

Looks as though it is TRYING to bind to port 8080 but no joy??  Yet checking the network for any binding to 8080 yields nothing?

hmmmm….

Does the jasperserver have any form of debug logs etc… that I can check??

Thanks again for reading my novel in an effort to help!  Much appreciated

TinTin

Profile
 
Posted: 30 November 2009 07:39 AM   Ignore ]   [ # 3 ]  
Newbie
Rank
Total Posts:  5
Joined  2009-11-24

some additional info…

I have just checked my /var/log/apache2/error.log file and the following is in there:

[Mon Nov 30 05:28:30 2009] [notice] Apache/2.2.8 (Ubuntuconfigured -- resuming normal operations
[Mon Nov 30 06
:14:10 2009] [error] [client 127.0.0.1] File does not exist: /var/www/jasperserver
[Mon Nov 30 06
:14:10 2009] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Mon Nov 30 06
:14:13 2009] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Mon Nov 30 06
:14:41 2009] [error] [client 127.0.0.1] File does not exist: /var/www/jasperserver 

Checking the var/www directory and the jasperserver files do not reside in there??

Profile
 
Posted: 30 November 2009 02:12 PM   Ignore ]   [ # 4 ]  
Administrator
RankRankRank
Total Posts:  125
Joined  2008-08-18

Hi TinTin;

Just want to confirm which VM you are using;

the combined version:
http://www.infobright.org/downloads/vm/ice32-322-Jasper35CE-TOS321-vm.rar

if that is the case you may want to try the following:

as root inside the VM image:

login as ice userid, and you can use sudo.
password is in the readme in the downloaded file

sudo su -


1.
remove the line in
/etc/hosts
192.168.3.32    ice32
.localdomain       ice32
and add ice32 to the line above:
127.0.0.1       localhost ice32

2. edit 
/etc/udev/rules.d/70-persistent-net.rules

remove all lines 
and resave.

3. restart the vm image

FYI: the apache server on 80 is just for the appliance’s welcome page; the jaspersoft should be on port 8080
(that is why you are seeing the file does not exist error in the apache logs)

let me know if that works;

if so, then you could try re-enabling the bonded network…

tw

Profile
 
Posted: 30 November 2009 02:22 PM   Ignore ]   [ # 5 ]  
Administrator
RankRankRank
Total Posts:  125
Joined  2008-08-18

one more note:

if you login from the vm image using the mysql-ib commandline, there is no password configured, by default.
(you are logged in as “root” in the mysql database)

select * from mysql.user;

shows the installed users.

you can add a new user/password, using the standard mysql admin commands.

by default there is a remote user enabled: ice
with same password as the os.

tw

Profile
 
Posted: 02 December 2009 05:55 AM   Ignore ]   [ # 6 ]  
Newbie
Rank
Total Posts:  5
Joined  2009-11-24

Hi Todd!

Strangely enough I haven’t received any mails notifying me of your reply so apologies for only getting back to you now!  I came across your reply a short while ago and immediately tried the hosts file change but still no joy :(

CONFIRMED YES that I am using the same VM fully integrated download .rar you mentioned.

Changed the hosts file and removed the line entries from /etc/udev/rules.d/70-persistent-net.rules, saved all and rebooted the VM.

No change to report on…

So, instead of adding ice32 hostname to the localhost mapping in /etc/hosts I inserted a new line and tried mapping the name to the eth0 network address.  As a result, my hosts file looks as follows:

ice@ice32:/etccat hosts

127.0.0.1       localhost
192.168.18.109  ice32
.localdomain ice32

# 192.168.18.109 above is my ethernet0 dhcp issued address which persists across reboots

#192.168.3.32   ice32.localdomain       ice32

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00
::0 ip6-localnet
ff00
::0 ip6-mcastprefix
ff02
::1 ip6-allnodes
ff02
::2 ip6-allrouters
ff02
::3 ip6-allhosts 

I confirmed through the tests that I could ping the box by it’s ice32 hostname and on each test it pinged correctly [First the localhost 127 address mapping and then response from the 18.109 address on the second hosts file test].

No errors to report on during boot.  It certanly does appear to be the jasperserver portion that is failing.  I can browse to the apache server port 80 page [displays info about infobright etc… no problem].  When I try the jasperserver path, nothing is returned?

HOW CAN I ATTEMPT A MANUAL START OF THE JASPERVER AND WHERE CAN WE GO SO AS TO VIEW ITS STARTUP/OPERATING LOGS??

Thanks for your mysql post, I connected and queried the mysql users table without any problems!  I anticipate accessing the mysql DB remotely from my windows client [as well as from within Talend] so as to query data once this puppy is running correctly!

Any other thoughts :/

I must tell you, my personality type will have me troubleshooting this thing until the cows come home!  I will keep a close eye on the forum so as to pickup and act on any further replies as and when they become available.

Thanks again,
TINTIN

Profile
 
Posted: 02 December 2009 06:55 AM   Ignore ]   [ # 7 ]  
Administrator
RankRankRank
Total Posts:  125
Joined  2008-08-18

Hi TinTin;

there is a controller/startup script here:
/etc/init.d/jasperctl.sh

you can run

sudo  /etc/init.d/jasperctl.sh restart 

it should echo the install dir:

/usr/local/jasperserver-3.5.1/apache-tomcat 

and the main log file is here

/usr/local/jasperserver-3.5.1/apache-tomcat/logs/catalina.out 

p.s.
there should be a checkbox at the bottom of this page, when you have the edit box open,
that says “Notify me via email when someone posts in this thread”
if that is checked, and you are NOT getting an email, check your member info, and make sure the email is correct;

if it is, let me know and that is a forum bug wink and we should look into it.

tw

[ Edited: 02 December 2009 06:59 AM by Todd Wongkee]
Profile
 
Posted: 02 December 2009 08:09 AM   Ignore ]   [ # 8 ]  
Newbie
Rank
Total Posts:  5
Joined  2009-11-24

Mr Wongkee!

Well smile

I opened up a shell and fired off the restart command as you posted…

The results as follows:

ice@ice32:~$ sudo /etc/init.d/jasperctl.sh restart
[sudo] password 
for ice
Using CATALINA_BASE:   /usr/local/jasperserver-3.5.1/apache-tomcat
Using CATALINA_HOME
:   /usr/local/jasperserver-3.5.1/apache-tomcat
Using CATALINA_TMPDIR
: /usr/local/jasperserver-3.5.1/apache-tomcat/temp
Using JRE_HOME
:       /usr/local/jasperserver-3.5.1/java
/etc/init.d/jasperctl.sh mysql stopped
/etc/init.d/jasperctl.sh mysql  started
nohup
redirecting stderr to stdout
Starting mysqld daemon with databases from 
/usr/local/jasperserver-3.5.1/mysql/data
Using CATALINA_BASE
:   /usr/local/jasperserver-3.5.1/apache-tomcat
Using CATALINA_HOME
:   /usr/local/jasperserver-3.5.1/apache-tomcat
Using CATALINA_TMPDIR
: /usr/local/jasperserver-3.5.1/apache-tomcat/temp
Using JRE_HOME
:       /usr/local/jasperserver-3.5.1/java 

...interesting how mysql appeared to be stopped?  nonetheless the script started mysql and the following was logged in the Catalina.out file

Dec 22009 7:39:20 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO
Initializing Coyote HTTP/1.1 on http-8080
Dec 2
2009 7:39:20 AM org.apache.catalina.startup.Catalina load
INFO
Initialization processed in 728 ms
Dec 2
2009 7:39:20 AM org.apache.catalina.core.StandardService start
INFO
Starting service Catalina
Dec 2
2009 7:39:20 AM org.apache.catalina.core.StandardEngine start
INFO
Starting Servlet EngineApache Tomcat/5.5.20
Dec 2
2009 7:39:21 AM org.apache.catalina.core.StandardHost start
INFO
XML validation disabled
Dec 2
2009 7:39:30 AM org.apache.coyote.http11.Http11BaseProtocol start
INFO
Starting Coyote HTTP/1.1 on http-8080
Dec 2
2009 7:39:30 AM org.apache.jk.common.ChannelSocket init
INFO
JKajp13 listening on /0.0.0.0:8009
Dec 2
2009 7:39:30 AM org.apache.jk.server.JkMain start
INFO
Jk running ID=0 time=0/51  config=null
Dec 2
2009 7:39:31 AM org.apache.catalina.storeconfig.StoreLoader load
INFO
Find registry server-registry.xml at classpath resource
Dec 2
2009 7:39:31 AM org.apache.catalina.startup.Catalina start
INFO
Server startup in 10211 ms 

Once started, I went to the VM desktop and hit the JasperServer icon and was rewarded with a login screen smile

I’ve logged into the jasperserver and it’s working, let the games begin!

The final question?
I tried to go back into Appliance Mode but am unable to see the login?  I’m assuming that the appliance is ‘built’ at boot time and so a restart would be necessary so as have it run?  If I restart the VM however, I don’t believe that the jasperserver will boot up and start by itself??  I will look through some of the jasperserver logs so as to see whether any bootup issues are logged!

At least I can access the browser after the manual start!

Thanks so much,
TinTin

PS - Having checked my mails I did in fact receive the post notification mail so no problems from the forum to report wink

Profile
 
Posted: 02 December 2009 11:43 AM   Ignore ]   [ # 9 ]  
Administrator
RankRankRank
Total Posts:  125
Joined  2008-08-18

Good News that you are seeing the web pages within the image;

further notes/questions:

1)Q:
Can you see your server from “outside” on another machine on the network, a windows or other linux machine?

You should be able to access/use the jasper server web app from anywhere on your network;
and that is how I assume you would use it; 

The primary use of the full VM with gui is for the (eclipse) GUI for building your app, not just running the web browser.

once you have completed development, you could move a smaller vm (without gui) for running your application.

2)note:
once you have saved your changes, the VM should restart everything on a reboot;
I would be interested in the logs if this does not occur.

thanks
tw

Profile