Troubleshooting Lacuna Signer folder integrations
This page starts from what you see — a document that was not signed, a warning, a failed job — and leads to
the cause and the fix for a SignerFolder profile
and the systems around it. How the integration is meant to work is in
Lacuna Signer folder integrations; the detailed entry for each failure is in
Troubleshooting.
The SignerFolder method, the sweep and the webhook are in 2.16.0 and later. Everything else on this
page is 2.21.0 and later: the document check, the last-pass summary, the 403 and 401 wording, the
startup and per-folder log lines, shared folders (Two signatures expected) and move
after signing (Signed, but not moved). On an earlier version, raise the log level (the
last step) to see what the sweep decided.
Start here
Most "it did not sign" reports have the same answer: the document is not this host's to sign yet, and Bulk Signer is right to wait. A document that is not pending, filed in a subfolder or waiting on an earlier participant is an ordinary outcome at Signer, not a fault, so it makes no failed job, no warning and no red readiness row. Find out which case it is before changing anything:
- Get the Lacuna Signer document id — from the calling system (the
documentIdthatPOST /api/documentsreturned), or from the document at Signer. - Open the profile's page,
/profiles/{name}. A This profile cannot sign panel, or a disabled chip, is a profile that cannot sign. - Paste the id into Document check on the same page. Its conclusion for this profile tells you which section of this page applies:
| The document check concludes | Go to |
|---|---|
| … the next pass would enqueue it | Nothing is wrong: the sweep takes it within Signer:FolderSweepIntervalSeconds (300 seconds by default). To take it within seconds, see Signed only after minutes |
| A job already exists (with a link) | A job exists, but it did not sign |
| … its jobs have since been deleted; the next pass will not create another | The (document, flow action) pair was found once, and deleting its jobs does not make the sweep take it again. Sign it at Signer by another means, or send the document again |
| … the enqueue refused or failed it; the next pass tries again | The log has the reason (the could not be enqueued line); a disabled profile refuses new work |
| The holder's step has not come yet | Waiting on somebody at Signer |
| No signer action names any bound holder, or only an approver action names the holder | The flow does not name the holder as a signer |
| Not in the bound folder, or not pending | The document is not where the profile looks |
| The holder's actions are done | Already signed, or refused, at Signer. Nothing to do |
| Another bound holder is named | On a shared folder, the document is another profile's. Run the check on that profile's page |
| Judgement withheld | A profile bound to the folder has a certificate whose CPF this host cannot read: a profile that cannot sign |
| The profile is degraded …, … is disabled …, … has no Lacuna Signer folder bound, or … is not on the Signer-folder method | A profile that cannot sign; an unbound profile needs a folder on its Certificate panel |
| This host has no Lacuna Signer settings, so the Signer-folder sweep is not running here … | Set Signer__Endpoint and Signer__ApiKey and restart |
| Lacuna Signer answered that it has no document with that id … | A mistyped id, or a document of another Signer organization than the one Signer:ApiKey belongs to |
| Lacuna Signer refused access: the API application behind Signer:ApiKey is not allowed to read this document … | The 403 case: Warnings on every sweep pass |
| Lacuna Signer refused the key itself …, or … could not be reached, or did not answer usefully … | Warnings on every sweep pass |
| The check could not be made. The service log has the detail. | Read the service log; the check failed on this host |
The check is read-only: it creates no job and writes nothing, so run it as often as you like.
The document is not where the profile looks
The profile is bound to one folder, by id, and never its subfolders. Signer's listing of a folder does not descend into subfolders, so a document one level down is never seen.
- In a subfolder, or another folder. Move the document into the bound folder at Signer, or bind the
profile to the folder it is in (the Certificate panel; it takes effect without a restart). A calling
system that creates documents with
newFolderNameinstead offolderIdmakes a new folder each time: change it to send the bound folder's id. - Not pending — concluded, canceled, refused or expired at Signer. There is nothing for this host to do. If it should be signed, send it again at Signer.
- The bound folder is not the one you think. At every start the durable log says which folder each profile is bound to (the startup line). Compare that id with the folder the document is in.
Waiting on somebody at Signer
The holder's signer action exists, but an earlier participant still has to act: the action reads Created
at Signer, not Pending. Signer keeps that wait, not Bulk Signer, and the document is found by itself
once its turn comes — by the next pass, or within seconds when a notification
announces the previous participant's signature.
The document check names the first participant still to act: that is the person to chase. On a folder whose documents are all in this state, the profile page's last-pass summary says None of them needs this host now: they are waiting at Lacuna Signer, not stuck in Bulk Signer.
The flow does not name the holder as a signer
Bulk Signer recognizes its holder by the CPF the profile's certificate carries — on an e-CNPJ, the CPF of the person responsible for it — in a signer action. Typical causes:
- The holder was added as an approver. An approval is not a signature this host can make. Add the holder as a signer at Signer.
- The CPF is wrong or missing, or the CNPJ was typed instead of the responsible person's CPF.
- The certificate was renewed and the person responsible changed, while the calling system still sends the old CPF. The profile reads the new certificate's CPF at the restart after the change.
On a folder bound to one profile, such a document is recorded once as a job Failed with
signer-folder.no-holder-action, so that somebody sees it. That job is not retriable, and it does not
need to be: correct the flow at Signer, and the next sweep finds the new action by itself. On a shared
folder whose document names another bound holder, nothing is recorded for this profile; the document
check's conclusion for this profile is where it shows.
A profile that cannot sign
A degraded profile shows This profile cannot sign on its page and A profile cannot sign on
/profiles, with the reason; it reads degraded: true on
GET /api/profiles, and a red signing-profile:<name> row on /api/ready that does not fail the verdict.
The sweep creates no job for it and documents wait at Signer — nothing is lost. The startup line says the
profile is degraded and why; the sweep adds a skips profile …, which is degraded warning once, and
a missing folder its own Error line. A host with no Signer:* settings runs no sweep at all, so there it
is the startup line alone.
| The reason says | Fix | Entry |
|---|---|---|
| this host has no Lacuna Signer settings | Set Signer__Endpoint and Signer__ApiKey, restart | Detail |
| its certificate carries no CPF | An ICP-Brasil e-CPF or e-CNPJ on the Certificate panel, then restart | Detail |
| its certificate names the same holder as another profile on the folder | Bind one of them elsewhere or disable it (no restart), or give it another holder's certificate (read at the next restart) | Detail |
| its Signer folder does not exist | Bind the profile to another folder; if the folder is there at Signer, Signer:Endpoint or Signer:ApiKey names another organization | Detail |
A disabled profile is not degraded, but takes no new work either: the sweep skips it, and a folder no other profile may sign in is not listed at all. Enable it on its page.
Warnings on every sweep pass
When Signer will not answer the sweep, the console and the durable log warn on every pass, the
signer-folder-sweep row on /api/ready/details names the stage and the kind of failure, and the row turns
red after three failed passes in a row. It never fails the readiness verdict, on purpose: alert on the row.
| The warning or the row says | Cause | Fix |
|---|---|---|
HTTP 403: the API application behind Signer:ApiKey is not allowed to list the documents in folder … (or read document …, read folder …); the row: Lacuna Signer refused this key access | The key authenticates, but its Signer application may not see that folder's documents | Below |
HTTP 401; the row: Lacuna Signer refused the key itself | Signer:ApiKey is revoked, mistyped, or belongs to another organization | Fix Signer:ApiKey, check that Signer:Endpoint names the organization that holds the folder, restart |
| The row: could not be reached or did not answer usefully | An outage, a timeout, a 5xx, a proxy's page | Check Signer:Endpoint, the network and any proxy. An outage clears by itself on the first pass with no failure |
| The row: answered with an error | Usually an endpoint that is not Signer's API | Check that Signer:Endpoint is Signer's address |
| could not read document … for the same document every pass | One document Signer will not return | Fix it at Signer, or move it out of the bound folder |
HTTP 403
The console's wording quotes the profile name:
Signer folder sweep could not list folder <folder-id> for profile '<name>': List pending documents in folder
<folder-id> failed: Lacuna Signer answered HTTP 403: the API application behind Signer:ApiKey is not allowed to
list the documents in folder <folder-id>. Grant that application this access at Lacuna Signer. The next sweep
tries again.
The folder picker listing the folder proves nothing here: it lists the organization's folders with a
different call, which Signer may allow to an application that may not see the documents inside a folder.
Picking a folder also tries one item of the sweep's own listing and warns on a 403, but it never refuses
the save, since the grant may come afterwards.
Fix. At Lacuna Signer, grant the API application whose id is the first half of Signer:ApiKey
(application-id|secret) access to the documents of the folder the warning names — and, if the profile moves
signed documents on, of the destination folder too. Nothing changes on the host and no restart is needed:
the next pass lists the folder and the row goes green on the first pass with no failure.
A 403 that carried nothing from Signer adds The answer carried nothing from Lacuna Signer itself. The
grant is still the likeliest fix; when Signer's settings already allow it, look at what stands between the
host and Signer: a reverse proxy, a WAF, an application gateway, or an endpoint aimed at the wrong host.
A job exists, but it did not sign
A job ends Completed when Signer accepts the signature. Any other ending leaves the document pending at
Signer: Bulk Signer never cancels or refuses a document it did not create, so it can still be signed once
the cause is fixed. Each (document, flow action) has at most one job at a time, and the sweep never creates
a second one: Retry is the only way back.
| Ending | What happened | Fix |
|---|---|---|
Canceled, No longer pending at Lacuna Signer: … | The document moved on before this host signed: canceled, refused or expired at Signer, or the holder's action done | Nothing. If the document was put back in play, Retry |
signer-folder.signature-refused | Signer refused the signature; its validation results are on the job's history | Usually the certificate (revoked, expired). Fix it, then Retry |
signer-folder.key-unavailable | The profile's key would not sign | Restore access to the vault, token or HSM, then Retry |
signer.unreachable | Signer could not be reached, or did not answer usefully | Check the endpoint and network, then Retry. If the history says the signature was handed over, check the document at Signer first |
signer-folder.signature-failed | Anything else, named on the history: the document left the folder, the flow changed under the job, a participant Signer did not match, a participant with no email, a digest this host does not sign under | Correct it at Signer, then Retry |
signer-folder.interrupted | The host restarted, or its instance stopped answering, mid-signature, and Signer still reports the action pending or could not be asked | Check the document at Signer, then Retry. A retry ends Canceled if the action is already done, so it never signs twice |
signer-folder.profile-changed | The profile left the SignerFolder method | Put it back on the method to Retry |
signer-folder.action-url-malformed | Signer's action URL carried no document key or ticket: Signer changed the shape of its URLs | Upgrade Bulk Signer to a release that reads the new shape; report it if none does |
profile.degraded | The profile cannot sign | A profile that cannot sign, then Retry |
signer-folder.no-holder-action | The flow does not name the holder as a signer | Correct the flow at Signer. Not retriable |
A participant with no email address, or one Signer does not match. Signer finds the holder's action by
CPF and email together. An action whose participant has no email fails signer-folder.signature-failed
saying so, and one Signer does not match — while it still reports the action pending — fails the same way
asking you to check the participant's CPF and email address at Lacuna Signer. Fix the participant at
Signer and Retry.
A Retry is refused with job.already-processing while another job for the same flow action is still
queued or running. The full list, with the history wording, is in
A Lacuna Signer folder job ends Failed or Canceled.
Signed only after minutes
Documents are signed, but at the sweep interval rather than within seconds: the webhook is not working,
and the sweep is doing all of it, which is what it is there for. Nothing is lost, only latency. Read the
signer-notifications row on /api/ready/details on the instance Signer calls:
| The row says | Fix |
|---|---|
| not accepted (Signer:WebhookSecret is not set) | Set Signer__WebhookSecret (32 characters or more), restart, and register the webhook at Signer |
| accepted; none has arrived at this instance since it started | Signer is not reaching the host, or is refused. The webhook's URL must be the host's public address followed by /api/signer/notifications, with Bearer authentication and the secret as the token. A growing bulksigner_signer_notifications_total{outcome="unauthorized"} is a token that differs or an authentication that is not Bearer. Signer's delivery log shows the answer it got |
| accepted; the last arrived at this instance at … | Notifications arrive. ignored counts events that cannot make a document wait and documents in folders no enabled profile is bound to; growing for a document you expected, check the folder and that its profile is enabled |
A document moved into a bound folder raises no webhook at Signer: it is found by the sweep, unless the move was made by a profile on the same host, which checks the destination at once.
Detail: Documents are found only at the sweep interval.
Signed, but not moved to the next folder
The job is Completed and the profile names a destination folder, but the document is still where it was
signed. Read the job's history:
| The history says | Fix |
|---|---|
| Nothing about a move | Still pending: Signer could not be asked (bulksigner_signer_folder_moves_total{outcome="deferred"} grows, the log says why), or another profile on the same shared folder on this host still has to sign it — that wait is by design. The next sweep tries again. A console failure saying Signer refused this host's API key is a 401: fix Signer:ApiKey and the pending moves are made by themselves |
Not moved … Lacuna Signer refused the move (…). … Code: signer-folder.move-failed. | Signer refused: the destination was deleted, or the key may not manage one of the two folders. Settled, never tried again: fix the permission or the destination, and move this document by hand at Signer |
Not moved … Lacuna Signer would not report the document (…) | The document could not be read back: deleted at Signer, or a key that may not read it. Check the document at Signer |
Not moved … the document is in folder … at Lacuna Signer now … | Somebody filed it elsewhere first. Left there on purpose |
Not moved … the move has failed every time it was tried … for more than 7 days … | Given up after a week of failures. Fix what the last failure names, then move it by hand |
The destination is fixed on the job when the job is created — when the document is found, or at a Retry — so a profile edited afterwards moves only the documents found or retried later. Detail: A signed document was not moved.
Two signatures expected, one made
On a shared folder, each profile signs the action that names its own holder, in the order the flow at Signer sets. When the document stops after the first:
- The second holder's step has not come: somebody at Signer sits between them in the flow. Run the document check on the second profile's page; it names the participant.
- The second profile is degraded or disabled. Its own page says so. Two profiles naming the same holder are both degraded, and neither signs.
- The second holder is bound on another host. Each host sweeps only its own profiles; check that host's profile page and readiness row.
- The second holder is named as an approver, or with another CPF. See The flow does not name the holder as a signer.
The calling system never learns the document was signed
Bulk Signer does not call the calling system: it signs at Signer, and Signer tells everyone else. If the
job is Completed and the ERP still waits:
- The ERP's own webhook at Signer. It must be registered at Signer, reachable from Signer, and act on the
right event:
DocumentConcludedwhen the holder is the last participant,DocumentSignedfor the holder's action when others sign after it. See Signer's webhook troubleshooting. - Two webhooks, two secrets. Signer delivers every event to every webhook of the organization, so the
ERP's endpoint and Bulk Signer's receive the same events. Each checks its own secret; one answering
401does not affect the other. - Polling instead.
GET /api/documents/{id}at Signer shows the document's status and its flow actions; see Check the status of a document.
The signature is not the expected kind
Signer, not Bulk Signer, assembles the signature: PAdES for a PDF, XAdES for XML, CAdES for
anything else; the profile's format is ignored. On a PDF, whether the ICP-Brasil signature policy applies
depends on the Signer instance's UseBrazilianPdfSigningPolicies setting, not on Bulk Signer — on an
on-premises Signer it is one of the instance's General settings, and on Lacuna's cloud ask Lacuna which
value is in effect. See Signer chooses the format, not the profile.
Last sweep pass and log lines
What the last pass saw
The profile's page shows Last sweep pass over this folder (this instance's view), and the same counts end
the signer-folder-sweep row on /api/ready/details. It is held in memory: a restart forgets it until the
next pass, and under cluster mode each instance shows its own.
| The page says | Meaning |
|---|---|
| No pass yet since this instance started. | The first pass runs as the host starts; reload in a moment |
| The sweep does not run on this host: … | No Signer:* settings on this host |
| The last pass, at …, did not list this folder: … | No profile bound to it may sign now (disabled or degraded), Signer says the folder does not exist or could not confirm it, or the listing or the pass failed; the log lines below say which |
| The last pass, at …, ran before this folder was bound to a profile … | Bound after the last pass. The next pass lists it |
| No pending document in the folder. | The document is not pending, or is in another folder or a subfolder |
| … waiting on an earlier participant | Waiting on somebody at Signer |
| … naming the holder only as an approver | The flow does not name the holder as a signer |
| … with no signing action for any holder bound to the folder | Recorded once each as signer-folder.no-holder-action |
| 1 pending, 1 read, 1 for this holder. with Jobs created by that pass: 0. | Usually a job already exists for that action, and the document check links to it. The same counts follow a pair whose jobs were deleted, and an enqueue that failed or was refused (the log then has could not be enqueued); the document check tells them apart |
| … could not be read | The next pass reads them again; the log names the document |
Log lines
Search the durable log (data/logs/bulksigner-*.log, or the install target's log location) for the profile
name or the folder id. At its default level:
| Line | When | Tells you |
|---|---|---|
Signer-folder profile <name> at startup: bound to Signer folder <folder-id> (chosen as <folder-name>), certificate source <source>, certificate opened with a CPF: <yes or no>, degraded reason: <reason or none>. | Information, once per profile at every start | Which folder the profile looks in, and whether it can sign. A profile with no folder reads … at startup: no Signer folder is bound, …. Absent: the profile was not on the method at the last start, or the file log's level is above Information |
Signer folder <folder-id> (profile '<name>'): 2 listed, 2 read, 0 job(s) created, 2 waiting on an earlier participant | Information, on the first pass that lists the folder after startup or after a pass that did not, and whenever its counts change | The listing works; the reasons are those of the last-pass table. A shared folder reads (profiles 'a', 'b'). Absent since startup: the folder was never listed, and a line below says why |
Signer folder sweep could not list folder <folder-id> for profile <name>: <reason> The next sweep tries again. | Warning, every failing pass | Warnings on every sweep pass |
Signer folder sweep could not read document <document-id> for profile <name>; the next sweep tries again | Warning, every failing pass | One document Signer will not return |
Signer folder sweep skips profile <name>, which is degraded: <reason>. … | Warning, once | A profile that cannot sign |
Signer folder sweep skips profile <name>: it is on the SignerFolder method with no Lacuna Signer folder bound. … | Warning, once | Choose a folder on the profile's Certificate panel |
Lacuna Signer answered that folder <folder-id>, bound to profile <name>, does not exist; … | Error, once | The folder was deleted at Signer, or the key names another organization: a profile that cannot sign |
Signer folder sweep could not confirm that folder <folder-id> for profile <name> still exists; … | Warning, every failing pass | An outage while asking; it degrades nothing |
… could not be enqueued for profile … | Error | The document was found but no job was written; the reason follows in the line |
Lacuna Signer document <document-id> in the folder bound to profile <name> holds no signing action for any certificate holder bound to that folder; recorded as failed job <job-id> | Warning, once per document | The flow does not name the holder as a signer |
Enqueued Lacuna Signer document <document-id> (flow action <flow-action-id>) as job <job-id> under profile <name> | Information, once per job | Found; what happened next is on the job's page |
Debug, as a last resort
Set Logging:File:MinimumLevel to Debug (Logging__File__MinimumLevel) and restart. Each pass then logs a
summary, and each document it passes over a line of its own — no longer in the folder, no current action for
any holder, already has a job, or a disabled profile skipped. Put the level back afterwards: Debug writes a
line for every document on every pass.
Before contacting support
Send:
- the Lacuna Signer document id and, if one exists, the Bulk Signer job id;
- the profile name and the document check's result (a screenshot is enough: CPFs are masked);
- the
signer-folder-sweepandsigner-notificationsrows of/api/ready/details; - the log lines above for that profile or folder, and the Bulk Signer version.
Never send Signer:ApiKey, Signer:WebhookSecret or a certificate password. The durable log already leaves
them out, and neither the readiness rows nor the document check quote Signer's messages, which can carry a
document's key.
Next: CNAB240 payment files. Previous: Lacuna Signer folder integrations.