Skip to content

root: fix docker compose pg volume path for compatibility with pg18 - #23883

Merged
BeryJu merged 1 commit into
mainfrom
fix-docker-compose-path-for-pg-18
Jul 9, 2026
Merged

BeryJu merged 1 commit into
mainfrom
fix-docker-compose-path-for-pg-18

Conversation

@emilburzo

Copy link
Copy Markdown
Member

Solves:

postgres     | Error: in 18+, these Docker images are configured to store database data in a
postgres     |        format which is compatible with "pg_ctlcluster" (specifically, using
postgres     |        major-version-specific directory names).  This better reflects how
postgres     |        PostgreSQL itself works, and how upgrades are to be performed.
postgres     |
postgres     |        See also https://github.com/docker-library/postgres/pull/1259
postgres     |
postgres     |        Counter to that, there appears to be PostgreSQL data in:
postgres     |          /var/lib/postgresql/data (unused mount/volume)
postgres     |
postgres     |        This is usually the result of upgrading the Docker image without
postgres     |        upgrading the underlying database using "pg_upgrade" (which requires both
postgres     |        versions).
postgres     |
postgres     |        The suggested container configuration for 18+ is to place a single mount
postgres     |        at /var/lib/postgresql which will then place PostgreSQL data in a
postgres     |        subdirectory, allowing usage of "pg_upgrade --link" without mount point
postgres     |        boundary issues.
postgres     |
postgres     |        See https://github.com/docker-library/postgres/issues/37 for a (long)
postgres     |        discussion around this process, and suggestions for how to do so.

Ref: #23812

@emilburzo emilburzo self-assigned this Jul 9, 2026
Copilot AI review requested due to automatic review settings July 9, 2026 15:15
@emilburzo
emilburzo requested a review from a team as a code owner July 9, 2026 15:15
@rissson rissson changed the title fix docker compose pg volume path for compatibility with pg18 root: fix docker compose pg volume path for compatibility with pg18 Jul 9, 2026
@netlify

netlify Bot commented Jul 9, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 7642a77
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a4fbb165415fb00085d7cb3
😎 Deploy Preview https://deploy-preview-23883--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the local development Docker Compose configuration in scripts/ to be compatible with PostgreSQL 18’s recommended data directory layout, avoiding startup errors caused by mounting only /var/lib/postgresql/data.

Changes:

  • Adjust PostgreSQL service volume mount from /var/lib/postgresql/data to /var/lib/postgresql to align with PG18+ expectations.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov

codecov Bot commented Jul 9, 2026 •

Copy link
Copy Markdown

❌ 2 Tests Failed:

Tests completed Failed Passed Skipped
3624 2 3622 1
View the top 2 failed test(s) by shortest run time
tests.e2e.test_provider_ws_fed.TestProviderWSFed::test_sp_initiated_implicit
Stack Traces | 5.34s run time
self = <unittest.case._Outcome object at 0x7f4b9dca2210>
test_case = <tests.e2e.test_provider_ws_fed.TestProviderWSFed testMethod=test_sp_initiated_implicit>
subTest = False

    @contextlib.contextmanager
    def testPartExecutor(self, test_case, subTest=False):
        old_success = self.success
        self.success = True
        try:
>           yield

.../hostedtoolcache/Python/3.14.6........./x64/lib/python3.14/unittest/case.py:58: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tests.e2e.test_provider_ws_fed.TestProviderWSFed testMethod=test_sp_initiated_implicit>
result = <TestCaseFunction test_sp_initiated_implicit>

    def run(self, result=None):
        if result is None:
            result = self.defaultTestResult()
            startTestRun = getattr(result, 'startTestRun', None)
            stopTestRun = getattr(result, 'stopTestRun', None)
            if startTestRun is not None:
                startTestRun()
        else:
            stopTestRun = None
    
        result.startTest(self)
        try:
            testMethod = getattr(self, self._testMethodName)
            if (getattr(self.__class__, "__unittest_skip__", False) or
                getattr(testMethod, "__unittest_skip__", False)):
                # If the class or method was skipped.
                skip_why = (getattr(self.__class__, '__unittest_skip_why__', '')
                            or getattr(testMethod, '__unittest_skip_why__', ''))
                _addSkip(result, self, skip_why)
                return result
    
            expecting_failure = (
                getattr(self, "__unittest_expecting_failure__", False) or
                getattr(testMethod, "__unittest_expecting_failure__", False)
            )
            outcome = _Outcome(result)
            start_time = time.perf_counter()
            try:
                self._outcome = outcome
    
                with outcome.testPartExecutor(self):
>                   self._callSetUp()

.../hostedtoolcache/Python/3.14.6........./x64/lib/python3.14/unittest/case.py:665: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tests.e2e.test_provider_ws_fed.TestProviderWSFed testMethod=test_sp_initiated_implicit>

    def _callSetUp(self):
