# Persistent 'Invalid config section' error for \[gcode\_shell\_command\] after fresh install

**URL:** <https://klipper.discourse.group/t/persistent-invalid-config-section-error-for-gcode-shell-command-after-fresh-install/23034>\
**Category:** General Discussion\
**Created:** [April 15, 2025, 6:26pm UTC](https://klipper.discourse.group/t/persistent-invalid-config-section-error-for-gcode-shell-command-after-fresh-install/23034 "2025-04-15T18:26:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MirSadique](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@MirSadique](https://klipper.discourse.group/u/MirSadique)\
**Post date:** [April 15, 2025, 6:26pm UTC](https://klipper.discourse.group/t/persistent-invalid-config-section-error-for-gcode-shell-command-after-fresh-install/23034/1 "2025-04-15T18:26:48Z")

</div>

### Basic Information:

MCU / Printerboard: BTT Octopus v1.1  
 Host / SBC : Pi 3b+  
 klippy.log  
[klippy (19).log](https://klipper.discourse.group/uploads/short-url/6ddv9Ns2oXTbJ1DcbETAHdckLwY.log) (53.3 KB)

### issue:

**Subject:** Persistent ‘Invalid config section’ error for [gcode\_shell\_command] after fresh install

Hi Klipper community,

I’m facing a persistent issue with my Klipper installation where I consistently get the error “Section ‘gcode\_shell\_command …’ is not a valid config section” whenever I try to define a shell command in my `printer.cfg`.

This is on a fresh installation of Klipper (previously it was running fine, i haven’t changed anything after installation) (klipper installed using [mention method - KIAUH] on a Raspberry Pi 3b+ on running [Debian GNU/Linux 12 (bookworm)].

I have tried the following troubleshooting steps:

- checking file path, permissions, encoding, minimal config, etc.]

Here is the test code  
[gcode\_shell\_command test\_command]  
command: echo “Test”  
timeout: 5.0  
verbose: True  
…

---

<div class="post-metadata">

**Author:** ![EddyMI3D](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/eddymi3d/32/1981_2.png) [@EddyMI3D](https://klipper.discourse.group/u/EddyMI3D)\
**Post date:** [April 15, 2025, 6:38pm UTC](https://klipper.discourse.group/t/persistent-invalid-config-section-error-for-gcode-shell-command-after-fresh-install/23034/2 "2025-04-15T18:38:24Z")

</div>

Hello @MirSadique !

The mentioned command is not provided by Klipper, though the error message.  
Did you have had some extensions on your old install?

---

<div class="post-metadata">

**Author:** ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)\
**Post date:** [April 15, 2025, 6:51pm UTC](https://klipper.discourse.group/t/persistent-invalid-config-section-error-for-gcode-shell-command-after-fresh-install/23034/3 "2025-04-15T18:51:19Z")

</div>

Your klippy.log does not indicate that you have the needed extension installed. You can use KIAUH to do so: Choose `E` for Extensions then `1` for ‘G-Code Shell Command’

---

<div class="post-metadata">

**Author:** ![MirSadique](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@MirSadique](https://klipper.discourse.group/u/MirSadique)\
**Post date:** [April 15, 2025, 7:11pm UTC](https://klipper.discourse.group/t/persistent-invalid-config-section-error-for-gcode-shell-command-after-fresh-install/23034/4 "2025-04-15T19:11:27Z")

</div>

Sorry i cant remember

---

<div class="post-metadata">

**Author:** ![MirSadique](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@MirSadique](https://klipper.discourse.group/u/MirSadique)\
**Post date:** [April 15, 2025, 7:13pm UTC](https://klipper.discourse.group/t/persistent-invalid-config-section-error-for-gcode-shell-command-after-fresh-install/23034/5 "2025-04-15T19:13:14Z")

</div>

Found it under 4. Advanced → 8. G-code shell command

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/klipper/original/1X/64419bf2aac6639e6ef5cef200dcd456b0a01ac3.png) [@system](https://klipper.discourse.group/u/system)\
**Post date:** [May 16, 2025, 5:13am UTC](https://klipper.discourse.group/t/persistent-invalid-config-section-error-for-gcode-shell-command-after-fresh-install/23034/6 "2025-05-16T05:13:58Z")

</div>

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