8000 ptpd2 shuts down when reloading config with preset=masterslave (parseConfig returned NULL ) · Issue #108 · ptpd/ptpd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
ptpd2 shuts down when reloading config with preset=masterslave (parseConfig returned NULL ) #108
Open
@lilyahtzee

Description

@lilyahtzee

I'm using a config file with the following

; PTP domain
ptpengine:domain = 1

; available presets are slaveonly, masteronly and masterslave (full IEEE 1588 implementation)
ptpengine:preset = masterslave

If I reload the config and ptpengine:preset=masterslave, ptpd shuts down. If I enable logging, i get the following error:

2024-02-07 15:30:26.086396 ptpd2[2365].enp0s31f6 (notice)    (mst) SIGHUP received
2024-02-07 15:30:26.086440 ptpd2[2365].enp0s31f6 (notice)    (mst) Reloading configuration file: /some/path
2024-02-07 15:30:26.086555 ptpd2[2365].enp0s31f6 (info)      (mst) Checking configuration
2024-02-07 15:30:26.086797 ptpd2[2365].enp0s31f6 (info)      (mst) Configuration OK
2024-02-07 15:30:26.087218 ptpd2[2365].enp0s31f6 (critical)  (mst) ************ ptpd2: parseConfig returned NULL during config commit  - this is a BUG - report the following: 
2024-02-07 15:30:26.087225 ptpd2[2365].enp0s31f6 (info)      (mst) Checking configuration
2024-02-07 15:30:26.087235 ptpd2[2365].enp0s31f6 (error)     (mst) Configuration error: option "ptpengine:preset=masterslave" cannot be used with option "ptpengine:unicast_negotiation"
2024-02-07 15:30:26.087637 ptpd2[2365].enp0s31f6 (error)     (mst) There are errors in the configuration - see previous messages
2024-02-07 15:30:26.087647 ptpd2[2365].enp0s31f6 (critical)  (mst) *****************ptpd2 shutting down **********************

Restarting the daemon fixes the issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0