Giter Site home page Giter Site logo

libreto's Introduction

Hi 👋

libreto's People

Contributors

kresnasatya avatar wardanaa avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

wardanaa

libreto's Issues

Docker macOS (Apple Silicon): ds_systemd_ask_password_acl[494]: setfacl: /var/run/systemd/ask-password: Operation not supported

Fail after create LDAP instance in 9 389 Directory Server Container in Docker Desktop 4.17.0 macOS.

almalinux-389-ds-macos-failed

Here's the result I get in terminal container with command systemctl status dirsrv@companytest.

× [email protected] - 389 Directory Server companytest.
     Loaded: loaded (/usr/lib/systemd/system/[email protected]; enabled; vendor preset: disabled)
    Drop-In: /usr/lib/systemd/system/[email protected]
             └─custom.conf
     Active: failed (Result: exit-code) since Tue 2023-03-07 10:12:01 UTC; 4min 26s ago
    Process: 490 ExecStartPre=/usr/libexec/dirsrv/ds_systemd_ask_password_acl /etc/dirsrv/slapd-companytest/dse.ldif (code=exited, statu>
        CPU: 29ms

Mar 07 10:12:01 728da1863072 systemd[1]: Starting 389 Directory Server companytest....
Mar 07 10:12:01 728da1863072 ds_systemd_ask_password_acl[494]: setfacl: /var/run/systemd/ask-password: Operation not supported
Mar 07 10:12:01 728da1863072 systemd[1]: [email protected]: Control process exited, code=exited, status=1/FAILURE
Mar 07 10:12:01 728da1863072 systemd[1]: [email protected]: Failed with result 'exit-code'.
Mar 07 10:12:01 728da1863072 systemd[1]: Failed to start 389 Directory Server companytest..
lines 1-13/13 (END)

But, when I test it in Docker Desktop 4.17.0 Windows 10 (WSL2) it works well. Here's the result I get in terminal container with command systemctl status dirsrv@companytest.

[email protected] - 389 Directory Server companytest.
     Loaded: loaded (/usr/lib/systemd/system/[email protected]; enabled; vendor preset: disabled)
    Drop-In: /usr/lib/systemd/system/[email protected]
             └─custom.conf
     Active: active (running) since Tue 2023-03-07 09:48:48 UTC; 1min 51s ago
    Process: 129 ExecStartPre=/usr/libexec/dirsrv/ds_systemd_ask_password_acl /etc/dirsrv/slapd-companytest/dse.ldif (code=exited, status=0/SUCCESS)
    Process: 157 ExecStartPre=/usr/libexec/dirsrv/ds_selinux_restorecon.sh /etc/dirsrv/slapd-companytest/dse.ldif (code=exited, status=0/SUCCESS)
   Main PID: 167 (ns-slapd)
     Status: "slapd started: Ready to process requests"
     CGroup: /docker/215698f5dda87dc815076caa294ead35c8007942f832cb17a00b92f5c1fa1dcc/system.slice/system-dirsrv.slice/[email protected]
             └─167 /usr/sbin/ns-slapd -D /etc/dirsrv/slapd-companytest -i /run/dirsrv/slapd-companytest.pid

Mar 07 09:48:47 215698f5dda8 ns-slapd[167]: [07/Mar/2023:09:48:47.717684500 +0000] - NOTICE - bdb_start_autotune - cache autosizing: db cache: 251784k
Mar 07 09:48:47 215698f5dda8 ns-slapd[167]: [07/Mar/2023:09:48:47.728024400 +0000] - NOTICE - bdb_start_autotune - cache autosizing: companyldap entry cache (1 total): 720896k
Mar 07 09:48:47 215698f5dda8 ns-slapd[167]: [07/Mar/2023:09:48:47.739097500 +0000] - NOTICE - bdb_start_autotune - cache autosizing: companyldap dn cache (1 total): 131072k
Mar 07 09:48:47 215698f5dda8 ns-slapd[167]: [07/Mar/2023:09:48:47.749902700 +0000] - NOTICE - bdb_start_autotune - total cache size: 1212894617 B;
Mar 07 09:48:47 215698f5dda8 ns-slapd[167]: [07/Mar/2023:09:48:47.771539800 +0000] - NOTICE - bdb_start - Detected Disorderly Shutdown last time Directory Server was running, recovering database.
Mar 07 09:48:48 215698f5dda8 ns-slapd[167]: [07/Mar/2023:09:48:48.639641300 +0000] - INFO - slapd_daemon - slapd started.  Listening on All Interfaces port 389 for LDAP requests
Mar 07 09:48:48 215698f5dda8 ns-slapd[167]: [07/Mar/2023:09:48:48.648379300 +0000] - INFO - slapd_daemon - Listening on All Interfaces port 636 for LDAPS requests
Mar 07 09:48:48 215698f5dda8 ns-slapd[167]: [07/Mar/2023:09:48:48.657368000 +0000] - INFO - slapd_daemon - Listening on /run/slapd-companytest.socket for LDAPI requests
Mar 07 09:48:48 215698f5dda8 systemd[1]: Started 389 Directory Server companytest..
Mar 07 09:48:51 215698f5dda8 ns-slapd[167]: [07/Mar/2023:09:48:51.641680400 +0000] - INFO - vattr_check_thread - No role/cos definition in dc=company,dc=com

If you see result each other, in Windows it shows CGroup and macOS doesn't. I was think that it's the root cause. I check since Docker Desktop version 4.3.0 it change cgroup from v1 to v2: https://docs.docker.com/desktop/release-notes/#430.

Here's the command I use to create that container in macOS.

docker run -itd -p 9090:9090/tcp -p 389:389/tcp -p 636:636/tcp --name=almalinux9-389-ds --privileged --cgroupns=host -v /sys/fs/cgroup:/sys/fs/cgroup:rw kresnasatya/almalinux-389ds:1.0 /usr/sbin/init

Notes

× [email protected] - 389 Directory Server unudldaptest.
     Loaded: loaded (/usr/lib/systemd/system/[email protected]; enabled; vendor preset: disabled)
    Drop-In: /usr/lib/systemd/system/[email protected]
             └─custom.conf
     Active: failed (Result: exit-code) since Tue 2023-03-07 06:47:54 UTC; 1min 21s ago
    Process: 628 ExecStartPre=/usr/libexec/dirsrv/ds_systemd_ask_password_acl /etc/dirsrv/slapd-unudldaptest/dse.ldif (code=exited, status=1/FAILURE)
        CPU: 36ms

Mar 07 06:47:54 68d6b6a02097 systemd[1]: Starting 389 Directory Server unudldaptest....
Mar 07 06:47:54 68d6b6a02097 ds_systemd_ask_password_acl[632]: setfacl: /var/run/systemd/ask-password: Operation not supported
Mar 07 06:47:54 68d6b6a02097 systemd[1]: [email protected]: Control process exited, code=exited, status=1/FAILURE
Mar 07 06:47:54 68d6b6a02097 systemd[1]: [email protected]: Failed with result 'exit-code'.
Mar 07 06:47:54 68d6b6a02097 systemd[1]: Failed to start 389 Directory Server unudldaptest..

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.