Zip Directory Not Working for root/ large sub-directories

Zip directory function failing on in root and in large directory. I i have paid add on of 4x file storage. I need to be able to download the zipped directories. Any advice / help? I cant seem to connect to the slack chat today

Backendless finished archiving of files for your application unsuccessfully for application: AGLWarehouse .

Unhandled error: java.lang.RuntimeException: java.lang.InterruptedException at com.backendless.async.AsyncUtils.safeGet(AsyncUtils.java:84) at com.backendless.async.AsyncUtils.safeGet(AsyncUtils.java:58) at com.backendless.services.billing.BillingInteractorCacheDecorator.getLimit(BillingInteractorCacheDecorator.java:173) at com.backendless.tasks.file.AbstractFileTask.getBillingLimit(AbstractFileTask.java:75) at com.backendless.tasks.file.ZipTask.execute(ZipTask.java:69) at com.backendless.taskman.Task.run(Task.java:107) at com.backendless.taskman.TimeoutFixedThreadPoolExecutor.executeTaskWithTracker(TimeoutFixedThreadPoolExecutor.java:91) at com.backendless.taskman.TimeoutFixedThreadPoolExecutor.lambda$invoke$0(TimeoutFixedThreadPoolExecutor.java:39) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:840) Caused by: java.lang.InterruptedException at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:386) at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2073) at com.backendless.async.AsyncUtils.safeGet(AsyncUtils.java:67) … 12 more

@Backendless_Support Hi is anyone able to help me with this?

Hi @Anthony_Ettore,

Can you provide your AppID and steps so we can reproduce the problem?

Regards,
Bohdan

Hi @Bohdan_Vynarchuk

App ID is 45A405C8-7C42-DCB5-FFC1-1A0C847C1200

Steps to reproduce:
In file storage zip directory function on the root directory OR the ‘exportfiles’ subdirectory results in a failure email as shown in OP

1 Like

@Anthony_Ettore,

An internal ticket has been created for this problem. We will let you know about the solution.

Regards,
Bohdan

@Anthony_Ettore,

Waiting for the fix will take some time, If you need to make a zip now, specify the directories for which you need to make a zip and we will make them.

Regards,
Bohdan

@Bohdan_Vynarchuk Thank you for this. Could you provide zips of these directories:

/exportfiles
/loaddocs
/imgs

@Bohdan_Vynarchuk do you have a timeframe on when I am able to get these zips?

@mark-piller I am paying addon price for additional file storage x4,–zipping directories is a critical part of file storage, can we please get this escalated?

Hello @Anthony_Ettore,

It seems there are a couple of issues that have impacted the process:

  1. Timeout for the zip operation: The initial timeout was set to 1000 seconds, which is why the correct error message wasn’t displayed. The error message should have been:

    The reason: [You have reached your file storage limit.<br> 
    Limit: 53687091200 bytes, Current usage: 40577986560 bytes, 
    Zip size: 34052014080 bytes]. 
    appId=[45A405C8-7C42-DCB5-FFC1-1A0C847C1200]. 
    sourcePath: /opt/backendless/repo/45a405c8-7c42-dcb5-ffc1-1a0c847c1200/files/exportfiles
    

    I have now extended the timeout to 3600 seconds, which should provide enough time for the operation to complete.

  2. Storage Limit Exceeded: When the zip operation starts, we are unable to predict the final storage size, which could exceed the allowed limit. In your case, the zip file is quite large, resulting in a total storage of about 70GB. However, with your current plan of 50GB (including the 10GB from the function pack), you would need an additional 30-40GB of storage to accommodate this.

Please let me know if you have any further questions or need additional assistance.

@sergey.kuk in the backendless marketplace the function pack advises that it automatically adds packs as storage is required. In this case, its probably required. Can you please tell me how I can go about upping the allocation so that I can actually get the zip folders? Or can you just provide me a one time output of the zip folders i previously requested so I can get my files off .

Hello @Anthony_Ettore

Unfortunately the autopurchase of packages for the zip app operation is not working right now. This problem will be fixed. In the meantime, you can purchase packages yourself. I will attach a video on how to do it.

Regards,
Inna

HI @Anthony_Ettore,

We’ve just updated the cloud servers to fix the issue you described above. Could you kindly let us know whether the fix works for you?

Regards,
Bohdan