Forum Discussion
Problems with REST API and asynchronus ucs creation
can you generate the UCS via iControl REST synchronously without the task? If so, I'd suggest opening a case to inquire.
Tried a non task ucs save, and it also failed after sitting a while waiting on a response. Looks like support is my only hope.
❯ curl -k -u apiadmin:<redacted> -H "Content-Type: \
application/json" -X POST -d \
'{
"command": "save",
"name": "myUcs"
}' \
https://192.168.240.15/mgmt/tm/sys/ucs
{"code":400,"message":"remoteSender:192.168.17.87, method:POST ","referer":"192.168.17.87","restOperationId":16040255,"kind":":resterrorresponse"}%
I can see it started, but didn't make it as far as the task request did. It didn't get zipped up
im.16590 # ls -la
total 376
drwxr-xr-x. 2 root root 4096 Aug 16 14:03 .
drwxrwxrwt. 24 root root 12288 Aug 16 14:03 ..
-rw-r--r--. 1 root root 90907 Aug 16 14:03 Files
-rw-r--r--. 1 root root 175954 Aug 16 14:03 SPEC-Files
-rw-r--r--. 1 root root 95809 Aug 16 14:03 SPEC-Manifest
Tried it from tmsh, just in case something was majorly broken :
(cfg-sync In Sync)(Active)(/Common)(tmos)# save sys ucs test_tmsh
Saving active configuration...
/var/local/ucs/test_tmsh.ucs is saved.
# ls -lah /var/local/ucs
total 438M
drwxr-xr-x. 3 root root 4.0K Aug 16 14:08 .
drwxr-xr-x. 9 root root 4.0K May 4 13:31 ..
-r--r--r--. 1 root root 176 Dec 22 2022 cs_backup_rotate.conf
-rw-r--r--. 1 root webusers 438M Aug 16 14:07 test_tmsh.ucs
drwxr-xr-x. 2 root root 4.0K May 4 13:57 tmp
Seeing the same TimeoutException errors from the non-task request as well
[WARNING][750][16 Aug 2023 19:03:53 UTC][8100/mgmt ForwarderPassThroughWorker] URI:http://localhost:8100/mgmt/tm/sys/ucs, Referrer:<redacted>, Method:POST, Exception:java.util.concu
rrent.TimeoutException: remoteSender:<redacted>, method:POST
[WARNING][751][16 Aug 2023 19:03:53 UTC][8100/tm/auth/remote-role PublicWorker] URI:http://localhost:8100/tm/sys/ucs, Referrer:<redacted>, Method:POST, Exception:java.util.concurrent.TimeoutException: remoteSender:<redacted>, method:POST
Thank you for taking a look with me, I appreciate it.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com