Erudika / para

Multitenant backend server for building web and mobile apps rapidly. The backend for busy developers. (self-hosted or hosted)
https://paraio.org
Apache License 2.0
531 stars 146 forks source link

RuntimeException from Elastic Search DB #280

Closed purushottam34 closed 5 months ago

purushottam34 commented 5 months ago

Getting below error :

Failed to initialize Para. java.lang.RuntimeException: null at com.erudika.para.server.utils.HealthUtils$1.isHealthy(HealthUtils.java:49) at com.erudika.para.server.utils.HealthUtils$1.onInitialize(HealthUtils.java:112) at com.erudika.para.core.utils.Para.initialize(Para.java:113) at com.erudika.para.server.ParaServer.initialize(ParaServer.java:153) at com.erudika.para.server.ParaServer.builder(ParaServer.java:399) at com.erudika.para.server.ParaServer.main(ParaServer.java:421) at com.erudika.para.jar.Run.main(Run.java:28)

It's working fine if we disable the search_enabled option.

how can we make it work without disabling it? Please suggest

albogdano commented 5 months ago

There seems to be a bug in the HealthUtils class which caused the NPE. I fixed it now. Please wait for the new version of Para and update, or rebuild Para from the main branch and restart.