question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update from 2.3.1 to 2.4.0 with Postgresql

See original GitHub issue

After updating to version 2.4.0 from 2.3.1 thingsboard, using debian package doesn’t find my devices.

I’m using PostgreSQL.

cat /var/log/thingsboard/thingsboard.log | grep ERROR

2019-07-23 05:30:52,089 [nioEventLoopGroup-6-8] ERROR o.t.s.t.mqtt.MqttTransportHandler - [e1d3825a-288b-4be1-ac7f-4332c493f869] Unexpected Exception 2019-07-23 07:14:30,003 [pool-33-thread-1] ERROR o.h.e.jdbc.spi.SqlExceptionHelper - ERROR: column deviceenti0_.label does not exist 2019-07-23 07:14:33,064 [pool-7-thread-1] ERROR o.h.e.jdbc.spi.SqlExceptionHelper - ERROR: column deviceenti0_.label does not exist Caused by: org.postgresql.util.PSQLException: ERROR: column deviceenti0_.label does not exist 2019-07-23 07:14:33,548 [pool-7-thread-2] ERROR o.h.e.jdbc.spi.SqlExceptionHelper - ERROR: column deviceenti0_.label does not exist Caused by: org.postgresql.util.PSQLException: ERROR: column deviceenti0_.label does not exist 2019-07-23 07:14:34,715 [pool-7-thread-3] ERROR o.h.e.jdbc.spi.SqlExceptionHelper - ERROR: column deviceenti0_.label does not exist Caused by: org.postgresql.util.PSQLException: ERROR: column deviceenti0_.label does not exist 2019-07-23 07:14:35,186 [pool-7-thread-4] ERROR o.h.e.jdbc.spi.SqlExceptionHelper - ERROR: column deviceenti0_.label does not exist Caused by: org.postgresql.util.PSQLException: ERROR: column deviceenti0_.label does not exist 2019-07-23 07:14:36,376 [pool-7-thread-5] ERROR o.h.e.jdbc.spi.SqlExceptionHelper - ERROR: column deviceenti0_.label does not exist Caused by: org.postgresql.util.PSQLException: ERROR: column deviceenti0_.label does not exist 2019-07-23 07:14:36,822 [pool-7-thread-6] ERROR o.h.e.jdbc.spi.SqlExceptionHelper - ERROR: column deviceenti0_.label does not exist Caused by: org.postgresql.util.PSQLException: ERROR: column deviceenti0_.label does not exist …

service thingsboard status

  • thingsboard.service - thingsboard Loaded: loaded (/lib/systemd/system/thingsboard.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2019-07-23 07:25:28 UTC; 4s ago Main PID: 29848 (thingsboard.jar) Tasks: 19 (limit: 4915) CGroup: /system.slice/thingsboard.service |-29848 /bin/bash /usr/share/thingsboard/bin/thingsboard.jar `-29863 /usr/bin/java -Dsun.misc.URLClassPath.disableJarChecking=true -Dplatform=deb -Dinstall.data_dir=/usr/share/thingsboard/d

Jul 23 07:25:28 cooxyVPS systemd[1]: thingsboard.service: Failed to reset devices.list: Operation not permitted Jul 23 07:25:28 cooxyVPS systemd[1]: thingsboard.service: Failed to set invocation ID on control group /system.slice/thingsboard.service, i Jul 23 07:25:28 cooxyVPS systemd[1]: Started thingsboard. Jul 23 07:25:30 cooxyVPS thingsboard.jar[29848]: =================================================== Jul 23 07:25:30 cooxyVPS thingsboard.jar[29848]: :: ThingsBoard :: (v2.4.0) Jul 23 07:25:30 cooxyVPS thingsboard.jar[29848]: =================================================== root@cooxyVPS:/etc/thingsboard/conf# service thingsboard status

  • thingsboard.service - thingsboard Loaded: loaded (/lib/systemd/system/thingsboard.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2019-07-23 07:25:28 UTC; 36s ago Main PID: 29848 (thingsboard.jar) Tasks: 100 (limit: 4915) CGroup: /system.slice/thingsboard.service |-29848 /bin/bash /usr/share/thingsboard/bin/thingsboard.jar `-29863 /usr/bin/java -Dsun.misc.URLClassPath.disableJarChecking=true -Dplatform=deb -Dinstall.data_dir=/usr/share/thingsboard/d

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
lazajcommented, Jul 24, 2019

Sorry, I forgot this step …

1reaction
Backdraft007commented, Jul 23, 2019

Did you run the upgrade-script?

# Execute upgrade script
$ sudo /usr/share/thingsboard/bin/install/upgrade.sh --fromVersion=2.3.1 
Read more comments on GitHub >

github_iconTop Results From Across the Web

35. Software Upgrades — Introduction to PostGIS
There are two kinds of PostgreSQL upgrade scenarios: A “minor upgrade” when the software version increases at the “patch” level. For example, from...
Read more >
Amazon RDS for PostgreSQL updates
The pgrouting extension is updated to version 3.1.3. The pglogical extension is updated to version 2.4.0. The PostGIS extension is updated to version...
Read more >
Using pg_upgrade to upgrade PostGIS without installing an ...
When pg_upgrade tries to move over the data, it tries to install each function in the old extension and if the function that...
Read more >
Upgrading timescaledb from 2.3.0 to 2.6.0 - Stack Overflow
To update to a version that's not the latest installed version, specify the version number, like this: ALTER EXTENSION timescaledb UPDATE TO '2 ......
Read more >
Documentation: 15: E.2. Release 15 - PostgreSQL
Support for the SQL MERGE command. ... Upgrading a cluster or restoring a database dump will preserve public 's existing ... E.2.3.1. Server....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found