LDAPAccountManager / lam

LDAP Account Manager
https://www.ldap-account-manager.org
Other
430 stars 70 forks source link

Error when using volumes for saving config... #200

Closed Ludo-code closed 1 year ago

Ludo-code commented 1 year ago

Hello, when i use a volume to save config file, in the case of my computer go down and the container must be recreated, i have wanted my config file in docker volume but i have an error when i set it....

The error is :

Configuring LAM
PHP Notice:  A non well formed numeric value encountered in Command line code on line 1
ls: cannot access '/var/lib/ldap-account-manager/config/lam.conf': No such file or directory
cp: cannot stat '/var/lib/ldap-account-manager/config/unix.sample.conf': No such file or directory

Thanks for our support...

gruberroland commented 1 year ago

Did you run docker as described in https://hub.docker.com/r/ldapaccountmanager/lam? Please post your command and the file listing of the volume.

gruberroland commented 1 year ago

Did you run docker as described in https://hub.docker.com/r/ldapaccountmanager/lam? Please post your command and the file listing of the volume.

Ludo-code commented 1 year ago

I post this after my school week when I come back to work. Ps : I don't use command line, I'm using portainer.

Ludo-code commented 1 year ago

Issue have been solved by reinstalling docker.

fsdrw08 commented 1 year ago

I have the same error, after check with the env var config, I found that it seems some logic conflic between script and env var description in the lam/lam-packaging/docker/start.sh

if [ "$LAM_SKIP_PRECONFIGURE" != "true" ]; then

but in the lam/lam-packaging/docker/.env:

# If set to false the other variables below have no effect.
LAM_SKIP_PRECONFIGURE=false
...

I have to set LAM_SKIP_PRECONFIGURE=true to make the app run

gruberroland commented 1 year ago

@fsdrw08 True, there was a typo in the .env file. Thanks for the hint.