>       self.setUp()

.../hostedtoolcache/Python/3.14.6........./x64/lib/python3.14/unittest/case.py:612: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tests.e2e.test_provider_ws_fed.TestProviderWSFed testMethod=test_sp_initiated_implicit>

    def setUp(self):
        self.realm = generate_id()
>       super().setUp()

tests/e2e/test_provider_ws_fed.py:24: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tests.e2e.test_provider_ws_fed.TestProviderWSFed testMethod=test_sp_initiated_implicit>

    def setUp(self):
        super().setUp()
>       self.driver = self._get_driver()
                      ^^^^^^^^^^^^^^^^^^

tests/selenium.py:43: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tests.e2e.test_provider_ws_fed.TestProviderWSFed testMethod=test_sp_initiated_implicit>

    def _get_driver(self) -> WebDriver:
        count = 0
        opts = webdriver.ChromeOptions()
        opts.accept_insecure_certs = True
        opts.add_argument("--disable-search-engine-choice-screen")
        opts.add_extension(self._get_chrome_extension())
        # This breaks selenium when running remotely...?
        # opts.set_capability("goog:loggingPrefs", {"browser": "ALL"})
        opts.add_experimental_option(
            "prefs",
            {
                "profile.password_manager_leak_detection": False,
            },
        )
        while count < RETRIES:
            try:
                driver = webdriver.Remote(
                    command_executor="http://localhost:4444/wd/hub",
                    options=opts,
                )
                driver.maximize_window()
                return driver
            except WebDriverException as exc:
                self.logger.warning("Failed to setup webdriver", exc=exc)
                count += 1
>       raise ValueError(f"Webdriver failed after {RETRIES}.")
E       ValueError: Webdriver failed after 3.

tests/selenium.py:72: ValueError
tests.e2e.test_provider_ws_fed.TestProviderWSFed::test_sp_initiated_explicit
Stack Traces | 80.8s run time
self = <unittest.case._Outcome object at 0x7f4ba80b1a90>
test_case = <tests.e2e.test_provider_ws_fed.TestProviderWSFed testMethod=test_sp_initiated_explicit>
subTest = False

    @contextlib.contextmanager
    def testPartExecutor(self, test_case, subTest=False):
        old_success = self.success
        self.success = True
        try:
>           yield

.../hostedtoolcache/Python/3.14.6........./x64/lib/python3.14/unittest/case.py:58: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tests.e2e.test_provider_ws_fed.TestProviderWSFed testMethod=test_sp_initiated_explicit>
result = <TestCaseFunction test_sp_initiated_explicit>

    def run(self, result=None):
        if result is None:
            result = self.defaultTestResult()
            startTestRun = getattr(result, 'startTestRun', None)
            stopTestRun = getattr(result, 'stopTestRun', None)
            if startTestRun is not None:
                startTestRun()
        else:
            stopTestRun = None
    
        result.startTest(self)
        try:
            testMethod = getattr(self, self._testMethodName)
            if (getattr(self.__class__, "__unittest_skip__", False) or
                getattr(testMethod, "__unittest_skip__", False)):
                # If the class or method was skipped.
                skip_why = (getattr(self.__class__, '__unittest_skip_why__', '')
                            or getattr(testMethod, '__unittest_skip_why__', ''))
                _addSkip(result, self, skip_why)
                return result
    
            expecting_failure = (
                getattr(self, "__unittest_expecting_failure__", False) or
                getattr(testMethod, "__unittest_expecting_failure__", False)
            )
            outcome = _Outcome(result)
            start_time = time.perf_counter()
            try:
                self._outcome = outcome
    
                with outcome.testPartExecutor(self):
>                   self._callSetUp()

.../hostedtoolcache/Python/3.14.6........./x64/lib/python3.14/unittest/case.py:665: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tests.e2e.test_provider_ws_fed.TestProviderWSFed testMethod=test_sp_initiated_explicit>

    def _callSetUp(self):
>       self.setUp()

.../hostedtoolcache/Python/3.14.6........./x64/lib/python3.14/unittest/case.py:612: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tests.e2e.test_provider_ws_fed.TestProviderWSFed testMethod=test_sp_initiated_explicit>

    def setUp(self):
        self.realm = generate_id()
>       super().setUp()

tests/e2e/test_provider_ws_fed.py:24: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tests.e2e.test_provider_ws_fed.TestProviderWSFed testMethod=test_sp_initiated_explicit>

    def setUp(self):
        super().setUp()
>       self.driver = self._get_driver()
                      ^^^^^^^^^^^^^^^^^^

