Bug 254056 - net-mgmt/net-snmp Error 2 (No such file or directory) could not get the assoclist
Summary: net-mgmt/net-snmp Error 2 (No such file or directory) could not get the assoc...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-06 07:24 UTC by Christos Chatzaras
Modified: 2021-03-08 13:55 UTC (History)
1 user (show)

See Also:


Attachments
sctp-mib disabled by default patch (1.47 KB, text/plain)
2021-03-06 13:52 UTC, Ryan Steinmetz
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christos Chatzaras 2021-03-06 07:24:42 UTC
After upgrading from 12.2 to 13.0-RC1 when I restart/start snmpd runs correctly but it shows:

"Error 2 (No such file or directory) could not get the assoclist"

As there is no "sysctl net.inet.sctp" in my system after the upgrade I believe it's the same issue reported here:

https://sourceforge.net/p/net-snmp/bugs/2311/
Comment 1 Christos Chatzaras 2021-03-06 07:48:55 UTC
This commit removes SCTP from kernel configuration:

https://cgit.freebsd.org/src/commit/?id=e64080e79c53f2952c5a77c6402cd2473cd45d8c

SCTP can be enabled by loading the module:

kldload sctp

As the default 13.0 setting is to not load SCTP I think many people will notice this message after 13.0 is released.
Comment 2 Ryan Steinmetz freebsd_committer freebsd_triage 2021-03-06 13:52:51 UTC
Created attachment 223024 [details]
sctp-mib disabled by default patch

Would you mind testing the attached patch?  It should convert SCTP support to an OPTION and make it off by default.
Comment 3 Christos Chatzaras 2021-03-06 16:40:46 UTC
Yes the patch works. Thank you.
Comment 4 commit-hook freebsd_committer freebsd_triage 2021-03-08 13:55:57 UTC
A commit references this bug:

Author: zi
Date: Mon Mar  8 13:55:18 UTC 2021
New revision: 567846
URL: https://svnweb.freebsd.org/changeset/ports/567846

Log:
  - Move SCTP support to an OPTION, off by default, to reflect 13.x changes
  - Bump PORTREVISION

  PR:		254056

Changes:
  head/net-mgmt/net-snmp/Makefile