ACRA / acralyzer

Open source backend for ACRA reports.
GNU General Public License v3.0
489 stars 90 forks source link

Unable to purge reports #43

Open ghost opened 11 years ago

ghost commented 11 years ago

Hi,

First of all, just like many others around here, I would like to thank the developers for this work that looks very promising. When I go to the "Admin" tab in acralyzer, and click the "Purge" button to purge reports older than 90 days, I just get a notification "purge failed". It might be a misconfiguration error, but even in this case I think the error message should give more information.

Here is what I get in the console (in chrome) when clicking the "purge" button :

Purge reports older than 90 AdminControllers.js:50
key will be: [2013,3,6] AdminControllers.js:51
GET http://****.cloudant.com/acra-patients/_design/acra-storage/_view/reports-revision-per-day?descending=true&startkey=%5B2013,2,9%5D 404 (Object Not Found) 
    angular.min.js:105
    (anonymous function) angular.min.js:105
    q angular.min.js:101
    f angular.min.js:99
    i angular.min.js:79
    i angular.min.js:79
    (anonymous function) angular.min.js:79
    e.$eval angular.min.js:91
    e.$digest angular.min.js:89
    e.$apply angular.min.js:91
    (anonymous function) angular.min.js:152
    v.event.dispatch jquery-1.8.3.min.js:2
    o.handle.u

Edit : I got this error after updating acralyzer and acra-reporter to the latest version on git, which is commit dd1869e86785eae2ced021c49fb30925495e4830, "more efficient purges". To do the update, I just followed the installation guide once again.

Thanks !

KevinGaudin commented 11 years ago

Acralyzer does not find the view it uses in acra-storage to get the list of reports to purge.

Get the latest version of the master branch of acra-storage and push it again in your acra-patients database. Le 7 juin 2013 06:14, "personne3000" notifications@github.com a écrit :

Hi,

First of all, just like many others around here, I would like to thank the developers for this work that looks very promising. When I go to the "Admin" tab in acralyzer, and click the "Purge" button to purge reports older than 90 days, I just get a notification "purge failed". It might be a misconfiguration error, but even in this case I think the error message should give more information.

Here is what I get in the console (in chrome) when clicking the "purge" button :

Purge reports older than 90 AdminControllers.js:50 key will be: [2013,3,6] AdminControllers.js:51 GET http://****.cloudant.com/acra-patients/_design/acra-storage/_view/reports-revision-per-day?descending=true&startkey=%5B2013,2,9%5D 404 (Object Not Found) angular.min.js:105 (anonymous function) angular.min.js:105 q angular.min.js:101 f angular.min.js:99 i angular.min.js:79 i angular.min.js:79 (anonymous function) angular.min.js:79 e.$eval angular.min.js:91 e.$digest angular.min.js:89 e.$apply angular.min.js:91 (anonymous function) angular.min.js:152 v.event.dispatch jquery-1.8.3.min.js:2 o.handle.u

Thanks !

— Reply to this email directly or view it on GitHubhttps://github.com/ACRA/acralyzer/issues/43 .

ghost commented 11 years ago

Here is what I just did:

git clone http://github.com/ACRA/acra-storage.git
cd acra-storage
couchapp push http://****:*******@***.cloudant.com/acra-patients

(Obviously, I did not write asterisks but my username and password). When I return to the Admin tab of Acralyzer after this, I still get the "Purge failed" error, and the same messages in the console.