mirror of
https://github.com/lldap/lldap.git
synced 2026-04-25 16:25:55 +03:00
[GH-ISSUE #300] Install via docker issue #114
Labels
No labels
backend
blocked
bug
cleanup
dependencies
docker
documentation
duplicate
enhancement
enhancement
frontend
github_actions
good first issue
help wanted
help wanted
integration
invalid
ldap
pull-request
question
rust
rust
tests
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/lldap-lldap#114
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @slushfall on GitHub (Sep 19, 2022).
Original GitHub issue: https://github.com/lldap/lldap/issues/300
Fresh install Ubuntu 20.04.
What could be the reason of db errors while starting docker container?
#docker run nitnelave/lldap
Unable to find image 'nitnelave/lldap:latest' locally
latest: Pulling from nitnelave/lldap
213ec9aee27d: Pull complete
425b0f2fef8f: Pull complete
ab9a9bfc820f: Pull complete
fed2c8be76d2: Pull complete
d3214953ac8b: Pull complete
492eed7e4563: Pull complete
4f4fb700ef54: Pull complete
Digest: sha256:977f1d2c26c108e1214d9e75f0a1413f4cda617a4f8eceba771739cc820b713b
Status: Downloaded newer image for nitnelave/lldap:latest
[entrypoint] Copying the default config to /data/lldap_config.toml
[entrypoint] Edit this file to configure LLDAP.
Loading configuration from /data/lldap_config.toml
WARNING: Default JWT secret used! This is highly unsafe and can allow attackersto log in as admin.
WARNING: Unsecure default admin password is used.
2022-09-19T12:28:45.715217229+00:00 INFO set_up_server [ 228ms | 100.00% ]
2022-09-19T12:28:45.715264689+00:00 INFO ┝━ i [info]: Starting LLDAP version 0.4.0
2022-09-19T12:28:45.725360680+00:00 ERROR ┝━ 🚨 [error]: | error: Database error:
no rows returned by a query that expected to return at least one row2022-09-19T12:28:45.725368259+00:00 WARN ┝━ 🚧 [warn]: Could not get admin user, trying to create it: Database error:
no rows returned by a query that expected to return at least one row2022-09-19T12:28:45.947484357+00:00 WARN ┝━ 🚧 [warn]: Could not find password_manager group, trying to create it
@nitnelave commented on GitHub (Sep 19, 2022):
I think it's just the one-time setup code that is a bit too greedy to log. If you restart the container, now that it has created the DB, it should work fine.
@nitnelave commented on GitHub (Sep 30, 2022):
Ideally we could just downgrade the log rather than remove it if https://github.com/tokio-rs/tracing/issues/2330 is accepted.