Uploaded image for project: 'Coopr'
  1. Coopr
  2. COOPR-662

Coopr Server with a blank coopr-site.xml doesn't function


    • Type: Bug
    • Status: Open
    • Priority: Blocker
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 0.9.10 Code Name: Mensa
    • Component/s: server
    • Labels:
    • Rank:


      Here's the configuration:

      # cat /etc/coopr/conf/coopr-site.xml
      <?xml version="1.0"?>
      <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
       Copyright © 2012-2014 Cask Data, Inc.
       Licensed 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
       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.
          Your site level configuration goes here

      Here's the error from the logs...

      2014-12-17 19:39:06,292 - ERROR [ STARTING:o.a.z.s.NIOServerCnxnFactory$1@44] - Thread Thread[ STARTING,5,main] died
      java.lang.RuntimeException: java.net.BindException: Cannot assign requested address
              at com.google.common.base.Throwables.propagate(Throwables.java:160) ~[coopr-0.9.9-SNAPSHOT-jar-with-dependencies.jar:na]
              at com.google.common.util.concurrent.AbstractIdleService$1$1.run(AbstractIdleService.java:47) ~[coopr-0.9.9-SNAPSHOT-jar-with-dependencies.jar:na]
              at java.lang.Thread.run(Thread.java:745) ~[na:1.7.0_71]
      Caused by: java.net.BindException: Cannot assign requested address
              at sun.nio.ch.Net.bind0(Native Method) ~[na:1.7.0_71]
              at sun.nio.ch.Net.bind(Net.java:444) ~[na:1.7.0_71]
              at sun.nio.ch.Net.bind(Net.java:436) ~[na:1.7.0_71]
              at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214) ~[na:1.7.0_71]
              at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) ~[na:1.7.0_71]
              at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:67) ~[na:1.7.0_71]
              at org.apache.zookeeper.server.NIOServerCnxnFactory.configure(NIOServerCnxnFactory.java:95) ~[coopr-0.9.9-SNAPSHOT-jar-with-dependencies.jar:na]
              at org.apache.twill.internal.zookeeper.InMemoryZKServer$1.startUp(InMemoryZKServer.java:58) ~[coopr-0.9.9-SNAPSHOT-jar-with-dependencies.jar:na]
              at com.google.common.util.concurrent.AbstractIdleService$1$1.run(AbstractIdleService.java:43) ~[coopr-0.9.9-SNAPSHOT-jar-with-dependencies.jar:na]
              ... 1 common frames omitted

      Setting server.host to the IP address of the machine did not resolve the issue.

      I had to make sure there was an entry in /etc/hosts with the specific IP address and a matching host name. This means that we're doing some name resolution somewhere we shouldn't. There's no reason to do any resolution when we specify an IP address (and not a host name).




            • Assignee:
              nitin Nitin Motgi
              chris Chris Gianelloni
            • Votes:
              0 Vote for this issue
              1 Start watching this issue


              • Created: