mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-15 21:31:50 +02:00
fix: force IPv4 for MariaDB connections in fireflyiii, monica, seafile, zoneminder (HAOS 17.3+)
Agent-Logs-Url: https://github.com/alexbelgium/hassio-addons/sessions/971a8701-127d-4132-9aaa-c76775dfaf78 Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
785269c1c2
commit
b99d1a94fb
@@ -1,4 +1,8 @@
|
||||
|
||||
## 6.6.2-1 (2026-05-10)
|
||||
|
||||
- Fix: Force IPv4 for MariaDB connections to resolve access denied errors after HAOS 17.3 (IPv6 networking change)
|
||||
|
||||
## 6.6.2 (2026-05-02)
|
||||
- Update to latest version from firefly-iii/firefly-iii (changelog : https://github.com/firefly-iii/firefly-iii/releases)
|
||||
|
||||
|
||||
@@ -104,5 +104,5 @@ slug: fireflyiii
|
||||
startup: services
|
||||
udev: true
|
||||
url: https://github.com/alexbelgium/hassio-addons
|
||||
version: "6.6.2"
|
||||
version: "6.6.2-1"
|
||||
webui: "[PROTO:ssl]://[HOST]:[PORT:8080]"
|
||||
|
||||
@@ -91,6 +91,12 @@ case $(bashio::config 'DB_CONNECTION') in
|
||||
DB_HOST=$(bashio::services "mysql" "host")
|
||||
DB_PORT=$(bashio::services "mysql" "port")
|
||||
|
||||
# Force IPv4 to avoid access denied errors when the container network uses IPv6 (HAOS 17.3+)
|
||||
if DB_HOST_V4=$(getent ahostsv4 "$DB_HOST" 2>/dev/null | awk 'NR==1{print $1}') && [ -n "$DB_HOST_V4" ]; then
|
||||
bashio::log.info "Resolved MariaDB host to IPv4: $DB_HOST_V4"
|
||||
DB_HOST="$DB_HOST_V4"
|
||||
fi
|
||||
|
||||
# Always fetch service discovery credentials for bootstrap operations (CREATE DATABASE)
|
||||
BOOTSTRAP_USERNAME=$(bashio::services "mysql" "username")
|
||||
BOOTSTRAP_PASSWORD=$(bashio::services "mysql" "password")
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
## 5.0.0b5-3 (2026-05-10)
|
||||
- Fix: Force IPv4 for MariaDB connections to resolve access denied errors after HAOS 17.3 (IPv6 networking change)
|
||||
|
||||
## 5.0.0b5-2 (26-02-2026)
|
||||
- Minor bugs fixed
|
||||
|
||||
|
||||
@@ -108,5 +108,5 @@ services:
|
||||
- mysql:want
|
||||
slug: monica
|
||||
url: https://github.com/alexbelgium/hassio-addons/tree/master/monica
|
||||
version: "5.0.0b5-2"
|
||||
version: "5.0.0b5-3"
|
||||
webui: "[PROTO:ssl]://[HOST]:[PORT:80]"
|
||||
|
||||
@@ -46,7 +46,14 @@ case "$database" in
|
||||
fi
|
||||
|
||||
# Use values
|
||||
DB_HOST=$(bashio::services "mysql" "host") && bashio::log.blue "DB_HOST=$DB_HOST" && sed -i "1a export DB_HOST=$DB_HOST" /usr/local/bin/entrypoint.sh
|
||||
DB_HOST=$(bashio::services "mysql" "host")
|
||||
# Force IPv4 to avoid access denied errors when the container network uses IPv6 (HAOS 17.3+)
|
||||
if DB_HOST_V4=$(getent ahostsv4 "$DB_HOST" 2>/dev/null | awk 'NR==1{print $1}') && [ -n "$DB_HOST_V4" ]; then
|
||||
bashio::log.info "Resolved MariaDB host to IPv4: $DB_HOST_V4"
|
||||
DB_HOST="$DB_HOST_V4"
|
||||
fi
|
||||
bashio::log.blue "DB_HOST=$DB_HOST"
|
||||
sed -i "1a export DB_HOST=$DB_HOST" /usr/local/bin/entrypoint.sh
|
||||
DB_PORT=$(bashio::services "mysql" "port") && bashio::log.blue "DB_PORT=$DB_PORT" && sed -i "1a export DB_PORT=$DB_PORT" /usr/local/bin/entrypoint.sh
|
||||
DB_DATABASE=monica && bashio::log.blue "DB_DATABASE=$DB_DATABASE" && sed -i "1a export DB_DATABASE=$DB_DATABASE" /usr/local/bin/entrypoint.sh
|
||||
DB_USERNAME=$(bashio::services "mysql" "username") && bashio::log.blue "DB_USERNAME=$DB_USERNAME" && sed -i "1a export DB_USERNAME=$DB_USERNAME" /usr/local/bin/entrypoint.sh
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
|
||||
## 12.0.18-3 (2026-05-10)
|
||||
|
||||
- Fix: Force IPv4 for MariaDB connections to resolve access denied errors after HAOS 17.3 (IPv6 networking change)
|
||||
|
||||
## 12.0.18-2 (2026-02-22)
|
||||
- Fix download URLs containing incorrect `/seafhttp` prefix on first run by re-applying URL configuration after upstream init scripts complete.
|
||||
|
||||
|
||||
@@ -128,5 +128,5 @@ services:
|
||||
slug: seafile
|
||||
udev: true
|
||||
url: https://github.com/alexbelgium/hassio-addons/tree/master/seafile
|
||||
version: "12.0.18-2"
|
||||
version: "12.0.18-3"
|
||||
webui: http://[HOST]:[PORT:8000]
|
||||
|
||||
@@ -207,7 +207,13 @@ case "${DATABASE_SELECTION}" in
|
||||
fi
|
||||
|
||||
# Use values
|
||||
export MYSQL_HOST="$(bashio::services 'mysql' 'host')" && sed -i "1a export MYSQL_HOST=$(bashio::services 'mysql' 'host')" /home/seafile/*.sh
|
||||
MYSQL_HOST="$(bashio::services 'mysql' 'host')"
|
||||
# Force IPv4 to avoid access denied errors when the container network uses IPv6 (HAOS 17.3+)
|
||||
if MYSQL_HOST_V4=$(getent ahostsv4 "$MYSQL_HOST" 2>/dev/null | awk 'NR==1{print $1}') && [ -n "$MYSQL_HOST_V4" ]; then
|
||||
bashio::log.info "Resolved MariaDB host to IPv4: $MYSQL_HOST_V4"
|
||||
MYSQL_HOST="$MYSQL_HOST_V4"
|
||||
fi
|
||||
export MYSQL_HOST && sed -i "1a export MYSQL_HOST=$MYSQL_HOST" /home/seafile/*.sh
|
||||
export MYSQL_PORT="$(bashio::services 'mysql' 'port')" && sed -i "1a export MYSQL_PORT=$(bashio::services 'mysql' 'port')" /home/seafile/*.sh
|
||||
export MYSQL_USER="$(bashio::services "mysql" "username")" && sed -i "1a export MYSQL_USER=$(bashio::services 'mysql' 'username')" /home/seafile/*.sh
|
||||
export MYSQL_USER_PASSWD="$(bashio::services "mysql" "password")" && sed -i "1a export MYSQL_USER_PASSWD=$(bashio::services 'mysql' 'password')" /home/seafile/*.sh
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
|
||||
## 1.38.1-1 (2026-05-10)
|
||||
|
||||
- Fix: Force IPv4 for MariaDB connections to resolve access denied errors after HAOS 17.3 (IPv6 networking change)
|
||||
|
||||
## 1.38.1 (2026-02-21)
|
||||
- Update to latest version from zoneminder-containers/zoneminder-base (changelog : https://github.com/zoneminder-containers/zoneminder-base/releases)
|
||||
|
||||
|
||||
@@ -95,5 +95,5 @@ services:
|
||||
slug: zoneminder
|
||||
udev: true
|
||||
url: https://github.com/alexbelgium/hassio-addons
|
||||
version: "1.38.1"
|
||||
version: "1.38.1-1"
|
||||
webui: "[PROTO:ssl]://[HOST]:[PORT:80]/zm"
|
||||
|
||||
@@ -33,6 +33,11 @@ case "$(bashio::config "DB_CONNECTION")" in
|
||||
remoteDB="1"
|
||||
ZM_DB_HOST="$(bashio::services "mysql" "host")"
|
||||
ZM_DB_PORT="$(bashio::services "mysql" "port")"
|
||||
# Force IPv4 to avoid access denied errors when the container network uses IPv6 (HAOS 17.3+)
|
||||
if ZM_DB_HOST_V4=$(getent ahostsv4 "$ZM_DB_HOST" 2>/dev/null | awk 'NR==1{print $1}') && [ -n "$ZM_DB_HOST_V4" ]; then
|
||||
bashio::log.info "Resolved MariaDB host to IPv4: $ZM_DB_HOST_V4"
|
||||
ZM_DB_HOST="$ZM_DB_HOST_V4"
|
||||
fi
|
||||
ZM_DB_NAME="zm"
|
||||
ZM_DB_USER="$(bashio::services "mysql" "username")"
|
||||
ZM_DB_PASS="$(bashio::services "mysql" "password")"
|
||||
|
||||
Reference in New Issue
Block a user