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:
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
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_HOMEenvironment variable points to your JDK installation directory (e.g.,C:\Program Files\Java\jdk-17.0.9) - Add
%JAVA_HOME%\binto your systemPATHvariable
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 theurlpath 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
datafolder and delete the.mv.dbfile, then try starting the service again
For PostgreSQL:
- In
thingsboard.yml, confirm theusername,password, andurlunder 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
The default Local System account might not have enough access to the ThingsBoard installation folder or database files:
- Open Windows Services (right-click "This PC" → Manage → Services)
- Find "ThingsBoard Server Application", right-click → Properties
- Go to the "Log On" tab, select "This account"
- Enter a local admin account or domain account with full permissions, input the password, then click Apply
- Restart the service
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.ymlto change the conflicting port (e.g., setserver.port: 8081)
If all else fails, the installation files might be corrupted:
- Stop any running ThingsBoard services, then uninstall it via Control Panel
- Manually delete the installation directory (e.g.,
C:\Program Files (x86)\thingsboard) and data folder (back up first if you need to retain data) - Download the latest official ThingsBoard installer, right-click → Run as administrator
- Follow the installation wizard steps, making sure to configure Java and database settings correctly
内容的提问来源于stack exchange,提问作者amit banik

