Then the app shows the following error, which I believe to be the culprit itself, but no clue how to resolve it:
PDO::connect(): php_network_getaddresses: getaddrinfo for db failed: Name or service not known
I have checked the compose file over a dozen times, and ensured the DB_HOST & container name match to the value db, at this stage I have no idea why it does that, and if I undeploy & re-deploy the app via Abra, then it works 🤷
# Description
This PR aims to get InvoiceNinja working again, I've followed their [self-hosting new Debian-based image compose file](https://github.com/invoiceninja/dockerfiles/tree/debian) super-closely to get it working.
# Issues
It's working really well, but anytime I restart the container or restart my server, it starts erroring.
The first error is Nginx 502 Bad gateway, and when I look at the Nginx logs this is what I see:
> [error] 33#33: *9 connect() failed (111: Connection refused) while connecting to upstream, client: 10.0.1.6, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://10.0.1.2:9000", host: "invoice.maat.systems"
Then the `app` shows the following error, which I believe to be the culprit itself, but no clue how to resolve it:
> PDO::connect(): php_network_getaddresses: getaddrinfo for db failed: Name or service not known
I have checked the compose file over a dozen times, and ensured the `DB_HOST` & container name match to the value `db`, at this stage I have no idea why it does that, and if I undeploy & re-deploy the app via Abra, then it works 🤷
pharaohgraphy
self-assigned this 2026-01-24 07:37:53 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Description
This PR aims to get InvoiceNinja working again, I've followed their self-hosting new Debian-based image compose file super-closely to get it working.
Issues
It's working really well, but anytime I restart the container or restart my server, it starts erroring.
The first error is Nginx 502 Bad gateway, and when I look at the Nginx logs this is what I see:
Then the
appshows the following error, which I believe to be the culprit itself, but no clue how to resolve it:I have checked the compose file over a dozen times, and ensured the
DB_HOST& container name match to the valuedb, at this stage I have no idea why it does that, and if I undeploy & re-deploy the app via Abra, then it works 🤷@@ -5,2 +5,3 @@SECRET_API_SECRET_VERSION=v1# Run this anywhere to generate a key:# `docker run --rm -it invoiceninja/invoiceninja-debian php artisan key:generate --show`This will be moved to the README later once I fix the current issue
@@ -1 +1,4 @@export NGINX_CONF_VERSION=v1export NGINX_LARAVEL_CONF_VERSION=v1export NGINX_INVOICENINJA_CONF_VERSION=v2Will also reset this to
v1@@ -27,3 +29,3 @@- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"- coop-cloud.${STACK_NAME}.web.version=1.20.0-c1e6c074- coop-cloud.${STACK_NAME}.web.version=xx # @TODO fix meThis also needs to be fixed
@@ -58,0 +84,4 @@- nordigen_keydeploy:labels:- "coop-cloud.${STACK_NAME}.app=true" # Abra won't let me NOT have labels for 'app'?This one is weird... do I need to keep it? I kept getting a linting error from Abra without it 🤷
@@ -62,2 +99,3 @@db:image: "mariadb:10.6"image: mariadb:12I know the guide says to use
mysqlbut I saw that we usemariadbas a drop-in replacement and that works fine for other apps👌I've done a merge and force push on master branch!
Pull request closed