Comments (7)
Wow, I didn't even see it, I must have changed it later, thanks!
from docker-flarum.
No need to rename the issue I will just close it :)
from docker-flarum.
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.
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.
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.
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.
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)
- Cloudflare Configuration? HOT 1
- where and how can I edit the "config.php"? thanks HOT 2
- SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name does not resolve [SOLVED] HOT 4
- Can't use HOT 1
- Notifications/Emails when subscribing does not work in flarum 1.3.0 but works in 1.3.1 - please upgrade
- Flarum is not Accessible HOT 8
- Problem with container App. HOT 1
- Some issues with flarum and docker
- Database SSL Cert Option?
- Correct permissions and broken Admin panel
- I hope to update to the latest version,
- How change FLARUM_ADMIN_PASS?
- any plan to upgrade docker-flarum to flarum 1.8.x engine?
- Not an issue but if needed you may utilize the image i have made that works on CasaOS.io
- Option to set cookie domain during install or from flarum.env HOT 1
- Mailgun support
- ๅๅไปฃ็ HOT 5
- Upgrade framework from 1.3.0 to 1.8 ? HOT 1
- Flarum Can`t Connect to the Database
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-flarum.