Pentaho 未启动,因为它尝试绑定到已被其自身使用的端口 9092
Pentaho not starting because it tries bind to port 9092 already used by itself
我正在尝试在 Debian Jessie 上启动 Pentaho
服务器。
Pentaho 通过显示以下错误来废话:
15:55:24,198 WARN [PentahoSolutionSpringApplicationContext] Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.h2.tools.Server' defined in file [/opt/pentaho-biplatform-ce-6.1.0.1-196/biserver-ce/pentaho-solutions/system/GettingStartedDB-spring.xml]: Invocation of init method failed; nested exception is org.h2.jdbc.JdbcSQLException: Exception opening port "H2 TCP Server (tcp://localhost:9092)" (port may be in use), cause: "timeout" [90061-131]
错误很明显 - 端口 9092 被其他东西使用。问题是它实际上被 Pentaho 使用,所以它抱怨当前自己使用的端口...
为了测试我是否已将以下文件中的端口更改为 9093:
./pentaho-solutions/system/GettingStartedDB.properties
现在异常之间的唯一区别是那个端口,这次是9093,所以它肯定会抱怨它正在使用的端口,很奇怪。
可在此处找到完整日志:http://ix.io/1ydv
想法?
尝试将以下属性添加到 start_pentaho.sh 文件中的 CATALINA_OPTS 选项:
CATALINA_OPTS="...-Dh2.bindAddress=ip_of_your_machine"
它帮助我消除了异常打开端口"H2 TCP Server (tcp://localhost:9092)"(端口可能正在使用)错误。
在 start_pentaho.sh 文件的 CATALINA_OPTS 选项中添加如下内容解决了这个问题:
CATALINA_OPTS="...-Dh2.bindAddress=localhost"
问题的根本原因是你的服务器的hostname
没有指向127.0.0.1
只需将此行添加(编辑)到您的 /etc/hosts
:
127.0.0.1 localhost YOUR_HOST_NAME
我正在尝试在 Debian Jessie 上启动 Pentaho
服务器。
Pentaho 通过显示以下错误来废话:
15:55:24,198 WARN [PentahoSolutionSpringApplicationContext] Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.h2.tools.Server' defined in file [/opt/pentaho-biplatform-ce-6.1.0.1-196/biserver-ce/pentaho-solutions/system/GettingStartedDB-spring.xml]: Invocation of init method failed; nested exception is org.h2.jdbc.JdbcSQLException: Exception opening port "H2 TCP Server (tcp://localhost:9092)" (port may be in use), cause: "timeout" [90061-131]
错误很明显 - 端口 9092 被其他东西使用。问题是它实际上被 Pentaho 使用,所以它抱怨当前自己使用的端口...
为了测试我是否已将以下文件中的端口更改为 9093:
./pentaho-solutions/system/GettingStartedDB.properties
现在异常之间的唯一区别是那个端口,这次是9093,所以它肯定会抱怨它正在使用的端口,很奇怪。
可在此处找到完整日志:http://ix.io/1ydv
想法?
尝试将以下属性添加到 start_pentaho.sh 文件中的 CATALINA_OPTS 选项:
CATALINA_OPTS="...-Dh2.bindAddress=ip_of_your_machine"
它帮助我消除了异常打开端口"H2 TCP Server (tcp://localhost:9092)"(端口可能正在使用)错误。
在 start_pentaho.sh 文件的 CATALINA_OPTS 选项中添加如下内容解决了这个问题:
CATALINA_OPTS="...-Dh2.bindAddress=localhost"
问题的根本原因是你的服务器的hostname
没有指向127.0.0.1
只需将此行添加(编辑)到您的 /etc/hosts
:
127.0.0.1 localhost YOUR_HOST_NAME