Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-39931

GitLab CI: main.socket_conflict fails when running as root in container

    XMLWordPrintable

Details

    • Not for Release Notes

    Description

      The test main.socket_conflict fails in GitLab CI because it attempts to start mariadbd which refuses to run as root:

      main.socket_conflict                     w7 [ fail ]
              Test ended at 2026-06-08 20:52:08
      CURRENT_TEST: main.socket_conflict
      2026-06-08 20:52:04 0 [Warning] Could not increase number of max_open_files to more than 1024 (request: 32184)
      2026-06-08 20:52:04 0 [Warning] Changed limits: max_open_files: 1024  max_connections: 151 (was 151)  table_cache: 421 (was 2000)
      /usr/sbin/mariadbd: Please consult the Knowledge Base to find out how to run mysqld as root!
      2026-06-08 20:52:04 0 [ERROR] Aborting
      Can't open file /usr/share/mariadb-test/var/tmp/7/socket_conflict.err: No such file or directory at /usr/share/mariadb-test/var/7/tmpkK3xbo line 14.
      mysqltest: In included file "./include/search_pattern_in_file.inc": 
      included from /usr/share/mariadb-test/main/socket_conflict.test at line 45:
      At line 65: command "perl" failed with error: 2  my_errno: 175  errno: 175
      The result from queries just before the failure was:
      #
      # MDEV-5479: Prevent mysqld from unlinking a Unix socket
      #            file actively used by another process
      #
      #
      # Test 1: Server must refuse to start when a listener is
      #         already present on the socket path
      #
      

      This is the same class of issue as MDEV-30002 (main.bad_startup_options).

      Affects all branches that define this test (10.11+).

      Attachments

        Issue Links

          Activity

            People

              danblack Daniel Black
              farihais Fariha Shaikh
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.