-
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 10 replies
-
Noticed that the linkace app recursively changes db file ownership to openmediavault-webgui.... very odd.
|
Beta Was this translation helpful? Give feedback.
-
Hi, did you change the password in between the setup? The troubleshooting for invalid credentials mostly went into such a direction. Also, make sure that Another thing: please remove all environment variables from the app if you use a .env file. It only mixes things up. LinkAce also does not support setting a user or group out of the box. That's also the reason for the weird permissions. The user inside the container coincidentially has the same ID as openmediavault-webgui. |
Beta Was this translation helpful? Give feedback.
-
I was trying to stand-up a fresh docker advanced install of 1.13.0 and am got the same auth error during set-up=>DB Config as the OP. I had made the following changes from the stock adv files: .env docker-compose.yaml What I eventually found was that I needed to explicitly map db (and possibly logs) to local dir. This allowed for the adv version to finally get past the above screen/error. I blew it all away and used the same config strategy w/ simple and it works and reports the correct version. |
Beta Was this translation helpful? Give feedback.
-
Ran into this issue as well. Aside from creating the dirs in advance I also had to change the DB_HOST var to 'linkace_db_1' since the linkace container was a different IP from mysql and the db port was not made accessible outside the container. Docker has internal dns on the default network based on service names within compose.yml so this works across restarts without needing to expose your db. |
Beta Was this translation helpful? Give feedback.
-
Same here, fresh installation/docker setup.
version: "3"
services:
# --- MariaDB
db:
image: mariadb:10.7
restart: unless-stopped
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_bin
environment:
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
- MYSQL_USER=${DB_USERNAME}
- MYSQL_PASSWORD=${DB_PASSWORD}
- MYSQL_DATABASE=${DB_DATABASE}
volumes:
- db:/var/lib/mysql
# --- LinkAce Image with PHP and nginx
app:
image: linkace/linkace:simple
restart: unless-stopped
depends_on:
- db
ports:
- "0.0.0.0:8081:80"
#- "0.0.0.0:443:443"
volumes:
- ./.env:/app/.env
- ./backups:/app/storage/app/backups
- linkace_logs:/app/storage/logs
# Remove the hash of the following line if you want to use HTTPS for this container
#- ./nginx-ssl.conf:/etc/nginx/conf.d/default.conf:ro
#- /path/to/your/ssl/certificates:/certs:ro
volumes:
linkace_logs:
db:
driver: local
## LINKACE CONFIGURATION
## Please note that the LinkAce Docker image will be renamed with the release of LinkAce 2!
## Read more: https://github.com/Kovah/LinkAce/issues/502
## Basic app configuration
COMPOSE_PROJECT_NAME=linkace
# The app key is generated later, please leave it like that
APP_KEY=aesah1daiw6Xot0IeP8bae5phiey3oaw
## Configuration of the database connection
## Attention: Those settings are configured during the web setup, please do not modify them now.
# Set the database driver (mysql, pgsql, sqlsrv, sqlite)
DB_CONNECTION=mysql
# Set the host of your database here
DB_HOST=db
# Set the port of your database here
DB_PORT=3306
# Set the database name here
DB_DATABASE=linkace
# Set both username and password of the user accessing the database
DB_USERNAME=linkace
# Wrap your password into quotes (") if it contains special characters
DB_PASSWORD=linkace
## Redis cache configuration
# Set the Redis connection here if you want to use it
REDIS_HOST=redis
REDIS_PASSWORD=ChangeThisToASecurePassword!
REDIS_PORT=6379 |
Beta Was this translation helpful? Give feedback.
Final configuration is as below, with mods for NGINX reverse proxy manager running on the some host (RPi4)...
.env: