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

Unable to be initiated the database #92

Closed mzch closed 2 years ago

mzch commented 2 years ago

I've repeated curl http://localhost:8080/v1/_setup 2 or more times to get root app key, but the database hasn't been initiated. How can I fix this issue?

Version: 1.43.1 DAO: para-dao-mongodb-1.36.0-shaded.jar DB: MongoDB 5.1.0

2021-12-20 11:08:33,018 [INFO ] com.erudika.para.core.utils.Para - --- Para.initialize() [production] ---
2021-12-20 11:08:33,031 [INFO ] c.erudika.para.core.utils.CoreUtils - Loaded new DAO, Search and Cache implementations - MockDAO, LuceneSearch and CaffeineCache.
2021-12-20 11:08:33,183 [WARN ] c.e.para.server.utils.HealthUtils - Server is unhealthy - root app not found. Open http://localhost:8080/v1/_setup in the browser to initialize Para.
2021-12-20 11:08:35,678 [INFO ] com.erudika.para.server.ParaServer - Starting ParaServer using Java 11.0.13 on n16 with PID 12113 (/srv/para/para-jar-1.43.1.jar started by para in /srv/para)
2021-12-20 11:08:35,682 [INFO ] com.erudika.para.server.ParaServer - The following profiles are active: production
2021-12-20 11:08:40,876 [INFO ] com.erudika.para.server.ParaServer - Instance #1 initialized and listening on http://localhost:8080
2021-12-20 11:08:47,154 [INFO ] com.erudika.para.server.ParaServer - Started ParaServer in 13.852 seconds (JVM running for 20.099)
2021-12-20 11:09:31,762 [INFO ] com.erudika.para.core.utils.Para - --- Para.destroy() ---
2021-12-20 11:09:34,754 [INFO ] com.erudika.para.core.utils.Para - --- Para.initialize() [production] ---
2021-12-20 11:09:34,765 [INFO ] c.erudika.para.core.utils.CoreUtils - Loaded new DAO, Search and Cache implementations - MockDAO, LuceneSearch and CaffeineCache.
2021-12-20 11:09:34,822 [WARN ] c.e.para.server.utils.HealthUtils - Server is unhealthy - root app not found. Open http://localhost:8080/v1/_setup in the browser to initialize Para.
2021-12-20 11:09:35,767 [INFO ] com.erudika.para.server.ParaServer - Starting ParaServer using Java 11.0.13 on n16 with PID 12252 (/srv/para/para-jar-1.43.1.jar started by para in /srv/para)
2021-12-20 11:09:35,769 [INFO ] com.erudika.para.server.ParaServer - The following profiles are active: production
2021-12-20 11:09:38,650 [INFO ] com.erudika.para.server.ParaServer - Instance #1 initialized and listening on http://localhost:8080
2021-12-20 11:09:42,398 [INFO ] com.erudika.para.server.ParaServer - Started ParaServer in 7.545 seconds (JVM running for 10.585)
2021-12-20 11:10:21,739 [INFO ] com.erudika.para.core.utils.Para - Created root app 'para', sharingTable = false, sharingIndex = false.
2021-12-20 11:10:49,245 [INFO ] com.erudika.para.core.utils.Para - --- Para.destroy() ---
2021-12-20 11:10:52,492 [INFO ] com.erudika.para.core.utils.Para - --- Para.initialize() [production] ---
2021-12-20 11:10:52,503 [INFO ] c.erudika.para.core.utils.CoreUtils - Loaded new DAO, Search and Cache implementations - MockDAO, LuceneSearch and CaffeineCache.
2021-12-20 11:10:52,557 [WARN ] c.e.para.server.utils.HealthUtils - Server is unhealthy - root app not found. Open http://localhost:8080/v1/_setup in the browser to initialize Para.
2021-12-20 11:10:53,498 [INFO ] com.erudika.para.server.ParaServer - Starting ParaServer using Java 11.0.13 on n16 with PID 12347 (/srv/para/para-jar-1.43.1.jar started by para in /srv/para)
2021-12-20 11:10:53,505 [INFO ] com.erudika.para.server.ParaServer - The following profiles are active: production
2021-12-20 11:10:56,148 [INFO ] com.erudika.para.server.ParaServer - Instance #1 initialized and listening on http://localhost:8080
2021-12-20 11:10:59,882 [INFO ] com.erudika.para.server.ParaServer - Started ParaServer in 7.298 seconds (JVM running for 10.569)
albogdano commented 2 years ago

Apparently the ServiceLoader functionality works differently in Java 11 and I have to do some more work to modularize the Para plugins.

mzch commented 2 years ago

Coud you tell me whether I should update java 11 to 17?

albogdano commented 2 years ago

Try with para-dao-mongodb-1.36.1-shaded.jar - it has been released today.

albogdano commented 2 years ago

Java 11 is fine, no need to update to 17 just yet. Para and Scoold require Java 11 as a minimum now, instead of Java 8.

mzch commented 2 years ago

I signed up a new user, got verification mail and click Verify your emai here! link, but my account still is locked - active is false.

albogdano commented 2 years ago

Please update Para to 1.43.2 as well and try again. I made some errors while trying to modularize the projects.

mzch commented 2 years ago

Updated but user profile isn't created. Only type:sysprop document is created.

albogdano commented 2 years ago

Did you migrate the DB before upgrading and rebuild the search index after upgrading to 1.43.2?

On Tue, 21 Dec 2021, 22:02 Koichi MATSUMOTO, @.***> wrote:

Updated but user profile isn't created. Only type:sysprop document is created.

— Reply to this email directly, view it on GitHub https://github.com/Erudika/para/issues/92#issuecomment-999058383, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACUV6P5HY53PSHOYE2Z36DUSDMOHANCNFSM5KON4WTQ . You are receiving this because you commented.Message ID: @.***>

albogdano commented 2 years ago

Ignore my comment about DB migration - it doesn't concern MongoDB. Anything in the Para and Mongo logs?

mzch commented 2 years ago

I try this in a new blank database. I don't think rebuilding index concerned about this...

albogdano commented 2 years ago

Does it work normally with Para 1.42.0? I haven't tested the Mongo lugin with MongoDB 5.x yet. There may be breaking changes in that version of Mongo.

On Wed, 22 Dec 2021, 03:39 Koichi MATSUMOTO, @.***> wrote:

I try this in a new blank database. I don't think rebuilding index concerned about this...

— Reply to this email directly, view it on GitHub https://github.com/Erudika/para/issues/92#issuecomment-999216033, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACUV6NIS7IWXNV7WVYYTU3USET6ZANCNFSM5KON4WTQ . You are receiving this because you commented.Message ID: @.***>

mzch commented 2 years ago

Hi, The latest scoold, 1.47.1 with para 1.43.2 seems to make the database scheme successfully. But I can't login with sign up password. I will create a new issue on Scoold. Thanks