tests/selenium.py:43: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tests.e2e.test_provider_ws_fed.TestProviderWSFed testMethod=test_sp_initiated_explicit>

    def _get_driver(self) -> WebDriver:
        count = 0
        opts = webdriver.ChromeOptions()
        opts.accept_insecure_certs = True
        opts.add_argument("--disable-search-engine-choice-screen")
        opts.add_extension(self._get_chrome_extension())
        # This breaks selenium when running remotely...?
        # opts.set_capability("goog:loggingPrefs", {"browser": "ALL"})
        opts.add_experimental_option(
            "prefs",
            {
                "profile.password_manager_leak_detection": False,
            },
        )
        while count < RETRIES:
            try:
                driver = webdriver.Remote(
                    command_executor="http://localhost:4444/wd/hub",
                    options=opts,
                )
                driver.maximize_window()
                return driver
            except WebDriverException as exc:
                self.logger.warning("Failed to setup webdriver", exc=exc)
                count += 1
>       raise ValueError(f"Webdriver failed after {RETRIES}.")
E       ValueError: Webdriver failed after 3.

tests/selenium.py:72: ValueError

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@BeryJu
BeryJu disabled auto-merge July 9, 2026 15:22
@BeryJu
BeryJu merged commit ebca91e into main Jul 9, 2026
102 of 104 checks passed
@BeryJu
BeryJu deleted the fix-docker-compose-path-for-pg-18 branch July 9, 2026 15:22
@github-project-automation github-project-automation Bot moved this from In Progress to Done in authentik Core Jul 9, 2026
kensternberg-authentik added a commit that referenced this pull request Jul 9, 2026
* main: (34 commits)
  lifecycle/container: increase start time to 120s (#23896)
  ci: fix fork checks (#23894)
  root: fix docker compose pg volume path for compatibility with pg18 (#23883)
  ci: better image building (#23359)
  core: bump library/postgres from 16 to 18 in /scripts (#23812)
  core: Form friendly error on uniqueness constraint. (#23864)
  packages: migrate shared pins to the pnpm catalog: protocol (#23784)
  core, web: update translations (#23863)
  core: bump github.com/coreos/go-oidc/v3 from 3.19.0 to 3.20.0 (#23867)
  core: bump github.com/pires/go-proxyproto from 0.13.0 to 0.14.0 (#23868)
  core: bump golang.org/x/sync from 0.21.0 to 0.22.0 (#23866)
  core: bump library/node from `a1d9d67` to `ffc7838` in /lifecycle/container (#23871)
  core: bump axllent/mailpit from v1.30.3 to v1.30.4 in /tests/e2e (#23869)
  core: bump goauthentik/fips-python from `0d4cd1a` to `80d28af` in /lifecycle/container (#23872)
  core: bump library/golang from `756f3b7` to `ee5a795` in /lifecycle/container (#23873)
  core: bump library/node from 26.4.0-trixie to 26.5.0-trixie in /website (#23874)
  web: fix table refresh button not refreshing table data (#23780)
  endpoints: handle exception in connector controller sync setup (#23852)
  internal/outpost/ak: handle empty outpost list during refresh (#23827)
  web/admin/stages/captcha: fix float values in score tresholds fix provider parsing (#22782)
  ...
kensternberg-authentik added a commit that referenced this pull request Jul 9, 2026
* web/cleanup/task-card: (35 commits)
  Just trying to make life a little better.
  lifecycle/container: increase start time to 120s (#23896)
  ci: fix fork checks (#23894)
  root: fix docker compose pg volume path for compatibility with pg18 (#23883)
  ci: better image building (#23359)
  core: bump library/postgres from 16 to 18 in /scripts (#23812)
  core: Form friendly error on uniqueness constraint. (#23864)
  packages: migrate shared pins to the pnpm catalog: protocol (#23784)
  core, web: update translations (#23863)
  core: bump github.com/coreos/go-oidc/v3 from 3.19.0 to 3.20.0 (#23867)
  core: bump github.com/pires/go-proxyproto from 0.13.0 to 0.14.0 (#23868)
  core: bump golang.org/x/sync from 0.21.0 to 0.22.0 (#23866)
  core: bump library/node from `a1d9d67` to `ffc7838` in /lifecycle/container (#23871)
  core: bump axllent/mailpit from v1.30.3 to v1.30.4 in /tests/e2e (#23869)
  core: bump goauthentik/fips-python from `0d4cd1a` to `80d28af` in /lifecycle/container (#23872)
  core: bump library/golang from `756f3b7` to `ee5a795` in /lifecycle/container (#23873)
  core: bump library/node from 26.4.0-trixie to 26.5.0-trixie in /website (#23874)
  web: fix table refresh button not refreshing table data (#23780)
  endpoints: handle exception in connector controller sync setup (#23852)
  internal/outpost/ak: handle empty outpost list during refresh (#23827)
  ...
kensternberg-authentik added a commit that referenced this pull request Jul 9, 2026
* web/cleanup/task-card-3: (38 commits)
  Just trying to make life a little better.
  web/bug: harmonize and make routine the display of tasks (part 3: problem children)
  Just trying to make life a little better.
  Just trying to make life a little better.
  lifecycle/container: increase start time to 120s (#23896)
  ci: fix fork checks (#23894)
  root: fix docker compose pg volume path for compatibility with pg18 (#23883)
  ci: better image building (#23359)
  core: bump library/postgres from 16 to 18 in /scripts (#23812)
  core: Form friendly error on uniqueness constraint. (#23864)
  packages: migrate shared pins to the pnpm catalog: protocol (#23784)
  core, web: update translations (#23863)
  core: bump github.com/coreos/go-oidc/v3 from 3.19.0 to 3.20.0 (#23867)
  core: bump github.com/pires/go-proxyproto from 0.13.0 to 0.14.0 (#23868)
  core: bump golang.org/x/sync from 0.21.0 to 0.22.0 (#23866)
  core: bump library/node from `a1d9d67` to `ffc7838` in /lifecycle/container (#23871)
  core: bump axllent/mailpit from v1.30.3 to v1.30.4 in /tests/e2e (#23869)
  core: bump goauthentik/fips-python from `0d4cd1a` to `80d28af` in /lifecycle/container (#23872)
  core: bump library/golang from `756f3b7` to `ee5a795` in /lifecycle/container (#23873)
  core: bump library/node from 26.4.0-trixie to 26.5.0-trixie in /website (#23874)
  ...
kensternberg-authentik added a commit that referenced this pull request Jul 9, 2026
…card-2

* web/cleanup/schedule-card-1: (38 commits)
  Just trying to make life a little better.
  web/bug: harmonize and make routine the display of tasks (part 3: problem children)
  Just trying to make life a little better.
  Just trying to make life a little better.
  lifecycle/container: increase start time to 120s (#23896)
  ci: fix fork checks (#23894)
  root: fix docker compose pg volume path for compatibility with pg18 (#23883)
  ci: better image building (#23359)
  core: bump library/postgres from 16 to 18 in /scripts (#23812)
  core: Form friendly error on uniqueness constraint. (#23864)
  packages: migrate shared pins to the pnpm catalog: protocol (#23784)
  core, web: update translations (#23863)
  core: bump github.com/coreos/go-oidc/v3 from 3.19.0 to 3.20.0 (#23867)
  core: bump github.com/pires/go-proxyproto from 0.13.0 to 0.14.0 (#23868)
  core: bump golang.org/x/sync from 0.21.0 to 0.22.0 (#23866)
  core: bump library/node from `a1d9d67` to `ffc7838` in /lifecycle/container (#23871)
  core: bump axllent/mailpit from v1.30.3 to v1.30.4 in /tests/e2e (#23869)
  core: bump goauthentik/fips-python from `0d4cd1a` to `80d28af` in /lifecycle/container (#23872)
  core: bump library/golang from `756f3b7` to `ee5a795` in /lifecycle/container (#23873)
  core: bump library/node from 26.4.0-trixie to 26.5.0-trixie in /website (#23874)
  ...
kensternberg-authentik added a commit that referenced this pull request Jul 9, 2026
…card-3-problem-children

* web/cleanup/schedule-card-2: (39 commits)
  Just trying to make life a little better.
  Just trying to make life a little better.
  web/bug: harmonize and make routine the display of tasks (part 3: problem children)
  Just trying to make life a little better.
  Just trying to make life a little better.
  lifecycle/container: increase start time to 120s (#23896)
  ci: fix fork checks (#23894)
  root: fix docker compose pg volume path for compatibility with pg18 (#23883)
  ci: better image building (#23359)
  core: bump library/postgres from 16 to 18 in /scripts (#23812)
  core: Form friendly error on uniqueness constraint. (#23864)
  packages: migrate shared pins to the pnpm catalog: protocol (#23784)
  core, web: update translations (#23863)
  core: bump github.com/coreos/go-oidc/v3 from 3.19.0 to 3.20.0 (#23867)
  core: bump github.com/pires/go-proxyproto from 0.13.0 to 0.14.0 (#23868)
  core: bump golang.org/x/sync from 0.21.0 to 0.22.0 (#23866)
  core: bump library/node from `a1d9d67` to `ffc7838` in /lifecycle/container (#23871)
  core: bump axllent/mailpit from v1.30.3 to v1.30.4 in /tests/e2e (#23869)
  core: bump goauthentik/fips-python from `0d4cd1a` to `80d28af` in /lifecycle/container (#23872)
  core: bump library/golang from `756f3b7` to `ee5a795` in /lifecycle/container (#23873)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants