PDA

View Full Version : Command not found ./run.conf... Ubuntu install



bglazier
10-25-2006, 01:08 PM
Hello,

I have tried to install onto two ubuntu servers. Both give the same errors when running start-pentaho.sh

./start-pentaho.sh
: command not found
: command not found
: command not found:
: command not found:
: command not found:
: command not found:
: command not found:
./run.conf: line 52: syntax error: unexpected end of file

The rest of the startup seems to go ok, except for the last line

./run.sh: line 181: 29747 Killed "$JAVA" $JAVA_OPTS -DJvav.endorsed.dirs="$JBOSS_ENDORSED_DIRS" -classpath "$JBOSS_CLASSPATH" org.jboss.Main "$Q"

I really have no clue what is causing this problem, having gone through the chmod and jdk tool.jar issues, now i'm really stuck.

Ben Glazier

mbatchelor
10-25-2006, 04:58 PM
It sounds like the shell scripts somehow have Windows-like carriage-return/line-feed characters in 'em.

Could you give a quick check of that and see if that's the problem?

bglazier
10-26-2006, 05:49 AM
Thanks,

That got me a bit closer,

Here's what I'm using:
Kubuntu 6.06
Java SDK 1.5: $JAVA_HOME=/usr/lib/j2sdk1.5-sun/
Latest Precompiled Demo Pentaho BI

**
Here's what I have done so far:

