Jasperserver 5.5 on rhel6 fails

Hi,

I am trying to install Jasperreports server 5.5 on an RHEL 6 system. If the installation is done as root user, it completes without any issues. But if the same is done with a non root user, it fails with issues regarding permission. I have checked on the forum for such cases, but they have had issues with the host names. But my /etc/hosts results as "127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4". I am pretty sure, host name is not the issue in my case. 

I have tried the custom installation where I used the bundled tomcat and postgres but did not install the sample db and reportsand it fails with this message:

Total time: 14 seconds
Problem running post-install step. Installation may not complete correctly
 Error running /home/mviva/jasperreports-server-5.5/apache-ant/bin/ant import-minimal-pro : 
BUILD FAILED
/home/mviva/jasperreports-server-5.5/buildomatic/bin/import-export.xml:269: The following error occurred while executing this line:
/home/mviva/jasperreports-server-5.5/buildomatic/bin/import-export.xml:158: Java returned: 255

I also tried default install. It also fails with this message:

Problem running post-install step. Installation may not complete correctly
 Error running /home/mviva/jaspersoft/apache-ant/bin/ant import -DimportFile=install_resources/export/js-catalog : 
BUILD FAILED
/home/mviva/jaspersoft/buildomatic/bin/import-export.xml:240: The following error occurred while executing this line:
/home/mviva/jaspersoft/buildomatic/bin/import-export.xml:158: Java returned: 255
 
 
nanda_p_kumar's picture
Joined: Aug 3 2013 - 6:57am
Last seen: 8 years 6 months ago

2 Answers:

The bundle installer needs to be root user or sudo(ed) to be able to perform the full instalation. If you need to install as a non root user you will have to use the WAR file instalation see Chapter 5 of the Jasperserver Install Guide

marianol's picture
16214
Joined: Sep 13 2011 - 8:04am
Last seen: 4 years 8 months ago

Thank you Marianol.

I would like to know, if I install as root user/sudoer, is there a way to start jasperreports server as non root user?
Could you also please let me know if I would be able to import and export the jasperreports server repo if I install using the war file?

Thanks
Nanda<strong><<<<<< This comment was blocked and unpublished because <a href="http://www.projecthoneypot.org/">Project Honeypot</a> indicates it came from a suspicious IP address.</strong>

nanda_p_kumar - 9 years 5 months ago

Thank you Marianol.

If I install using root/sudoer, is there any way to start the Jasperreports server as a non root user/without sudo?
Could you also let me know, if in the war file installation, would I be able to import/export the Jasperreports server repo?

Thanks & Regards,
Nanda

nanda_p_kumar - 9 years 5 months ago

Hi, I tried installing using the war file distribution. It completed successfully. I used the minimal install. But now, when I start the tomcat, I get an error saying " Cannot find tenant by ID : organizations". Why does this happen? I got this same problem even during the bundled installer.<strong><<<<<< This comment was blocked and unpublished because <a href="http://www.projecthoneypot.org/">Project Honeypot</a> indicates it came from a suspicious IP address.</strong>

nanda_p_kumar - 9 years 5 months ago

@Marianol -- the following Jaspersoft community article explains that the bundle install can be done as non-root, and has specific instructions to do so [http://community.jaspersoft.com/wiki/install-bundled-package-jasperrepor....

 

We have installed the bundle as non-root successfully -- as one user -- but with a different user we are getting the same error as shown above.  Still investigating.
==> Update:  Now all non-root users work correctly when installing the bundle (as of Dec 26).  No special permissions or sudo are required.  See update comment below for more info.

jeffb.collab's picture
Joined: Aug 19 2013 - 2:42pm
Last seen: 9 years 3 months ago

Yes, non-root bundle install does consistently work fine. The problem we had was that certain directories in /tmp must be deleted prior to install even though they do not appear to belong to Jaspersoft. Fyi /tmp/main/ was the most elusive for us (since it looked rather generic).

jeffb.collab - 9 years 5 months ago
Feedback
randomness