Vcgencmd unknown error

What is the problem?

FileNotFoundError: [Errno 2] No such file or directory: '/opt/vc/bin/vcgencmd',

What did you already try to solve it?

Restarted container, restarted OctoPrint. Everytime this restarts within docker, the same error appears in the log.

Have you tried running in safe mode?

No, as no known issues, other than the error message are present. All else appears to be working.

Did running in safe mode solve the problem?

N/A

Systeminfo Bundle

You can download this in OctoPrint's System Information dialog ... no bundle, no support!)
browser.user_agent : Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36

connectivity.connection_check : 8.8.8.8:53

connectivity.connection_ok : True

connectivity.enabled : True

connectivity.online : True

connectivity.resolution_check : octoprint.org

connectivity.resolution_ok : True

env.hardware.cores : 4

env.hardware.freq : 1500.0

env.hardware.ram : 1962061824

env.os.bits : 32

env.os.id : linux

env.os.platform : linux

env.python.pip : 21.2.4

env.python.version : 3.8.12

env.python.virtualenv : False

octoprint.safe_mode : False

octoprint.version : 1.7.2

systeminfo.generator : zipapi

octoprint.log

314.74K chars

3.13K lines

``

serial.log

148 chars

1 line

``

plugin_pluginmanager_console.log

91.37K chars

547 lines

``

plugin_softwareupdate_update.log

0 chars

1 line

``

WRITE HERE

Additional information about your setup

OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible

OctoPrint V1.7.2

Receiving the following error message within the logs:

