[Opendnssec-user] Signing large zone and .tmp file issue

刘硕 shuoleo at 126.com
Tue Jul 24 03:44:31 UTC 2012


Hi Jerry,

I'm using the code from your trunk, and I have tested example4(20Mb as described many times), and there is still a .tmp suffix and the adapter failed error.
Bellow is the log extracted from syslog about example4:
[root at CST-BJ-103 signed]# tail -n100 /var/log/messages|grep example4
Jul 24 11:22:55 CST-BJ-103 ods-signerd: [worker[4]] sign zone example4
Jul 24 11:25:49 CST-BJ-103 ods-signerd: [worker[4]] write zone example4
Jul 24 11:25:49 CST-BJ-103 ods-signerd: [adapter] write zone example4 serial 1343099951 to output file adapter /var/opendnssec/signed/example4
Jul 24 11:26:34 CST-BJ-103 ods-signerd: [tools] unable to write zone example4: adapter failed (Assertion error)
Jul 24 11:26:34 CST-BJ-103 ods-signerd: [worker[4]] backoff task [configure] for zone example4 with 60 seconds
Jul 24 11:27:34 CST-BJ-103 ods-signerd: [worker[4]] configure zone example4
Jul 24 11:27:34 CST-BJ-103 ods-signerd: [zone] zone example4 signconf file /var/opendnssec/signconf/example4.xml is unchanged since 2012-07-24 11:19:11
Jul 24 11:27:34 CST-BJ-103 ods-signerd: [worker[4]] read zone example4
Jul 24 11:27:34 CST-BJ-103 ods-signerd: [adapter] read zone example4 from file input adapter /var/opendnssec/unsigned/example4
Jul 24 11:27:34 CST-BJ-103 ods-signerd: [adapter] zone example4 set soa ttl to 300
Jul 24 11:27:34 CST-BJ-103 ods-signerd: [adapter] zone example4 set soa minimum to 300
Jul 24 11:27:34 CST-BJ-103 ods-signerd: [adapter] zone example4 set soa serial to 1343100454
Jul 24 11:29:02 CST-BJ-103 ods-signerd: [worker[4]] sign zone example4
Jul 24 11:29:34 CST-BJ-103 ods-signerd: [worker[4]] write zone example4
Jul 24 11:29:34 CST-BJ-103 ods-signerd: [adapter] write zone example4 serial 1343100454 to output file adapter /var/opendnssec/signed/example4
Jul 24 11:30:19 CST-BJ-103 ods-signerd: [tools] unable to write zone example4: adapter failed (Assertion error)
Jul 24 11:30:19 CST-BJ-103 ods-signerd: [worker[4]] backoff task [configure] for zone example4 with 120 seconds
Jul 24 11:32:19 CST-BJ-103 ods-signerd: [worker[4]] configure zone example4
Jul 24 11:32:19 CST-BJ-103 ods-signerd: [zone] zone example4 signconf file /var/opendnssec/signconf/example4.xml is unchanged since 2012-07-24 11:19:11
Jul 24 11:32:19 CST-BJ-103 ods-signerd: [worker[4]] read zone example4
Jul 24 11:32:19 CST-BJ-103 ods-signerd: [adapter] read zone example4 from file input adapter /var/opendnssec/unsigned/example4
Jul 24 11:32:19 CST-BJ-103 ods-signerd: [adapter] zone example4 set soa ttl to 300
Jul 24 11:32:19 CST-BJ-103 ods-signerd: [adapter] zone example4 set soa minimum to 300
Jul 24 11:32:19 CST-BJ-103 ods-signerd: [adapter] zone example4 set soa serial to 1343100739
Jul 24 11:33:54 CST-BJ-103 ods-signerd: [worker[4]] sign zone example4
Jul 24 11:34:25 CST-BJ-103 ods-signerd: [worker[4]] write zone example4
Jul 24 11:34:25 CST-BJ-103 ods-signerd: [adapter] write zone example4 serial 1343100739 to output file adapter /var/opendnssec/signed/example4
Jul 24 11:35:12 CST-BJ-103 ods-signerd: [tools] unable to write zone example4: adapter failed (Assertion error)
Jul 24 11:35:12 CST-BJ-103 ods-signerd: [worker[4]] backoff task [configure] for zone example4 with 240 seconds
Jul 24 11:39:12 CST-BJ-103 ods-signerd: [worker[4]] configure zone example4
Jul 24 11:39:12 CST-BJ-103 ods-signerd: [zone] zone example4 signconf file /var/opendnssec/signconf/example4.xml is unchanged since 2012-07-24 11:19:11
Jul 24 11:39:12 CST-BJ-103 ods-signerd: [worker[4]] read zone example4
Jul 24 11:39:12 CST-BJ-103 ods-signerd: [adapter] read zone example4 from file input adapter /var/opendnssec/unsigned/example4
Jul 24 11:39:12 CST-BJ-103 ods-signerd: [adapter] zone example4 set soa ttl to 300
Jul 24 11:39:12 CST-BJ-103 ods-signerd: [adapter] zone example4 set soa minimum to 300
Jul 24 11:39:12 CST-BJ-103 ods-signerd: [adapter] zone example4 set soa serial to 1343101152
Jul 24 11:40:15 CST-BJ-103 ods-signerd: [worker[4]] sign zone example4
Jul 24 11:40:44 CST-BJ-103 ods-signerd: [worker[4]] write zone example4
Jul 24 11:40:44 CST-BJ-103 ods-signerd: [adapter] write zone example4 serial 1343101152 to output file adapter /var/opendnssec/signed/example4
Jul 24 11:41:19 CST-BJ-103 ods-signerd: [tools] unable to write zone example4: adapter failed (Assertion error)
Jul 24 11:41:19 CST-BJ-103 ods-signerd: [worker[4]] backoff task [configure] for zone example4 with 480 seconds

-rw-r--r-- 1 root root 40265912 Jul 24 11:41 example4.tmp 

And I can see a lot of "Jul 24 11:29:53 CST-BJ-103 ods-signerd: [denial] unable to print denial: denial of fd missing " messages.


Best regards,
Stuart
From: Jerry Lundstr鰉
Date: 2012-07-23 14:48
To: shuoleo
CC: opendnssec-user; Matthijs Mekking; Paul Wouters
Subject: Re: [Opendnssec-user] Signing large zone and .tmp file issue
Hi Stuart,

On Fri, Jul 20, 2012 at 7:31 AM, 刘硕 <shuoleo at 126.com> wrote:
> Jul 20 11:44:51 CST-BJ-104 ods-signerd: [adapter] read zone example4 from
> file input adapter /var/opendnsse

This log line looks strange, was it cut off?

> And When I run ods-signer sign --all command, the other three small zones
> are signed and transfer to BIND successfully,but example4 zone file which is
> 20Mb seemed not signed and transferred at all
> Jul 20 11:58:13 CST-BJ-104 ods-signerd: [tools] unable to write zone
> example4: adapter failed (Assertion error)

As the log says there was an Assertion Error when trying to write the
zone and there for it was not transfered.

There have been a lot of fixes done for 1.4 branch, maybe you could
try our trunk?
$ svn checkout https://svn.opendnssec.org/trunk OpenDNSSEC-trunk

/Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opendnssec.org/pipermail/opendnssec-user/attachments/20120724/8d45bfed/attachment.htm>


More information about the Opendnssec-user mailing list