Re: 3.9.1-rc1: issue with classification user

Tom Hendrikx <[email protected]>
Newsgroups gmane.mail.spam.dspam.devel
Message-ID <[email protected]>
On 08/08/10 15:26, Tom Hendrikx wrote:
> On 08/08/10 14:00, Stevan Bajić wrote:
>> On Sat, 07 Aug 2010 15:32:47 +0200
>> Tom Hendrikx <[email protected]> wrote:
>>
>>> On 07/08/10 14:58, Stevan Bajić wrote:
>>>> On Sat, 07 Aug 2010 14:44:00 +0200
>>>> Tom Hendrikx <[email protected]> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>> Hallo Tom,
>>>>
>>>>> After upgrading to 3.9.1-rc (and later git HEAD), I noticed lots of
>>>>> errors in my logging:
>>>>>
>>>>> 2010-08-07T14:13:08+02:00 vmail dspam[13054]: bailing on error -2
>>>>> 2010-08-07T14:13:08+02:00 vmail dspam[13054]: process_message returned
>>>>> error -5.  delivering.
>>>>>
>>>>> When this started, headers were also no longer added to the delivered
>>>>> messages. After some debugging I found this in the debug log:
>>>>>
>>>>> 13054: [08/07/2010 14:13:08] _pgsql_drv_getpwnam: returning NULL for
>>>>> query on name: classicifation_user that returned a null result
>>>>> 13054: [08/07/2010 14:13:08] _ds_getall_spamrecords: unable to
>>>>> _pgsql_drv_getpwnam(classicifation_user)
>>>>> 13054: [08/07/2010 14:13:08] _ds_getall_spamrecords() failed
>>>>> 13054: [08/07/2010 14:13:08] user_classify() returned error -5
>>>>> 13054: [08/07/2010 14:13:08] destroying/freeing configuration
>>>>> 13054: [08/07/2010 14:13:08] _pgsql_drv_getpwnam returning cached name
>>>>> [email protected].
>>>>> 13054: [08/07/2010 14:13:08] destroying/freeing configuration
>>>>>
>>>>> classification_user was in my intial setup intended to contain 'global
>>>>> classification' data, but I never got started to merging stuff into it.
>>>>> The user exists in the pgsql backend (dspam_virtual_uids), but has no
>>>>> training data there.
>>>>>
>> Are you sure that the user "classification_user" existed in dspam_virtual_uids?
>> Could you post the content of your old group file?
> 
> # cat /var/spool/dspam/group.away
> groupname:classification:*classicifation_user
> 
>> Could you post the output of "select * from dspam_virtual_uids where username = 'classification_user'"?
> 
> vmail=# select * from dspam_virtual_uids;
>  uid |        username
> -----+------------------------
>    1 | classification_user
>    2 | [email protected]
> (2 rows)
> 

And a few minutes after sending the mail, I thought that I might have
made a typo. And I did: classification_user != classicifation_user

Sorry for the noise. However, I still think that an error message
explaining the issue would help a lot.

Error: processing message for user [email protected] failed: unable
to find user 'classicifation_user' for peer classification.

looks so much better than:

bailing on error -2
process_message returned error -5.  delivering.

>>
>> Do you have more lines from the log? I mean: Could you post more lines from the log from above? How can "_pgsql_drv_getpwnam(classicifation_user)" return NULL if the user exists/existed in dspam_virtual_uids?
>>
> 
> I created a new debug file, see attachment for complete output.
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by 
> 
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev 
> 
> 
> 
> _______________________________________________
> Dspam-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspam-devel


-- 
Regards,
	Tom

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev

_______________________________________________
Dspam-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspam-devel
signature.asc (application/pgp-signature, 262 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxetr8ACgkQeEmCqmj6IjZdiQCZAdeMHkuIZ14ojNckEQRHH2+D
eHoAn05hO8BuiwaTmwZRCBJI6X1IFYvE
=rAcQ
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.