Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install Akaunting through portainer #86

Open
Chouaib99 opened this issue Jan 18, 2023 · 4 comments
Open

Can't install Akaunting through portainer #86

Chouaib99 opened this issue Jan 18, 2023 · 4 comments

Comments

@Chouaib99
Copy link

Hello,

I'm trying to install Akaunting through portainer using the following Docker composer.

the installation is going well and I can access the login portal but nothing happens afterwards.

You will find below the script used and the database log with the error message obtained.

Could you please advice me

`version: '3.7'

services:

akaunting:
container_name: akaunting
image: docker.io/akaunting/akaunting:latest
build:
context: .
ports:
- 8080:80
volumes:
- /volume2/docker/akaunting/data:/var/www/html/storage
- /volume2/docker/akaunting/modules:/var/www/html/modules
restart: unless-stopped
environment:
APP_URL: "http://192.168.1.13:8080"
LOCALE: "en-US"
DB_HOST: "akaunting-db"
DB_DATABASE: "akaunting"
DB_USERNAME: "admin"
DB_PASSWORD: "akaunting_password"
DB_PREFIX: "asd_"
COMPANY_NAME: "My Company"
COMPANY_EMAIL: "[email protected]"
ADMIN_EMAIL: "[email protected]"
ADMIN_PASSWORD: "password"
depends_on:
- akaunting-db

akaunting-db:
container_name: akaunting-db
image: mariadb
volumes:
- /volume2/docker/akaunting/db:/var/lib/mysql
environment:
MYSQL_DATABASE: akaunting
MYSQL_USER: admin
MYSQL_PASSWORD: akaunting_password
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
restart: unless-stopped
`

Capture d’écran 2023-01-18 à 23 26 42

@inigelcn
Copy link

have same issue, maybe it is not okay for synology nas

@darioandreella
Copy link

darioandreella commented Mar 28, 2023

I am quite into the same issue, trying to deploy Akaunting and a MariaDB through Portainer, as a stack.
Obviously the docker-compose file present in the main project can't work, because those .env files can not be created before the stack is even started, so I tried to follow your approach too @Chouaib99 inserting the environmental variables directly into the docker-compose file (they come from the .env example files in the repo). I don't paste it here because it is quite similar to yours and so far it doesn't work here either.

I experience 2 different (and probably related) problems:

  • I can get the login page to load without the setup mode on (and can't do anything from there, despite having inserted the login credentials as environment-parameters in the compose file), but as soon as I try that "akaunting_setup=true" to supposedly trigger the setup wizard, I can't reach any page anymore.
  • the database is randomly dead, short after starting it: I see it disappearing from the docker network, no IP assigned. I use a frontend and a backend setup, with the backend isolated from the internet), even if the container itself is running.

Looks like a database related issue, I didn't dig any further for now, but as soon as the front-end tries to reach the db, something goes wrong.

I would appreciate a more clear installation section on the main repo that may include the Portainer (or anyways the "pure compose approach, not just the bare-metal way) scenario.

Once running, I plan(ned) to set everything behind a reverse proxy, but am currently stuck here...

Cheers!

@darioandreella
Copy link

Quite sad to see that basically not a single issue had ever had any response, is the project still actively maintained?

@wmhoneycutt
Copy link

I have succeeded by using the Projects tab under container manager, to deploy stack. I created a folder named 'akaunting' and two subfolders named 'db' and 'env'. I copied the example env files and uploaded to the env folder where I changed the variables to match my needs. However, when I go to login, nothing happens. I get the following on the front end:
image

See attached logs. I'm just getting started with Docker stuff, so If I've done something stupid, I apologize.

akaunting.csv
akaunting-db.csv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants