•  
      request #16143 Database configuration file cannot be read
    Infos
    #16143
    alvin zeng (zenghp97)
    2020-08-10 16:55
    2020-07-23 07:43
    17413
    Details
    Database configuration file cannot be read
    get below error mesage after exec make post-checkout.

    lerna success - @tuleap/core
    PHP Fatal error: Uncaught RuntimeException: Database configuration file cannot be read, did you loadLocalInc first ? in /usr/share/tuleap/src/common/Config/ForgeConfig.php:60
    Stack trace:
    #0 /usr/share/tuleap/src/www/include/pre.php(41): ForgeConfig::loadDatabaseInc()
    #1 /usr/share/tuleap/src/utils/tuleap.php(71): require_once('/usr/share/tule...')
    #2 {main}
    thrown in /usr/share/tuleap/src/common/Config/ForgeConfig.php on line 60
    make: *** [dev-clear-cache] Error 255
    Dev tools
    Empty
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Closed
    2020-08-10
    Attachments
    Empty
    References
    Referenced by request #16143

    Artifact Tracker v5

    rel #14818 11.18

    Follow-ups

    User avatar
    Thomas Gerbet (tgerbet)2020-08-10 16:55
    Perfect!

    I'm guessing OP issue was similar, I'm closing then.

    • Category set to Dev tools
    • Status changed from Waiting for information to Closed
    • Connected artifacts
    • Close date set to 2020-08-10
    User avatar
    Thomas Gerbet (tgerbet)2020-08-10 09:55
    Hello,

    We have spotted and fixed issues in the image these last days that are likely to be the source of your issues.
    I would advise to pull the latest image (docker pull enalean/tuleap-aio-dev:c7-php73-nginx), drop all the Docker volumes and try again.


    https://github.com/Enalean/docker-tuleap-aio-dev/commit/597a80c6a393f4973092d7d6bb30672d5b50fbcc
    https://github.com/Enalean/docker-tuleap-aio-dev/commit/e60efdb831804457b21131628dce238ba0b371d8
    https://github.com/Enalean/docker-tuleap-aio-dev/commit/7ef63e2e325784ddbbfe957ecaf5811fe5bb39a9
    User avatar
    I am also facing same issue. I am trying to start developer stack by following steps as mentioned in First Start of Tuleap documentation:

    $ cd /path/to/tuleap
    $ make composer
    $ npm install
    $ npm run build
    $ make dev-setup
    $ make start
    $ make post-checkout

    Tried multiple times from scratch but always getting stuck on this error. Please help.
    User avatar
    Thomas Gerbet (tgerbet)2020-08-03 09:24
    I'm not sure there is anything to fix here. Starting the dev stack without having build the code first leads to incoherent behaviors.

    I would advise to trash everything including the Docker volumes and start again cleanly.

    https://docs.tuleap.org/developer-guide/quick-start/run-tuleap.html#first-start-of-tuleap


    Note that all those steps are only needed if want to start a development stack, for any deployment you should use the RPM packages: https://docs.tuleap.org/installation-guide/full-installation.html
    User avatar
    alvin zeng (zenghp97)2020-07-30 12:39
    last edited by: alvin zeng (zenghp97) 2020-07-30 12:41
    it good by this command of make post-checkout-build to fix this bug, so thus, I don't get password by make show-passwords command. error info as follow:
    [root@localhost tuleap]# make show-passwords
    cat: /data/root/.tuleap_passwd: No such file or directory
    make: *** [show-passwords] Error 1
    User avatar

    You get this message if you build the without having started the stack.

    Alternative: make post-checkout-build


    • Status changed from New to Waiting for information