# Command timeout

**URL:** <https://forum.qoitech.com/t/command-timeout/475>\
**Category:** Support\
**Created:** [September 4, 2023, 7:33am UTC](https://forum.qoitech.com/t/command-timeout/475 "2023-09-04T07:33:46Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![pikkutimo](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@pikkutimo](https://forum.qoitech.com/u/pikkutimo)\
**Post date:** [September 4, 2023, 7:33am UTC](https://forum.qoitech.com/t/command-timeout/475/1 "2023-09-04T07:33:46Z")

</div>

Hello,

I’m currently struggling with a following problem. I’m currently working on a project porting a firmware to another chipset, and for testing purposes we’ve created jenkins pipeline that builds, and flashes the firmware and runs tests on it. However our test keep on failing intermittently due to otii.login errors , and I’ve been trying to sort this out. The error we reveive is usually the following:

An error occurred: {‘type’: ‘error’, ‘errorcode’: ‘Command timeout’, ‘cmd’: ‘otii\_login’, ‘trans\_id’: ‘382’, ‘data’: {}}

I’ve also tested the functionality by running the otii\_server on our test machine from the command line, and running a simple python script that loops hundred times trough the script provided on your GitHub page under examples: [user\_management.py](https://github.com/qoitech/otii-tcp-client-python/blob/master/examples/user_management.py)

Out of several runs, the failure rates range from 0 to 5 percent, and the failing ones receive always the same Exception as above. The version of out otii\_server is 3.3.4, and we’re utilizing otii-tcp-client version 1.0.7.

Any input would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![bjorn.rosqvist](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.qoitech.com/bjorn.rosqvist/32/238_2.png) [@bjorn.rosqvist](https://forum.qoitech.com/u/bjorn.rosqvist)\
**Post date:** [September 4, 2023, 8:39am UTC](https://forum.qoitech.com/t/command-timeout/475/2 "2023-09-04T08:39:22Z")

</div>

Hi and welcome to the forum,

Our latest release 3.3.7 most probably have solved this issue, could you try this and get back to us if you still are having problems, please.

Best regards,  
Björn

---

<div class="post-metadata">

**Author:** ![pikkutimo](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@pikkutimo](https://forum.qoitech.com/u/pikkutimo)\
**Post date:** [September 4, 2023, 11:18am UTC](https://forum.qoitech.com/t/command-timeout/475/3 "2023-09-04T11:18:08Z")

</div>

Thank you for the speedy response! The new version of otii seems to have solved our problems as you suspected, so I’m ever so grateful for the assist!

---

<div class="post-metadata">

**Author:** ![pikkutimo](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@pikkutimo](https://forum.qoitech.com/u/pikkutimo)\
**Post date:** [September 4, 2023, 12:36pm UTC](https://forum.qoitech.com/t/command-timeout/475/4 "2023-09-04T12:36:25Z")

</div>

I was celebrating a bit too early, we’re still having problems. I’ll try to pinpoint the source of the error, which is a bit vague: _ **timeout: timed out** _ I’m also interested in the logs for otii\_server, according to the release notes it should write logs to otii\_server.logs, is there a default location for this file on Ubuntu?

---

<div class="post-metadata">

**Author:** ![bjorn.rosqvist](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.qoitech.com/bjorn.rosqvist/32/238_2.png) [@bjorn.rosqvist](https://forum.qoitech.com/u/bjorn.rosqvist)\
**Post date:** [September 4, 2023, 1:08pm UTC](https://forum.qoitech.com/t/command-timeout/475/5 "2023-09-04T13:08:59Z")

</div>

The logs are located according to the following:  
C:\Users\<UserName\>\AppData\Roaming\Otii 3\logs\ (Windows)  
/home//.config/Otii 3/logs/ (Linux)  
/Users//Logs/Otii 3/ (macOS)

Best regards,  
Björn

---

<div class="post-metadata">

**Author:** ![pikkutimo](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@pikkutimo](https://forum.qoitech.com/u/pikkutimo)\
**Post date:** [September 4, 2023, 3:37pm UTC](https://forum.qoitech.com/t/command-timeout/475/6 "2023-09-04T15:37:48Z")

</div>

Thank you, tomorrow I can start digging into the logs.

-Timo

---

<div class="post-metadata">

**Author:** ![pikkutimo](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@pikkutimo](https://forum.qoitech.com/u/pikkutimo)\
**Post date:** [September 5, 2023, 8:06am UTC](https://forum.qoitech.com/t/command-timeout/475/7 "2023-09-05T08:06:18Z")

</div>

So, I was trying to pinpoint the problem we’re having - haven’t had any luck yet. But was wondering if this is normal behavior for otii\_server:

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/qoitech/original/1X/f781a1e33d4b510cc03386b1fcb2abc000d85e0c.png)  
This particular moment of time is when during test setup, the Arc is shutdown trough set\_main and started again, sleeping 5 seconds after each.

Looking through the logs I’ve gathered since I updated the otii to the version 3.3.7, after this particular section I’ve ran the pipelines twice and during those runs the only thing appearing in logs are those same two lines as above.

-Timo

---

<div class="post-metadata">

**Author:** ![bjorn.rosqvist](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.qoitech.com/bjorn.rosqvist/32/238_2.png) [@bjorn.rosqvist](https://forum.qoitech.com/u/bjorn.rosqvist)\
**Post date:** [September 5, 2023, 1:30pm UTC](https://forum.qoitech.com/t/command-timeout/475/8 "2023-09-05T13:30:24Z")

</div>

Hi Timo,

This log is very interesting and to be able to dig deeper into this, may I ask you to create a case in our case system, please.

> **[User Management - Qoitech](https://www.qoitech.com/cases)**
>
> Qoitech user management

Best regards,  
Björn

---

<div class="post-metadata">

**Author:** ![pikkutimo](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@pikkutimo](https://forum.qoitech.com/u/pikkutimo)\
**Post date:** [September 6, 2023, 5:07am UTC](https://forum.qoitech.com/t/command-timeout/475/9 "2023-09-06T05:07:01Z")

</div>

Ok, I did that. I also attached the otii\_server.log to the case.

-Timo

---

<div class="post-metadata">

**Author:** ![pikkutimo](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@pikkutimo](https://forum.qoitech.com/u/pikkutimo)\
**Post date:** [September 15, 2023, 10:35am UTC](https://forum.qoitech.com/t/command-timeout/475/10 "2023-09-15T10:35:17Z")

</div>

To anyone interested, the real problem in our pipelines (timeout) was solved by the release candidate of the newest version of the otii software. Since then we haven’t had any problems with the timeouts. I must offer my deepest gratitude towards Quitech for speedy and efficient response!
