Hi all!
I installed as per INSTALL instructions - but no luck
. Examlning the log file I see:
com.thoughtworks.mingle.MemcachedServlet] caching server fail to start
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method)and further down:
[2011-10-07 22:08:11,284] [Thread-2] [org.mortbay.log] failed SelectChannelConnector@0.0.0.0:8080
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
On a stock OS X Lion I have an HTTP server already running at port 8080 - so no surprise to get the errors shown above. How can I change the default behavior of Mingle to avoid port 8080 ?
Thanks a lot!
Regards
Frank
Stack Trace
[2011-10-07 22:07:35,103] [Thread-2] [org.mortbay.log] Logging to org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog
[2011-10-07 22:07:35,307] [Thread-2] [org.mortbay.log] jetty-6.1.19
[2011-10-07 22:07:35,394] [Thread-2] [org.mortbay.log] NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet
[2011-10-07 22:07:35,867] [Thread-2] [/] jruby.max.access.threads: 12
[2011-10-07 22:07:55,741] [Thread-2] [com.thoughtworks.mingle] ** Erubis 2.6.5
[2011-10-07 22:08:08,607] [Thread-2] [com.thoughtworks.mingle] Mingle 3_4 (r26090_67aeeb396191)
[2011-10-07 22:08:08,607] [Thread-2] [com.thoughtworks.mingle] Data directory: /var/data/mingle/data
[2011-10-07 22:08:08,607] [Thread-2] [com.thoughtworks.mingle] Swap directory: /var/data/mingle/data/tmp/26090_67aeeb396191
[2011-10-07 22:08:08,607] [Thread-2] [com.thoughtworks.mingle] Config directory: /var/data/mingle/conf
[2011-10-07 22:08:08,607] [Thread-2] [com.thoughtworks.mingle] Context path:
[2011-10-07 22:08:08,613] [Thread-2] [com.thoughtworks.mingle.pool] init rack context finished
[2011-10-07 22:08:08,709] [Thread-2] [/] Mingle server bootstrap status: Rails is ready
[2011-10-07 22:08:08,722] [Thread-2] [/] ActiveMQServlet: Loading message broker from: xbean:file:/opt/mingle/mingle_3_4/config/activemq.xml
[2011-10-07 22:08:08,815] [Thread-2] [org.apache.xbean.spring.context.ResourceXmlApplicationContext] Refreshing org.apache.xbean.spring.context.ResourceXmlApplicationContext@7bacde15: display name [org.apache.xbean.spring.context.ResourceXmlApplicationContext@7bacde15]; startup date [Fri Oct 07 22:08:08 CEST 2011]; root of context hierarchy
[2011-10-07 22:08:08,874] [Thread-2] [org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader] Loading XML bean definitions from URL [file:/opt/mingle/mingle_3_4/config/activemq.xml]
[2011-10-07 22:08:09,060] [Thread-2] [org.apache.xbean.spring.context.ResourceXmlApplicationContext] Bean factory for application context [org.apache.xbean.spring.context.ResourceXmlApplicationContext@7bacde15]: org.springframework.beans.factory.support.DefaultListableBeanFactory@3bd5f0e6
[2011-10-07 22:08:09,090] [Thread-2] [org.springframework.beans.factory.support.DefaultListableBeanFactory] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@3bd5f0e6: defining beans [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,org.apache.activemq.xbean.XBeanBrokerService#0]; root of factory hierarchy
[2011-10-07 22:08:09,173] [Thread-2] [org.apache.activemq.broker.BrokerService] Using Persistence Adapter: KahaPersistenceAdapter(/var/data/mingle/data/activemq-data)
[2011-10-07 22:08:09,174] [Thread-2] [org.apache.activemq.broker.BrokerService] ActiveMQ null JMS Message Broker (localhost) is starting
[2011-10-07 22:08:09,174] [Thread-2] [org.apache.activemq.broker.BrokerService] For help or more information please see: http://activemq.apache.org/
[2011-10-07 22:08:09,330] [Thread-2] [org.apache.activemq.kaha.impl.KahaStore] Kaha Store using data directory /var/data/mingle/data/activemq-data
[2011-10-07 22:08:09,592] [Thread-2] [org.apache.activemq.transport.TransportServerThreadSupport] Listening for connections at: tcp://goede129.local:61616
[2011-10-07 22:08:09,593] [Thread-2] [org.apache.activemq.broker.TransportConnector] Connector tcp Started
[2011-10-07 22:08:09,607] [Thread-2] [org.apache.activemq.broker.BrokerService] ActiveMQ JMS Message Broker (localhost, ID:goede129.local-50982-1318018089201-0:0) started
[2011-10-07 22:08:09,610] [Thread-2] [/] ActiveMQServlet: ActiveMQ Server started
[2011-10-07 22:08:09,612] [Thread-2] [com.thoughtworks.mingle.MemcachedServlet] Creating cache storage with max size 20000 items, max bytes 40960000, and ceiling size 1024000 bytes
[2011-10-07 22:08:09,809] [Thread-2] [com.thoughtworks.mingle.MemcachedServlet] caching server fail to start
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:126) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
at org.apache.mina.transport.socket.nio.SocketAcceptor.registerNew(SocketAcceptor.java:363)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
at org.apache.mina.transport.socket.nio.SocketAcceptor.registerNew(SocketAcceptor.java:363)
at org.apache.mina.transport.socket.nio.SocketAcceptor.access$800(SocketAcceptor.java:55)
at org.apache.mina.transport.socket.nio.SocketAcceptor$Worker.run(SocketAcceptor.java:222)
at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
[2011-10-07 22:08:09,830] [Thread-2] [/] ActiveMQSupportServlet: Loading broker config at: /var/data/mingle/conf/broker.yml
[2011-10-07 22:08:10,246] [Thread-2] [/] ActiveMQSupportServlet: Couldn't load broker config, use default config instead
[2011-10-07 22:08:10,280] [Thread-2] [org.apache.camel.impl.DefaultCamelContext] JMX enabled. Using InstrumentationLifecycleStrategy.
[2011-10-07 22:08:10,329] [Thread-2] [/] CamelServlet: Loading camel config at: config/camel_config.yml
[2011-10-07 22:08:10,558] [Thread-2] [/] CamelServlet: >> adding multicast from: mingle.user_events to: mingle.indexing.users mingle.history_generation.user_version_control_name_change_events
[2011-10-07 22:08:10,587] [Thread-2] [/] CamelServlet: >> adding multicast from: mingle.card_events to: mingle.indexing.cards
[2011-10-07 22:08:10,587] [Thread-2] [/] CamelServlet: >> adding multicast from: mingle.page_events to: mingle.indexing.pages
[2011-10-07 22:08:10,587] [Thread-2] [/] CamelServlet: >> adding multicast from: mingle.revision_events to: mingle.indexing.revisions
[2011-10-07 22:08:10,588] [Thread-2] [/] CamelServlet: >> adding multicast from: mingle.murmur_events to: mingle.indexing.murmurs mingle.murmur.card_linking
[2011-10-07 22:08:10,588] [Thread-2] [/] CamelServlet: >> adding multicast from: mingle.events.card_versions to: mingle.history_changes_generation.cards
[2011-10-07 22:08:10,588] [Thread-2] [/] CamelServlet: >> adding multicast from: mingle.events.page_versions to: mingle.history_changes_generation.pages
[2011-10-07 22:08:10,588] [Thread-2] [/] CamelServlet: >> adding multicast from: mingle.events.revisions to: mingle.history_changes_generation.revisions
[2011-10-07 22:08:10,990] [Thread-2] [org.apache.activemq.broker.TransportConnector] Connector vm://localhost Started
[2011-10-07 22:08:11,220] [Thread-2] [/] CamelServlet: Camel started
[2011-10-07 22:08:11,224] [Thread-2] [com.thoughtworks.mingle.jobs] cache_revision_content job initialized to only run when 4 threads or more can access jruby runtime
[2011-10-07 22:08:11,227] [Thread-2] [com.thoughtworks.mingle.jobs] cache_revisions job initialized to only run when 4 threads or more can access jruby runtime
[2011-10-07 22:08:11,228] [Thread-2] [com.thoughtworks.mingle.jobs] card_importing_preview job initialized to only run when 2 threads or more can access jruby runtime
[2011-10-07 22:08:11,228] [Thread-2] [com.thoughtworks.mingle.jobs] clean_expired_sessions job initialized to only run when 1 threads or more can access jruby runtime
[2011-10-07 22:08:11,228] [Thread-2] [com.thoughtworks.mingle.jobs] compute_aggregates job initialized to only run when 4 threads or more can access jruby runtime
[2011-10-07 22:08:11,229] [Thread-2] [com.thoughtworks.mingle.jobs] daily_history_processing job initialized to only run when 2 threads or more can access jruby runtime
[2011-10-07 22:08:11,229] [Thread-2] [com.thoughtworks.mingle.jobs] feeds_cache_populating job initialized to only run when 4 threads or more can access jruby runtime
[2011-10-07 22:08:11,229] [Thread-2] [com.thoughtworks.mingle.jobs] history_generation job initialized to only run when 4 threads or more can access jruby runtime
[2011-10-07 22:08:11,230] [Thread-2] [com.thoughtworks.mingle.jobs] import_cards job initialized to only run when 2 threads or more can access jruby runtime
[2011-10-07 22:08:11,230] [Thread-2] [com.thoughtworks.mingle.jobs] link_cards_and_murmurs job initialized to only run when 4 threads or more can access jruby runtime
[2011-10-07 22:08:11,230] [Thread-2] [com.thoughtworks.mingle.jobs] luau_sync job initialized to only run when 2 threads or more can access jruby runtime
[2011-10-07 22:08:11,230] [Thread-2] [com.thoughtworks.mingle.jobs] link_cards_and_murmurs job initialized to only run when 4 threads or more can access jruby runtime
[2011-10-07 22:08:11,230] [Thread-2] [com.thoughtworks.mingle.jobs] luau_sync job initialized to only run when 2 threads or more can access jruby runtime
[2011-10-07 22:08:11,231] [Thread-2] [com.thoughtworks.mingle.jobs] polling_pending_luau_authorization_request job initialized to only run when 4 threads or more can access jruby runtime
[2011-10-07 22:08:11,231] [Thread-2] [com.thoughtworks.mingle.jobs] process_project_imports job initialized to only run when 2 threads or more can access jruby runtime
[2011-10-07 22:08:11,231] [Thread-2] [com.thoughtworks.mingle.jobs] project_exports_processor job initialized to only run when 2 threads or more can access jruby runtime
[2011-10-07 22:08:11,232] [Thread-2] [com.thoughtworks.mingle.jobs] send_history_notifications job initialized to only run when 4 threads or more can access jruby runtime
[2011-10-07 22:08:11,277] [Thread-2] [com.thoughtworks.mingle.jobs] full_text_search_indexing_processors job initialized to only run when 4 threads or more can access jruby runtime
[2011-10-07 22:08:11,284] [Thread-2] [org.mortbay.log] failed SelectChannelConnector@0.0.0.0:8080
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:126)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:216)
at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:315)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.Server.doStart(Server.java:235)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at com.thoughtworks.mingle.Server$1.run(Unknown Source)
[2011-10-07 22:08:11,284] [Thread-2] [org.mortbay.log] failed Server@79374ffd
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:126)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:216)
at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:315)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.Server.doStart(Server.java:235)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at com.thoughtworks.mingle.Server$1.run(Unknown Source)
[2011-10-07 22:24:45,109] [ActiveMQ ShutdownHook] [org.apache.activemq.broker.BrokerService] ActiveMQ Message Broker (localhost, ID:goede129.local-50982-1318018089201-0:0) is shutting down
[2011-10-07 22:24:45,112] [Shutdown] [org.mortbay.log] Shutdown hook executing
[2011-10-07 22:24:45,121] [Shutdown] [/] send_history_notifications: stopping
[2011-10-07 22:24:45,121] [Shutdown] [/] send_history_notifications: stopped
[2011-10-07 22:24:45,122] [Shutdown] [/] clean_expired_sessions: stopping
[2011-10-07 22:24:45,122] [Shutdown] [/] clean_expired_sessions: stopped
[2011-10-07 22:24:45,122] [Shutdown] [/] compute_aggregates: stopping
[2011-10-07 22:24:45,122] [Shutdown] [/] compute_aggregates: stopped
[2011-10-07 22:24:45,122] [Shutdown] [/] history_generation: stopping
[2011-10-07 22:24:45,122] [Shutdown] [/] history_generation: stopped
[2011-10-07 22:24:45,122] [Shutdown] [/] full_text_search_indexing_processors: stopping
[2011-10-07 22:24:45,122] [Shutdown] [/] full_text_search_indexing_processors: stopped
[2011-10-07 22:24:45,122] [Shutdown] [/] feeds_cache_populating: stopping
[2011-10-07 22:24:45,123] [Shutdown] [/] feeds_cache_populating: stopped
[2011-10-07 22:24:45,124] [Shutdown] [/] cache_revision_content: stopping
[2011-10-07 22:24:45,124] [Shutdown] [/] cache_revision_content: stopped
[2011-10-07 22:24:45,124] [Shutdown] [/] cache_revisions: stopping
[2011-10-07 22:24:45,124] [Shutdown] [/] cache_revisions: stopped
[2011-10-07 22:24:45,124] [Shutdown] [/] link_cards_and_murmurs: stopping
[2011-10-07 22:24:45,124] [Shutdown] [/] cache_revisions: stopped
[2011-10-07 22:24:45,124] [Shutdown] [/] link_cards_and_murmurs: stopping
[2011-10-07 22:24:45,124] [Shutdown] [/] link_cards_and_murmurs: stopped
[2011-10-07 22:24:45,124] [Shutdown] [/] import_cards: stopping
[2011-10-07 22:24:45,124] [Shutdown] [/] import_cards: stopped
[2011-10-07 22:24:45,124] [Shutdown] [/] card_importing_preview: stopping
[2011-10-07 22:24:45,124] [Shutdown] [/] card_importing_preview: stopped
[2011-10-07 22:24:45,124] [Shutdown] [/] polling_pending_luau_authorization_request: stopping
[2011-10-07 22:24:45,124] [Shutdown] [/] polling_pending_luau_authorization_request: stopped
[2011-10-07 22:24:45,125] [Shutdown] [/] process_project_imports: stopping
[2011-10-07 22:24:45,125] [Shutdown] [/] process_project_imports: stopped
[2011-10-07 22:24:45,125] [Shutdown] [/] luau_sync: stopping
[2011-10-07 22:24:45,125] [Shutdown] [/] luau_sync: stopped
[2011-10-07 22:24:45,125] [Shutdown] [/] project_exports_processor: stopping
[2011-10-07 22:24:45,125] [Shutdown] [/] project_exports_processor: stopped
[2011-10-07 22:24:45,125] [Shutdown] [/] daily_history_processing: stopping
[2011-10-07 22:24:45,125] [Shutdown] [/] daily_history_processing: stopped
[2011-10-07 22:24:45,125] [Shutdown] [/] MurmurServlet: stopping
[2011-10-07 22:24:45,126] [Shutdown] [/] MurmurServlet: stopped
[2011-10-07 22:24:45,126] [Shutdown] [/] CamelServlet: stopping
[2011-10-07 22:24:46,080] [ActiveMQ ShutdownHook] [org.apache.activemq.broker.TransportConnector] Connector tcp Stopped
[2011-10-07 22:24:46,107] [ActiveMQ ShutdownHook] [org.apache.activemq.broker.TransportConnector] Connector vm://localhost Stopped
[2011-10-07 22:24:46,117] [ActiveMQ ShutdownHook] [org.apache.activemq.broker.BrokerService] ActiveMQ JMS Message Broker (localhost, ID:goede129.local-50982-1318018089201-0:0) stopped
[2011-10-07 22:24:49,601] [Shutdown] [/] CamelServlet: stopped
[2011-10-07 22:24:49,601] [Shutdown] [/] ActiveMQServlet: Stopping ActiveMQ Broker.
[2011-10-07 22:24:49,601] [Shutdown] [/] ActiveMQServlet: ActiveMQ Broker stopped.
[2011-10-07 22:24:49,601] [Shutdown] [com.thimbleware.jmemcached.MemCacheDaemon] Stopping daemon
[2011-10-07 22:24:49,601] [Shutdown] [/] MemcachedServlet: stopped
[2011-10-07 22:24:49,788] [Shutdown] [org.mortbay.log] Shutdown hook complete
Comments
2 comments
Hi Frank,
You can customize Mingle's default port 8080 by changing -Dmingle.port in Mingle's mingle.properties file. For more information, please go to our help page Advanced Configuration, section "Configuring a port."
It also appears that Mingle cannot start its embedded memcache server at its default port 11211. You can also similarly change this port if you wish via -Dmingle.memcachedPort. Please see the section "Configuring memcached host and port" for more information.
Lastly, please ensure there isn't already a running Mingle instance. You can check this in a terminal prompt "ps aux | grep mingle" to see if there are any running processes mentioning "mingle."
Thanks.
Thanks, Stephen, works like a charm now!
I moved both ports to a non-assigned value and all is well.
One wish that I have for the product development team:
If at all possible don't just put the exception backtrace in the log file, but also print something like
"This error is likely caused by the fact that another mingle instance is already running or another application has taken the ports 8080 and/or 11211. You may wish to change the parameters mingle.port and /......... " You know what I mean.
Also, I'd suggest you test again the installation procedure on OS X Lion Server - as I said, it was a stock Mac mini with a fresh OS X Lion install plus Server install without any changes. So it's like to affect others, too.
Thanks again!
Cheers
Frank
Please sign in to leave a comment.