Skip to content

crash on macOS when client connects to server with afpstats enabled #2358

@EricFromCanada

Description

@EricFromCanada

Describe the bug

While attempting to get afpstats working on macOS, I found that afpd often crashes when a client connects to a server that has afpstats = yes set, whether dbus is running or not.

To Reproduce

  1. Install netatalk from Homebrew
  2. set afpstats = yes in [Global] of afp.conf
  3. ensure dbus is not running
  4. sudo netatalkd start
  5. (optional) run afpstats to get error: org.freedesktop.DBus.Error.NoServer: Failed to connect to socket /opt/homebrew/var/run/dbus/system_bus_socket: Connection refused
  6. from another Mac: connect to the server

Expected/Actual behavior

  • expected: The client Mac would connect.
  • actual: The client Mac gives "There was a problem connecting to the server" right after authenticating, and afpd sometimes crashes on the server

Simply removing afpstats = yes allows netatalk to work properly.

Environment

  • Server OS: macOS Sonoma arm64
  • Client OS: macOS Monterey x86_64
  • Netatalk Version: 4.3.0

Configuration

[Global]
log file = /var/log/netatalk.log
log level = default:maxdebug
afpstats = yes

[Homes]
basedir regex = /Users

Logs

see attachments

afpd crash.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions