Failed to copy file while deploying

I got error when deploying ai2 to appspot the error says failed to copy file file size is 30.68 mb so i know it want accept file more then 30 so now what should i have to do
Url

What do you mean by copying? Do you want to upload a 30 MB file to the assets? There is a 10 MB limitation for a project (aia).
You can try this server:
http://code.appinventor.mit.edu/
As far as I remember correctly, there is a 50 MB limitation.

1 Like

no i mean when I execute
gcloud app deploy --project=<PROJECT-ID> --version=1 \ appengine/build/appengine-web.xmlfirst it says uploading done and then it show an error as I mentioned in first post

Ok, I see ... never used

2 Likes

The URL you gave doesn’t do anything for us since it’s protected by being associated with your GCP account. Does it mention which file is over 30 MB? Can you look through your appengine/build/war directory and find the offending file? We can’t advise you unless we know what the source of the issue is.

1 Like
 Services to deploy:

descriptor:      [C:\xampp\htdocs\pro\appinventor-sources\appinventor\appengine\build\war\WEB-INF\appengine-web.xml]
source:          [C:\xampp\htdocs\pro\appinventor-sources\appinventor\appengine\build\war]
target project:  [woven-victor-260810]
target service:  [default]
target version:  [20191230t222857]
target url:      [https://woven-victor-260810.appspot.com]


Do you want to continue (Y/n)?  Y

Beginning deployment of service [default]...
#============================================================#
#= Uploading 1 file to Google Cloud Storage                 =#
#============================================================#
File upload done.
Updating service [default]...
.................................................................................................................................................................................................................................................................failed.
ERROR: (gcloud.app.deploy) Error Response: [3] The following errors occurred while copying files to App Engine:
File https://storage.googleapis.com/staging.woven-victor-260810.appspot.com/bfc31d5a74765522707d3b868df895996865e18f failed with: Failed to copy file.

Details: [
  [
    {
      "@type": "type.googleapis.com/google.rpc.ResourceInfo",
      "description": "Failed to copy file.",
      "resourceName": "https://storage.googleapis.com/staging.woven-victor-260810.appspot.com/bfc31d5a74765522707d3b868df895996865e18f",
      "resourceType": "file"
    }
  ]
]

@ewpatton this is what i get

Unfortunately the Google error doesn’t seem particularly helpful as the URI doesn’t include a filename that might match something in the App Inventor build tree. If you’re on a *nix-like system (or have Windows Subsystem for Linux), you can run:

find appengine/build/war -size +20M

to find all of the files greater than 20 MB.

@ewpatton
found it it is an file named C7A60A8A9986D6C120BB32FB1D77204C.cache.js in ode folder which size is 31mb and contain almost 500,000 lines

Ok. Consider removing the <collapse-all-properties/> line from appengine/src/com/google/appinventor/YaClient.gwt.xml so that you build all of the variants as separate files and try again.