[GH-ISSUE #845] No such file or directory (os error 2) #302

Closed
opened 2026-02-27 08:16:32 +03:00 by kerem · 4 comments
Owner

Originally created by @HikerBoricua on GitHub (Feb 18, 2024).
Original GitHub issue: https://github.com/lldap/lldap/issues/845

Encountering the same issue in docker as #41, pointing a browser to the server's http port results in the title of this note ( #119 has the same title but is not docker-related). I'm unfamiliar with the logs, here's what I have:

  1. Dockerfile, also pre-created the /lldap_server/app folders to avoid (inconsequential?) errors on 1st run
# LLDAP from https://github.com/lldap/lldap
FROM lldap/lldap:stable

# Set the working directory inside the container
WORKDIR /lldap_server

# Expose the UI and the LDAP ports
EXPOSE 3890 17170
  1. Run command (redacted, note the port redirects)

docker run --name lldap_server -p 8002:3890 -p 8003:17170 -v /home/.../lldap_data:/data -v /home/.../lldap_server:/lldap_server lldap_server:next

  1. Output from 1st run
[entrypoint] Copying the default config to /data/lldap_config.toml
[entrypoint] Edit this file to configure LLDAP.
> Setup permissions..
> Starting lldap..

Loading configuration from /data/lldap_config.toml
WARNING: Default JWT secret used! This is highly unsafe and can allow attackers to log in as admin.
WARNING: Unsecure default admin password is used.
2024-02-18T18:31:50.733443246+00:00  INFO     set_up_server [ 222ms | 100.00% ]
2024-02-18T18:31:50.733504237+00:00  INFO     ┝━ i [info]: Starting LLDAP version 0.5.0
2024-02-18T18:31:50.831184562+00:00  INFO     ┝━ i [info]: Upgrading DB schema from version 1
2024-02-18T18:31:50.831198885+00:00  INFO     ┝━ i [info]: Upgrading DB schema to version 2
2024-02-18T18:31:50.861977519+00:00  INFO     ┝━ i [info]: Upgrading DB schema to version 3
2024-02-18T18:31:50.897445140+00:00  INFO     ┝━ i [info]: Upgrading DB schema to version 4
2024-02-18T18:31:50.920173807+00:00  INFO     ┝━ i [info]: Upgrading DB schema to version 5
2024-02-18T18:31:50.957567680+00:00  WARN     ┝━ 🚧 [warn]: Could not find lldap_admin group, trying to create it
2024-02-18T18:31:50.975433761+00:00  WARN     ┝━ 🚧 [warn]: Could not find lldap_password_manager group, trying to create it
2024-02-18T18:31:50.997296777+00:00  WARN     ┝━ 🚧 [warn]: Could not find lldap_strict_readonly group, trying to create it
2024-02-18T18:31:51.016813477+00:00  WARN     ┝━ 🚧 [warn]: Could not find an admin user, trying to create the user "admin" with the config-provided password
2024-02-18T18:31:51.275679939+00:00  INFO     ┝━ i [info]: Starting the LDAP server on port 3890
2024-02-18T18:31:51.331650070+00:00  INFO     ┕━ i [info]: Starting the API/web server on port 17170
2024-02-18T18:31:51.332141386+00:00  INFO     i [info]: starting 1 workers
2024-02-18T18:31:51.332167741+00:00  INFO     i [info]: Actix runtime found; starting in Actix runtime
2024-02-18T18:31:51.335757009+00:00  INFO     i [info]: DB Cleanup Cron started
2024-02-18T18:32:20.845957174+00:00  INFO     LDAP session [ 296µs | 49.96% / 100.00% ]
2024-02-18T18:32:20.846118273+00:00  INFO     ┕━ LDAP request [ 148µs | 50.04% ]
2024-02-18T18:32:50.998866576+00:00  INFO     LDAP session [ 260µs | 40.57% / 100.00% ]
2024-02-18T18:32:50.998977882+00:00  INFO     ┕━ LDAP request [ 155µs | 59.43% ]
2024-02-18T18:33:21.136764943+00:00  INFO     LDAP session [ 255µs | 45.82% / 100.00% ]
2024-02-18T18:33:21.136862654+00:00  INFO     ┕━ LDAP request [ 138µs | 54.18% ]
2024-02-18T18:33:51.286840088+00:00  INFO     LDAP session [ 274µs | 43.65% / 100.00% ]
2024-02-18T18:33:51.286954205+00:00  INFO     ┕━ LDAP request [ 155µs | 56.35% ]
2024-02-18T18:34:21.454459621+00:00  INFO     LDAP session [ 245µs | 43.37% / 100.00% ]
  1. Edited lldap_config.toml as reflected in the next output
  2. Output from 2nd run, ends with the error when GETting http://192.168.8.232:8003/ (crons continue to run after the error)
> Setup permissions..
> Starting lldap..

Loading configuration from /data/lldap_config.toml
Configuration: Configuration {
    ldap_host: "0.0.0.0",
    ldap_port: 3890,
    http_host: "0.0.0.0",
    http_port: 17170,
    jwt_secret: ***SECRET***,
    ldap_base_dn: "dc=example,dc=com",
    ldap_user_dn: UserId(
        "...redacted...",
    ),
    ldap_user_email: "...redacted...",
    ldap_user_pass: ***SECRET***,
    database_url: "sqlite:///data/users.db?mode=rwc",
    ignored_user_attributes: [],
    ignored_group_attributes: [],
    verbose: true,
    key_file: "/data/private_key",
    key_seed: None,
    smtp_options: MailOptions {
        enable_password_reset: false,
        from: None,
        reply_to: None,
        server: "localhost",
        port: 587,
        user: "",
        password: ***SECRET***,
        smtp_encryption: Tls,
        tls_required: None,
    },
    ldaps_options: LdapsOptions {
        enabled: false,
        port: 6360,
        cert_file: "cert.pem",
        key_file: "key.pem",
    },
    http_url: Url {
        scheme: "http",
        cannot_be_a_base: false,
        username: "",
        password: None,
        host: Some(
            Domain(
                "localhost",
            ),
        ),
        port: None,
        path: "/",
        query: None,
        fragment: None,
    },
    server_setup: None,
}
2024-02-18T19:35:04.015437271+00:00  INFO     set_up_server [ 6.17ms | 38.43% / 100.00% ]
2024-02-18T19:35:04.015497741+00:00  INFO     ┝━ i [info]: Starting LLDAP version 0.5.0
2024-02-18T19:35:04.016652042+00:00  DEBUG    ┝━ get_schema_version [ 228µs | 3.69% ]
2024-02-18T19:35:04.017907752+00:00  DEBUG    │  ┕━ 🐛 [debug]:  | return: Some(SchemaVersion(5))
2024-02-18T19:35:04.018128747+00:00  DEBUG    ┝━ list_groups [ 1.04ms | 16.92% ] filters: Some(DisplayName("lldap_admin"))
2024-02-18T19:35:04.021298934+00:00  DEBUG    │  ┕━ 🐛 [debug]:  | return: [Group { id: GroupId(1), display_name: "lldap_admin", creation_date: 2024-02-18T18:31:50.957572160, uuid: Uuid("f13be42c-861b-37d4-a3e2-42c8d34879a4"), users: [UserId("admin")], attributes: [] }]
2024-02-18T19:35:04.021317476+00:00  DEBUG    ┝━ list_groups [ 1.04ms | 16.77% ] filters: Some(DisplayName("lldap_password_manager"))
2024-02-18T19:35:04.022691470+00:00  DEBUG    │  ┕━ 🐛 [debug]:  | return: [Group { id: GroupId(2), display_name: "lldap_password_manager", creation_date: 2024-02-18T18:31:50.975436781, uuid: Uuid("6437e582-255a-35ff-baf8-7497400857e6"), users: [], attributes: [] }]
2024-02-18T19:35:04.022717252+00:00  DEBUG    ┝━ list_groups [ 594µs | 9.62% ] filters: Some(DisplayName("lldap_strict_readonly"))
2024-02-18T19:35:04.023557326+00:00  DEBUG    │  ┕━ 🐛 [debug]:  | return: [Group { id: GroupId(3), display_name: "lldap_strict_readonly", creation_date: 2024-02-18T18:31:50.997310944, uuid: Uuid("d7ef7079-0e96-3833-8fe3-c7cf9b5961c1"), users: [], attributes: [] }]
2024-02-18T19:35:04.023586545+00:00  DEBUG    ┝━ list_users [ 754µs | 12.22% ] filters: Some(MemberOf("lldap_admin")) | _get_groups: false
2024-02-18T19:35:04.025422739+00:00  DEBUG    │  ┕━ 🐛 [debug]:  | return: [UserAndGroups { user: User { user_id: UserId("admin"), email: "", display_name: Some("Administrator"), creation_date: 2024-02-18T18:31:51.016838842, uuid: Uuid("6f53bb2b-cf00-3b15-aa00-03b5f80a238b"), attributes: [] }, groups: Some([GroupDetails { group_id: GroupId(1), display_name: "lldap_admin", creation_date: 2024-02-18T18:31:50.957572160, uuid: Uuid("f13be42c-861b-37d4-a3e2-42c8d34879a4"), attributes: [] }]) }]
2024-02-18T19:35:04.026226770+00:00  INFO     ┝━ i [info]: Starting the LDAP server on port 3890
2024-02-18T19:35:04.027160857+00:00  DEBUG    ┝━ get_jwt_blacklist [ 145µs | 2.34% ]
2024-02-18T19:35:04.027480188+00:00  INFO     ┕━ i [info]: Starting the API/web server on port 17170
2024-02-18T19:35:04.027809051+00:00  INFO     i [info]: starting 1 workers
2024-02-18T19:35:04.027839625+00:00  INFO     i [info]: Actix runtime found; starting in Actix runtime
2024-02-18T19:35:04.030161039+00:00  INFO     i [info]: DB Cleanup Cron started
2024-02-18T19:35:34.121755476+00:00  DEBUG    HTTP request [ 44.1µs | 100.00% ] method: "GET" | uri: "/health"
2024-02-18T19:35:34.121801259+00:00  DEBUG    ┕━ 🐛 [debug]:  | status_code: 200
2024-02-18T19:35:34.121255463+00:00  INFO     LDAP session [ 376µs | 39.38% / 100.00% ]
2024-02-18T19:35:34.121418749+00:00  INFO     ┕━ LDAP request [ 228µs | 60.62% ]
2024-02-18T19:35:34.121452031+00:00  DEBUG       ┝━ 🐛 [debug]:  | msg: LdapMsg { msgid: 0, op: SearchRequest(LdapSearchRequest { base: "", scope: Base, aliases: Never, sizelimit: 0, timelimit: 0, typesonly: false, filter: Present("objectClass"), attrs: ["supportedExtension"] }), ctrl: [] }
2024-02-18T19:35:34.121463594+00:00  DEBUG       ┝━ 🐛 [debug]: rootDSE request
2024-02-18T19:35:34.121511981+00:00  DEBUG       ┝━ 🐛 [debug]:  | response: SearchResultEntry(LdapSearchResultEntry { dn: "", attributes: [LdapPartialAttribute { atype: "objectClass", vals: ["top"] }, LdapPartialAttribute { atype: "vendorName", vals: ["LLDAP"] }, LdapPartialAttribute { atype: "vendorVersion", vals: ["lldap_0.5.0"] }, LdapPartialAttribute { atype: "supportedLDAPVersion", vals: ["3"] }, LdapPartialAttribute { atype: "supportedExtension", vals: ["1.3.6.1.4.1.4203.1.11.1"] }, LdapPartialAttribute { atype: "supportedControl", vals: [] }, LdapPartialAttribute { atype: "supportedFeatures", vals: ["1.3.6.1.4.1.4203.1.5.1"] }, LdapPartialAttribute { atype: "defaultNamingContext", vals: ["dc=example,dc=com"] }, LdapPartialAttribute { atype: "namingContexts", vals: ["dc=example,dc=com"] }, LdapPartialAttribute { atype: "isGlobalCatalogReady", vals: ["false"] }] })
2024-02-18T19:35:34.121605316+00:00  DEBUG       ┕━ 🐛 [debug]:  | response: SearchResultDone(LdapResult { code: Success, matcheddn: "", message: "", referral: [] })
2024-02-18T19:36:04.278528633+00:00  DEBUG    HTTP request [ 30.3µs | 100.00% ] method: "GET" | uri: "/health"
2024-02-18T19:36:04.278562592+00:00  DEBUG    ┕━ 🐛 [debug]:  | status_code: 200
2024-02-18T19:36:04.277707882+00:00  INFO     LDAP session [ 555µs | 29.70% / 100.00% ]
2024-02-18T19:36:04.277965545+00:00  INFO     ┕━ LDAP request [ 390µs | 70.30% ]
2024-02-18T19:36:04.278000129+00:00  DEBUG       ┝━ 🐛 [debug]:  | msg: LdapMsg { msgid: 0, op: SearchRequest(LdapSearchRequest { base: "", scope: Base, aliases: Never, sizelimit: 0, timelimit: 0, typesonly: false, filter: Present("objectClass"), attrs: ["supportedExtension"] }), ctrl: [] }
2024-02-18T19:36:04.278008098+00:00  DEBUG       ┝━ 🐛 [debug]: rootDSE request
2024-02-18T19:36:04.278087580+00:00  DEBUG       ┝━ 🐛 [debug]:  | response: SearchResultEntry(LdapSearchResultEntry { dn: "", attributes: [LdapPartialAttribute { atype: "objectClass", vals: ["top"] }, LdapPartialAttribute { atype: "vendorName", vals: ["LLDAP"] }, LdapPartialAttribute { atype: "vendorVersion", vals: ["lldap_0.5.0"] }, LdapPartialAttribute { atype: "supportedLDAPVersion", vals: ["3"] }, LdapPartialAttribute { atype: "supportedExtension", vals: ["1.3.6.1.4.1.4203.1.11.1"] }, LdapPartialAttribute { atype: "supportedControl", vals: [] }, LdapPartialAttribute { atype: "supportedFeatures", vals: ["1.3.6.1.4.1.4203.1.5.1"] }, LdapPartialAttribute { atype: "defaultNamingContext", vals: ["dc=example,dc=com"] }, LdapPartialAttribute { atype: "namingContexts", vals: ["dc=example,dc=com"] }, LdapPartialAttribute { atype: "isGlobalCatalogReady", vals: ["false"] }] })
2024-02-18T19:36:04.278272220+00:00  DEBUG       ┕━ 🐛 [debug]:  | response: SearchResultDone(LdapResult { code: Success, matcheddn: "", message: "", referral: [] })
2024-02-18T19:36:12.051257545+00:00  DEBUG    HTTP request [ 310µs | 100.00% ] method: "GET" | uri: "/"
2024-02-18T19:36:12.051534531+00:00  ERROR    ┝━ 🚨 [error]:  | error: Os { code: 2, kind: NotFound, message: "No such file or directory" }
2024-02-18T19:36:12.051588804+00:00  WARN     ┕━ 🚧 [warn]: Error encountered while processing the incoming HTTP request: Os { code: 2, kind: NotFound, message: "No such file or directory" }
Originally created by @HikerBoricua on GitHub (Feb 18, 2024). Original GitHub issue: https://github.com/lldap/lldap/issues/845 Encountering the same issue in docker as #41, pointing a browser to the server's http port results in the title of this note ( #119 has the same title but is not docker-related). I'm unfamiliar with the logs, here's what I have: 1. Dockerfile, also pre-created the /lldap_server/app folders to avoid (inconsequential?) errors on 1st run ```dockerfile # LLDAP from https://github.com/lldap/lldap FROM lldap/lldap:stable # Set the working directory inside the container WORKDIR /lldap_server # Expose the UI and the LDAP ports EXPOSE 3890 17170 ``` 2. Run command (redacted, note the port redirects) `docker run --name lldap_server -p 8002:3890 -p 8003:17170 -v /home/.../lldap_data:/data -v /home/.../lldap_server:/lldap_server lldap_server:next` 3. Output from 1st run ``` [entrypoint] Copying the default config to /data/lldap_config.toml [entrypoint] Edit this file to configure LLDAP. > Setup permissions.. > Starting lldap.. Loading configuration from /data/lldap_config.toml WARNING: Default JWT secret used! This is highly unsafe and can allow attackers to log in as admin. WARNING: Unsecure default admin password is used. 2024-02-18T18:31:50.733443246+00:00 INFO set_up_server [ 222ms | 100.00% ] 2024-02-18T18:31:50.733504237+00:00 INFO ┝━ i [info]: Starting LLDAP version 0.5.0 2024-02-18T18:31:50.831184562+00:00 INFO ┝━ i [info]: Upgrading DB schema from version 1 2024-02-18T18:31:50.831198885+00:00 INFO ┝━ i [info]: Upgrading DB schema to version 2 2024-02-18T18:31:50.861977519+00:00 INFO ┝━ i [info]: Upgrading DB schema to version 3 2024-02-18T18:31:50.897445140+00:00 INFO ┝━ i [info]: Upgrading DB schema to version 4 2024-02-18T18:31:50.920173807+00:00 INFO ┝━ i [info]: Upgrading DB schema to version 5 2024-02-18T18:31:50.957567680+00:00 WARN ┝━ 🚧 [warn]: Could not find lldap_admin group, trying to create it 2024-02-18T18:31:50.975433761+00:00 WARN ┝━ 🚧 [warn]: Could not find lldap_password_manager group, trying to create it 2024-02-18T18:31:50.997296777+00:00 WARN ┝━ 🚧 [warn]: Could not find lldap_strict_readonly group, trying to create it 2024-02-18T18:31:51.016813477+00:00 WARN ┝━ 🚧 [warn]: Could not find an admin user, trying to create the user "admin" with the config-provided password 2024-02-18T18:31:51.275679939+00:00 INFO ┝━ i [info]: Starting the LDAP server on port 3890 2024-02-18T18:31:51.331650070+00:00 INFO ┕━ i [info]: Starting the API/web server on port 17170 2024-02-18T18:31:51.332141386+00:00 INFO i [info]: starting 1 workers 2024-02-18T18:31:51.332167741+00:00 INFO i [info]: Actix runtime found; starting in Actix runtime 2024-02-18T18:31:51.335757009+00:00 INFO i [info]: DB Cleanup Cron started 2024-02-18T18:32:20.845957174+00:00 INFO LDAP session [ 296µs | 49.96% / 100.00% ] 2024-02-18T18:32:20.846118273+00:00 INFO ┕━ LDAP request [ 148µs | 50.04% ] 2024-02-18T18:32:50.998866576+00:00 INFO LDAP session [ 260µs | 40.57% / 100.00% ] 2024-02-18T18:32:50.998977882+00:00 INFO ┕━ LDAP request [ 155µs | 59.43% ] 2024-02-18T18:33:21.136764943+00:00 INFO LDAP session [ 255µs | 45.82% / 100.00% ] 2024-02-18T18:33:21.136862654+00:00 INFO ┕━ LDAP request [ 138µs | 54.18% ] 2024-02-18T18:33:51.286840088+00:00 INFO LDAP session [ 274µs | 43.65% / 100.00% ] 2024-02-18T18:33:51.286954205+00:00 INFO ┕━ LDAP request [ 155µs | 56.35% ] 2024-02-18T18:34:21.454459621+00:00 INFO LDAP session [ 245µs | 43.37% / 100.00% ] ``` 4. Edited lldap_config.toml as reflected in the next output 5. Output from 2nd run, ends with the error when GETting http://192.168.8.232:8003/ (crons continue to run after the error) ``` > Setup permissions.. > Starting lldap.. Loading configuration from /data/lldap_config.toml Configuration: Configuration { ldap_host: "0.0.0.0", ldap_port: 3890, http_host: "0.0.0.0", http_port: 17170, jwt_secret: ***SECRET***, ldap_base_dn: "dc=example,dc=com", ldap_user_dn: UserId( "...redacted...", ), ldap_user_email: "...redacted...", ldap_user_pass: ***SECRET***, database_url: "sqlite:///data/users.db?mode=rwc", ignored_user_attributes: [], ignored_group_attributes: [], verbose: true, key_file: "/data/private_key", key_seed: None, smtp_options: MailOptions { enable_password_reset: false, from: None, reply_to: None, server: "localhost", port: 587, user: "", password: ***SECRET***, smtp_encryption: Tls, tls_required: None, }, ldaps_options: LdapsOptions { enabled: false, port: 6360, cert_file: "cert.pem", key_file: "key.pem", }, http_url: Url { scheme: "http", cannot_be_a_base: false, username: "", password: None, host: Some( Domain( "localhost", ), ), port: None, path: "/", query: None, fragment: None, }, server_setup: None, } 2024-02-18T19:35:04.015437271+00:00 INFO set_up_server [ 6.17ms | 38.43% / 100.00% ] 2024-02-18T19:35:04.015497741+00:00 INFO ┝━ i [info]: Starting LLDAP version 0.5.0 2024-02-18T19:35:04.016652042+00:00 DEBUG ┝━ get_schema_version [ 228µs | 3.69% ] 2024-02-18T19:35:04.017907752+00:00 DEBUG │ ┕━ 🐛 [debug]: | return: Some(SchemaVersion(5)) 2024-02-18T19:35:04.018128747+00:00 DEBUG ┝━ list_groups [ 1.04ms | 16.92% ] filters: Some(DisplayName("lldap_admin")) 2024-02-18T19:35:04.021298934+00:00 DEBUG │ ┕━ 🐛 [debug]: | return: [Group { id: GroupId(1), display_name: "lldap_admin", creation_date: 2024-02-18T18:31:50.957572160, uuid: Uuid("f13be42c-861b-37d4-a3e2-42c8d34879a4"), users: [UserId("admin")], attributes: [] }] 2024-02-18T19:35:04.021317476+00:00 DEBUG ┝━ list_groups [ 1.04ms | 16.77% ] filters: Some(DisplayName("lldap_password_manager")) 2024-02-18T19:35:04.022691470+00:00 DEBUG │ ┕━ 🐛 [debug]: | return: [Group { id: GroupId(2), display_name: "lldap_password_manager", creation_date: 2024-02-18T18:31:50.975436781, uuid: Uuid("6437e582-255a-35ff-baf8-7497400857e6"), users: [], attributes: [] }] 2024-02-18T19:35:04.022717252+00:00 DEBUG ┝━ list_groups [ 594µs | 9.62% ] filters: Some(DisplayName("lldap_strict_readonly")) 2024-02-18T19:35:04.023557326+00:00 DEBUG │ ┕━ 🐛 [debug]: | return: [Group { id: GroupId(3), display_name: "lldap_strict_readonly", creation_date: 2024-02-18T18:31:50.997310944, uuid: Uuid("d7ef7079-0e96-3833-8fe3-c7cf9b5961c1"), users: [], attributes: [] }] 2024-02-18T19:35:04.023586545+00:00 DEBUG ┝━ list_users [ 754µs | 12.22% ] filters: Some(MemberOf("lldap_admin")) | _get_groups: false 2024-02-18T19:35:04.025422739+00:00 DEBUG │ ┕━ 🐛 [debug]: | return: [UserAndGroups { user: User { user_id: UserId("admin"), email: "", display_name: Some("Administrator"), creation_date: 2024-02-18T18:31:51.016838842, uuid: Uuid("6f53bb2b-cf00-3b15-aa00-03b5f80a238b"), attributes: [] }, groups: Some([GroupDetails { group_id: GroupId(1), display_name: "lldap_admin", creation_date: 2024-02-18T18:31:50.957572160, uuid: Uuid("f13be42c-861b-37d4-a3e2-42c8d34879a4"), attributes: [] }]) }] 2024-02-18T19:35:04.026226770+00:00 INFO ┝━ i [info]: Starting the LDAP server on port 3890 2024-02-18T19:35:04.027160857+00:00 DEBUG ┝━ get_jwt_blacklist [ 145µs | 2.34% ] 2024-02-18T19:35:04.027480188+00:00 INFO ┕━ i [info]: Starting the API/web server on port 17170 2024-02-18T19:35:04.027809051+00:00 INFO i [info]: starting 1 workers 2024-02-18T19:35:04.027839625+00:00 INFO i [info]: Actix runtime found; starting in Actix runtime 2024-02-18T19:35:04.030161039+00:00 INFO i [info]: DB Cleanup Cron started 2024-02-18T19:35:34.121755476+00:00 DEBUG HTTP request [ 44.1µs | 100.00% ] method: "GET" | uri: "/health" 2024-02-18T19:35:34.121801259+00:00 DEBUG ┕━ 🐛 [debug]: | status_code: 200 2024-02-18T19:35:34.121255463+00:00 INFO LDAP session [ 376µs | 39.38% / 100.00% ] 2024-02-18T19:35:34.121418749+00:00 INFO ┕━ LDAP request [ 228µs | 60.62% ] 2024-02-18T19:35:34.121452031+00:00 DEBUG ┝━ 🐛 [debug]: | msg: LdapMsg { msgid: 0, op: SearchRequest(LdapSearchRequest { base: "", scope: Base, aliases: Never, sizelimit: 0, timelimit: 0, typesonly: false, filter: Present("objectClass"), attrs: ["supportedExtension"] }), ctrl: [] } 2024-02-18T19:35:34.121463594+00:00 DEBUG ┝━ 🐛 [debug]: rootDSE request 2024-02-18T19:35:34.121511981+00:00 DEBUG ┝━ 🐛 [debug]: | response: SearchResultEntry(LdapSearchResultEntry { dn: "", attributes: [LdapPartialAttribute { atype: "objectClass", vals: ["top"] }, LdapPartialAttribute { atype: "vendorName", vals: ["LLDAP"] }, LdapPartialAttribute { atype: "vendorVersion", vals: ["lldap_0.5.0"] }, LdapPartialAttribute { atype: "supportedLDAPVersion", vals: ["3"] }, LdapPartialAttribute { atype: "supportedExtension", vals: ["1.3.6.1.4.1.4203.1.11.1"] }, LdapPartialAttribute { atype: "supportedControl", vals: [] }, LdapPartialAttribute { atype: "supportedFeatures", vals: ["1.3.6.1.4.1.4203.1.5.1"] }, LdapPartialAttribute { atype: "defaultNamingContext", vals: ["dc=example,dc=com"] }, LdapPartialAttribute { atype: "namingContexts", vals: ["dc=example,dc=com"] }, LdapPartialAttribute { atype: "isGlobalCatalogReady", vals: ["false"] }] }) 2024-02-18T19:35:34.121605316+00:00 DEBUG ┕━ 🐛 [debug]: | response: SearchResultDone(LdapResult { code: Success, matcheddn: "", message: "", referral: [] }) 2024-02-18T19:36:04.278528633+00:00 DEBUG HTTP request [ 30.3µs | 100.00% ] method: "GET" | uri: "/health" 2024-02-18T19:36:04.278562592+00:00 DEBUG ┕━ 🐛 [debug]: | status_code: 200 2024-02-18T19:36:04.277707882+00:00 INFO LDAP session [ 555µs | 29.70% / 100.00% ] 2024-02-18T19:36:04.277965545+00:00 INFO ┕━ LDAP request [ 390µs | 70.30% ] 2024-02-18T19:36:04.278000129+00:00 DEBUG ┝━ 🐛 [debug]: | msg: LdapMsg { msgid: 0, op: SearchRequest(LdapSearchRequest { base: "", scope: Base, aliases: Never, sizelimit: 0, timelimit: 0, typesonly: false, filter: Present("objectClass"), attrs: ["supportedExtension"] }), ctrl: [] } 2024-02-18T19:36:04.278008098+00:00 DEBUG ┝━ 🐛 [debug]: rootDSE request 2024-02-18T19:36:04.278087580+00:00 DEBUG ┝━ 🐛 [debug]: | response: SearchResultEntry(LdapSearchResultEntry { dn: "", attributes: [LdapPartialAttribute { atype: "objectClass", vals: ["top"] }, LdapPartialAttribute { atype: "vendorName", vals: ["LLDAP"] }, LdapPartialAttribute { atype: "vendorVersion", vals: ["lldap_0.5.0"] }, LdapPartialAttribute { atype: "supportedLDAPVersion", vals: ["3"] }, LdapPartialAttribute { atype: "supportedExtension", vals: ["1.3.6.1.4.1.4203.1.11.1"] }, LdapPartialAttribute { atype: "supportedControl", vals: [] }, LdapPartialAttribute { atype: "supportedFeatures", vals: ["1.3.6.1.4.1.4203.1.5.1"] }, LdapPartialAttribute { atype: "defaultNamingContext", vals: ["dc=example,dc=com"] }, LdapPartialAttribute { atype: "namingContexts", vals: ["dc=example,dc=com"] }, LdapPartialAttribute { atype: "isGlobalCatalogReady", vals: ["false"] }] }) 2024-02-18T19:36:04.278272220+00:00 DEBUG ┕━ 🐛 [debug]: | response: SearchResultDone(LdapResult { code: Success, matcheddn: "", message: "", referral: [] }) 2024-02-18T19:36:12.051257545+00:00 DEBUG HTTP request [ 310µs | 100.00% ] method: "GET" | uri: "/" 2024-02-18T19:36:12.051534531+00:00 ERROR ┝━ 🚨 [error]: | error: Os { code: 2, kind: NotFound, message: "No such file or directory" } 2024-02-18T19:36:12.051588804+00:00 WARN ┕━ 🚧 [warn]: Error encountered while processing the incoming HTTP request: Os { code: 2, kind: NotFound, message: "No such file or directory" } ```
kerem closed this issue 2026-02-27 08:16:32 +03:00
Author
Owner

@nitnelave commented on GitHub (Feb 18, 2024):

This usually means that you don't have the app folder next to the binary, with the output of building the frontend. It should contain an index.html, some css, js, and a wasm module (compressed).

<!-- gh-comment-id:1951443175 --> @nitnelave commented on GitHub (Feb 18, 2024): This usually means that you don't have the app folder next to the binary, with the output of building the frontend. It should contain an index.html, some css, js, and a wasm module (compressed).
Author
Owner

@nitnelave commented on GitHub (Feb 18, 2024):

Oh, that might just be the WORKDIR command? I'm not entirely sure right now whether the app folder is searched based on the binary path or the current directory.

<!-- gh-comment-id:1951443462 --> @nitnelave commented on GitHub (Feb 18, 2024): Oh, that might just be the `WORKDIR` command? I'm not entirely sure right now whether the app folder is searched based on the binary path or the current directory.
Author
Owner

@HikerBoricua commented on GitHub (Feb 18, 2024):

My guess is that it is relative to WORKDIR since pre-creating WORKDIR/app/[pkg, static, static/fonts] cured several error messages on 1st run. It is curious, though, that those pre-created folders have remained empty across several runs.

<!-- gh-comment-id:1951451086 --> @HikerBoricua commented on GitHub (Feb 18, 2024): My guess is that it is relative to WORKDIR since pre-creating WORKDIR/app/[pkg, static, static/fonts] cured several error messages on 1st run. It is curious, though, that those pre-created folders have remained empty across several runs.
Author
Owner

@nitnelave commented on GitHub (Feb 18, 2024):

They're not populated by the runtime, they contain the static assets for the frontend. They should be included in the lldap/lldap image.

<!-- gh-comment-id:1951460358 --> @nitnelave commented on GitHub (Feb 18, 2024): They're not populated by the runtime, they contain the static assets for the frontend. They should be included in the lldap/lldap image.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/lldap-lldap#302
No description provided.