Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Storage calculation without other user's storage stats #87

Open
samweisgamdschie opened this issue Sep 8, 2015 · 5 comments
Open

Storage calculation without other user's storage stats #87

samweisgamdschie opened this issue Sep 8, 2015 · 5 comments

Comments

@samweisgamdschie
Copy link

Hi! After upgrade to 8.1.1 I installed charts app for the first time. While the activity stats looks correct the storage calculations (all three) are from a my own user (in admin group) and free space, no other user stats are available in this view.

OS: CentOS release 6.7 (Final)
PHP: PHP 5.5.28 (cli) (built: Aug 6 2015 08:53:05)
OC: 8.1.1

Help to solve this problem is appreciated.

@samweisgamdschie
Copy link
Author

Hi! Do you have a solution for me?

@dkebler
Copy link

dkebler commented Nov 12, 2015

Seem to be having a similar problem.
Running 8.1.4. (14.04 Ubuntu, latest php)
cron job good, running
ran below from command line
./occ ocusagecharts:createdefaultcharts
but only a single "admin" user's usage shows up for any storage chart, yet activity charts show all users

any information I can provide that would be helpful?

@arnovr
Copy link
Owner

arnovr commented Jan 25, 2016

Sorry for the very very late reaction, i just had a kid.

The activity chart derives it information from the activity app. The storagechart doesn't. The createdefaultcharts should fill all system users. It retrieved all users based on this call:

\OC_User::getUsers();

They might broke backwards compatibility in the latest versions?

You have 3 options:

  1. Fix it for me? :)
  2. Login as the user you want to track, click charts app, and it should be tracked.
  3. Insert a record for each user into uc_chartconfig table

@samweisgamdschie
Copy link
Author

for the third option, it seems that there is more than one line per user. Is it necessary to create each of these lines?

mysql> select * from oc_uc_chartconfig;
+----+---------------------+--------------+------------------------+---------------+---------------+
| id | created | username | charttype | chartprovider | metadata |
+----+---------------------+--------------+------------------------+---------------+---------------+
| 1 | 2015-09-01 07:51:50 | xxx | StorageUsageCurrent | c3js | |
| 2 | 2015-09-01 07:51:50 | xxx | StorageUsageLastMonth | c3js | {"size":"gb"} |
| 3 | 2015-09-01 07:51:50 | xxx | StorageUsagePerMonth | c3js | {"size":"gb"} |
| 4 | 2015-09-01 07:51:50 | xxx | ActivityUsagePerMonth | c3js | |
| 5 | 2015-09-01 07:51:50 | xxx | ActivityUsageLastMonth | c3js | |

@arnovr
Copy link
Owner

arnovr commented Feb 11, 2016

Yes, for each user there are 5 charts. Each line represents 1 chart.
Skip a line, it will not show that chart.

In the new version of ocusagecharts this chartconfig stuff will be removed anyways.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants