Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 282583 - mail-filter/sqlgrey-1.7.4 crashes if you restart syslog
Summary: mail-filter/sqlgrey-1.7.4 crashes if you restart syslog
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-24 16:13 UTC by Zack Anderson
Modified: 2009-09-24 18:24 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zack Anderson 2009-08-24 16:13:39 UTC
After upgrading and restarting syslog-ng I noticed postfix was not accepting outside mail, turns out that sqlgrey had stopped working. In the logs you can see this: 
Aug 23 20:21:29 postfix sqlgrey: fatal: no connection to syslog available

Reproducible: Always

Steps to Reproduce:
1. Make sure sqlgrey is running
2. /etc/init.d/syslog-ng restart
Actual Results:  
sqlgrey is no longer running and you get these in your postfix logs:
Aug 24 03:45:05 postfix postfix/smtpd[2735]: warning: connect to 127.0.0.1:2501: Connection refused
Aug 24 03:45:05 postfix postfix/smtpd[2684]: warning: connect to 127.0.0.1:2501: Connection refused


Expected Results:  
sqlgrey should be restarted whenever syslog is

If you update your /etc/init.d/sqlgrey so that logger is needed then it will be restarted whenever you restart your logger
depend() {
	use logger
	# If you restart syslog without restarting sqlgrey it crashes
	need logger
	before mta
	# pg_autovacuum waits for a fully started PostgreSQL
	after pg_autovacuum postgresql mysql
}
Comment 1 Roland Ramthun 2009-09-01 10:09:02 UTC
This has been fixed in >=mail-filter/sqlgrey-1.7.5

A stabilization effort for sqlgrey-1.7.6 is running in bug #283386
Comment 2 Roland Ramthun 2009-09-24 10:48:56 UTC
This bug is resolved for me.

Zack, is the problem fixed for you with the new stable version, too?

In this case we can close this bug.
Comment 3 Zack Anderson 2009-09-24 18:24:20 UTC
The newest version seem to work for me too