ct-Open-Source / ct-Open-Source/tuya-convert

Docker exits unexpectedly

Open
#840 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
5.1k
Forks
523
PR merge metrics
No merged PRs in 30d

Description

When trying to run tuya-convert in Docker, the container stops after some 20 seconds with no reason.
It doesn't matter if I press ENTER or not, it stops with "Cleaning up".

How could I track down this issue?

#### System
OpenSUSE Tumbleweed
Docker 19.03.12
tuya-convert 2.4.4
USB-Wifi: Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]

#### Attempt without pressing *ENTER*:
```
hannes@gurkenkiste:~/Downloads/tuya-convert/muhbla> docker-compose up -d
Starting muhbla_tuya_1 ... done
hannes@gurkenkiste:~/Downloads/tuya-convert/muhbla> docker-compose exec tuya start
tuya-convert v2.4.4
Checking for network interface wlp0s20f0u8... Found.
Checking UDP port 53... Available.
Checking UDP port 67... Available.
Checking TCP port 80... Available.
Checking TCP port 443... Available.
Checking UDP port 6666... Available.
Checking UDP port 6667... Available.
Checking TCP port 1883... Available.
Checking TCP port 8886... Available.
======================================================
Starting AP in a screen.
Starting web server in a screen
Starting Mosquitto in a screen
Starting PSK frontend in a screen
Starting Tuya Discovery in a screen

======================================================

IMPORTANT
1. Connect any other device (a smartphone or something) to the WIFI vtrust-flash
This step is IMPORTANT otherwise the smartconfig may not work!
2. Put your IoT device in autoconfig/smartconfig/pairing mode (LED will blink fast). This is usually done by pressing and holding the primary button of the device
Make sure nothing else is plugged into your IoT device while attempting to flash.
3. Press ENTER to continue
======================================================
Cleaning up...
hannes@gurkenkiste:~/Downloads/tuya-convert/muhbla>
```

#### Second attempt pressing *ENTER* immediately:
```
hannes@gurkenkiste:~/Downloads/tuya-convert/muhbla> docker-compose up -d
Starting muhbla_tuya_1 ... done
hannes@gurkenkiste:~/Downloads/tuya-convert/muhbla> docker-compose exec tuya start
tuya-convert v2.4.4
Checking for network interface wlp0s20f0u8... Found.
Checking UDP port 53... Available.
Checking UDP port 67... Available.
Checking TCP port 80... Available.
Checking TCP port 443... Available.
Checking UDP port 6666... Available.
Checking UDP port 6667... Available.
Checking TCP port 1883... Available.
Checking TCP port 8886... Available.
======================================================
Starting AP in a screen
Starting web server in a screen
Starting Mosquitto in a screen
Starting PSK frontend in a screen
Starting Tuya Discovery in a screen

======================================================

IMPORTANT
1. Connect any other device (a smartphone or something) to the WIFI vtrust-flash
This step is IMPORTANT otherwise the smartconfig may not work!
2. Put your IoT device in autoconfig/smartconfig/pairing mode (LED will blink fast). This is usually done by pressing and holding the primary button of the device
Make sure nothing else is plugged into your IoT device while attempting to flash.
3. Press ENTER to continue

======================================================
Starting smart config pairing procedure
Waiting for the device to install the intermediate firmware
Put device in EZ config mode (blinking fast)
Sending SSID vtrust-flash
Sending wifiPassword
Sending token 00000000
Sending secret 0101
................
SmartConfig complete.
Resending SmartConfig Packets
.................
SmartConfig complete.
Resending SmartConfig Packets
.........======================================================
Cleaning up...
hannes@gurkenkiste:~/Downloads/tuya-convert/muhbla>
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.