alidaf
December 6, 2021, 11:55am
1
What is the problem?
When changing the folders for timelapse etc., the settings do not save. The test buttons show the folders are valid.
What did you already try to solve it?
Check permissions. Check cp and rm.
Have you tried running in safe mode?
No
Did running in safe mode solve the problem?
N/A
Systeminfo Bundle
octoprint-systeminfo-20211206115435.zip (47.9 KB)
2021-12-06 11:29:36,606 - octoprint.server.api - ERROR - Error while testing if /home/pi/NAS/OctoPi/watched is really writable
Traceback (most recent call last):
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/server/api/__init__.py", line 520, in _test_path
with io.open(test_path, "wb") as f:
PermissionError: [Errno 13] Permission denied: '/home/pi/NAS/OctoPi/watched/.testballoon.txt'
2021-12-06 11:33:15,303 - octoprint.server.api - ERROR - Error while testing if /home/pi/NAS/OctoPi/watched is really writable
Traceback (most recent call last):
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/server/api/__init__.py", line 520, in _test_path
with io.open(test_path, "wb") as f:
PermissionError: [Errno 13] Permission denied: '/home/pi/NAS/OctoPi/watched/.testballoon.txt'
Might be because of this, haven't narrowed down exactly where the check is done but I'd wager if one fails the whole thing bails.
alidaf
December 14, 2021, 8:33am
3
I have it working now, thanks. It seems to be a bug that only affects that folder and the workaround was to edit the config file (config.yaml) directly.
Related post:
opened 03:00PM - 20 Nov 21 UTC
bug
done
### The problem
You are currently unable to save the timelapse temp folder to a⦠nything other than the default. If you try, you get an exception in the browser console with a response of: `{"error":"At least one of the configured folders is invalid"}`
This is happening because of line 472 in settings.py: https://github.com/OctoPrint/OctoPrint/blob/master/src/octoprint/server/api/settings.py#L472
You are trying to retrieve the key `timelapse_tmp` from the data dictionary but that key doesn't exist because you are not using the mapping dictionary defined on line 26 but instead just using the `FOLDER_TYPES` key `timelapse_tmp`. Meanwhile the actual key in `data` is `timelapseTmp`.
My logs will show the error on a different line than src because I added a bunch of debug lines.
[octoprint-systeminfo-20211120095509.zip](https://github.com/OctoPrint/OctoPrint/files/7574710/octoprint-systeminfo-20211120095509.zip)
### Did the issue persist even in safe mode?
Yes, it did persist
### If you could not test in safe mode, please state why
_No response_
### Version of OctoPrint
1.7.2
### Operating system running OctoPrint
Octopi 0.18.0
### Printer model & used firmware incl. version
Prusa mk3s+
### Browser and version of browser, operating system running browser
Chrome latest
### Checklist of files to include below
- [X] Systeminfo Bundle (always include!)
- [X] Contents of the JavaScript browser console (always include in cases of issues with the user interface)
- [ ] Screenshots and/or videos showing the problem (always include in case of issues with the user interface)
- [ ] GCODE file with which to reproduce (always include in case of issues with GCODE analysis or printing behaviour)
### Additional information & file uploads
JS response:
```
packed_libs.js?1fe9f29c:13 POST http://192.168.1.101/api/settings 400 (BAD REQUEST)
send @ packed_libs.js?1fe9f29c:13
ajax @ packed_libs.js?1fe9f29c:13
OctoPrintClient.ajax @ packed_client.js?b2d27cf4:8
OctoPrintClient.ajaxWithData @ packed_client.js?b2d27cf4:8
OctoPrintClient.post @ packed_client.js?b2d27cf4:8
OctoPrintClient.postJson @ packed_client.js?b2d27cf4:8
OctoPrintSettingsClient.save @ packed_client.js?b2d27cf4:103
SettingsViewModel.self.saveData @ packed_core.js?0d093a46:336
eval @ VM9148:3
(anonymous) @ packed_libs.js?1fe9f29c:133
dispatch @ packed_libs.js?1fe9f29c:13
v.handle @ packed_libs.js?1fe9f29c:13
```
Config file format:
https://docs.octoprint.org/en/master/configuration/config_yaml.html#folder
2 Likes
system
Closed
March 14, 2022, 8:34am
4
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.