-
-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
config.json failed: no such file or directory #95
Comments
This looks more like a docker error. Maybe the volume folder does not exist? |
Hi @gruberroland I tried mounting directly config and sess folders as suggested in the compose file you linked. I get the same issue. I edited my first message to try to give a better explanation of the reproduction workflow |
I guess your folders ${SHARED_FOLDER}/ldap/lam/etc/ and ${SHARED_FOLDER}/ldap/lam/var are empty. This is an issue because then LAM cannot configure itself with defaults. Even the default templates are located in /var/lib/ldap-account-manager/config. This means you need to
LAM uses a large set of config files that cannot be created from scratch in case the whole /var/lib/ldap-account-manager/config is empty. You can also extract the config folder from the tar.bz2 file. |
Closed because inactive for > 14 days. Please reopen if there is still an issue. |
I get the following error in docker logs when I run the container
starting container failed: oci runtime error: container_linux.go:265: starting container process caused "chdir to cwd (\"/var/lib/ldap-account-manager/config\") set in config.json failed: no such file or directory"
Here is a stripped version of my compose configuration
I can reproduce the same issue if I mount the subfolders config and sess directly
reprodution workflow:
docker service ps
anddocker service logs
commands, diagnose the file config.cfg must be createddocker run
anddocker cp
command to get the file from a fresh container that has no volume mounted. Put the file at ${SHARED_FOLDER}/ldap/lam/etc/config.cfgdocker service logs
docker run
anddocker cp
command to get the file from a fresh container that has no volume mounted. put the file at ${SHARED_FOLDER}/ldap/lam/config/lam.confstarting container failed: oci runtime error: container_linux.go:265: starting container process caused "chdir to cwd (\"/var/lib/ldap-account-manager/config\") set in config.json failed: no such file or directory"
I noticed another user got a similar issue: #83
The text was updated successfully, but these errors were encountered: