snmp-agent.service: Main process exited

Description

Upgraded from TrueNAS CORE 12.0-U8 to SCALE 22.02.0.
After upgrade SNMP failed to start, changing config settings in the UI is not helping.

Feb 24 20:35:07 freenas systemd[1]: snmp-agent.service: Main process exited, code=exited, status=1/FAILURE
Feb 24 20:35:07 freenas systemd[1]: snmp-agent.service: Failed with result 'exit-code'.
Feb 24 20:35:17 freenas systemd[1]: snmp-agent.service: Scheduled restart job, restart counter is at 47.
Feb 24 20:35:17 freenas systemd[1]: Stopped SNMP Agent.
Feb 24 20:35:17 freenas systemd[1]: Started SNMP Agent.
Feb 24 20:35:18 freenas snmp-agent.py[19291]: Traceback (most recent call last):
Feb 24 20:35:18 freenas snmp-agent.py[19291]: File "/usr/local/bin/snmp-agent.py", line 300, in
Feb 24 20:35:18 freenas snmp-agent.py[19291]: interface_top_host_table = agent.Table(
Feb 24 20:35:18 freenas snmp-agent.py[19291]: File "/usr/lib/python3/dist-packages/netsnmpagent.py", line 927, in Table
Feb 24 20:35:18 freenas snmp-agent.py[19291]: return Table(oidstr, indexes, columns, counterobj, extendable, context)
Feb 24 20:35:18 freenas snmp-agent.py[19291]: File "/usr/lib/python3/dist-packages/netsnmpagent.py", line 714, in _init_
Feb 24 20:35:18 freenas snmp-agent.py[19291]: self._handler_reginfo = agent._prepareRegistration(
Feb 24 20:35:18 freenas snmp-agent.py[19291]: File "/usr/lib/python3/dist-packages/netsnmpagent.py", line 365, in _prepareRegistration
Feb 24 20:35:18 freenas snmp-agent.py[19291]: raise netsnmpAgentException("read_objid({0}) failed!".format(oidstr))
Feb 24 20:35:18 freenas snmp-agent.py[19291]: netsnmpagent.netsnmpAgentException: read_objid(FREENAS-MIB::interfaceTopHostTable) failed!
Feb 24 20:35:18 freenas systemd[1]: snmp-agent.service: Main process exited, code=exited, status=1/FAILURE
Feb 24 20:35:18 freenas systemd[1]: snmp-agent.service: Failed with result 'exit-code'.

Problem/Justification

None

Impact

None

Activity

Show:

Bug Clerk 
February 25, 2022 at 5:25 PM

Bug Clerk 
February 25, 2022 at 3:10 PM

Bug Clerk 
February 25, 2022 at 3:06 PM

Bonnie Follweiler 
February 24, 2022 at 7:45 PM

Thank you for your ticket submission .

This ticket is now in our queue to review.

An engineering representative will update with any further questions or details in the near future.

Marc Hagen 
February 24, 2022 at 7:43 PM
(edited)

Also, but that should be a separate issue i guess, NFS is failing to start. Because TrueNAS CORE uses wheel as "root group" and TrueNAS SCALE has root as "root group".

[2022/02/24 20:41:29] (ERROR) EtcService.generate():386 - Failed to render mako:exports Traceback (most recent call last):   File "/tmp/mako/usr/lib/python3/dist-packages/middlewared/etc_files/exports.mako.py", line 74, in generate_options     maproot = do_map(share, "maproot")   File "/tmp/mako/usr/lib/python3/dist-packages/middlewared/etc_files/exports.mako.py", line 38, in do_map     gid = middleware.call_sync(   File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1334, in call_sync     return self.run_coroutine(methodobj(*prepared_call.args))   File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1374, in run_coroutine     return fut.result()   File "/usr/lib/python3.9/concurrent/futures/_base.py", line 433, in result     return self.__get_result()   File "/usr/lib/python3.9/concurrent/futures/_base.py", line 389, in __get_result     raise self._exception   File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1261, in nf     return await func(*args, **kwargs)   File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1129, in nf     res = await f(*args, **kwargs)   File "/usr/lib/python3/dist-packages/middlewared/plugins/account.py", line 1486, in get_group_obj     return await self.middleware.call('dscache.get_uncached_group', data['groupname'], data['gid'])   File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1318, in call     return await self._call(   File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1286, in _call     return await self.run_in_executor(prepared_call.executor, methodobj, *prepared_call.args)   File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1186, in run_in_executor     return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))   File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run     result = self.fn(*self.args, **self.kwargs)   File "/usr/lib/python3/dist-packages/middlewared/plugins/cache.py", line 381, in get_uncached_group     g = grp.getgrnam(groupname) KeyError: "getgrnam(): name not found: 'wheel'"
Complete

Details

Assignee

Reporter

Labels

Time remaining

0m

Components

Affects versions

Priority

Katalon Platform

Created February 24, 2022 at 7:36 PM
Updated July 1, 2022 at 5:53 PM
Resolved February 25, 2022 at 5:32 PM