Error installing thingsboard community edition - thingsboard

I'm getting this error during the installation, i tried using docker this time and i'm getting the same error over and over, i trying on a ubuntu 18 instance (openstack) and i can't find a solution. I followed the documentation ( i tried on a AWS EC2 instance and it work just fine). Please any help !
Error creating bean with name 'thingsboardInstallService': Unsatisfied
dependency expressed through field 'entityDatabaseSchemaService';
nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'psqlEntityDatabaseSchemaService':
Unsatisfied dependency expressed through field 'installScripts';
nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'installScripts': Unsatisfied dependency
expressed through field 'ruleChainService'; nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'baseRuleChainService': Unsatisfied
dependency expressed through field 'relationService'; nested exception
is org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'baseRelationService': Unsatisfied
dependency expressed through field 'entityService'; nested exception
is org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'baseEntityService': Unsatisfied
dependency expressed through field 'assetService'; nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'baseAssetService': Unsatisfied
dependency expressed through field 'assetDao'; nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'jpaAssetDao': Unsatisfied dependency
expressed through field 'assetRepository'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'assetRepository' defined in
org.thingsboard.server.dao.sql.asset.AssetRepository defined in
#EnableJpaRepositories declared on JpaDaoConfig: Invocation of init
method failed; nested exception is java.lang.IllegalStateException:
Using named parameters for method public abstract
org.springframework.data.domain.Page
org.thingsboard.server.dao.sql.asset.AssetRepository.findAssetInfosByTenantId(java.util.UUID,java.lang.String,org.springframework.data.domain.Pageable)
but parameter 'Optional[tenantId]' not found in annotated query
'SELECT new org.thingsboard.server.dao.model.sql.AssetInfoEntity(a,
c.title, c.additionalInfo) FROM AssetEntity a LEFT JOIN CustomerEntity
c on c.id = a.customerId WHERE a.tenantId = :tenantId AND
LOWER(a.searchText) LIKE LOWER(CONCAT(:textSearch, '%'))'!
The error image
Environment
OS: Ubuntu 18.04.5 LTS on Openstack
ThingsBoard: 3.2.1

Related

Implementing DI using Unity (design time configuration) in Web API 2

I am working on implementing DI using Unity in Web API Layer. Following is the error message I am getting while calling the Service -
Resolution of the dependency failed, type =
"API.Controllers.LeadController", name = "(none)".
Exception occurred while: while resolving.
Exception is: InvalidOperationException - The current type,
Business.ILeadManager, is an interface and cannot be constructed. Are
you missing a type mapping?
At the time of the exception, the container was:
Resolving API.Controllers.LeadController,(none)
Resolving parameter "leadManager" of constructor
API.Controllers.LeadController(Business.ILeadManager leadManager)
Resolving Business.ILeadManager,(none)
Any suggestions, what is wrong ?
Your unity configuration is missing a mapping for type Business.ILeadManager, so unity does not know which object instance it should create.
There should be an entry for your type like:
<register type="Business.ILeadManager" mapTo="MyLeadManagerImplementation" />

Why Spring crashes with "No bean named .. is defined" when configuring RabbitMQ queues using a system property and SpEL?

I have the following code in my context XML (among other things):
<rabbit:queue name="#{systemProperties.consumer1Queue}" />
<rabbit:fanout-exchange name="si.test.exchange">
<rabbit:bindings>
<rabbit:binding queue="#{systemProperties.consumer1Queue}"/>
</rabbit:bindings>
</rabbit:fanout-exchange>
I first compile it using mvn compile. Then, when I want to run it with mvn -Dconsumer1Queue=queue1 exec:java it throws:
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name
'org.springframework.amqp.rabbit.config.BindingFactoryBean#0': Cannot
resolve reference to bean '#{systemProperties.consumer1Queue}' while
setting bean property 'destinationQueue'; nested exception is
org.springframework.beans.factory.NoSuchBeanDefinitionException: No
bean named 'queue1' is defined at
[...]
The exception stops occurring when I either:
change the <rabbit:queue ...> element to <rabbit:queue name="queue1" />, or
comment out the <rabbit:fanout-exchange ...> element.
This is Spring Integration version 4.1.1
Why is this happening? Could this be related to this bug?
Many thanks!
You aren't correct. See binding's queue attribute docs:
The bean name of the Queue to bind to this exchange.
So, you should add id to the <rabbit:queue> and use it as a value of the binding's queue attribute.

