Skip to main content

Troubleshooting by symptom

Start with asyncara --check, php -v and php --ini. Inspect Runtime::information() from the affected application as well. The launcher may use a different PHP executable or configuration from your shell or web server.

SymptomWhat to checkWhat to do
Extension cannot loadPHP version and module API, architecture, NTS/ZTS and shared librariesInstall a matching package and its dependencies; renaming an incompatible binary cannot make it load
Class not foundLibrary autoloader as well as the native extensionUse the asyncara launcher, or explicitly load both the extension and library autoloader
No matching packageThe platform matrixChoose a listed package; other configurations need a custom build
No prebuilt package / download returns 404The reported PHP version, operating system, architecture and exact filenameCompare with the available packages; a missing package is not fixed by signing into GitHub
TLS verification failsCA file, certificate chain, hostname or IP SAN, system timeCorrect the trust and identity configuration while keeping verification enabled
Timers or unrelated requests stallCPU loops, blocking PHP APIs or synchronous loggingUse Asyncara I/O APIs and move independent CPU work to ProcessPool
Transaction never finishesA child Task waiting for a connection held by its waiting parentKeep the transaction's queries in the owning Task
Pool capacity is exhaustedLeases held beyond their scope and long transactionsRelease connections with withConnection or finally; size the pool within the database connection budget
Output file is partialInterrupted direct download or writeUse atomic replacement when readers must see only complete files
Remote work continues after a wait is cancelledThe distinction between waiter and operation ownershipFollow the cancellation contract; local cancellation cannot undo a remote write

Isolate a failure​

Reduce the affected application to one operation and its cleanup. Keep the same PHP version, backend, timeout and input. For network problems, compare a local endpoint with the affected service; this helps separate application behavior from DNS, TLS, proxy and upstream failures.

Preserve the complete exception class, message and stack trace in a restricted log. Enable bounded tracing for a separate reproduction if timing or resource ownership is involved. Check completed requests and timer progress as well as whether the process is alive. Compare memory and descriptor counts after work has finished, rather than during different levels of concurrency.

Ask for help​

Include a minimal complete script, expected and actual output, package version, operating system, architecture, PHP build mode and backend. State whether TLS, a proxy or optional tracing is involved. Replace credentials, tokens, private URLs and application data before sharing the example. Do not attach your full production configuration.