Thanks for using the TrueNAS Community Edition issue tracker! TrueNAS Enterprise users receive direct support for their reports from our support portal.

UnboundLocalError - cannot access local variable 'stdout'

Description

Upgraded 22.12.3 to 23.10-BETA.1 and I get an error whenever accessing the Network page.

Error: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/middlewared/main.py", line 213, in call_method result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1372, 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 1271, in run_in_executor return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 50, in nf res = f(*args, **kwargs) ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 181, in nf return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/middlewared/plugins/ipmi_/lan.py", line 64, in query for i in filter(lambda x: x.startswith('\t') and not x.startswith('\t#'), stdout.split('\n')): ^^^^^^ UnboundLocalError: cannot access local variable 'stdout' where it is not associated with a value

Problem/Justification

None

Impact

None

Activity

Show:

Bug Clerk August 21, 2023 at 11:57 AM

Automation for Jira August 21, 2023 at 11:57 AM

This issue has now been closed. Comments made after this point may not be viewed by the TrueNAS Teams. Please open a new issue if you have found a problem or need to re-engage with the TrueNAS Engineering Teams.

Bug Clerk August 21, 2023 at 11:27 AM

dbell August 18, 2023 at 5:08 PM

Debug file

 

Automation for Jira August 18, 2023 at 5:07 PM

Thank you for submitting this TrueNAS Bug Report! So that we can quickly investigate your issue, please attach a Debug file and any other information related to this issue through our secure and private upload service below. Debug files can be generated in the UI by navigating to System -> Advanced -> Save Debug.

https://ixsystems.atlassian.net/servicedesk/customer/portal/15/group/37/create/153

Complete

Details

Assignee

Reporter

Labels

Impact

Low

Original estimate

Time remaining

0m

Components

Affects versions

Priority

Katalon Platform

Created August 18, 2023 at 5:07 PM
Updated February 27, 2025 at 9:15 PM
Resolved August 21, 2023 at 11:58 AM

Flag notifications