[MacPorts] #63904: rabbitmq-server 3.8.3: rabbitmq group created with wrong gid

MacPorts noreply at macports.org
Wed Nov 10 19:00:45 UTC 2021


#63904: rabbitmq-server 3.8.3: rabbitmq group created with wrong gid
------------------------+-----------------------------
 Reporter:  knightcode  |      Owner:  (none)
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.7.1
 Keywords:  rabbitmq    |       Port:  rabbitmq-server
------------------------+-----------------------------
 After installing, the mnesia folders are owned by a group with ID 505,
 which doesn't map to a known group:
 {{{
 $ ls -la /opt/local/var/lib/rabbitmq/mnesia/
 total 16
 drwxrwxr-x   7 root      505       224 Nov  9 13:03 ./
 drwxrwxr-x   4 rabbitmq  505       128 Aug  7 18:05 ../
 -rw-r--r--   1 root      rabbitmq    0 Nov  9 13:03 .turd_rabbitmq-server
 drwxr-xr-x  21 rabbitmq  505       672 Nov  5 20:03 percical/
 -rw-r--r--   1 rabbitmq  505       112 Aug  7 19:01 percical-feature_flags
 drwxr-xr-x   2 rabbitmq  505        64 Nov  6 20:32 percical-plugins-
 expand/
 -rw-r--r--   1 rabbitmq  505         6 Nov 10 13:41 percical.pid
 }}}

 The rabbitmq group has a different ID:
 {{{
 $ sudo dscl . -read /Groups/rabbitmq
 dsAttrTypeNative:record_daemon_version: 7970000
 AppleMetaNodeLocation: /Local/Default
 GeneratedUID: 894CACDC-53B7-4B5B-AF79-BF5BAFDCDF62
 GroupMembers: C5EDE282-BB6C-49FF-9EC7-CC194D3CA493
 GroupMembership: rabbitmq
 Password: *
 PrimaryGroupID: 2147483647
 RealName: rabbitmq
 RecordName: rabbitmq
 RecordType: dsRecTypeStandard:Groups
 }}}

 As a result, the server fails to start properly.

 I can fix this by changing the groups ID to 505:

 {{{
 $ sudo dscl . -change /Groups/rabbitmq PrimaryGroupID 2147483647 505
 }}}

 then the ownership matches up and the server starts:

 {{{
 $ ls -la /opt/local/var/lib/rabbitmq/mnesia/
 total 16
 drwxrwxr-x   7 root      rabbitmq    224 Nov 10 13:56 ./
 drwxrwxr-x   4 rabbitmq  rabbitmq    128 Aug  7 18:05 ../
 -rw-r--r--   1 root      2147483647    0 Nov  9 13:03 .turd_rabbitmq-
 server
 drwxr-xr-x  19 rabbitmq  rabbitmq    608 Nov 10 13:56 percical/
 -rw-r--r--   1 rabbitmq  rabbitmq    112 Aug  7 19:01 percical-
 feature_flags
 drwxr-xr-x   8 rabbitmq  rabbitmq    256 Nov 10 13:56 percical-plugins-
 expand/
 -rw-r--r--   1 rabbitmq  rabbitmq      6 Nov 10 13:56 percical.pid
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/63904>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list