mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-27 09:55:58 +03:00
[GH-ISSUE #569] Stats: create stats folder in media #541
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#541
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 @piwats on GitHub (Jun 11, 2014).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/569
Hello Antoine,
just run manually:
a mailadmin # python manage.py logparser
[graph] Impossible to create /var/www/mailadmin/mailadmin/media/stats/avgtraffic_global_AVERAGE_day.png graph
error: Could not save png to '/var/www/mailadmin/mailadmin/media/stats/avgtraffic_global_AVERAGE_day.png'
after creating the folder stats in media, everything is now working as it should :)
-Paul
@tonioo commented on GitHub (Jun 11, 2014):
This folder is automatically created when you enable the extension through the admin panel. Obviously, the user used to run modoboa (www-data?) must have write permission on the media/ directory.
@tonioo commented on GitHub (Jun 11, 2014):
Did you run the script before the extension was activated?
@piwats commented on GitHub (Jun 11, 2014):
the extension was already active. It told me something like the data images couldnt be found. I ran the script, which told me, stats dir doesnt exist, so i created one. Now it works.
@tonioo commented on GitHub (Jun 13, 2014):
Can you tell me what are the permissions of the /var/www/mailadmin/mailadmin/media directory please?
@piwats commented on GitHub (Jun 13, 2014):
drwxr-xr-x 4 root root 4096 Jun 11 14:46 media
@tonioo commented on GitHub (Jun 23, 2014):
Ok, so this issue is normal since modoboa can't create directories inside media.
I'll add a bit of documentation about this. I could also update the deploy command but it would require root require root privileges in order to run chmod... not really a good idea.
@piwats commented on GitHub (Jun 23, 2014):
This is good to know - now it does work, and future users won't get confused 👍