Want more features on Pastebin? Sign Up, it's FREE!
Guest

DSpace stats failure

By: a guest on Oct 11th, 2011  |  syntax: None  |  size: 1.44 KB  |  views: 28  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. After fixing all the item metadata errors the stats scripts finally finish, but now it seems some files are missing so the stats STILL can't run...
  2.  
  3. $ sudo su -c '/home/dspace/bin/dspace stat-general' tomcat55
  4.  
  5. $ sudo su -c '/home/dspace/bin/dspace stat-monthly' tomcat55
  6. Failed to read log file /home/dspace/log/dspace.log.2011-10-09
  7.  
  8. $ sudo su -c '/home/dspace/bin/dspace stat-report-general' tomcat55
  9. Failed to read input file: /home/dspace/log/dspace-log-general-2011-10-11.dat
  10.  
  11. $ sudo su -c '/home/dspace/bin/dspace stat-report-monthly' tomcat55
  12. Failed to read input file: /home/dspace/log/dspace-log-monthly-2011-10.dat
  13.  
  14. $ ls -l /home/dspace/log/dspace.log.2011-10-
  15. dspace.log.2011-10-01.gz  dspace.log.2011-10-03.gz  dspace.log.2011-10-05.gz  dspace.log.2011-10-07.gz  dspace.log.2011-10-09.gz  dspace.log.2011-10-11    
  16. dspace.log.2011-10-02.gz  dspace.log.2011-10-04.gz  dspace.log.2011-10-06.gz  dspace.log.2011-10-08.gz  dspace.log.2011-10-10
  17.  
  18. The missing dspace.log.2011-10-09 is not missing... it just got zipped before we could analyse it.  Unzip it!
  19.  
  20. $ sudo gunzip -c /home/dspace/log/dspace.log.2011-10-09.gz > /home/dspace/log/dspace.log.2011-10-09
  21.  
  22. Re run the stats analysis
  23.  
  24. $ sudo su -c '/home/dspace/bin/dspace stat-general' tomcat55
  25. $ sudo su -c '/home/dspace/bin/dspace stat-monthly' tomcat55
  26. $ sudo su -c '/home/dspace/bin/dspace stat-report-general' tomcat55
  27. $ sudo su -c '/home/dspace/bin/dspace stat-report-monthly' tomcat55
  28.  
clone this paste RAW Paste Data