Comments (21)
La version de MariaDB est la 10.1, il faut bien préciser le .1. Flarum doit avoir une incompatibilité avec la nouvelle 10.3, qui est en Alpha attention. Pareil pour la 10.2, ça ne marche pas non plus. C'est un truc qui va falloir que je remonte aux développeurs de Flarum.
from docker-flarum.
Le problème de la version de MariaDB est connu flarum/framework#1211
Par contre pour pouvoir débugger il faut pouvoir afficher le contenu du message en rouge sur le site. Celà est possible en commantant error_page 500 /500.html;
dans la conf nginx. En effet nginx ne renvoie rien dans les logs de docker, car il est censé l'envoyer directement sur la page web, en l'occurence dans le cadre rouge Something went wrong.
from docker-flarum.
Salut ^^
Do you have still your issue? Your password must contain minimum 8 characters (for user admin), otherwise it produces a 500 error.
In local everything works
flarum:
image: mondedie/docker-flarum:0.1.0-beta.6-stable
container_name: flarum
links:
- mariadb:mariadb
ports:
- 80:8888
environment:
- FORUM_URL=http://flarum.local
- DB_PASS=AtEQ8832q7xWmyM
volumes:
- ./flarum/assets:/flarum/app/assets
- ./flarum/extensions:/flarum/app/extensions
mariadb:
image: mariadb:10.1
container_name: mariadb
volumes:
- ./mariadb:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=AtEQ8832q7xWmyM
- MYSQL_DATABASE=flarum
- MYSQL_USER=flarum
- MYSQL_PASSWORD=AtEQ8832q7xWmyM
from docker-flarum.
@mpgn any news?
from docker-flarum.
same as #4
from docker-flarum.
Même problème... J'ai tout rempli correctement et le mot de passe utilisateur fait plus de 8 caractères. Et rien dans les logs. :/
C'est rare que ça arrive mais je suis réellement à court d'idées. :(
Cette issue et #4 ne m'ont pas aidé.
J'ai testé plein de variantes en repartant au propre à chaque fois, rien ne change.
Je suis certain de remplir le formulaire correctement…
noozone-flarum:
image: mondedie/docker-flarum:0.1.0-beta.7-stable
container_name: noozone-flarum
links:
- noozone-db:noozone-db
environment:
- UID=1666
- GID=1666
- FORUM_URL=https://domain.tld
- DB_HOST=noozone-db
- DB_PASS=xxxxxxxxxxx
- MEMORY_LIMIT=512M
- UPLOAD_MAX_SIZE=20M
volumes:
- /home/docker/noozone/assets:/flarum/app/assets
- /home/docker/noozone/extensions:/flarum/app/extensions
noozone-db:
image: mariadb:10
container_name: noozone-db
volumes:
- /home/docker/noozone/db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=xxxxxxxxxxx
- MYSQL_DATABASE=flarum
- MYSQL_USER=flarum
- MYSQL_PASSWORD=xxxxxxxxxxx
from docker-flarum.
Je teste ça et je te dis ! Je trouve ça dangereux que le tag 10
de mariadb
renvoie vers des versions alpha... Je pensais innocemment que c'était toujours la dernière 10.x stable.
from docker-flarum.
Effectivement ça fonctionne. Désolé pour le dérangement, les instructions n'étaient pas en faute mais ma modification.
from docker-flarum.
I used @Magicalex config file, but not work for me. 500 code here.
docker -v
Docker version 17.03.1-ce, build c6d412e
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2165ad6850a7 mondedie/docker-flarum:0.1.0-beta.7-stable "run.sh" 14 minutes ago Up 14 minutes 0.0.0.0:80->8888/tcp flarum
a94e633ec6c5 mariadb:10.1 "docker-entrypoint..." 21 minutes ago Up 14 minutes 3306/tcp mariadb
And my password is very strong too, same as mysql's password.
from docker-flarum.
@TimonPeng Switch DEBUG
environment variable to true to see the error message. And please, use the 0.1.0-beta.7.1-stable
tag .
https://github.com/mondediefr/docker-flarum/releases/tag/0.1.0-beta.7.1
from docker-flarum.
Hello, @Magicalex @hardware , I updated config file like this.
flarum:
image: mondedie/docker-flarum:0.1.0-beta.7.1-stable
container_name: flarum
links:
- mariadb:mariadb
ports:
- 80:8888
environment:
- DEBUG=true
- FORUM_URL=http://demoflarum.com
- DB_PASS=AtEQ8832q7xWmyM
volumes:
- ./flarum/assets:/flarum/app/assets
- ./flarum/extensions:/flarum/app/extensions
mariadb:
image: mariadb:10.1
container_name: mariadb
volumes:
- ./mariadb:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=AtEQ8832q7xWmyM
- MYSQL_DATABASE=flarum
- MYSQL_USER=flarum
- MYSQL_PASSWORD=AtEQ8832q7xWmyM
But no any log information here:
docker logs flarum
,
docker exec -ti flarum tail -f /tmp/ngx_error.log
,
docker exec -ti flarum tail -f /tmp/php_error.log
.
Thank you very much.
from docker-flarum.
And after "Something went wrong" do you have any error message ?
from docker-flarum.
@hardware Cool, i saw something on browser, Something went wrong: SQLSTATE[HY000] [2002] Connection refused
.
from docker-flarum.
Create a new volume for MariaDB :
./mariadb-flarum:/var/lib/mysql
And retry. Check the mariadb logs too.
from docker-flarum.
@hardware Whether this is unable to connect to the mariadb port?
from docker-flarum.
MariaDB is running on port 3306 ?
from docker-flarum.
@hardware Yes, telnet works well. Should I config mysql auth ip? or something else?
from docker-flarum.
No, mariadb container works out of box.
from docker-flarum.
@hardware But I found a problem, I cann't use mariadb on host, docker container only.
$ mysql -u flarum -p
Enter password:
ERROR 1045 (28000): Access denied for user 'flarum'@'localhost' (using password: YES)
$ docker exec -ti mariadb mysql -u flarum -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 5
Server version: 10.1.30-MariaDB-1~jessie mariadb.org binary distribution
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
from docker-flarum.
But host config is %
.
$ docker exec -ti mariadb mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 6
Server version: 10.1.30-MariaDB-1~jessie mariadb.org binary distribution
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> use mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
MariaDB [mysql]> select host, user from user;
+-----------+--------+
| host | user |
+-----------+--------+
| % | flarum |
| % | root |
| localhost | root |
+-----------+--------+
3 rows in set (0.00 sec)
MariaDB [mysql]>
from docker-flarum.
mysql -u flarum -p
docker exec -ti mariadb mysql -u root -p
Both commands do not query the same database, the first command query your host database, i think you do not have a flarum user in this database. The second command query the mariadb database (with docker) who contains the flarum user.
You're confusing this with the remote access host setting in user database.
Mariadb container works out of box. Use docker-compose to setup this database and link to flarum container. I do not see where you have a problem..
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
- Flarum encountered a boot error. Details have been logged to the Flarum log file. HOT 7
- 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.