Authentication timed out. Shutting down. Consider increasing authTimeout config variable
willmaraujo opened this issue · comments
Are you using the latest version of the library?
- I have checked and am using the latest version of the library.
What type of session are you experiencing this issue on?
Multi-device and I have set multiDevice to true in my config OR am using the --multi-device flag
What type of host account are you experiencing this issue on?
Business account
Mode
EASY API/CLI
Current Behavior
Suddenly I'm facing this error during the container initialisation:
- Authenticating [55gy9 ](http://swarmpit.gramadosvirtuais.com/#/tasks/55gy9m5ovqhyh0aif4gg7hw2n?log=1) - Authentication timed out. Shutting down. Consider increasing authTimeout config variable: https://open-wa.github.io/wa-automate-nodejs/interfaces/configobject.html#authtimeout [55gy9 ](http://swarmpit.gramadosvirtuais.com/#/tasks/55gy9m5ovqhyh0aif4gg7hw2n?log=1) node:events:497 [55gy9 ](http://swarmpit.gramadosvirtuais.com/#/tasks/55gy9m5ovqhyh0aif4gg7hw2n?log=1) throw er; // Unhandled 'error' event
Expected Behavior
Show the QR code for authentication
Steps To Reproduce
- Start openwa/wa-automate container using docker swarm
create() code OR full CLI command + CONFIG
No response
DEBUG INFO
{
"WA_VERSION": "2.3000.1011658614",
"WA_AUTOMATE_VERSION": "4.68.0",
"BROWSER_VERSION": "HeadlessChrome/121.0.6167.184",
"START_TS": 1708995143234,
"RAM_INFO": "Total: 2.05 GB | Free: 0.76 GB",
"PPTR_VERSION": "19.11.1",
"LATEST_VERSION": true,
"CLI": true
}
Environment
- OS: Linux 6.5
- Node: 21.6.2
- npm: 10.4.0
Screenshots/Logs
- Browser launched: 557ms
55gy9 Unable to set raw mode on stdin. Keypress events will not be emitted. You cannot take a screenshot by pressing 's' during launch.
55gy9 - Setting Up Page
55gy9 - Page loaded in 985ms: 200
55gy9 - Page loaded
55gy9 - Debug info: {
55gy9 "WA_VERSION": "2.3000.1011658614",
55gy9 "PAGE_UA": "WhatsApp/2.2147.16 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36",
55gy9 "WA_AUTOMATE_VERSION": "4.68.0",
55gy9 "BROWSER_VERSION": "HeadlessChrome/121.0.6167.184",
55gy9 "OS": "Linux 6.5",
55gy9 "START_TS": 1708994926763,
55gy9 "RAM_INFO": "Total: 2.05 GB | Free: 0.74 GB",
55gy9 "PPTR_VERSION": "19.11.1"
55gy9 }
55gy9 - Use this easy pre-filled link to report an issue: https://github.com/open-wa/wa-automate-nodejs/issues/new?template=bug_report.yaml&d_info=%7B%0A%20%20%22WA_VERSION%22:%20%222.3000.1011658614%22,%0A%20%20%22WA_AUTOMATE_VERSION%22:%20%224.68.0%22,%0A%20%20%22BROWSER_VERSION%22:%20%22HeadlessChrome/121.0.6167.184%22,%0A%20%20%22START_TS%22:%201708994926763,%0A%20%20%22RAM_INFO%22:%20%22Total:%202.05%20GB%20%7C%20Free:%200.74%20GB%22,%0A%20%20%22PPTR_VERSION%22:%20%2219.11.1%22,%0A%20%20%22LATEST_VERSION%22:%20true,%0A%20%20%22CLI%22:%20true%0A%7D&enviro=-%20OS:%20Linux%206.5%0A-%20Node:%2021.6.2%0A-%20npm:%2010.4.0&labels=CLI,MD
55gy9 - Time to injection: 11920ms
55gy9 - Invariant Violation Avoidance: 64ms
55gy9 - Authenticating
55gy9 - Authentication timed out. Shutting down. Consider increasing authTimeout config variable: https://open-wa.github.io/wa-automate-nodejs/interfaces/configobject.html#authtimeout
55gy9 node:events:497
55gy9 throw er; // Unhandled 'error' event
55gy9 ^
55gy9
55gy9 Error: spawn ps ENOENT
55gy9 at ChildProcess._handle.onexit (node:internal/child_process:286:19)
55gy9 at onErrorNT (node:internal/child_process:484:16)
55gy9 at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
55gy9 Emitted 'error' event on ChildProcess instance at:
55gy9 at ChildProcess._handle.onexit (node:internal/child_process:292:12)
55gy9 at onErrorNT (node:internal/child_process:484:16)
55gy9 at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
55gy9 errno: -2,
55gy9 code: 'ENOENT',
55gy9 syscall: 'spawn ps',
55gy9 path: 'ps',
55gy9 spawnargs: [ '-A', '-o', 'ppid,pid,stat,comm' ]
55gy9 }
Anything else?
No response
Hi @willmaraujo,Have you solved this problem?
please update to latest version and try again