-
Notifications
You must be signed in to change notification settings - Fork 10
Fatal error after container install #80
Comments
Everything looks good in the files you attached. How much memory does podman allocate for each running instance, is there a way to increase that? Did you try with Docker? I've never used podman, and so can't comment on it. At first glance it looks good but I understand that it is more complicated. Lute handles the data completely differently from LWT. At least you have LWT working so you can continue if Lute doesn't work out with your environment -- but it would be nice to sort out running in podman. With a future version of Lute I'm hoping to do away with Docker entirely because it adds yet another layer of complexity for new users. Thanks for the detailed report, I appreciate you taking the time. |
It looks like containers get full access to the entire system ram.
I just tested docker on a VM and it looks like Lute works fine with that. I also retested podman on another vm and still get the same issue. I mostly use podman to avoid odd docker quirks like it bypassing UFW (a firewall).
Looks like I might have to. It's a shame because the parent term feature of Lute is really good feature and helps with avoiding having to re-enter the same definitions for words with conjugations 食べる・食べた・食べている and etc.
New and non-technical users should definitely avoid Docker, but I think it provides value by allowing someone to have access to an application on all devices at any location. |
Update: I've managed to get past the memory error and am seeing if I can slowly remove the other errors from the logs I am reading. If I manage to get this working I will post instructions for getting this app working with podman. |
Alright, the fix was surprisingly simple. It turned out that podman-compose is still missing some features for docker-compose feature parity and doesn't work with .env files and the memory issue was probably(?) error log spamming. So the fix for podman users is to use this docker-compose.yml docker-compose.ymlversion: "3.9"
# Note: Docker users should create an .env file
# using the .env.example.docker as a template.
services:
lute:
build:
context: ./
dockerfile: Dockerfile
restart: always
environment:
- BACKUP_HOST_DIR=~/Backup/LuteBackup/
- BACKUP_ENABLED=false
- BACKUP_AUTO=yes
- BACKUP_WARN=yes
- BACKUP_COUNT=5
- LOGIN_USERNAME=yourusername
- LOGIN_PASSWORD=yourpassword
- DB_FILENAME=/lute/data/lute.db
- BACKUP_DIR=/lute/backup
- DATABASE_URL=sqlite:///${DB_FILENAME}
- APP_SECRET=not_secret_at_all
- APP_ENV=prod
env_file: .env
ports:
- 8000:8000
volumes:
# The host directories are mounted to the folders
# specified in .env
- ./data:/lute/data
- ${BACKUP_HOST_DIR}:/lute/backup
working_dir: /lute/public
command: ["php", "-S", "0.0.0.0:8000"] The issue should be solved now. |
Ah that's super, thank you for the new compose file. I'll add that to the wiki, I think, instead of the repo, as it will likely be for a very small set of users (possibly just you!).
Yes, great point, Docker has its place. Currently I think some non-tech users use Docker because it's "simple" on the surface, but it has lots of snags, esp. for Windows users. So with a full python install with all dependencies baked in natively it should be simplified for the vast majority. Thanks again for the input! |
Added https://github.com/jzohrab/lute/wiki/Getting-started-with-podman to wiki. @XZ02R if that page looks good to you, please close this ticket, or LMK what's missing. Oh I should attribute the info to you :-) Thanks! |
Cheers, thanks for the nice software. |
Description:
After following the steps to install the application via docker-compose.yml, the following error was displayed when connecting to the web application.
To Reproduce:
Additional Screenshots:
'podman-compose build' output
'podman-compose up -d' output
Configuration files:
.env file
Dockerfile
docker-compose.yml
Extra software/hardware info:
Additional notes:
The text was updated successfully, but these errors were encountered: