Fwd: Reboot command timeout: reg

23 views
Skip to first unread message

Manukumar NM

unread,
Jan 18, 2024, 4:46:38 AM1/18/24
to open...@googlegroups.com
Hii team... 
                                         whenever I execute the REBOOT command form the openwisp2, I will get the message like "timeout" but in the background it's executed with soft reboot. Still why am I getting Task time limit exceeded, is there any setting can we increase the background duration/time to execute this command? 

image.png
Thanks in advance.

Manukumar NM

unread,
Jan 18, 2024, 5:57:21 AM1/18/24
to open...@googlegroups.com
If I increase this time out, will it work properly and it is in millisecond ??
SSH_COMMAND_TIMEOUT = getattr(settings, 'OPENWISP_SSH_COMMAND_TIMEOUT', 30)

@shared_task(soft_time_limit=app_settings.SSH_COMMAND_TIMEOUT * 1.2)

Federico Capoano

unread,
Jan 18, 2024, 8:43:11 AM1/18/24
to open...@googlegroups.com
Quoting from the current docs:

``OPENWISP_SSH_COMMAND_TIMEOUT``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+--------------+-------------+
| **type**:    |   ``int``   |
+--------------+-------------+
| **default**: |    ``30``   |
+--------------+-------------+
| **unit**:    | ``seconds`` |
+--------------+-------------+

Configure timeout on blocking read/write operations when executing a command in a SSH connection.


Once changing this value you need to restart all the openwisp processes, (if you deploy with ansible-openwisp2, with: supervisorctl restart all).

Best regards
Federico Capoano
OpenWISP OÜ
Harjumaa, Tallinn, Sepapaja tn 6, 15551
VAT: EE101989729


--
You received this message because you are subscribed to the Google Groups "OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/CAG6AGHds2pzCWrRaW8dpb646ETN%3DiSUj-NNjr1VPE0ep%2B_brAA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages