Hi Amit- Also maybe you could clarify a bit by what you mean by "Cache Server"?
Outside of *Gfsh*, which has and uses "special logic <https://github.com/apache/geode/blob/rel/v1.1.1/geode-core/src/main/java/org/apache/geode/distributed/ServerLauncher.java#L904-L928>" [1] *to prevent* a "forked" GemFire Server (JVM) process from actually shutting down (I know; I wrote it) as there is literally *nothing* (e.g. no *non-daemon* Threads) that would prevent a normal "GemFire Server" from passing through completely and the JVM just exiting. When you start a "CacheServer <http://geode.apache.org/releases/latest/javadoc/org/apache/geode/cache/server/CacheServer.html>" [2], which *should not* be confused with a "GemFire Server", does there exist any such Thread; a *non-daemon* Thread that is listening on the configured CacheServer TCP ServerSocket for ClientCache (i.e. GemFire cache client) connections. To make this a little more apparent (in XML), if your SDG XML configuration consisted of only... <?xml version="1.0" encoding="utf-8"?> <beans xmlns="http://www.springframework.org/schema/beans"..."> <util:properties id="gemfireProperties"> <prop key="name">SpringDataGemFireServer</prop> <prop key="log-level">${gemfire.log.level:config}</prop> <prop key="start-locator">${gemfire.locator.host-port:localhost[10334]} </prop> </util:properties> <gfe:cache properties-ref="gemfireProperties"/> </beans> Then what you have here is *not* a "CacheServer"; it is a plain "GemFire Server", aka Data Node, aka Peer Member Cluster this configuration, lauched outside of *Gfsh* is going to fall straight through! However, the moment you add... <gfe:cache-server id="gemfireCacheServer" auto-startup="true" bind-address="${gemfire.cache.server.bind-address:localhost}" host-name-for-clients= "${gemfire.cache.server.hostname-for-clients:localhost}" port="${gemfire.cache.server.port:40404}"/> [1] https://github.com/apache/geode/blob/rel/v1.1.1/geode-core/src/main/java/org/apache/geode/distributed/ServerLauncher.java#L904-L928 [2] http://geode.apache.org/releases/latest/javadoc/org/apache/geode/cache/server/CacheServer.html On Tue, Jun 13, 2017 at 1:59 PM, Jens Deppe <[email protected]> wrote: > Hi Amit, > > Exactly what commands are you executing to launch your server? Using > 'nohup' with gfsh works but I'm guessing that's not what you're doing. > > --Jens > > On Tue, Jun 13, 2017 at 1:47 PM, Amit Pandey <[email protected]> > wrote: > >> Hi Guys, >> >> When ever I am starting Spring-Data Gemfire server with nohup , I get >> this error in Ubuntu (AWS) >> >> Cache Server started Successfully ... >> Failed to readjava.io.IOException: Bad file descriptor >> [info 2017/06/13 20:46:36.608 UTC <Distributed system shutdown hook> >> tid=0x10] VM is exiting - shutting down distributed system >> Can anyone please help with this >> >> > -- -John john.blum10101 (skype)
