Code Monkey home page Code Monkey logo

Comments (7)

talesam avatar talesam commented on June 20, 2024 1

Wow, I didn't even see it, I must have changed it later, thanks!

from docker-flarum.

Hydrog3n avatar Hydrog3n commented on June 20, 2024 1

No need to rename the issue I will just close it :)

from docker-flarum.

Hydrog3n avatar Hydrog3n commented on June 20, 2024

Hello @talesam
The first line is quite relevant :

PHP Fatal error:  Uncaught PDOException: PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Name does not resolve in /flarum/app/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:40

The container can't resolve the host you set for the DB.

from docker-flarum.

talesam avatar talesam commented on June 20, 2024

Hello @talesam The first line is quite relevant :

PHP Fatal error:  Uncaught PDOException: PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Name does not resolve in /flarum/app/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:40

The container can't resolve the host you set for the DB.

I didn't understand why, I didn't arrive and change anything after I climbed the container.

version: "3.9"

services:
  forumbig_db:
    image: mariadb:10.5
    container_name: forumbig_db
    environment:
      - MYSQL_ROOT_PASSWORD=xxxxxxxxxxxxxxxxx
      - MYSQL_DATABASE=flarum
      - MYSQL_USER=flarum
      - MYSQL_PASSWORD=yyyyyyyyyyyyyyyyyy
    volumes:
      - /home/tales/Docker/Bigforum/mysql/db:/var/lib/mysql
    networks:
      t4l35-net:

  flarum_big:
    image: mondedie/flarum:stable
    container_name: flarum_big
    env_file:
      - .env
    volumes:
      - /home/tales/Docker/Bigforum/assets:/flarum/app/public/assets
      - /home/tales/Docker/Bigforum/extensions:/flarum/app/extensions
      - /home/tales/Docker/Bigforum/storage/logs:/flarum/app/storage/logs
      - /home/tales/Docker/Bigforum/nginx:/etc/nginx/flarum
    expose:
      - "8888"
    depends_on:
      - forumbig_db
    networks:
      t4l35-net:

networks:
  t4l35-net:
      name: t4l35-net

from docker-flarum.

Hydrog3n avatar Hydrog3n commented on June 20, 2024

Ah it's after climbed the container ? Are you sure the two container are well in the same network ?
Also check the DB name you use is flarumbig_db

from docker-flarum.

talesam avatar talesam commented on June 20, 2024

I recreated the container and gave the same error.

DEBUG=false
FORUM_URL=https://forumdev.biglinux.com.br

# Database configuration
DB_HOST=mariadb
DB_NAME=flarum
DB_USER=flarum
DB_PASS=xxxxxxxxxxxxxxxxxxxxxxx
DB_PREF=flarum_
DB_PORT=3306

# User admin flarum (environment variable for first installation)
# /!\ admin password must contain at least 8 characters /!\
FLARUM_ADMIN_USER=admin
FLARUM_ADMIN_PASS=xxxxxxxxxxxxxxxxxxx
[email protected]
FLARUM_TITLE=Forum Biglinux

I had the forum up before and it was working, now it's not.

from docker-flarum.

Hydrog3n avatar Hydrog3n commented on June 20, 2024

Ok you have mariadb has host it should be the same than the service in you compose file on the example should be forumbig_db

from docker-flarum.

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.