kizniche / Mycodo

An environmental monitoring and regulation system
http://kylegabriel.com/projects/
GNU General Public License v3.0
2.89k stars 486 forks source link

Permission denied when saving Conditional Controller Function #1352

Open wbard93 opened 7 months ago

wbard93 commented 7 months ago

Describe the problem/bug

After installing a new Raspberry Pi OS and Mycodo, when saving settings in a Conditional Controller Function, a permission denied error is generated when creating a directoy

Versions:

Reproducibility

Please list specific setup details that are involved and the steps to reproduce the behavior:

  1. Use Raspberry Pi Imager v1.7.4 on Mac to copy Raspberry Lite 2023-10-10 to 16GB Micro SD card
  2. Boot Raspberry Pi, connect to it with the Terminal app and enter 'curl -L https://kizniche.github.io/Mycodo/install | bash' to install Mycodo
  3. Create the Mycodo admin account and log in
  4. Select Function menu, create Conditional Controller (installing dependencies), and open created Conditional Controller Function
  5. When clicking the Save button on the opened Conditional Controller Function, the error appears

Nothing seen in Mycodo logs. Not sure what other logs to check.

Not a unix expert but do not see any folders or files corresponding to error message in a working or non-working system.

Expected behavior

No error should occur First, after clicking the Save button, the command sent message appears The after about 30 seconds, the warning, info and success messages appear

Screenshots

Expected condition after clicking the Save button First, after clicking the Save button, the command sent message appears image The after about 30 seconds, the warning, info and success messages appear image*

Failed condition after clicking the Save button image*

Additional context

This works on Mycodo 8.15.12 that has been upgraded. Problem only occurs on a new install As a workaround, looking to duplicate a working Micro SD card and using that.

kizniche commented 7 months ago

This is the same issue fixed in 72c1dde7548754dd1aaad56e551ee2fc145d0a1f for Python Code Inputs. I'll apply the same fix for Conditional Controller Functions and make a bugfix release.

kizniche commented 7 months ago

To be clear, this doesn't affect the functionality of a Conditional Controller, it merely prevents pylint from running.

kizniche commented 6 months ago

This issue has been mentioned on Radical DIY Forum. There might be relevant details there:

https://forum.radicaldiy.com/t/bmkdir-cannot-create-directory/1720/2

kizniche commented 6 months ago

This issue has been mentioned on Radical DIY Forum. There might be relevant details there:

https://forum.radicaldiy.com/t/bmkdir-cannot-create-directory/1720/4