Return-Path: Delivered-To: apmail-incubator-connectors-user-archive@minotaur.apache.org Received: (qmail 51709 invoked from network); 18 Feb 2011 11:51:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Feb 2011 11:51:08 -0000 Received: (qmail 77364 invoked by uid 500); 18 Feb 2011 11:51:07 -0000 Delivered-To: apmail-incubator-connectors-user-archive@incubator.apache.org Received: (qmail 77276 invoked by uid 500); 18 Feb 2011 11:51:06 -0000 Mailing-List: contact connectors-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: connectors-user@incubator.apache.org Delivered-To: mailing list connectors-user@incubator.apache.org Received: (qmail 77267 invoked by uid 99); 18 Feb 2011 11:51:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Feb 2011 11:51:04 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of daddywri@gmail.com designates 209.85.216.175 as permitted sender) Received: from [209.85.216.175] (HELO mail-qy0-f175.google.com) (209.85.216.175) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Feb 2011 11:50:57 +0000 Received: by qyk36 with SMTP id 36so283690qyk.6 for ; Fri, 18 Feb 2011 03:50:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=Ihj5/aoWS9gRqmhFmQfvMgWoELj+GxrpNUDJcBhINKE=; b=GZi9osNgn4434Ip9lnKKNYZ34gxfMbXZ2uWRq1lUpc4RsdzhV47ynEotxdfKdqbUGM O3EzvAmOT5QnaB7+KyZTl+0QZ1ghcpbEXVK1HL64jUqA6q4PlC7jI+va6rDrkvWn1F7U QSJLxdNAd5MakKqh1XDo/P3Iidnl/2lAztm9U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=E+BNZcAMv+YwFZjzhYf52U/vNKURAqesfhxXoXLQVxy4PPZQ1mPvUvXpI9kjVHt3MX 2FRNr5lAhKkWEvvZCs0RXk+tkgvX1zO7dzH8sQUJc5rXFxLHgA0VFDLNPYZR8ea++am+ icfs/3FZb6HVk2Aawu7LBKKYqk+L8y8QbCf3U= MIME-Version: 1.0 Received: by 10.229.226.198 with SMTP id ix6mr464137qcb.105.1298029836839; Fri, 18 Feb 2011 03:50:36 -0800 (PST) Received: by 10.229.237.10 with HTTP; Fri, 18 Feb 2011 03:50:36 -0800 (PST) In-Reply-To: <20110218113147.118250@gmx.net> References: <20110218113147.118250@gmx.net> Date: Fri, 18 Feb 2011 06:50:36 -0500 Message-ID: Subject: Re: "Connection already in use" when crawling Windows Share repositories From: Karl Wright To: connectors-user@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org I don't think this is directly a ManifoldCF issue. My guess is that you are running out of file handles. If you are on Windows, you might want to track the number of handles you are using via netstat. If on linux, then lsof is the right tool. If you decide that this is indeed what the issue is, then on linux you need to either rebuild the kernel, or do stuff with ulimit to set the number of handles. On Windows, I don't know how to do it. Limiting the number of handles used by ManifoldCF is done by setting the number of connections under the "Throttling" tab of the various connection definitions you create, but that's not going to help with Tomcat. It may be worth checking if you aren't closing something. That could easily cause this problem, eventually. Since it is happening at crawling time, the Active Directory Authority is not actually communicating with the LDAP server yet. JCIFS probably is, though. Let us know what you find. Thanks, Karl On Fri, Feb 18, 2011 at 6:31 AM, wrote: > I'm running MCF rev. 1071535 with Apache Tomcat 7. Solr and MCF are using= HTTPS. When crawling data from a Windows Share Connection with Active Dire= ctory Authority after some time of crawling my job aborts with the status "= Error: Couldn't set up SSL connection to ingestion API: Address already in = use: connect". > > In the mcf logfile I get: > > [2011-02-18 11:24:33,695]ERROR Exception tossed: Couldn't set up SSL conn= ection to ingestion API: Address already in use: connect > org.apache.manifoldcf.core.interfaces.ManifoldCFException: Couldn't set u= p SSL connection to ingestion API: Address already in use: connect > =A0 =A0 =A0 =A0at org.apache.manifoldcf.agents.output.solr.HttpPoster.cre= ateSocket(HttpPoster.java:736) > =A0 =A0 =A0 =A0at org.apache.manifoldcf.agents.output.solr.HttpPoster$Ing= estThread.run(HttpPoster.java:1006) > Caused by: java.net.BindException: Address already in use: connect > =A0 =A0 =A0 =A0at java.net.PlainSocketImpl.socketConnect(Native Method) > =A0 =A0 =A0 =A0at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java= :333) > =A0 =A0 =A0 =A0at java.net.PlainSocketImpl.connectToAddress(PlainSocketIm= pl.java:195) > =A0 =A0 =A0 =A0at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:1= 82) > =A0 =A0 =A0 =A0at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:3= 66) > =A0 =A0 =A0 =A0at java.net.Socket.connect(Socket.java:529) > =A0 =A0 =A0 =A0at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLS= ocketImpl.java:550) > =A0 =A0 =A0 =A0at com.sun.net.ssl.internal.ssl.SSLSocketImpl.(SSLSo= cketImpl.java:353) > =A0 =A0 =A0 =A0at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.creat= eSocket(SSLSocketFactoryImpl.java:71) > =A0 =A0 =A0 =A0at org.apache.manifoldcf.agents.output.solr.HttpPoster.cre= ateSocket(HttpPoster.java:728) > =A0 =A0 =A0 =A0... 1 more > > I use the same LDAP user > - to authenticate at MCF > - login credentials for the Solr Connection > - credentials for authority connection > - and for connecting to our LDAP server itself (in tomcat JNDI Realm conf= ig). > > It seems to me that the connection to LDAP might be a problem. I tried to= configure connection pooling for tomcat. (I'm afraid I'm not so familiar w= ith that.) > "-Dcom.sun.jndi.ldap.connect.pool=3Dtrue -Dcom.jndi.ldap.connect.pool.pro= tocol=3Dssl" > > Did I miss sth in the config? Or how do I have to configure MCF? > > Thanks in advance. > > Carina > -- > GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit > gratis Handy-Flat! http://portal.gmx.net/de/go/dsl >