cPanel API v2 Fileman
Hey,
got a little problem, cause for unknown reason to me accounts that were migrated to my cPanel server (pkgacct/restorepkg) while u ask API2 for:
Return values:
But when u ask regular created account via WHM API2 returns:
So main differances are commas in restored account and dots in created by WHM. Also:
And:
Below output of quota, I think that api use it for generate results?
Could you please tell me which file cause that mess so I can fix it and have same output for all accounts? Best regards,
/xml-api/cpanel?user=migratedloginx&cpanel_xmlapi_module=Fileman&cpanel_xmlapi_func=getdiskinfo&cpanel_xmlapi_version=2Return values:
99999999999999
90,95 TB
5242880
5 MB
14832685056
13,81 GB
0
0
?
?
38025
37,13 KB
15729688576
14,65 GB
14837927936
13,82 GB
893039789
851,67 MB
But when u ask regular created account via WHM API2 returns:
99999999999999
90.95 TB
5242880
5 MB
27349057536
25.47 GB
0
0 bytes
?
?
28896
28.22 KB
31457280000
29.3 GB
27354300416
25.48 GB
4118572190
3.84 GB
So main differances are commas in restored account and dots in created by WHM. Also:
0 And:
0 bytesBelow output of quota, I think that api use it for generate results?
# /usr/local/cpanel/bin/quota regularuser
dev blocks quota limit grace files quota limit grace
/dev/sda3 48 30720000 30720000 33 0 0
/dev/sdb1 4006772 30720000 30720000 28864 0 0
# /usr/local/cpanel/bin/quota migratedloginx
dev blocks quota limit grace files quota limit grace
/dev/sda3 168 15361024 15361024 64 0 0
/dev/sdb1 870692 15361024 15361024 37961 0 0 Could you please tell me which file cause that mess so I can fix it and have same output for all accounts? Best regards,
-
Okey, problem solved, it was all about locales :) 0 -
Would you mind explaining the solution you found in more detail, so that others may benefit? 0
Please sign in to leave a comment.
Comments
2 comments