Comments (12)
Flarum container volumes are not properly defined, you must use two differents volumes, one for extensions and another for assets. Like this :
volumes:
- xxx:/flarum/app/assets
- xxx:/flarum/app/extensions
It's not a good idea to store /flarum/app/
entire directory with a named docker volume.
Did you lose data in /flarum/app/assets
directory ? Check if /flarum/app/asset/rev-manifest.json
exist. If not, create it manually withΒ touch
because the boot script use this file to know if an installation has already been performed.
docker-flarum/rootfs/usr/local/bin/run.sh
Lines 57 to 58 in 990087f
docker exec -ti flarum touch /flarum/app/asset/rev-manifest.json && chown $UID:$GID /flarum/app/asset/rev-manifest.json
from docker-flarum.
Thank you for clarifying. I wanted to not create two separate volumes, since volume-subfolders are not supported yet
Actually even restarting removed the config.php. Gonna try using two volumes now.
from docker-flarum.
You can create two named volumes with rancher :
volumes:
flarum-assets-vol:
driver: local
flarum-extensions-vol:
driver: local
services:
flarum:
volumes:
- flarum-assets-vol:/flarum/app/assets
- flarum-extensions-vol:/flarum/app/extensions
from docker-flarum.
I know, I just didn't want to clutter my rancher instance with more volumes than needed, so I tried with one volume for the whole Flarum service πΈ.
from docker-flarum.
Actually even restarting removed the config.php. Gonna try using two volumes now.
config.php
is automatically created by the boot script when the container starts and if an installation has already been performed (rev-manifest.json). You do not have to worry about it.
I know, I just didn't want to clutter my rancher instance with more volumes than needed, so I tried with one volume for the whole Flarum service smile_cat.
Okay πΈ Tell me if this has solved your problem.
from docker-flarum.
I deleted the contents of var/lib/mysql in the mariadb container and try to reinstall everything anew. But sadly I get this at the installation page, even though DEBUG = true:
I have no idea what the problem is now π
EDIT: Found the culprit. I set PHP_MEMORY_LIMIT to 256 instead of 256M.
Now I get this, though:
from docker-flarum.
Okay, deleting the var lib mysql again and restarting everything solved it. Now I'll set everything up again and try upgrading the flarum container again and see if it works πΈ.
EDIT: Did you run into problems running flagrow bazaar with your default config? It seems to kill Flarum everytime I try to run it.
from docker-flarum.
Did you run into problems running flagrow bazaar with your default config ? It seems to kill Flarum everytime I try to run it.
I don't know if this docker image supports it, probably not. You can open another issue for this or a pull request if you manage to make it work.
from docker-flarum.
Ok, so when I upgrade the container all the third party extensions are being removed =/
from docker-flarum.
With two separated volumes ?
from docker-flarum.
Yes.
EDIT: Forum threads and everything is still there, so the config.php is being kept.
from docker-flarum.
Check if your extension volume is persisted by rancher. If yes, your flarum/extensions/list
file must contains all your installed extension with docker exec -ti flarum extension
. If this file is empty or inexistent, maybe you have a storage issue with rancher.
Which command do you use to install an extension ?
Follow this instructions to install an extension :
https://github.com/mondediefr/docker-flarum#install-custom-extensions
Rancher storage documentation :
https://rancher.com/docs/rancher/latest/en/rancher-services/storage-service/
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.