On Sun, May 21, 2006, Andras Got wrote:
[top-posting corrected]
>> On Fri, May 19, 2006, Andras Got wrote:
>>> I'm using freebsd 6.1 and _sometimes_ (one for every ~30-40 minutes) I
>>> get mysql connect errors with permission denied. The mysql_connect
>>> returns error code 1, which is permission denied.

>> Quite certainly not true:

>>> Errors:
>>> sendmail[37085]: gethostbyaddr(IP) failed: 1
>> ^^^^^^^^^^^^^
>>> Can't connect to MySQL server on 'IP' (1)

>> /usr/include/netdb.h:#define    HOST_NOT_FOUND  1 /* Authoritative Answer 
>> Host not found */

>> HTH,

> Yes... This was because a bad setting in pf.conf. The state
> rules/buffers or something filled from time to time.

If the state limit is being approached, try adaptive.{start,end} and/or
limiting the total number of states for offending connections.

> The sendmail error wasn't connected to this, they just in the same
> jail and almost similar errors. I thought 1 means the same accross
> programs. :(

For errno -- yes. In that case, it's h_errno being set.

-- sh

Attachment: pgpd45AuqlrD9.pgp
Description: PGP signature

Reply via email to