question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception retrieving extension handlers: local variable 'goal_state' referenced before assignment

See original GitHub issue

I discovered this in 2.2.21.

Exception retrieving extension handlers: local variable 'goal_state' referenced before assignment  Exception retrieving extension handlers: [ProtocolError] Exceeded max retry updating goal state

It is unclear if this issue has existed previous to 2.2.21, or if it is new. Based on my review it appears to have existed previous to this version.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
vrdmrcommented, Jan 21, 2020

Looks like #1691 seems to solve the issue. No new occurrence in 2.2.46 version. Closing the issue. If it returns, will reopen the issue.

0reactions
vrdmrcommented, Nov 1, 2019

Most of the goal_state variable name issue was resolved by #1392 and now the new ones as seen in the newer agents are seen in get_ext_conf()

Example messages from Telemetry:

Exception retrieving extension handlers: local variable 'goal_state' referenced before assignment 
[
<FrameSummary file /usr/lib/python3/dist-packages/azurelinuxagent/ga/exthandlers.py, line 219 in run>, 
<FrameSummary file /usr/lib/python3/dist-packages/azurelinuxagent/common/protocol/wire.py, line 153 in get_ext_handlers>,
<FrameSummary file /usr/lib/python3/dist-packages/azurelinuxagent/common/protocol/wire.py, line 894 in get_ext_conf>
]
Exception processing extension handlers: local variable 'goal_state' referenced before assignment [
 <FrameSummary file /usr/lib/python3/dist-packages/azurelinuxagent/ga/exthandlers.py, line 253 in run>,
 <FrameSummary file /usr/lib/python3/dist-packages/azurelinuxagent/ga/exthandlers.py, line 514 in report_ext_handlers_status>,
 <FrameSummary file /usr/lib/python3/dist-packages/azurelinuxagent/common/protocol/wire.py, line 192 in report_vm_status>,
 <FrameSummary file /usr/lib/python3/dist-packages/azurelinuxagent/common/protocol/wire.py, line 1018 in upload_status_blob>,
 <FrameSummary file /usr/lib/python3/dist-packages/azurelinuxagent/common/protocol/wire.py, line 894 in get_ext_conf>]
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Local Variable Referenced Before Assignment ...
If you run this code, you'll get UnboundLocalError: local variable 'value' referenced before assignment. The issue is that in this line:
Read more >
Why does PyCharm think that this variable may be referenced ...
When the method is as follows Pycharm does not think that the response variable may be referenced before assignment:
Read more >
Troubleshooting Azure Windows VM extension failures
Extension handlers inside the VM are writing to a status file (eg. "/var/lib/waagent/Microsoft.Azure.Extensions.
Read more >
`local variable 'traceback' referenced before assignment when ...
When attempting to run a file via an ssh interpreter, I get the following error: ``` During handling of the above exception, another......
Read more >
SPSSINC MODIFY TABLES extension not working - Forums
... version installed so I updated the extension to v2.0 and now get the following warning: local variable 'customfunction' referenced before assignment.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found