Frequently Asked questions
1. During the installation process, uWSGI fails to compile
The TDgpt installation process compiles uWSGI on your local machine. In certain Python distributions, such as Anaconda, conflicts may occur during compilation. In this case, you can choose not to install uWSGI.
However, this means that you must manually run the python3.10 /usr/local/taos/taosanode/lib/taosanalytics/app.py command when starting the taosanode service. Use a virtual Python environment when running this command to ensure that dependencies can be loaded.
2. Anodes fail to be created because the service cannot be accessed
taos> create anode '127.0.0.1:6035';
DB error: Analysis service can't access[0x80000441] (0.117446s)
First, use curl to check whether the anode is providing services: The output of curl '127.0.0.1:6035' should be as follows:
TDengine© Time Series Data Analytics Platform (ver 1.0.x)
The following output indicates that the anode is not providing services:
curl: (7) Failed to connect to 127.0.0.1 port 6035: Connection refused
If the anode has not started or is not running, check the uWSGI log logs in the /var/log/taos/taosanode/taosanode.log file to find and resolve any errors.
Note: Do not use systemctl to check the status of the taosanode service.
3. The service is operational, but queries return that the service is not available
taos> select _frowts,forecast(current, 'algo=arima, alpha=95, wncheck=0, rows=20') from d1 where ts<='2017-07-14 10:40:09.999';
DB error: Analysis service can't access[0x80000441] (60.195613s)
The timeout period for the analysis service is 60 seconds. If the analysis process cannot be completed within this period, this error will occur. You can reduce the scope of data being analyzed or try another algorithm to avoid the error.
4. Illegal json format error is returned
This indicates that the analysis results contain an error. Check the anode operation logs in the /var/log/taos/taosanode/taosanode.app.log file to find and resolve any issues.
5. How to adjust the TDgpt log level and obtain detailed error information
The default log level for TDgpt is DEBUG. To adjust the log level, you need to modify the log-level configuration item in the TDgpt configuration file located at /etc/taos/taosanode.ini.
# default log level
log-level = DEBUG
The available options for this configuration item include: DEBUG, INFO, CRITICAL, ERROR, and WARN.
For certain errors that cannot be directly identified via return codes, please check the log files to obtain accurate error details. The log files are located in the /var/log/taos/taosanode/ directory.
- taosanode.app.log: Logs generated by the TDgpt application.
- taosanode.log: Web service logs generated by uWSGI.
6. Which error codes does TDgpt return?
Please refer to the TDgpt Error Code List.