cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] rhtyd commented on a change in pull request #2226: CLOUDSTACK-10012: Towards CloudStack fat jar
Date Thu, 01 Jan 1970 00:00:00 GMT
rhtyd commented on a change in pull request #2226: CLOUDSTACK-10012: Towards CloudStack fat
jar
URL: https://github.com/apache/cloudstack/pull/2226#discussion_r148776777
 
 

 ##########
 File path: client/conf/server.properties.in
 ##########
 @@ -0,0 +1,41 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# The binding interface used by the management server
+bind.interface=0.0.0.0
 
 Review comment:
   Hi @wido I think the standard I've seen in mysql and elsewhere is to use this. It's a matter
of config issue, and ipv6 may not be enabled on all systems.
   
   For me it fails when JAVA_OPT has `-Djava.net.preferIPv4Stack=true` set, and bind.interface
has `::` set. Exception seen is:
   ```
   WARN  [o.e.j.u.c.AbstractLifeCycle] (main:null) (logid:) FAILED ServerConnector@4e9ba398{HTTP/1.1}{:::8080}:
java.net.SocketException: Protocol family unavailable
   java.net.SocketException: Protocol family unavailable
   	at sun.nio.ch.Net.bind0(Native Method)
   ```
   Command ran to test this case (build cloudstack and cd to client/target, fix conf/server.properties):
`java -Dlog4j.configuration=conf/log4j-cloud.xml -cp cloud-client-ui-4.11.0.0-SNAPSHOT.jar:lib/bcpkix-jdk15on-1.58.jar:lib/bcprov-jdk15on-1.58.jar:.:/usr/share/java/mysql-connector-java.jar:conf:common:utilities/scripts/db/
-Djava.net.preferIPv4Stack=true  org.apache.cloudstack.ServerDaemon`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message