在 docker 容器中设置 Thingsboard 开发
Setting up Thingsboard development in docker container
我正在尝试使用 docker 设置我的开发 thingsboard 环境,并尝试按照位于 TB_HOME/applications/docker
文件夹中的自述文件中提到的步骤进行操作。
因为我要使用 Cassandra,所以我在 ENV 文件中更新了相同的内容并尝试执行 ./docker-install-tb.sh --loadDemo
并在尝试安装 tbnode 时导致错误。
Creating docker_cassandra_1 ... done
Creating docker_redis_1 ... done
Pulling tb1 (thingsboard/tb-node:latest)...
......
Starting ThingsBoard Installation...
Installing DataBase schema for entities...
Installing Cassandra DataBase schema part: schema-entities.cql
Unexpected error during ThingsBoard installation!
java.lang.RuntimeException: 'install.data_dir' property value is not a valid directory!
at org.thingsboard.server.service.install.InstallScripts.getDataDir(InstallScripts.java:88)
at org.thingsboard.server.service.install.CassandraAbstractDatabaseSchemaService.createDatabaseSchema(CassandraAbstractDatabaseSchemaService.java:47)
at org.thingsboard.server.install.ThingsboardInstallService.performInstall(ThingsboardInstallService.java:140)
at org.thingsboard.server.ThingsboardInstallApplication.main(ThingsboardInstallApplication.java:43)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:521)
Unexpected error during ThingsBoard installation!
To enable GC log rotation, use -Xloggc: -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=
where num_of_file > 0
GC log rotation is turned off
非常感谢任何帮助。
谢谢
周杰伦
希望你在Windows环境下尝试,请在Linux(ubuntu)环境下尝试,应该不会出现这个错误。我可以在 Readme.md @ \thingsboard\docker 文件夹之后调出 docker 容器。
但我只能使用节点微服务端口访问 thingsboard UI,而不是使用 Webui 微服务端口。
我正在尝试使用 docker 设置我的开发 thingsboard 环境,并尝试按照位于 TB_HOME/applications/docker
文件夹中的自述文件中提到的步骤进行操作。
因为我要使用 Cassandra,所以我在 ENV 文件中更新了相同的内容并尝试执行 ./docker-install-tb.sh --loadDemo
并在尝试安装 tbnode 时导致错误。
Creating docker_cassandra_1 ... done
Creating docker_redis_1 ... done
Pulling tb1 (thingsboard/tb-node:latest)... ......Starting ThingsBoard Installation... Installing DataBase schema for entities... Installing Cassandra DataBase schema part: schema-entities.cql Unexpected error during ThingsBoard installation! java.lang.RuntimeException: 'install.data_dir' property value is not a valid directory! at org.thingsboard.server.service.install.InstallScripts.getDataDir(InstallScripts.java:88) at org.thingsboard.server.service.install.CassandraAbstractDatabaseSchemaService.createDatabaseSchema(CassandraAbstractDatabaseSchemaService.java:47) at org.thingsboard.server.install.ThingsboardInstallService.performInstall(ThingsboardInstallService.java:140) at org.thingsboard.server.ThingsboardInstallApplication.main(ThingsboardInstallApplication.java:43) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:521) Unexpected error during ThingsBoard installation! To enable GC log rotation, use -Xloggc: -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles= where num_of_file > 0 GC log rotation is turned off
非常感谢任何帮助。
谢谢 周杰伦
希望你在Windows环境下尝试,请在Linux(ubuntu)环境下尝试,应该不会出现这个错误。我可以在 Readme.md @ \thingsboard\docker 文件夹之后调出 docker 容器。
但我只能使用节点微服务端口访问 thingsboard UI,而不是使用 Webui 微服务端口。