2021-12-08 11:28:10,406 - octoprint.plugins.dashboard - INFO - Dashboard started,
2021-12-08 11:28:10,410 - octoprint.JsFrontendErrors(Dash) - INFO - Js Logger (Dash) started,
2021-12-08 11:28:10,584 - octoprint.plugins.octopod - INFO - OctoPod loaded!,
Initializing GcodePositionProcessor V1.0.1 - Copyright (C) 2019 Brad Hochgesang...Python 3+ Detected...complete
,
2021-12-08 11:28:10,791 - octoprint.plugins.pluginmanager - INFO - Loaded notice data from disk, was still valid,
Exception in thread Thread-33:,
Traceback (most recent call last):,
File "/usr/local/lib/python3.8/site-packages/sarge/init.py", line 667, in run,
self.process = p = Popen(self.args, **self.kwargs),
File "/usr/local/lib/python3.8/subprocess.py", line 858, in init,
self.execute_child(args, executable, preexec_fn, close_fds,,
File "/usr/local/lib/python3.8/subprocess.py", line 1704, in execute_child,
Exception in thread Thread-35:,
Traceback (most recent call last):,
File "/usr/local/lib/python3.8/site-packages/sarge/init.py", line 667, in run,
self.process = p = Popen(self.args, **self.kwargs),
File "/usr/local/lib/python3.8/subprocess.py", line 858, in init,
raise child_exception_type(errno_num, err_msg, err_filename),
FileNotFoundError: [Errno 2] No such file or directory: '/opt/vc/bin/vcgencmd',
,
During handling of the above exception, another exception occurred:,
,
Traceback (most recent call last):,
File "/usr/local/lib/python3.8/threading.py", line 932, in bootstrap_inner,
self.execute_child(args, executable, preexec_fn, close_fds,,
File "/usr/local/lib/python3.8/subprocess.py", line 1704, in execute_child,
self.run(),
File "/usr/local/lib/python3.8/site-packages/octoprint/util/init.py", line 1338, in run,
raise child_exception_type(errno_num, err_msg, err_filename),
FileNotFoundError: [Errno 2] No such file or directory: '/opt/vc/bin/vcgencmd',
,
During handling of the above exception, another exception occurred:,
,
Traceback (most recent call last):,
File "/usr/local/lib/python3.8/threading.py", line 932, in bootstrap_inner,
self.function(*self.args, **self.kwargs),
File "/octoprint/plugins/lib/python3.8/site-packages/octoprint_navbartemp/init.py", line 68, in update_soc_temp,
temp = self.sbc.check_soc_temp(),
File "/octoprint/plugins/lib/python3.8/site-packages/octoprint_navbartemp/libs/sbc.py", line 73, in check_soc_temp,
p = run(self.temp_cmd, stdout=Capture()),
File "/usr/local/lib/python3.8/site-packages/sarge/init.py", line 1480, in run,
self.run(),
File "/usr/local/lib/python3.8/site-packages/octoprint/util/init.py", line 1338, in run,
p.run(input=input, async
=async
),
File "/usr/local/lib/python3.8/site-packages/sarge/init.py", line 1087, in run,
self.function(*self.args, **self.kwargs),
File "/octoprint/plugins/lib/python3.8/site-packages/octoprint_octopod/init.py", line 381, in update_soc_temp,
self.run_node(node, input=input, async
=False),
File "/usr/local/lib/python3.8/site-packages/sarge/init.py", line 1205, in run_node,
self.soc_temp_notifications.check_soc_temp(self.settings),
File "/octoprint/plugins/lib/python3.8/site-packages/octoprint_octopod/soc_temp_notifications.py", line 32, in check_soc_temp,
result = getattr(self, method)(node, input, async
),
File "/usr/local/lib/python3.8/site-packages/sarge/init.py", line 1351, in run_command_node,
temp = float(self.sbc.check_soc_temp()),
File "/octoprint/plugins/lib/python3.8/site-packages/octoprint_octopod/libs/sbc.py", line 79, in check_soc_temp,
p = run(self.temp_cmd, stdout=Capture()),
File "/usr/local/lib/python3.8/site-packages/sarge/init.py", line 1480, in run,
node.cmd.run(input=input, async
=async
),
File "/usr/local/lib/python3.8/site-packages/sarge/init.py", line 670, in run,
raise ValueError('Command not found: %s' % self.args[0]),
ValueError: Command not found: /opt/vc/bin/vcgencmd,
p.run(input=input, async
=async
),
File "/usr/local/lib/python3.8/site-packages/sarge/init.py", line 1087, in run,
self.run_node(node, input=input, async_=False),
File "/usr/local/lib/python3.8/site-packages/sarge/init.py", line 1205, in run_node,
result = getattr(self, method)(node, input, async_),
File "/usr/local/lib/python3.8/site-packages/sarge/init.py", line 1351, in run_command_node,
node.cmd.run(input=input, async_=async_),
File "/usr/local/lib/python3.8/site-packages/sarge/init.py", line 670, in run,
raise ValueError('Command not found: %s' % self.args[0]),
ValueError: Command not found: /opt/vc/bin/vcgencmd,

This would be an issue with the Pi support plugin, which tries to find out the throttle state of the Pi if it detects it's running on a Pi. Presumably your container doesn't have vcgencmd installed. In OctoPrint's settings, under the 'Pi support' plugin you should be able to disable the undervoltage checks or change the command.

Thank you for the reply, it led me in the direction required to resolve, but I still thing there's a bug as the resolution was the following. Within the container console (I'm using Portainer), I had to:

  1. Run "apt-get install python3-pip"
  2. Run "pip3 install setuptools"
  3. Run "pip3 install vcgencmd"

Curious why this wouldn't be part of the package install that comes with OctoPrint to alleviate the issues going forward.

Also for what it's worth I could not find the PI Support Plugin you spoke of anywhere within the Octoprint Settings.

Sorry, I actually didn't read the error message fully - just assumed where it was coming from. In this case it is actually from the 'OctoPod' plugin, not the Pi support one (that does something similar using vcgencmd).

Vcgencmd is a command, not a Python package, so you don't need to install that using pip, it won't help.

You may want to report this issue to the plugin author directly - Issues · gdombiak/OctoPrint-OctoPod · GitHub

I see that now, good point. I will follow up with them as I don't see a way to disable in the plugin options.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.