sudo chmod + x /opt/pentaho-demo/*.sh
sudo chmod + x /opt/pentaho-demo/data/*.sh
sudo chmod + x /opt/pentaho-demo/jboss/bin/*.sh

sudo dos2unix /opt/pentaho-demo/*.sh
sudo dos2unix /opt/pentaho-demo/data/*.sh
sudo dos2unix /opt/pentaho-demo/jboss/bin/*.sh
sudo dos2unix /opt/pentaho-demo/jboss/bin/run.conf

(Can and should i run this dos2unix command recursively on all directories containing XML, CONF and SH files?)

I have tomcat running on 8080, so I did the following:

sudo vi /opt/pentaho-demo/jboss/server/default/deploy/pentaho.war/WEB-INF/web.xml

Changed the line from: <param-value>http://localhost:8080/pentaho/</param-value>
To:
<param-value>http://localhost:8081/pentaho/</param-value>
Also I added the directory for the samples: <param-value>/opt/pentaho-demo/pentaho-solutions/</param-value>

sudo vi /opt/pentaho-demo/jboss/server/default/deploy/jbossweb-tomcat55.sar/server.xml
The line:
<Connector port="8080" address="${jboss.bind.address}"
Changed to:
<Connector port="8081" address="${jboss.bind.address}"


Then I start up the hypersonic & jboss server with:
sudo sh /opt/pataho-demo/start-pentaho.sh

The hypersonic database starts up and I get Pentaho BI Platform server is ready.

Ah I thought great, its going to work? But:

http://localhost:8081/pentaho/Navigate

gives me:

*********************************************************

type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(Unknown Source)

root cause
java.lang.NullPointerException
org.apache.jsp.jsp.Navigate_jsp._jspService(org.apache.jsp.jsp.Navigate_jsp:104)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(Unknown Source)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.
Apache Tomcat/5.5.9

*************************************************************

I am not sure what to try next, any suggestions most welcome.

PS. on the 2nd machine i'm setting up (same os etc), I get a unable to allocated heap, which I guess means i'm out of memory (is only 128 MB on a xen virtual server).

Many thanks for the help.

Ben Glazier

bglazier
10-27-2006, 04:03 AM
Here's more information from the server.log file:
The last few lines are:

2006-10-27 12:53:49,654 DEBUG [org.pentaho.repository.filebased.solution.SolutionRepository] SOLUTION-REPOSITORY:: SolutionRepository.DEBUG_FILE - getFile path=/opt/pentaho-demo/pentaho-solutions/system/tmp/icons
2006-10-27 12:53:50,019 DEBUG [org.pentaho.ui.component.NavigationComponent] 40082ECA9427F31B05E98E59A797BA81::: <center>
<table width="99%" border="0">
<tr>
<td width="99%">
<center>
<table width="100%" border="0">
<tr>
<td widthx="100%" bgcolor="#e7e7e7">
<center>
<table width="850" cellpadding="4" style="border: 1px solid #cecece; background-color: white">
<tr>
<td rowspan="2" width="100" style="border: 1px solid #cecece" valign="top"><img border="0" src="http://localhost:8081/pentaho/getImage?image=icons/solutions.png">
<td style="border: 1px solid #cecece;height:10px;"><a class="portlet-section-header" href="javascript:void">Pentaho BI Components Demo</a>
</tr>
<tr>
<td height="100%" class="portlet-font">These sample JSP pages show how Pentaho components can be used in web pages.
<p/>
The Pentaho BI Platform includes these sample JSP to show how our BI components can be
embedded into another application's web pages.
<p/>
Use the options on the menu below to try the samples.
<p/>
Read the <a href="http://sourceforge.net/project/showfiles.php?group_id=140317" target="sf">'Creating Pentaho Solutions'</a>
document for information on how to modify the examples or build your own system.

</tr>
</table>
</center>

</tr>
<tr>
<td colspan="2">
<center>
<table>
<tr>

<td valign="top">
<table>
<tr>
<td width="100%">
<table width="280" cellpadding="4" style="border: 1px solid #cccccc">
<tr>
<td rowspan="2" width="100" style="border: 1px solid #cecece" valign="top"><a href="http://localhost:8081/pentaho/./Navigate?&solution=samples&path=&action="><img border="0" src="http://localhost:8081/pentaho/getImage?image=icons/samples.png"></a>
<td style="border: 1px solid #cecece;height:10px;font-size:12px;font-weight:bold"><a class="portlet-section-subheader" href="http://localhost:8081/pentaho/./Navigate?&solution=samples&path=&action=">A Collection of Samples and Examples</a>
</tr>
<tr>
<td height="100%" class="portlet-font">A collection of examples showing features that are ready for use in the Pentaho BI Platform
</tr>
</table>

</tr>
<tr>
<td valign="top">
</tr>
</table>

<td valign="top">
<table>
<tr>
<td width="100%">
<table width="280" cellpadding="4" style="border: 1px solid #cccccc">
<tr>
<td rowspan="2" width="100" style="border: 1px solid #cecece" valign="top"><a href="http://localhost:8081/pentaho/./Navigate?&solution=Advanced&path=&action="><img border="0" src="http://localhost:8081/pentaho/getImage?image=icons/admin.png"></a>
<td style="border: 1px solid #cecece;height:10px;font-size:12px;font-weight:bold"><a class="portlet-section-subheader" href="http://localhost:8081/pentaho/./Navigate?&solution=Advanced&path=&action=">Settings and Services</a>
</tr>
<tr>
<td height="100%" class="portlet-font">Links for updating the system settings and web service examples
</tr>
</table>

</tr>
<tr>
<td valign="top">
</tr>
</table>

<tr>

<td valign="top">
<table>
<tr>
<td>
<table>
<tr>
<td width="100%">
<table width="280" cellpadding="4" style="border: 1px solid #cccccc">
<tr>
<td rowspan="2" width="100" style="border: 1px solid #cecece" valign="top"><a target="pentaho_portal" href="/portal"><img border="0" src="http://localhost:8081/pentaho/getImage?image=icons/portal.png"></a>
<td style="border: 1px solid #cecece;height:10px;"><a class="portlet-section-subheader" target="pentaho_portal" href="/portal">Portal demo</a>
</tr>
<tr>
<td height="100%" class="portlet-font">Try the Pentaho Portal Demo which includes all the samples available here and some additional dashboard ones
</tr>
</table>

</tr>
</table>

</tr>
</table>

</table>
</center>

</tr>
</table>
</center>

</tr>
<tr>
<td align="right"><a href="http://www.pentaho.org/license" title="About the Pentaho Public License" target="pentaho_license" class="portlet-font">
&copy;Pentaho 2005
</a>
</tr>
</table>
</center>
2006-10-27 12:53:50,020 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/pentaho].[Navigate]] Servlet.service() for servlet Navigate threw exception
java.lang.NullPointerException
at org.apache.jsp.jsp.Navigate_jsp._jspService(org.apache.jsp.jsp.Navigate_jsp:104)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(Unknown Source)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Unknown Source)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)

mbatchelor
10-30-2006, 11:22 AM
In searching through all the posts on this topic, it's not clear to me what version of the platform you're running.

bglazier
10-30-2006, 11:38 AM
Marc,

I am using the PCI:
pentaho-demo-1.0.0.0.156-GA.noarch.rpm

Thanks,

Ben.

mbatchelor
10-31-2006, 08:29 AM
Whew - OK, that explains a whole bunch.

Could you start with the 1.2 RC3 rpm? We've fixed a whole bunch of issues since that 1.0.

Thanks,

Marc

bglazier
10-31-2006, 10:37 AM
Marc,

Thanks so much, wow, alien -i, and sh start-pentaho.sh and off it went!

I can't beleive I didnt think of trying the RC.

Thanks again

Ben Glazier