[Dovecot] Dovecot 2.0beta5 Quota/Dict

Robert Schetterer robert at schetterer.org
Sat May 15 13:53:55 EEST 2010


Am 15.05.2010 01:48, schrieb Henrique Fernandes:
> thanks, i will see!
> 
> I am using beta5 not the trunk one!
> 
> I am already testing for a production envirement, cause i guess the realese
> will be at same time i need to go production!

same situation here, i upgraded my test server to dove2  ( trunks
version ) yesterday, hoping use dove2 in production servers soon
found same Problem here, caused by lmtp transport with quota sql dict
looks like permission problem reading dict socket,
it worked with lda deliver and virtual user ,
but lmtp comes with user postfix, no i found no solution with changing
dict setup ( mode user etc )

your patch does not match clean to trunk
so perhaps Timo should include it in the trunk after revision

> 
> 
> []'sf.rique
> 
> 
> On Fri, May 14, 2010 at 6:51 PM, Robert Schetterer <robert at schetterer.org>wrote:
> 
>> Am 14.05.2010 23:05, schrieb e-frog:
>>
>>  On 14.05.2010 22:54, wrote Andrey Melnikoff:
>>>
>>>> In article<4BEDB367.8030004 at gmx.de>  you wrote:
>>>>
>>>>> On 14.05.2010 22:12, wrote Henrique Fernandes:
>>>>>
>>>>
>>>>  May 14 17:03:40 dict: Panic: file driver-mysql.c: line 482
>>>>>>> (transaction_send_query): assertion failed: (rows != (my_ulonglong)-1)
>>>>>>>
>>>>>>
>>>>  The patch in
>>>>>         http://www.dovecot.org/list/dovecot/2010-May/048705.html
>>>>> fixed this for me.
>>>>>
>>>>
>>>> For 2.0.b5 need slightly other patch:
>>>> --- dovecot-2.0.beta5/src/lib-sql/driver-mysql.c~       2010-05-05
>>>> 21:20:17.000000000 +0400
>>>> +++ dovecot-2.0.beta5/src/lib-sql/driver-mysql.c        2010-05-05
>>>> 21:20:17.000000000 +0400
>>>> @@ -479,7 +479,9 @@
>>>>                 struct mysql_db *db = (struct mysql_db *)result->db;
>>>>
>>>>                 rows = mysql_affected_rows(db->mysql);
>>>> -               i_assert(rows != (my_ulonglong)-1);
>>>> +               if (mysql_errno(db->mysql))
>>>> +                       i_assert(rows != (my_ulonglong)-1);
>>>> +               else rows = 0;
>>>>                 *ctx->ctx.head->affected_rows = rows;
>>>>         }
>>>>         sql_result_unref(result);
>>>>
>>>>
>>> Oh, yes correct. Thanks!
>>>
>>
>> hm does not look like its allready in http://hg.dovecot.org/dovecot-2.0/
>> am i right ?
>>
>>
> 


-- 
Best Regards

MfG Robert Schetterer

Germany/Munich/Bavaria


More information about the dovecot mailing list