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.

Unexpected application shutdown

See original GitHub issue

Hi

I’m using Spring Boot 2.1.6 and Spring Cloud 2.1.2 and want to add Spring Cloud Zookeeper to my project for service discovery. However after successful start my application silently terminates (I assume it was shutdown somewhere inside the library). I don’t see any exceptions in the log or error messages.

I run Zookeeper: docker run --name zookeeper --restart always -d -p 2181:2181 zookeeper

I turned on debug mode in the logs:

2019-07-31 20:55:36.675  INFO 8900 --- [localhost:2181)] org.apache.zookeeper.ClientCnxn          : Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
2019-07-31 20:55:36.678  INFO 8900 --- [localhost:2181)] org.apache.zookeeper.ClientCnxn          : Socket connection established, initiating session, client: /127.0.0.1:58144, server: localhost/127.0.0.1:2181
2019-07-31 20:55:36.679  INFO 8900 --- [           main] o.a.c.f.imps.CuratorFrameworkImpl        : Default schema
2019-07-31 20:55:36.679 DEBUG 8900 --- [localhost:2181)] org.apache.zookeeper.ClientCnxn          : Session establishment request sent on localhost/127.0.0.1:2181
2019-07-31 20:55:36.687  INFO 8900 --- [localhost:2181)] org.apache.zookeeper.ClientCnxn          : Session establishment complete on server localhost/127.0.0.1:2181, sessionid = 0x100005726ad000b, negotiated timeout = 40000
2019-07-31 20:55:36.692  INFO 8900 --- [ain-EventThread] o.a.c.f.state.ConnectionStateManager     : State change: CONNECTED
2019-07-31 20:55:36.700 DEBUG 8900 --- [localhost:2181)] org.apache.zookeeper.ClientCnxn          : Reading reply sessionid:0x100005726ad000b, packet:: clientPath:/zookeeper/config serverPath:/zookeeper/config finished:false header:: 1,4  replyHeader:: 1,23,-101  request:: '/zookeeper/config,T  response::  
2019-07-31 20:55:36.700 DEBUG 8900 --- [localhost:2181)] org.apache.zookeeper.ClientCnxn          : Reading reply sessionid:0x100005726ad000b, packet:: clientPath:/zookeeper/config serverPath:/zookeeper/config finished:false header:: 2,4  replyHeader:: 2,23,-101  request:: '/zookeeper/config,T  response::  
2019-07-31 20:55:37.143  INFO 8900 --- [           main] i.d.zookeeper.ZookeeperApplication       : Started ZookeeperApplication in 6.509 seconds (JVM running for 6.851)
2019-07-31 20:55:37.147  INFO 8900 --- [tor-Framework-0] o.a.c.f.imps.CuratorFrameworkImpl        : backgroundOperationsLoop exiting
2019-07-31 20:55:37.148 DEBUG 8900 --- [       Thread-4] org.apache.zookeeper.ZooKeeper           : Closing session: 0x100005726ad000b
2019-07-31 20:55:37.148 DEBUG 8900 --- [       Thread-4] org.apache.zookeeper.ClientCnxn          : Closing client for session: 0x100005726ad000b
2019-07-31 20:55:37.152 DEBUG 8900 --- [localhost:2181)] org.apache.zookeeper.ClientCnxn          : Reading reply sessionid:0x100005726ad000b, packet:: clientPath:null serverPath:null finished:false header:: 3,-11  replyHeader:: 3,24,0  request:: null response:: null
2019-07-31 20:55:37.152 DEBUG 8900 --- [       Thread-4] org.apache.zookeeper.ClientCnxn          : Disconnecting client for session: 0x100005726ad000b
2019-07-31 20:55:37.152  INFO 8900 --- [       Thread-4] org.apache.zookeeper.ZooKeeper           : Session: 0x100005726ad000b closed
2019-07-31 20:55:37.152  INFO 8900 --- [ain-EventThread] org.apache.zookeeper.ClientCnxn          : EventThread shut down for session: 0x100005726ad000b

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
spencergibbcommented, Jul 31, 2019

You don’t have the web or webflux starter, so there’s nothing to keep boot running

0reactions
sergey-morenetscommented, Jul 31, 2019

@spencergibb Thank you, I will close the ticket.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unexpected ASP.Net application shutdown after many ...
In this scenario, you experience an unexpected ASP.NET application shutdown because of high disk I/O and configuration changes. Resolution. Method 1: Windows ...
Read more >
If an app freezes or quits unexpectedly on Mac - Apple Support
If an app doesn't quit as expected, or it's unresponsive, you can force quit the app (you may lose unsaved changes). Choose Apple...
Read more >
Error “Windows has Recovered from an Unexpected Shutdown”
Read the blog to fix error Windows has recovered from an unexpected shutdown. Explore all feasible solutions like repairing corrupt drive, ...
Read more >
Why Do My Apps Keep Closing? How to Troubleshoot
Make sure the app is up to date · Clear the app data for the problematic app · Restart your mobile device ·...
Read more >
Windows Has Recovered From An Unexpected Shutdown (9 ...
Well, this can happen due to faulty applications or hardware components. Moreover, system problems, malfunctioning device drivers, or even ...
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