problem with sync_server and CYRUS_SERVICE

Nic Bernstein nic at onlight.com
Tue Oct 23 16:00:56 EDT 2012


Never mind -- realized I need to list sync_server under SERVICES and not 
START.

Cheers,
     -nic

On 10/23/2012 02:24 PM, Nic Bernstein wrote:
> Folks,
> I have been building and using Cyrus IMAP since 1995, but I've just 
> run into an issue I've never encountered before.  I've had the same 
> issue with 2.4.16 and 2.5, both built from sources retrieved via Git.  
> This is on Ubuntu 12.04.01 LTS, in LXC containers on an Ubuntu 
> 12.04.01 LTS host.
>
> When I start cyrus I see this in syslog:
>
>     Oct 23 19:08:26 mailbox master[1323]: about to exec /usr/lib/cyrus/bin/sync_server
>     Oct 23 19:08:26 mailbox sync_server: could not getenv(CYRUS_SERVICE); exiting
>     Oct 23 19:08:26 mailbox master[1313]: process 1323 exited, status 70
>     Oct 23 19:08:26 mailbox master[1313]: unable to setsocketopt(IP_TOS): Operation not supported
>
> I don't think the getenv problem is related to the IP_TOS issue, is 
> it?  I've checked all around for what can cause the 
> getenv(CYRUS_SERVICE) issue, which was typically (in the old days) 
> interference from inetd, but that can't be the problem here, since 
> there is no inetd running on the container or the parent host.
>
> /etc/cyrus.conf looks like this:
>
>     START {
>     	recover		cmd="/usr/sbin/cyrus ctl_cyrusdb -r"
>     	idled		cmd="idled"
>     	tlsprune	cmd="/usr/sbin/cyrus tls_prune"
>     	syncserver      cmd="/usr/lib/cyrus/bin/sync_server" listen="csync"
>     }
>
>     SERVICES {
>     	imap		cmd="imapd -U 30" listen="imap" prefork=0
>     	pop3		cmd="pop3d -U 30" listen="pop3" prefork=0 maxchild=50
>        	lmtp		cmd="lmtpd" listen="lmtp" prefork=1
>        	sieve		cmd="timsieved" listen="sieve" prefork=0
>     	notify		cmd="notifyd" listen="/var/run/cyrus/socket/notify" proto="udp" prefork=1
>     }
>
>     EVENTS {
>     	checkpoint	cmd="/usr/sbin/cyrus ctl_cyrusdb -c" period=30
>     	delprune	cmd="/usr/sbin/cyrus expire -E 3 -D 60 -X 60" at=0401
>     	tlsprune	cmd="/usr/sbin/cyrus tls_prune" at=0401
>     	squatter_1	cmd="/usr/bin/nice -n 19 /usr/sbin/cyrus squatter -s" period=180
>     	squatter_a	cmd="/usr/sbin/cyrus squatter" at=0117
>     }
>
> and /etc/services contains this:
>
>     # Local services
>     lmtp		24/tcp				# Cyrus IMAP LMTP transport
>     csync		2005/tcp			# Cyrus IMAP replication
>
> Any thoughts?
>
> Cheers,
>     -nic
> -- 
> Nic Bernsteinnic at onlight.com
> Onlight, Inc.www.onlight.com
> 219 N. Milwaukee St., Suite 2a            v. 414.272.4477
> Milwaukee, Wisconsin  53202
>
>
> ----
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
> To Unsubscribe:
> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

-- 
Nic Bernstein                             nic at onlight.com
Onlight, Inc.                             www.onlight.com
219 N. Milwaukee St., Suite 2a            v. 414.272.4477
Milwaukee, Wisconsin  53202

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20121023/1accb4d4/attachment.html 


More information about the Info-cyrus mailing list