Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0039638
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo Deployment Options] Openbravo Appliance 18.04criticalhave not tried2018-11-15 16:212018-11-20 18:25
ReportershuehnerView Statuspublic 
Assigned Topriyam 
PriorityurgentResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toshuehner
Summary

0039638: backup system: sync-method sync-s3 fails if one of /backups/auto or /backups/manual is missing

DescriptionWhen one of the folders:
/backups/auto
or
/backups/manual

is missing and upload to S3 is configure. Then the upload fails completely.

That is regression introduced in recent commit 2cff68d101e6

That situation is very common as the folders are created only when needed.
Steps To Reproduce2 ways:
common preparation:
  - activate backups + synchronization to S3
  http://wiki.openbravo.com/wiki/Installation/Appliance/Config#Amazon_S3_sync_plugin [^]
Make sure to not run any backups (neither auto nor manual)

a.)
- keep automatic backups disabled
  run openbravo-backup
  # That will create manual folder but auto is still missing
  Notice error in running S3 upload because of missing /backups/auto

- Without running manual backup ever
  Configure to run automatic backup
  # That will auto-create auto folder but manual will be still missing
  Notice error in /var/log/openbravo/openbravo-backup.log about missing manual folder
Proposed SolutionCheck if same or similar bug happens in sync-label method changed in same commit above.

Either:
a.) Create both folders more eagerly to ensure their existence
b.) Rewrite above commit to not manually upload /backups/auto /backup/manual
But instead upload (as before) all of /backups + add --exclude option
To skip uploading 'tmp' which was the goal of the commit above.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0108017)
shuehner (administrator)
2018-11-20 18:23

Fixed in openbravo.deb version 306
That update will be installed same as any other system (ubuntu) updates.

Current version in an appliance can be with with
dpkg -l | grep openbravo

Fix of the issue applies idea a.) of the proposed solution.
Garantee existance of the 2 expected folders /backups/auto & /backups/manual by always creating them when running any backup (either automatic or manual).

Changelog of openbravo.deb version 306 is as follows for reference:
  * Fix regression in last 305 version which sync-s3 & sync-label failing
    always if not both folders /backups/auto & /backups/manual existed.
    - That was very typical situation as those folders are only creatd on demand
      when running each of auto-backup and manual backup.
    - Avoid this by creating both manual & auto folders always eagerly now in
      all backups.
(0108018)
shuehner (administrator)
2018-11-20 18:25

Reviewed and tested using latest Q4 packages AMI + manually installing openbravo.deb 306 version.
Re-tested testcase are per appliance testplan:
https://docs.google.com/spreadsheets/d/1MKJyws3JFeBb2fTvpDTe1k-zc5zR-fkCKOAMbGCtOBg/edit#gid=1119497945 [^] (column G)

- Issue History
Date Modified Username Field Change
2018-11-15 16:21 shuehner New Issue
2018-11-15 16:21 shuehner Assigned To => staffrm
2018-11-20 18:20 shuehner Status new => scheduled
2018-11-20 18:20 shuehner Assigned To staffrm => shuehner
2018-11-20 18:23 shuehner Note Added: 0108017
2018-11-20 18:23 shuehner Status scheduled => resolved
2018-11-20 18:23 shuehner Resolution open => fixed
2018-11-20 18:23 shuehner Assigned To shuehner => priyam
2018-11-20 18:25 shuehner Review Assigned To => shuehner
2018-11-20 18:25 shuehner Note Added: 0108018
2018-11-20 18:25 shuehner Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker