Giter VIP home page Giter VIP logo

Comments (4)

mdelapenya avatar mdelapenya commented on September 17, 2024

hey @SaurabhVatsa that's the expected behaviour, as Liferay Portal GA4 does not have a retry strategy for the datasource.

This feature has been added to the next release here: https://issues.liferay.com/browse/LPS-73667

In future releases, you'll be able to configure a retry strategy adding two properties:

##
## Retry JDBC connection on portal startup.
##

    #
    # Set the number of seconds to retry getting a JDBC connection on portal
    # startup.
    #
    retry.jdbc.on.startup.delay=0

    #
    # Set the max number of times to retry getting a JDBC connection on portal
    # startup.
    #
    retry.jdbc.on.startup.max.retries=0

On the other hand, as we added support for configuring Liferay Portal with environment variables, you'll be able to add env_vars representing any portal prop. Please read this JIRA ticket carefully: https://issues.liferay.com/browse/LPS-72541

from docker-liferay-portal.

SaurabhVatsa avatar SaurabhVatsa commented on September 17, 2024

Hey @mdelapenya , thanks for the response.
Docker documentation mentions that it is possible to delay the startup of one service until another service that it depends on, fires up. I was wondering if we can use/create something on that line and delay the startup of Liferay untill MySQL starts.

For ex.
version: "2"
services:
web:
build: .
ports:
- "80:8000"
depends_on:
- "db"
command: ["./wait-for-it.sh", "db:5432", "--", "python", "app.py"]
db:
image: postgres
Documentation for wait-for-it
Though it is good to have this feature in the next release, is there a way to manually configure this in the current Version ?

from docker-liferay-portal.

mdelapenya avatar mdelapenya commented on September 17, 2024

Yes, Docker documentation says that, but it waits for the main process, not for the custom logic expected by portal: so whenever the mysql container is up, portal will start, but it does not mean that the mysql database is already created.

from docker-liferay-portal.

mdelapenya avatar mdelapenya commented on September 17, 2024

Hey @SaurabhVatsa, is this issue solved? If so, could you please close it. Thanks!

from docker-liferay-portal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.