Unable to start thingsboard service
Hello everyone,
I found out that tb service stopped to work. I have issues service thingsboard restart but unfortunatelly I can not bring the tb service back alive.
I'm attaching /var/log/thingsboard/thingsboard.log https://pastebin.com/qXna1uAT .
Any advice will be helpfull.
Thank you.
Y
hi,
just to confirm:
- TB was running fine without any issues
- At some point TB stopped
- After restart without any modifications to the configuration it starts throwing this errors on mapping
are these statements correct?
@volodymyr-babak,
more or less like you specified. The exact way:
- TB was running fine without any issues
- Make some dashboard modification (export and import dashoard)
- Works for some time
- At some point TB stopped
- After restart without any modifications to the configuration it starts throwing this errors on mapping
This is exact path :)
Y
@volodymyr-babak,
if you need some more logs or debug informations, please don't hesitate to ask.
Y
hi, from the log file it doesn't clear where is the issue. Please change log level to DEBUG and restart application. And then attach log file + config file.
@volodymyr-babak, do you have a hint for me how to enable the DEBUG level?
/usr/share/thingsboard/conf/logback.xml is configuration file for log level and other options
@volodymyr-babak,
thank you for pointing me to /usr/share/thingsboard/conf/logback.xml :)
I'm attaching the log file (quite huge) directly here.
you have issues with memory on your device 2017-09-07 16:53:52,854 [main] WARN o.s.b.c.e.AnnotationConfigEmbeddedWebApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'resourceHandlerMapping' defined in class path resource [org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Initialization of bean failed; nested exception is java.lang.OutOfMemoryError: Java heap space
We see a lower limit of 4-6GB ram using Ubuntu for TB to run. So our VM's have 8-16 GB and run without problems.
If you are using 1.3 version and it's not painfully to re-create data and devices you can consider SQL database instead of cassandra. This will work fine on 1GB RAM devices
@volodymyr-babak Yes I'm using 1.3 version of TB, but I'm not using cassandra DB. I'm using SQL :) Moreover this setup worked like a charm before ;) I believe the glitch will be somewhere else :/
Y
I'm not saying that cassandra is definitely the issue. ThingsBoard is stopping because luck of RAM memory. But root cause is not clear and must be investigated separately - could be database, java configuration, memory usage by some other process, etc.
@volodymyr-babak , It is interesting as it was working without any issues a quiete long time and than suddenly it stops. I have tried to reboot RPI3 and start TB, but no luck here as well.
Is there any chance to bring it alive (I wouldn't like to lost all my configuration like dashboard, devices etc).
Y
have you tried to increases RAM memory for the thingsboard java process ?
@volodymyr-babak do you mean to increas values scpecified in /etc/thingsboard/conf/thingsboard.conf ? :
# Update ThingsBoard memory usage and restrict it to 150MB in /etc/thingsboard/conf/thingsboard.conf
export JAVA_OPTS="$JAVA_OPTS -Dplatform=rpi -Xms256M -Xmx256M"
Y
yes
@volodymyr-babak I'll try it as soon as return home. Will share result here. Thank you so far.
Y
@volodymyr-babak:
I have edited the given line as you suggested and my TB instance is alive again. Thank you many times.
PS: is there anyway to donate this project or support in other way?
Y
@z4nD4R We should make some T-Shirts :rofl: . You can support us by contributing the issues/fixes/features. There are some ideas in the neighbor github issues.
@ashvayka the T-Shirts would be great, let me know I'd like to participate on design of those T-Shirts :D Speaking about suport by issues omw to upload another one.
Y