GeoServer PrintPlugin .yaml file HorizontalAllign Error

I tried all versions of geoserver and print module on both windows and ubuntu. I tried both war and exe installation. I use tomcat 7 and jdk 7. But there is the same error message.
HTTP Status 500 - Request processing failed; nested exception is org.ho.yaml.exception.YamlException: Error near line 0: Problem getting RİGHT value of enum type class org.mapfish.print.config.layout.HorizontalAlign
type Exception report
message Request processing failed; nested exception is org.ho.yaml.exception.YamlException: Error near line 0: Problem getting RİGHT value of enum type class org.mapfish.print.config.layout.HorizontalAlign
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.ho.yaml.exception.YamlException: Error near line 0: Problem getting RİGHT value of enum type class org.mapfish.print.config.layout.HorizontalAlign

InvalidOperationException - The type ITenant does not have an accessible constructor

I am new to unity dependency injection, and I'm using mvc and DI in my project. I used an interface ICUS and then created one class that is implements it.
When I resolve this class, I get the following error:
InvalidOperationException - The type iCUS does not have an accessible
constructor Resolution of the dependency failed, type =
"GG.Framework.Configuration.iCUS ", name = "(none)". Exception
occurred while: while resolving. Exception is:
InvalidOperationException - The type iCUS does not have an accessible
constructor.
At the time of the exception, the container was: Resolving
GG.Framework.Configuration.iCUS, (none)
Can anyone help with this please?

Facebook Connect Plugin and Grails Issue

Not sure how to begin troubleshooting this issue. I followed the exact instructions on this page - http://www.grails.org/Facebook+Connect+Plugin
Are the instructions on this page correct? or missing something?
Is this plugin abandoned for something else? Not sure where Spring Social fits into this, or if that is even production-ready.
Error 500: Error processing GroovyPageView: Error executing tag <g:facebookConnectJavascript>: Error creating bean with name 'FacebookTagLib': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'facebookConnectService': Invocation of init method failed; nested exception is java.lang.ClassNotFoundException: FacebookConnectConfig at P:/testapp/grails-app/views/loginFacebook/auth.gsp:15
Servlet: grails
URI: /lmfirst/grails/loginFacebook/auth.dispatch
Exception Message: FacebookConnectConfig
Caused by: Error processing GroovyPageView: Error executing tag <g:facebookConnectJavascript>: Error creating bean with name 'FacebookTagLib': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'facebookConnectService': Invocation of init method failed; nested exception is java.lang.ClassNotFoundException: FacebookConnectConfig at P:/testapp/grails-app/views/loginFacebook/auth.gsp:15
Class: FacebookConnectService
At Line: [15]
Code Snippet:
MORE INFORMATION:
Groovy Version: 1.7.5 JVM: 1.6.0_22
Grails 1.3.7
Can anyone else replicate this issue with the plugin? and the example code?
This appears to be a bug in the plugin. I faced the same problem now. This is a temporary work around:
Go to FacebookConnectService and modify the afterPropertiesSet() method like this:
void afterPropertiesSet() {
def config
try {
config = Class.forName("FacebookConnectConfig").newInstance()
facebookConnectConfig = new ConfigSlurper().parse(config.getClass())
} catch(ClassNotFoundException e) {
// no compiled class exists for the config, we must be running the Grails built-in web server
GroovyClassLoader loader = new GroovyClassLoader(getClass().getClassLoader())
Class clazz = loader.parseClass(new File("grails-app/conf/FacebookConnectConfig.groovy"))
facebookConnectConfig = new ConfigSlurper().parse(clazz)
}
}
Firstly,
From the error output it seems you're missing the back slash / at the end of the tag.
<g:facebookConnectJavascript />
Start there.. and post the results.

Resources