Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id AF9AA200B4B for ; Wed, 6 Jul 2016 18:52:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AE585160A55; Wed, 6 Jul 2016 16:52:12 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0E331160A64 for ; Wed, 6 Jul 2016 18:52:11 +0200 (CEST) Received: (qmail 45728 invoked by uid 500); 6 Jul 2016 16:52:11 -0000 Mailing-List: contact issues-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list issues@ambari.apache.org Received: (qmail 45719 invoked by uid 99); 6 Jul 2016 16:52:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jul 2016 16:52:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id F04852C0003 for ; Wed, 6 Jul 2016 16:52:10 +0000 (UTC) Date: Wed, 6 Jul 2016 16:52:10 +0000 (UTC) From: "Nahappan Somasundaram (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-17593) Ambari server backup error - failure if backup size exceeds 4GB MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 06 Jul 2016 16:52:12 -0000 [ https://issues.apache.org/jira/browse/AMBARI-17593?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nahappan Somasundaram updated AMBARI-17593: ------------------------------------------- Attachment: rb49711.patch > Ambari server backup error - failure if backup size exceeds 4GB > --------------------------------------------------------------- > > Key: AMBARI-17593 > URL: https://issues.apache.org/jira/browse/AMBARI-17593 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Affects Versions: 2.4.0 > Reporter: Nahappan Somasundaram > Assignee: Nahappan Somasundaram > Fix For: 2.5.0 > > Attachments: rb49711.patch > > > *PROBLEM:* > When " ambari-server backup " is run it tries to zip the following directories: > {code} > /etc/ > /var/lib/ambari-server/resources > /var/run/ambari-server/stack-recommendations/1/ > {code} > And by any chance if the aggregated data in above directories exceeds 4gb you get the following error: > {code} > A problem occurred while unzipping. Details: Zipfile size would require ZIP64 extensions > Could not create zip file. Details: Zipfile size would require ZIP64 extensions > {code} > *STEPS TO REPRODUCE :* > 1)Exceed the Directory size greater than 4gb > 2)Run ambari-server backup > *EXPECTED RESULT :* Backup should be successful and give something like: > {code:java} > [root@sandbox ~]# ambari-server backup > Using python /usr/bin/python > Backing up Ambari File System state... *this will not backup the server database* > Backup requested. > No path specified. Will use /var/lib/ambari-server/Ambari_State_Backup.zip > Backup process initiated. > Creating zip file... > Zip file created at /var/lib/ambari-server/Ambari_State_Backup.zip > Backup complete. > Ambari Server 'backup' completed successfully. > {code} > *ACTUAL RESULT :* Backup fails with error: > {code:java} > [root@sandbox ~]# ambari-server backup > Using python /usr/bin/python > Backing up Ambari File System state... *this will not backup the server database* > No path specified. Will use /var/lib/ambari-server/Ambari_State_Backup.zip > Backup requested. > Backup process initiated. > Creating zip file... > A problem occurred while unzipping. Details: Zipfile size would require ZIP64 extensions > Could not create zip file. Details: Zipfile size would require ZIP64 extensions > {code} > *SOLUTION/WORKAROUND:* > In the script :/usr/lib/python2.6/site-packages/ambari_server/BackupRestore.py > Comment out the line : > {code} > zipf = zipfile.ZipFile(self.zip_folder_path + self.zipname, 'w') > {code} > And add: > {code} > zipf = zipfile.ZipFile(self.zip_folder_path + self.zipname, 'w',allowZip64 = True) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)