Uploaded image for project: 'OpenDNSSEC'
  1. OpenDNSSEC
  2. OPENDNSSEC-318

Handle threads when libhsm cannot initialize

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4.0b1
    • Fix Version/s: 1.4.0b1
    • Component/s: Signer
    • Labels:

      Description

      If you have a miss-match between the token label in conf.xml and the actual token label, then libhsm cannot access the token. The Signer Engine will thus close down.

      However, there are two log messages which indicates that the threads are not handled correctly. Maybe because the threads have not been started yet.

      Jun 22 01:39:18 ubuntu ods-signerd: [hsm] hsm_get_slot_id(): could not find token with the name opendnssec
      Jun 22 01:39:18 ubuntu ods-signerd: [engine] setup failed: HSM error
      Jun 22 01:39:18 ubuntu ods-signerd: [engine] signer shutdown
      Jun 22 01:39:18 ubuntu ods-signerd: ../../../signer/src/daemon/dnshandler.c at 231 could not pthread_kill(dnshandler->thread_id, 1): No such process
      Jun 22 01:39:18 ubuntu ods-signerd: ../../../signer/src/daemon/engine.c at 246 could not pthread_join(engine->dnshandler->thread_id, NULL): Invalid argument

        Attachments

          Activity

            People

            Assignee:
            matthijs Matthijs Mekking
            Reporter:
            rickard Rickard Bellgrim
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: