You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Good morning! I'm running HASS in a FreeBSD jail (using TrueNAS) and ran into a minor issue when performing initial config and getting set up.
The error I received is: OSError: [Errno 22] Invalid argument
Unfortunately I didn't save the entire stack trace. I referenced process_yaml.py:280 (linked above) which points to os.mknod(path). It appears this call requires superuser privileges which prevents DD from loading. An appropriate user-level call is below. I can do a PR if you like but since it was just one line I figured it would take less time this way.
I replaced line 280 with: open(path, 'w').close()
This creates the (.installed) file if it doesn't exist and then closes the file handle. Nice and easy, though slightly less clean.
dwains-lovelace-dashboard/custom_components/dwains_dashboard/process_yaml.py
Line 280 in b3e1bae
Good morning! I'm running HASS in a FreeBSD jail (using TrueNAS) and ran into a minor issue when performing initial config and getting set up.
The error I received is:
OSError: [Errno 22] Invalid argument
Unfortunately I didn't save the entire stack trace. I referenced process_yaml.py:280 (linked above) which points to
os.mknod(path)
. It appears this call requires superuser privileges which prevents DD from loading. An appropriate user-level call is below. I can do a PR if you like but since it was just one line I figured it would take less time this way.I replaced line 280 with:
open(path, 'w').close()
This creates the (
.installed
) file if it doesn't exist and then closes the file handle. Nice and easy, though slightly less clean.References:
https://stackoverflow.com/questions/32115715/os-mknod-fails-on-macos
The text was updated successfully, but these errors were encountered: