Comments (19)
Good to know!
Made some more tests:
It seems the issue comes from the Dockerfile, COPY rootfs /
runs after creation and chown of the /flarum/app
folder.
COPY creates folders and files with ID and GID 0, writing over the files and folders that need to be writable.
One easy fix is adding this line in Dockerfile after the first "COPY":
COPY --chown=991:991 rootfs/flarum /flarum
This technically copies the content of this folder twice, except the second time has the right permissions and ownership.
from docker-flarum.
Sorry keep posting, but has anyone figured out a temporary solution to get this to run in docker? I couldnt get the tips mentioned in this thread to work. Anyone else have any working ideas? Is @Simon-L soultion still working? It seemed to fail for me
from docker-flarum.
Can you try my fix with the image latest?
version: "3"
services:
flarum:
image: mondedie/docker-flarum:latest
from docker-flarum.
I am hitting the same issue ^
from docker-flarum.
I watch this issue as soon as possible
from docker-flarum.
What the f#ck? still watching as soon as possible?
A one liner seems to hard to fix, check this guy out:
https://github.com/jackiehope/docker-flarum
He had also pushed it to docker
https://hub.docker.com/r/jackieqiu/flarum
y'all are so lazy
You can make a PR if you make the fix.
Thank you to your help.
from docker-flarum.
The real fix isn't that simple, @Simon-L proposed a temporary solution but I can't obviously push that in production. The real issue is related to fs behavior on some system.
I don't have time to fix this for the moment, I will try to look that later.
Another temporary solution :
environment:
- UID=nginx
- GID=nginx
from docker-flarum.
For now, I tag this repository as "Unmaintened" because no one seems to be able to maintain the docker image. For the moment, I don't have time, and we can not propose an obsolete image.
from docker-flarum.
@Simon-L and @hakimelek have you still the same problem with flarum 0.1.0-beta.10 ?
from docker-flarum.
environment:
- UID=nginx
- GID=nginx
I could not get this to work as a temp solution.
I am still experiencing this issue.
from docker-flarum.
Does anyone know of a temporary solution to this problem?
from docker-flarum.
Does anyone know of a temporary solution to this problem?
Hello, maybe with chown with user ID and group chown 991:991 <volume_on_host>
the dir on your server.
from docker-flarum.
I seem to still be unable to fix the issue with the solutions in this thread.
from docker-flarum.
Can you give me more information? Your docker-compose, os, cpu etc
from docker-flarum.
Server is being ran on AWS as a EC2 instance with 2 CPU's and 8 GB's of RAM. OS is Debian Buster. Server is being displayed public at https://forums.motorboards.tech.
It ends up displaying the Install Flarum page. If i fill it out according to my files, i get the failure at https://forums.motorboards.tech
docker-compose.yml
File
version: "3"
services:
flarum:
image: mondedie/docker-flarum:0.1.0-beta.10-stable
container_name: flarum
env_file:
- ./flarum.env
volumes:
- ./Data/assets:/flarum/app/public/assets
- ./Data/extensions:/flarum/app/extensions
- ./Data/nginx:/etc/nginx/conf.d
depends_on:
- mariadb
mariadb:
image: mariadb:10.4
container_name: mariadb
environment:
- MYSQL_ROOT_PASSWORD=testing123!
- MYSQL_DATABASE=flarum
- MYSQL_USER=flarum
- MYSQL_PASSWORD=testing123!
volumes:
- /mnt/docker/mysql/db:/var/lib/mysql
networks:
default:
external:
name: reverseproxy_default
flarum.env
File
DEBUG=true
FORUM_URL=http://forums.motorboards.tech
# Database configuration
DB_HOST=mariadb
DB_NAME=flarum
DB_USER=flarum
DB_PASS=testing
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=testing123!
[email protected]
FLARUM_TITLE=Test flarum
Below is my output of docker-compose up
root@ip-172-31-8-177:/srv/Docker/Flarum# docker-compose up
Creating mariadb ... done
Creating flarum ... done
Attaching to mariadb, flarum
mariadb | 2019-10-19 19:09:42 0 [Note] mysqld (mysqld 10.4.8-MariaDB-1:10.4.8+maria~bionic) starting as process 1 ...
mariadb | 2019-10-19 19:09:42 0 [Note] InnoDB: Using Linux native AIO
mariadb | 2019-10-19 19:09:42 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
mariadb | 2019-10-19 19:09:42 0 [Note] InnoDB: Uses event mutexes
mariadb | 2019-10-19 19:09:42 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
mariadb | 2019-10-19 19:09:42 0 [Note] InnoDB: Number of pools: 1
mariadb | 2019-10-19 19:09:42 0 [Note] InnoDB: Using SSE2 crc32 instructions
mariadb | 2019-10-19 19:09:42 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)
mariadb | 2019-10-19 19:09:42 0 [Note] InnoDB: Initializing buffer pool, total size = 256M, instances = 1, chunk size = 128M
mariadb | 2019-10-19 19:09:42 0 [Note] InnoDB: Completed initialization of buffer pool
mariadb | 2019-10-19 19:09:42 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
flarum | [INFO] First launch, installation...
flarum | Please fix the following problems before we can continue with the installation.
flarum | The /flarum/app directory is not writable.
flarum | Please chmod this directory and its contents to 0775.
flarum | The /flarum/app/public/assets directory is not writable.
flarum | Please chmod this directory and its contents to 0775.
flarum | [INFO] End of flarum installation
mariadb | 2019-10-19 19:09:43 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
mariadb | 2019-10-19 19:09:43 0 [Note] InnoDB: Creating shared tablespace for temporary tables
mariadb | 2019-10-19 19:09:43 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
mariadb | 2019-10-19 19:09:43 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
mariadb | 2019-10-19 19:09:43 0 [Note] InnoDB: Waiting for purge to start
mariadb | 2019-10-19 19:09:43 0 [Note] InnoDB: 10.4.8 started; log sequence number 20274249; transaction id 14608
mariadb | 2019-10-19 19:09:43 0 [Note] Plugin 'FEEDBACK' is disabled.
mariadb | 2019-10-19 19:09:43 0 [Note] Server socket created on IP: '::'.
mariadb | 2019-10-19 19:09:43 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
mariadb | 2019-10-19 19:09:43 0 [Warning] 'proxies_priv' entry '@% root@8fcb80558ea1' ignored in --skip-name-resolve mode.
mariadb | 2019-10-19 19:09:43 0 [Note] Reading of all Master_info entries succeeded
mariadb | 2019-10-19 19:09:43 0 [Note] Added new Master_info '' to hash table
mariadb | 2019-10-19 19:09:43 0 [Note] mysqld: ready for connections.
mariadb | Version: '10.4.8-MariaDB-1:10.4.8+maria~bionic' socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution
mariadb | 2019-10-19 19:09:43 0 [Note] InnoDB: Buffer pool(s) load completed at 191019 19:09:43
from docker-flarum.
The original issue i believe has been fixed. It is no longer reporting permission issues.
A new issue is now occurring.
[Warning] Access denied for user 'flarum'@'172.24.0.5' (using password: YES)
I remember this issue months ago when i attempted to use this image in the past. If i remember correctly, the solution was to change localhost
to mariadb
in the config.php
file which is suppose to be found at the root of the flarum installation. I could not find this file this time. As per discussion with jordanjay in discord, the database is hardcoded in the config.php file, which makes me believe i remembered correctly.
ping mariadb
from inside the flarum container successfully reports the database at 172.24.0.4
, which strongly makes me believe this is not a DNS issue.
For some reason, the flarum is still looking for the database on localhost, and not the remote host.
output
mariadb | 2019-10-20 22:18:59 0 [Note] mysqld (mysqld 10.4.8-MariaDB-1:10.4.8+maria~bionic) starting as process 1 ...
flarum | [INFO] First launch, installation...
mariadb | 2019-10-20 22:18:59 0 [Note] InnoDB: Using Linux native AIO
mariadb | 2019-10-20 22:18:59 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
mariadb | 2019-10-20 22:18:59 0 [Note] InnoDB: Uses event mutexes
mariadb | 2019-10-20 22:18:59 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
mariadb | 2019-10-20 22:18:59 0 [Note] InnoDB: Number of pools: 1
mariadb | 2019-10-20 22:18:59 0 [Note] InnoDB: Using SSE2 crc32 instructions
mariadb | 2019-10-20 22:18:59 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)
mariadb | 2019-10-20 22:18:59 0 [Note] InnoDB: Initializing buffer pool, total size = 256M, instances = 1, chunk size = 128M
mariadb | 2019-10-20 22:18:59 0 [Note] InnoDB: Completed initialization of buffer pool
mariadb | 2019-10-20 22:18:59 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
mariadb | 2019-10-20 22:19:00 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
mariadb | 2019-10-20 22:19:00 0 [Note] InnoDB: Creating shared tablespace for temporary tables
mariadb | 2019-10-20 22:19:00 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
mariadb | 2019-10-20 22:19:00 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
mariadb | 2019-10-20 22:19:00 0 [Note] InnoDB: 10.4.8 started; log sequence number 23660721; transaction id 17567
mariadb | 2019-10-20 22:19:00 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
mariadb | 2019-10-20 22:19:00 0 [Note] Plugin 'FEEDBACK' is disabled.
mariadb | 2019-10-20 22:19:00 0 [Note] Server socket created on IP: '::'.
mariadb | 2019-10-20 22:19:00 0 [Warning] 'proxies_priv' entry '@% root@8fcb80558ea1' ignored in --skip-name-resolve mode.
mariadb | 2019-10-20 22:19:00 0 [Note] Reading of all Master_info entries succeeded
mariadb | 2019-10-20 22:19:00 0 [Note] Added new Master_info '' to hash table
mariadb | 2019-10-20 22:19:00 0 [Note] mysqld: ready for connections.
mariadb | Version: '10.4.8-MariaDB-1:10.4.8+maria~bionic' socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution
mariadb | 2019-10-20 22:19:00 0 [Note] InnoDB: Buffer pool(s) load completed at 191020 22:19:00
flarum | Installing Flarum...
mariadb | 2019-10-20 22:19:12 8 [Warning] Access denied for user 'flarum'@'172.24.0.5' (using password: YES)
flarum | Connecting to database...failed
flarum | Rolling back...
flarum |
flarum | In Pipeline.php line 87:
flarum |
flarum | Step failed
flarum |
flarum |
flarum | In PDOConnection.php line 31:
flarum |
flarum | SQLSTATE[HY000] [1045] Access denied for user 'flarum'@'172.24.0.5' (using
flarum | password: YES)
flarum |
flarum |
flarum | In PDOConnection.php line 27:
flarum |
flarum | SQLSTATE[HY000] [1045] Access denied for user 'flarum'@'172.24.0.5' (using
flarum | password: YES)
flarum |
flarum |
flarum | install [-f|--file FILE] [-c|--config CONFIG]
flarum |
flarum | [INFO] End of flarum installation
from docker-flarum.
Hello, check your password on flarum.env
You set DB_PASS=testing but on composer file you set MYSQL_PASSWORD=testing123!
from docker-flarum.
Hello, check your password on flarum.env
You set DB_PASS=testing but on composer file you set MYSQL_PASSWORD=testing123!
I thought this was the first thing i checked -.- I must have overlooked it. Good eye!
from docker-flarum.
Its still reporting some issues, but this can probably be closed. This particular issue has been fixed. Ill have to work to see whats going on tomorrow. Thanks all!
from docker-flarum.
Related Issues (20)
- 可否增加新的配置 HOT 4
- Nginx 404 with fof/sitemap HOT 1
- 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
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.