You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows下安装ThingsBoard后启动服务报错1067求助

Hey there, sorry to hear you're hitting the System Error 1067 when trying to start the ThingsBoard Server Application on Windows—let's break down the most common fixes to get this resolved:

1. First, check ThingsBoard logs to pinpoint the root cause

Error 1067 is a generic "process terminated unexpectedly" message, so the logs will tell you exactly what's going wrong.

By default, you'll find the logs in:

  • C:\Program Files (x86)\thingsboard\logs (if you used the default installation path)
  • Or C:\thingsboard\logs (if you chose a custom path)

Focus on thingsboard.log and tb-node.log. Look for error messages like:

  • Java version mismatches
  • Database connection failures
  • Permission denied errors
  • Port conflicts
2. Verify your Java Runtime Environment (JRE/JDK)

ThingsBoard has strict Java version requirements (e.g., v3.5+ recommends Java 17, older versions may use Java 11). Here's how to check:

  • Open Command Prompt as administrator, run java -version
  • If the version doesn't match the ThingsBoard documentation, install the correct OpenJDK/Oracle JDK
  • Ensure the JAVA_HOME environment variable points to your JDK installation directory (e.g., C:\Program Files\Java\jdk-17.0.9)
  • Add %JAVA_HOME%\bin to your system PATH variable
3. Check database configuration

For built-in H2 database:

  • Open C:\Program Files (x86)\thingsboard\conf\thingsboard.yml (or your custom config path)
  • Search for the database: section, verify the url path is correct (e.g., jdbc:h2:C:\Program Files (x86)\thingsboard\data\thingsboard;LOCK_TIMEOUT=60000)
  • If the path has spaces, ensure the service has access to that directory (see step 4)
  • If the H2 database file is corrupted, back up the data folder and delete the .mv.db file, then try starting the service again

For PostgreSQL:

  • In thingsboard.yml, confirm the username, password, and url under the PostgreSQL section are correct
  • Make sure the PostgreSQL service is running in Windows Services
  • Verify the ThingsBoard database exists and the specified user has full permissions to access it
4. Fix service permissions

The default Local System account might not have enough access to the ThingsBoard installation folder or database files:

  1. Open Windows Services (right-click "This PC" → Manage → Services)
  2. Find "ThingsBoard Server Application", right-click → Properties
  3. Go to the "Log On" tab, select "This account"
  4. Enter a local admin account or domain account with full permissions, input the password, then click Apply
  5. Restart the service
5. Check for port conflicts

ThingsBoard uses default ports like 8080 (HTTP), 1883 (MQTT), and 5683 (CoAP). If these are taken by another app, the service will crash:

  • Open Command Prompt, run netstat -ano | findstr :8080 (replace 8080 with other ports if needed)
  • If you see a result, note the PID at the end of the line
  • Open Task Manager → Details, find the process with that PID, and close it
  • Alternatively, edit thingsboard.yml to change the conflicting port (e.g., set server.port: 8081)
6. Repair or reinstall ThingsBoard

If all else fails, the installation files might be corrupted:

  1. Stop any running ThingsBoard services, then uninstall it via Control Panel
  2. Manually delete the installation directory (e.g., C:\Program Files (x86)\thingsboard) and data folder (back up first if you need to retain data)
  3. Download the latest official ThingsBoard installer, right-click → Run as administrator
  4. Follow the installation wizard steps, making sure to configure Java and database settings correctly

内容的提问来源于stack exchange,提问作者amit banik

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.15 06:33:21