# NameError: name 'subprocess' is not defined

**URL:** <https://discourse.mailinabox.email/t/nameerror-name-subprocess-is-not-defined/12525>\
**Category:** uncategorized\
**Created:** [December 16, 2024, 7:54am UTC](https://discourse.mailinabox.email/t/nameerror-name-subprocess-is-not-defined/12525 "2024-12-16T07:54:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![netmaster48](https://discourse.mailinabox.email/letter_avatar_proxy/v4/letter/n/82dd89/32.png) [@netmaster48](https://discourse.mailinabox.email/u/netmaster48)\
**Post date:** [December 16, 2024, 7:54am UTC](https://discourse.mailinabox.email/t/nameerror-name-subprocess-is-not-defined/12525/1 "2024-12-16T07:54:29Z")

</div>

suddenly some of my MIAB boxes “Status Checks Change Notice” started to show error message “Missing privilege separation directory: /run/sshd” and this one above.  
But there actually is empty /run/sshd folder.

Internet search led me to the MIAB’s Github where is 3 weeks old “fix: NameError: name ‘subprocess’ is not defined”. Looked at it and this adding “import subprocess” in to utils.py. No further explanation.

But I have not updated (manually) anything in MIAB. Although restarted all of them few days ago. How this thing happened and do I need to do something or this error somehow “repair” itself like as it appeared. What is “official” recommendations to resolv such issues?

---

<div class="post-metadata">

**Author:** ![netmaster48](https://discourse.mailinabox.email/letter_avatar_proxy/v4/letter/n/82dd89/32.png) [@netmaster48](https://discourse.mailinabox.email/u/netmaster48)\
**Post date:** [December 17, 2024, 9:13am UTC](https://discourse.mailinabox.email/t/nameerror-name-subprocess-is-not-defined/12525/2 "2024-12-17T09:13:31Z")

</div>

hmm there is some more information.  
when scrips run from cron, then result is

/etc/cron.daily/mailinabox-dnssec:  
name ‘subprocess’ is not defined

when run that same script from shell, then  
/etc/cron.daily/mailinabox-dnssec  
updated DNS: OpenDKIM configuration
