Comments (26)
Indeed, mysql host is the name of your container mysql/mariadb
@webeindustry @renyuneyun @Jvlythical everything is ok for you?
from docker-flarum.
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.
Nginx / php-fpm errors logs :
docker exec -ti flarum tail -f /tmp/ngx_error.log
from docker-flarum.
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.
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.
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 EDIT : I tested, it works with an IP address.FORUM_URL
?
And check flarum logs in /flarum/app/storage/logs
Deprecated message fixed in d37bf95.
from docker-flarum.
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.
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.
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.
Success! I tried localhost, docker IP & host IP, but not: mariadb. This installed correctly afterwards.
from docker-flarum.
Yes, everything is ok for me now.
from docker-flarum.
Image works well. Trying to tweak it for webless installs.
from docker-flarum.
I got the web-free installs working ๐ธ
from docker-flarum.
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.
Can you show me your docker-compose.yml file?
from docker-flarum.
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.
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.
All is ok for me with your docker-compose file.
Config:
from docker-flarum.
Can be the Docker version? I'm using Docker on Mac, I will try on Linux now, moment
from docker-flarum.
$ docker -v
Docker version 1.13.0, build 49bf474
On mac os v10.12.2
from docker-flarum.
Docker version 1.13.1-rc1, build 2527cfc - MacOS 10.12.3
from docker-flarum.
Ops, works, did you test and make it work? Now are installed, can be because of the site url param?
from docker-flarum.
It works. I completed your form. You need to valide form
from docker-flarum.
How? What is wrong, the admin password is so easy?
from docker-flarum.
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.
Move to issues #9
from docker-flarum.
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)
- 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 3
- Upgrade framework from 1.3.0 to 1.8 ?
- 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.