Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intitialize db job fails after giving Widgets error #83

Open
divye1 opened this issue Feb 7, 2023 · 0 comments
Open

Intitialize db job fails after giving Widgets error #83

divye1 opened this issue Feb 7, 2023 · 0 comments

Comments

@divye1
Copy link

divye1 commented Feb 7, 2023

I get the following error when initializing db for the first time during Thingsboard installation. Sometimes the job succeeds when I remove the limits and resources for this job but most of the time, it fails. I need to provide proper limits and resources in our Staging environment.
Starting ThingsBoard Installation... Installing DataBase schema for entities... Installing SQL DataBase schema part: schema-entities.sql Installing SQL DataBase schema indexes part: schema-entities-idx.sql Installing SQL DataBase schema PostgreSQL specific indexes part: schema-entities-idx-psql-addon.sql Installing DataBase schema for timeseries... Installing Cassandra DataBase schema part: schema-ts.cql Loading system data... Trying to create system admin user Creating system admin user is done Unable to load widget type from json: [/usr/share/thingsboard/data/json/system/widget_bundles/date.json] Unable to load widgets bundle from json: [/usr/share/thingsboard/data/json/system/widget_bundles/date.json] Unexpected error during ThingsBoard installation! java.lang.RuntimeException: Unable to load widgets bundle from json at org.thingsboard.server.service.install.InstallScripts.lambda$loadSystemWidgets$4(InstallScripts.java:191) at java.base/java.lang.Iterable.forEach(Iterable.java:75) at org.thingsboard.server.service.install.InstallScripts.loadSystemWidgets(InstallScripts.java:169) at org.thingsboard.server.service.install.DefaultSystemDataLoaderService.loadSystemWidgets(DefaultSystemDataLoaderService.java:469) at org.thingsboard.server.install.ThingsboardInstallService.performInstall(ThingsboardInstallService.java:258) at org.thingsboard.server.ThingsboardInstallApplication.main(ThingsboardInstallApplication.java:48) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49) at org.springframework.boot.loader.Launcher.launch(Launcher.java:108) at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:467) Caused by: java.lang.RuntimeException: Unable to load widget type from json at org.thingsboard.server.service.install.InstallScripts.lambda$loadSystemWidgets$3(InstallScripts.java:185) at java.base/java.lang.Iterable.forEach(Iterable.java:75) at org.thingsboard.server.service.install.InstallScripts.lambda$loadSystemWidgets$4(InstallScripts.java:177) ... 13 common frames omitted Caused by: org.thingsboard.server.dao.exception.DataValidationException: Widget type is referencing to non-existent widgets bundle! at org.thingsboard.server.dao.service.validator.WidgetTypeDataValidator.validateCreate(WidgetTypeDataValidator.java:67) at org.thingsboard.server.dao.service.validator.WidgetTypeDataValidator.validateCreate(WidgetTypeDataValidator.java:33) at org.thingsboard.server.dao.service.DataValidator.validate(DataValidator.java:50) at org.thingsboard.server.dao.widget.WidgetTypeServiceImpl.saveWidgetType(WidgetTypeServiceImpl.java:60) at org.thingsboard.server.service.install.InstallScripts.lambda$loadSystemWidgets$3(InstallScripts.java:182) ... 15 common frames omitted Unexpected error during ThingsBoard installation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant