TDengine icon indicating copy to clipboard operation
TDengine copied to clipboard

Database Compatibility - Database Migration in version 3. 's

Open omanalytics opened this issue 7 months ago • 2 comments

Bug Description After upgrading from 3.3.4.8. to 3.3.6.6, seems the database is not readable by the upgraded version (no backward compatibility).

To Reproduce Steps to reproduce the behavior:

  1. docker run --name test_db -d -v C:/Temp/test_Historian/DB:/var/lib/taos -v C:/Temp/test_Historian/log:/var/log/taos --net tdengine_net -p 6030:6030 -p 6041:6041 -p 6043-6060:6043-6060 -p 6043-6060:6043-6060/udp tdengine/tdengine:3.3.4.8
  2. docker exec -it test_db bash
  3. taos
  4. CREATE DATABASE test;
  5. exit container, remove the container.
  6. docker run --name test_db -d -v C:/Temp/test_Historian/DB:/var/lib/taos -v C:/Temp/test_Historian/log:/var/log/taos --net tdengine_net -p 6030:6030 -p 6041:6041 -p 6043-6060:6043-6060 -p 6043-6060:6043-6060/udp tdengine/tdengine:latest
  7. docker exec -it test_db bash
  8. taos
  9. running the command even after one hour does not show any database upgrade.

Image

root@xyzwq:~# taos Welcome to the TDengine Command Line Interface, Native Client Version:3.3.6.6 Copyright (c) 2025 by TDengine, all rights reserved.

failed to connect to server, reason: Database is starting up [0x80000130]

To view possible causes and suggested actions for error codes, see "Error Code Reference" in the TDengine online documentation.

Expected Behavior I would expect the database being read by new version (backward compatibility on version 3.x.x.x how to upgrade version 3. database to a higher version 3. database?

Environment (please complete the following information): Docker container

omanalytics avatar May 17 '25 07:05 omanalytics

could you provide the taosdlog to us ? before that please set taosd to debugFlag 135 and clear the old taosdlog .

yu285 avatar May 19 '25 01:05 yu285

taosdlog.log

Also note that it cannot find the json file as the path has // . but I can run the tdengine by using the lower version with the same line command.

omanalytics avatar May 19 '25 02:05 omanalytics