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.

Unable to start TB services.

See original GitHub issue

Hello everyone,

I’ve tried to define outgoing email server. Unfortunately the UI somehow “glitch” (I specify the server - test it via test button - works - but when came back to the settings the UI was empty). I tried to redefine the server several time but the same result - email settings form was alway empty with UI message “Can not load email settings” ( or smth like that).

I decided to restart TB using service thingsboard stop and than service thingsboard start. Unfortunately the TB service is not able to start.

In /var/log/thingsboard/thingsboard.log I can see following message:

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userController': Unsatisfied dependency expressed through field 'mailService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultMailService': Invocation of init method failed; nested exception is java.lang.NullPointerException

I believe it says “there is no email settings” and therefore it can’t start. Well, I believe the missing UI settings shouldn’t stop whole service to start 😃

So my question is rather simple: How to fix and make TB alive again?

Thank you all

Y

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
volodymyr-babakcommented, Jul 13, 2017

hi,

please login into cassandra database using cqlsh command: voba@voba-pc:~$ cqlsh Connected to Test Cluster at 127.0.0.1:9042. [cqlsh 5.0.1 | Cassandra 3.9 | CQL spec 3.4.2 | Native protocol v4] Use HELP for help.

and then execute next query: cqlsh> SELECT * from thingsboard.admin_settings where key = ‘mail’ ALLOW FILTERING;

and paste output here

0reactions
z4nD4Rcommented, Jul 14, 2017

@volodymyr-babak

thank you. That helped indeed. Please makr the issue as resolved.

Feature request: don’t let missing config fail to start whole app. 😃

Y

Read more comments on GitHub >

github_iconTop Results From Across the Web

Questions and Answers About Tuberculosis | TB - CDC
People with TB disease need to take several medicines when they start treatment. After taking TB medicine for several weeks, a doctor will...
Read more >
It's complicated: why do tuberculosis patients not initiate or ...
Background. Individuals who test positive for active tuberculosis (TB) but do not initiate treatment present a challenge to TB programmes ...
Read more >
Directly Observed Therapy (DOT) for the Treatment of ...
DOT decreases the chances of treatment failure and relapse. ... DOT should be initiated when TB treatment starts. Do not allow the patient ......
Read more >
Frequently Asked Questions About TB | Texas DSHS
Where can I get tested for TB? In general, Texas Department of State Health Services does not recommend that low risk individuals be...
Read more >
CASE MANAGEMENT FOR PATIENTS WITH TUBERCULOSIS
Education about TB and TB services is provided to all patients with confirmed TB ... to self-administered treatment, and are unwilling or unable...
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