Code Monkey home page Code Monkey logo

Comments (26)

Magicalex avatar Magicalex commented on May 23, 2024 2

Indeed, mysql host is the name of your container mysql/mariadb

@webeindustry @renyuneyun @Jvlythical everything is ok for you?

from docker-flarum.

Magicalex avatar Magicalex commented on May 23, 2024 1

I reused password in your docker-compose.
So see this https://github.com/mondediefr/docker-flarum#screenshot
You need to click on "install flarum" at the end

edit:

Yes, the error is because of the user password, need have more than 8 characters

ahh ok ;)

from docker-flarum.

hardware avatar hardware commented on May 23, 2024

Nginx / php-fpm errors logs :

docker exec -ti flarum tail -f /tmp/ngx_error.log

from docker-flarum.

renyuneyun avatar renyuneyun commented on May 23, 2024

Hi, I'm having perhaps the same issue, although a different docker-compose.yml file is used (slightly modified according to the example).

The docker-compose.yml file I use is:

flarum:
  image: mondedie/docker-flarum
  container_name: flarum
  links:
    - mariadb:mariadb
  ports:
    - "80:8888"
  environment:
    - FORUM_URL=http://127.0.0.1
    - DB_PASS='dbflarum'
  volumes:
    - /mnt/docker/flarum/assets:/flarum/app/assets
    - /mnt/docker/flarum/extensions:/flarum/app/extensions

mariadb:
  image: mariadb:10.1
  container_name: mariadb
  volumes:
    - /mnt/docker/mysql/db:/var/lib/mysql
  environment:
    - MYSQL_ROOT_PASSWORD='rootdbpwd'
    - MYSQL_DATABASE=flarum
    - MYSQL_USER=flarum
    - MYSQL_PASSWORD='dbflarum'

The logs in /tmp/ngx_error.log are just repeating:
2016/12/18 21:50:37 [error] 14#14: *5 FastCGI sent in stderr: "PHP message: PHP Deprecated: The third argument to Zend\Stratigility\MiddlewarePipe() ($out) will be required starting with Stratigility version 2; please see https://docs.zendframework.com/zend-stratigility/migration/to-v2/ for more details on how to update your application to remove this message. in /flarum/app/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php on line 101" while reading response header from upstream, client: 172.17.0.1, server: , request: "POST / HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-fpm.sock:", host: "127.0.0.1", referrer: "http://127.0.0.1/"

from docker-flarum.

Jvlythical avatar Jvlythical commented on May 23, 2024

I got that same error as well and after some searching I think the image might have to be re-built? According to this discussion, https://discuss.flarum.org/d/4218-zend-stratigility-debug-message-after-composer-update" there is a potential fix, not sure if the latest version hotfixed the problem though.

from docker-flarum.

hardware avatar hardware commented on May 23, 2024

I have rebuild this image yesterday, but flarum version is freeze, so fix and updates will come in the next release. Zend deprecated message is already fixed but not available in beta 6 : flarum/framework#1065

Can you try with a real domain in FORUM_URL ? EDIT : I tested, it works with an IP address.

And check flarum logs in /flarum/app/storage/logs

Deprecated message fixed in d37bf95.

from docker-flarum.

hardware avatar hardware commented on May 23, 2024

I can reproduce your problem in 2 cases :

  • Wrong value in install form input (database params, e-mail address, admin password too simple)
  • If flarum database already exist

Try to correct your settings and verify your database.

from docker-flarum.

renyuneyun avatar renyuneyun commented on May 23, 2024

I can confirm my problem is due to wrong database settings:
The creation step of the database used null password (for root), but I stopped it and re-run everything using the config above. Then I tried to fill in the installation page of flarum, the error appears.
(I can confirm this because I executed mysql -u root in the mariadb container, successfully logged in and looked at the mysql.user table.)

After removeing everything from /mnt/docker/mysql and re-run the container, everything is fine.

p.s. There is nothing in /flarum/app/storage/logs, which is a bit surprising.

from docker-flarum.

 avatar commented on May 23, 2024

I can't get this to install. I've tried on different os, & by manually compiling image. The furthest I can get is to the web installer page, but it always says a 500 error, yet logs show nothing.

z2qcufd

Success! I tried localhost, docker IP & host IP, but not: mariadb. This installed correctly afterwards.

from docker-flarum.

renyuneyun avatar renyuneyun commented on May 23, 2024

Yes, everything is ok for me now.

from docker-flarum.

 avatar commented on May 23, 2024

Image works well. Trying to tweak it for webless installs.

from docker-flarum.

 avatar commented on May 23, 2024

I got the web-free installs working ๐Ÿ˜ธ

from docker-flarum.

jadsonlourenco avatar jadsonlourenco commented on May 23, 2024

I'm getting this error, I've put all info correctly, but not install:
Something went wrong: <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> </head> <body> <h1>500 Internal Server Error</h1> <p>Something went wrong on our server.</p> </body> </html>

from docker-flarum.

Magicalex avatar Magicalex commented on May 23, 2024

Can you show me your docker-compose.yml file?

from docker-flarum.

jadsonlourenco avatar jadsonlourenco commented on May 23, 2024

ok:

version: '3'
services:
  flarum:
    image: mondedie/docker-flarum
    container_name: flarum
    ports:
      - "8888:8888"
    environment:
      - FORUM_URL=http://127.0.0.1      
      - DB_PASS=test
      - DEBUG=true    
    links:
      - mariadb:mariadb

  mariadb:
    image: mariadb
    container_name: mariadb
    ports:
      - "3306:3306"    
    environment:
      - MYSQL_ROOT_PASSWORD=test
      - MYSQL_DATABASE=flarum
      - MYSQL_USER=flarum
      - MYSQL_PASSWORD=test

from docker-flarum.

jadsonlourenco avatar jadsonlourenco commented on May 23, 2024

The database and mysql user is working fine, I can connect using other client, but I can't install.
The installation page don't have validation on the form?

Thank you

from docker-flarum.

Magicalex avatar Magicalex commented on May 23, 2024

All is ok for me with your docker-compose file.
Config:

from docker-flarum.

jadsonlourenco avatar jadsonlourenco commented on May 23, 2024

Can be the Docker version? I'm using Docker on Mac, I will try on Linux now, moment

from docker-flarum.

Magicalex avatar Magicalex commented on May 23, 2024
$ docker -v
Docker version 1.13.0, build 49bf474

On mac os v10.12.2

from docker-flarum.

jadsonlourenco avatar jadsonlourenco commented on May 23, 2024

Docker version 1.13.1-rc1, build 2527cfc - MacOS 10.12.3

from docker-flarum.

jadsonlourenco avatar jadsonlourenco commented on May 23, 2024

Ops, works, did you test and make it work? Now are installed, can be because of the site url param?

from docker-flarum.

Magicalex avatar Magicalex commented on May 23, 2024

It works. I completed your form. You need to valide form

from docker-flarum.

jadsonlourenco avatar jadsonlourenco commented on May 23, 2024

How? What is wrong, the admin password is so easy?

from docker-flarum.

jadsonlourenco avatar jadsonlourenco commented on May 23, 2024

Yes, the error is because of the user password, need have more than 8 characters, but don't show any error about... But thank you so much for the help. โค๏ธ

from docker-flarum.

mpgn avatar mpgn commented on May 23, 2024

Move to issues #9

from docker-flarum.

WebNawi avatar WebNawi commented on May 23, 2024

Yes, the error is because of the user password, need have more than 8 characters

Yes, password need 8 chars more, to get Free error during installation. Thank You for the hint :)

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.