akaunting / docker

Docker Image for Akaunting
https://github.com/akaunting/akaunting
GNU General Public License v3.0
182 stars 86 forks source link

404 errors during setup #58

Closed rpungello closed 2 years ago

rpungello commented 2 years ago

I'm trying to follow the readme file in this repo, but something isn't working right. I did all this

git clone https://github.com/akaunting/docker
cd docker
cp env/db.env.example env/db.env
vi env/db.env # and set things
cp env/run.env.example env/run.env
vi env/run.env # and set things
AKAUNTING_SETUP=true docker-compose up -d

However, when I connect to my Docker host using port 8080, I get an Akaunting error page 404 image

eugenewere commented 2 years ago

I also have this issue after instaling with docker

noxyz20 commented 2 years ago

same issue

MizouziE commented 2 years ago

Hi @eugenewere

Disclaimer: I am still very new to web development (<1 year), so my approach is not going to make sense to most.

In response to your question over on the pull request I mentioned this on...

When I got it working it was through a great amount of trial and error, so after seeing your request for the steps I went back and started fresh to try to figure out the exact order but honestly all I did was manage it slightly faster while still being unsure exactly what the correct order of things is. I can tell you the overall idea that ended up working out.

As you can tell, there was a lot of "hit and hope" and "scrap it and start from scratch" going on in this but I did end up with a working web app that I could access in my browser and it all seemed to be working nicely.

My apologies for not having any clear set of instructions. I'm definitely open to suggestions! 😅

lionep commented 2 years ago

Same issue also, I tried multiple "from scratch" installations with :

I always get the same result, a 404 page on HOST_IP:8080/ and on HOST_IP:8080/auth/login

In logs :

akaunting          | Setting locale en-US
akaunting          | Creating database tables
akaunting          | Connecting to database akaunting@akaunting-db:3306
akaunting          | Creating company
akaunting          | Creating admin
akaunting          | Applying the final touches
akaunting          | [09-Mar-2022 14:26:15] NOTICE: fpm is running, pid 1
akaunting          | [09-Mar-2022 14:26:15] NOTICE: ready to handle connections

akaunting          | 172.22.0.4 -  09/Mar/2022:14:29:38 +0000 "GET /index.php" 404

Database is initialized with 52 tables.

MohammedAl-Mahdawi commented 2 years ago

Hi,

Can't reproduce the issue, make sure to set up APP_URL correctly in run.env.

Example:

APP_URL=http://localhost:8080

Regards

vitek-dev commented 1 year ago

Had same issue. All you have to do is correctly set APP_URL in env/run.env (including the port)!

I gave up on it and ended up like this :))