mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-25 08:56:02 +03:00
[GH-ISSUE #1424] logparser fails to create RRD directory #1130
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#1130
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jficz on GitHub (Mar 5, 2018).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1424
Impacted versions
Steps to reproduce
Current behavior
RRD storage directory does not exist and logparser probably doesn't even try to create it.
Expected behavior
Parse log and create RRD files. Create the necessary directory structure and fail properly if that isn't possible.
Command works as expected after the directory is created manually.
@tonioo commented on GitHub (Mar 7, 2018):
@cptMikky I don't think the script should be responsible for creating the directory structure. A better option would be to ensure the directory exists when the global setting is modified. What do you think?
@jficz commented on GitHub (Mar 8, 2018):
Not sure. Directory structure, especially in /tmp is definitely a responsibility of the owner (the script in this scenario). As for other places, well, hard to tell, I have no single opinion.
However, a directory existence test and a (sane) error message would be enough I guess.
@tonioo commented on GitHub (Mar 15, 2018):
This issue was moved to modoboa/modoboa-stats#40