Coder Social home page Coder Social logo

Comments (21)

hardware avatar hardware commented on June 5, 2024 1

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.

Id2ndR avatar Id2ndR commented on June 5, 2024 1

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.

Magicalex avatar Magicalex commented on June 5, 2024

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.

Magicalex avatar Magicalex commented on June 5, 2024

@mpgn any news?

from docker-flarum.

hardware avatar hardware commented on June 5, 2024

same as #4

from docker-flarum.

Wonderfall avatar Wonderfall commented on June 5, 2024

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

screen shot 2017-07-26 at 04 47 38

from docker-flarum.

Wonderfall avatar Wonderfall commented on June 5, 2024

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.

Wonderfall avatar Wonderfall commented on June 5, 2024

Effectivement ça fonctionne. Désolé pour le dérangement, les instructions n'étaient pas en faute mais ma modification.

from docker-flarum.

TimonPeng avatar TimonPeng commented on June 5, 2024

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.

hardware avatar hardware commented on June 5, 2024

@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.

TimonPeng avatar TimonPeng commented on June 5, 2024

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.

hardware avatar hardware commented on June 5, 2024

And after "Something went wrong" do you have any error message ?

from docker-flarum.

TimonPeng avatar TimonPeng commented on June 5, 2024

@hardware Cool, i saw something on browser, Something went wrong: SQLSTATE[HY000] [2002] Connection refused.

from docker-flarum.

hardware avatar hardware commented on June 5, 2024

Create a new volume for MariaDB :

./mariadb-flarum:/var/lib/mysql

And retry. Check the mariadb logs too.

from docker-flarum.

TimonPeng avatar TimonPeng commented on June 5, 2024

@hardware Whether this is unable to connect to the mariadb port?

from docker-flarum.

hardware avatar hardware commented on June 5, 2024

MariaDB is running on port 3306 ?

from docker-flarum.

TimonPeng avatar TimonPeng commented on June 5, 2024

@hardware Yes, telnet works well. Should I config mysql auth ip? or something else?

from docker-flarum.

hardware avatar hardware commented on June 5, 2024

No, mariadb container works out of box.

from docker-flarum.

TimonPeng avatar TimonPeng commented on June 5, 2024

@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.

TimonPeng avatar TimonPeng commented on June 5, 2024

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.

hardware avatar hardware commented on June 5, 2024
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)

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.