在guide之后,我已经成功地使用github存储库从源代码构建了Thingsboard。我以某种方式解决了所有问题,但是在运行 sudo dpkg -i Thingsboard.deb 命令之后,当我使用 sudo /usr/share/thingsboard/bin/install/install.sh时--loadDemo 命令,我遇到以下错误:
pub struct Hanoi {
moves: String
}
impl Hanoi {
pub fn new() -> Hanoi {
Hanoi {
moves: String::new()
}
}
pub fn hanoi(&mut self, n: i32, from: &str, via: &str, to: &str) -> &str {
if n > 0 {
self.hanoi(n - 1, from, to, via);
self.moves.push_str(from);
self.moves.push_str("->");
self.moves.push_str(to);
self.moves.push_str("\n");
self.hanoi(n - 1, via, from, to);
}
return &self.moves;
}
}
我也尝试了热重新部署模式(localhost:3000)和服务器端容器,但是它们似乎都不起作用,(在热重新部署模式下,我看到一个空白屏幕,界面无法加载)
这是Thingboard日志文件中完整的错误日志:
03:44:53,947 |-INFO in ch.qos.logback.classic.LoggerContext[default]
- Could NOT find resource [logback-test.xml]
03:44:53,948 |-INFO in ch.qos.logback.classic.LoggerContext[default]
- Could NOT find resource [logback.groovy]
03:44:53,948 |-INFO in ch.qos.logback.classic.LoggerContext[default]
- Found resource [logback.xml] at
[file:/usr/share/thingsboard/conf/logback.xml]
03:44:53,950 |-WARN in ch.qos.logback.classic.LoggerContext[default]
- Resource [logback.xml] occurs multiple times on the classpath.
03:44:53,950 |-WARN in ch.qos.logback.classic.LoggerContext[default]
- Resource [logback.xml] occurs at
[file:/usr/share/thingsboard/conf/logback.xml]
03:44:53,950 |-WARN in ch.qos.logback.classic.LoggerContext[default]
- Resource [logback.xml] occurs at
[jar:file:/usr/share/thingsboard/bin/thingsboard.jar!/BOOT-
INF/lib/queue-2.3.1-SNAPSHOT.jar!/logback.xml]
03:44:54,147 |-INFO in
ch.qos.logback.classic.joran.action.ConfigurationAction - debug
attribute not set
03:44:54,148 |-INFO in
ch.qos.logback.core.joran.action.AppenderAction - About to
instantiate appender of type
[ch.qos.logback.core.rolling.RollingFileAppender]
03:44:54,180 |-INFO in
ch.qos.logback.core.joran.action.AppenderAction - Naming appender as
[fileLogAppender]
03:44:54,219 |-INFO in
c.q.l.core.rolling.SizeAndTimeBasedRollingPolicy@1598924227 - setting
totalSizeCap to 3 GB
03:44:54,223 |-INFO in
c.q.l.core.rolling.SizeAndTimeBasedRollingPolicy@1598924227 - Archive
files will be limited to [100 MB] each.
03:44:54,275 |-INFO in
c.q.l.core.rolling.SizeAndTimeBasedRollingPolicy@1598924227 - No
compression will be used
03:44:54,279 |-INFO in
c.q.l.core.rolling.SizeAndTimeBasedRollingPolicy@1598924227 - Will
use the pattern /var/log/thingsboard/thingsboard.%d{yyyy-MM-
dd}.%i.log for the active file
03:44:54,287 |-INFO in
ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@443b7951 - The date
pattern is 'yyyy-MM-dd' from file name pattern
'/var/log/thingsboard/thingsboard.%d{yyyy-MM-dd}.%i.log'.
03:44:54,287 |-INFO in
ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@443b7951 - Roll-
over at midnight.
03:44:54,289 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@443b7951 - Setting initial period to Wed Apr 10 03:44:36 PDT 2019
03:44:54,292 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
03:44:54,348 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[fileLogAppender] - Active log file name: /var/log/thingsboard/thingsboard.log
03:44:54,348 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[fileLogAppender] - File property is set to [/var/log/thingsboard/thingsboard.log]
03:44:54,349 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.thingsboard.server] to INFO
03:44:54,350 |-INFO in chran.action.ConfigurationAction - End of configuration.
03:44:54,351 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@14514713 - Registering current configuration as safe fallback point
ThingsBoard installation failed!.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [akka] to INFO
03:44:54,350 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to INFO
03:44:54,350 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [fileLogAppender] to Logger[ROOT]
03:44:54,350 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
03:44:54,351 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@14514713 - Registering current configuration as safe fallback point
ThingsBoard installation failed!
这是我在其上运行Thingsboard的系统配置:
操作系统:Ubuntu 18.04LTS Thingsboard版本:2.3.1