Local server error: Server error: could not upload project. Please try again later

536 views
Skip to first unread message

Nir Vana

unread,
Nov 28, 2016, 7:02:46 PM11/28/16
to App Inventor Open Source Development
I'm running appinventor locally. When I'm uploading project from  ai2.appinventor.mit.edu. Project is 2 weeks old. I'm getting "Server error: could not upload project. Please try again later!" error message.

More detailed error message:
Nov 29, 2016 12:09:17 AM com.google.apphosting.utils.
jetty.JettyLogger warn
WARNING: /ode/upload/project/myapp
com.google.appengine.tools.cloudstorage.NonRetriableException: java.lang.IllegalArgumentException: operating on too many entity groups in a single transaction.



Uploading from repository works fine.

What can be causing this behavior? Server most certainly is not under heavy load.
What I tried so far:
Switch browser (Chrome, Firefox, Opera)


I'm running:    Ubuntu 16.04.1 LTS
Java version "1.7.0_80"
Apache Ant(TM) version 1.9.6 compiled on July 8 2015
appengine-java-sdk-1.9.46 - 2016-11-01

Video:
https://youtu.be/Rgzu8n_usrQ

Thanks~

Jos Flores

unread,
Nov 29, 2016, 6:55:13 AM11/29/16
to app-inventor-open-source-dev
have you tried more than one aia file? It might be an issue with the
one you are trying to upload.
Does it use an extension or similar? Any code that is not in your
local server or have you modified any of the components?

If you've modified any of the ones you are using in that aia file, it
will have a hard time loading it.

cheers,
José
> --
> You received this message because you are subscribed to the Google Groups
> "App Inventor Open Source Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to app-inventor-open-so...@googlegroups.com.
> To post to this group, send email to
> app-inventor-o...@googlegroups.com.
> Visit this group at
> https://groups.google.com/group/app-inventor-open-source-dev.
> For more options, visit https://groups.google.com/d/optout.

Nir Vana

unread,
Nov 29, 2016, 8:34:31 AM11/29/16
to App Inventor Open Source Development
Yes, your right, other .aia files seems to work fine. Oh, by the way, there is no external extensions, modifications or components. What can be causing this error?


Jos Flores

unread,
Nov 29, 2016, 8:39:36 AM11/29/16
to app-inventor-open-source-dev
where was that aia originally created? local server? if you haven't
changed anything, and it was created in the same server, then it's odd
that it is not loading.

cheers,
José

Nir Vana

unread,
Nov 29, 2016, 10:04:22 AM11/29/16
to App Inventor Open Source Development
Original file was created on http://ai2.appinventor.mit.edu website about two weeks ago.

Jos Flores

unread,
Nov 29, 2016, 10:09:24 AM11/29/16
to app-inventor-open-source-dev
does it load in there?

cheers,
José



On 29 November 2016 at 15:04, Nir Vana <260...@gmail.com> wrote:
> Original file was created on http://ai2.appinventor.mit.edu website about
> two weeks ago.
>

Nir Vana

unread,
Nov 29, 2016, 10:20:11 AM11/29/16
to App Inventor Open Source Development
Yes, It loads and runs on my phone, also I can upload that specific .iai file to http://ai2.appinventor.mit.edu

Nir Vana

unread,
Nov 29, 2016, 10:30:11 AM11/29/16
to App Inventor Open Source Development
Maybe there is upload size restriction on local appinventor server?
I'm uploading 3.0MB .iai file.

Nir Vana

unread,
Nov 29, 2016, 11:13:08 AM11/29/16
to App Inventor Open Source Development
I think too many media upload elemets was causing:

java.lang.IllegalArgumentException: operating on too many entity groups in a single transaction.

There was about 40 or more media elements, after deleting large number of then, upload to local server was successful.

Taifun

unread,
Nov 29, 2016, 12:55:54 PM11/29/16
to App Inventor Open Source Development

Jeffrey Schiller

unread,
Nov 29, 2016, 2:02:55 PM11/29/16
to app-inventor-o...@googlegroups.com
I believe I understand what is happening here.

AppInventor is hosted on Google’s App Engine system. App Engine places
strict limits of how long a single transaction can run (60
seconds). As you build your project you add blocks and upload
assets. Each of these operations runs in a small amount of time.

However when you attempt to upload a .aia file with a lost of assets,
the upload is one transaction. If there are a lot of images, it takes
awhile for these to get uploaded (another Google restriction). If the
sum of the upload times exceeds 60 seconds, the transaction is
terminated and your project upload fails.

We are looking at several alternatives to avoid this problem, but for
now there isn’t much we can do about it.

You are welcome to try uploading your project to
code.appinventor.mit.edu. This is a re-implementation of MIT App
Inventor which is not running in App Engine and doesn’t have the App
Engine related restrictions.

-Jeff

P.S. code.appinventor.mit.edu is reasonably stable, but we will be
updating it this week, including moving it to different hardware, so
there may be some (hopefully short) downtime.


Nir Vana writes:
> Yes, It loads and runs on my phone, also I can upload that specific
> .iai file to http://ai2.appinventor.mit.edu

--
_______________________________________________________________
Jeffrey I. Schiller
Information Systems and Technology – MIT App Inventor
Massachusetts Institute of Technology
77 Massachusetts Avenue Room 32G-530
Cambridge, MA 02139-4307
617.910.0259 - Voice
j...@mit.edu, j...@qyv.net
http://jis.qyv.name
http://appinventor.mit.edu
_______________________________________________________________

M. Hossein Amerkashi

unread,
Dec 1, 2016, 10:06:20 PM12/1/16
to app-inventor-o...@googlegroups.com
Its all Greek to me, but seems like there are limits of 5 entities per transaction causing the issue. In addition of number of assets, if there are multiple screens, it could also cause issue, because each screen is comprised of 3 files.

-Hossein.


--
You received this message because you are subscribed to the Google Groups "App Inventor Open Source Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-source-dev+unsub...@googlegroups.com.
To post to this group, send email to app-inventor-open-source-dev@googlegroups.com.

Nir Vana

unread,
Dec 2, 2016, 10:01:10 PM12/2/16
to App Inventor Open Source Development
I like to share commands for building appinventor on Ubuntu 16.04 64bit

Command list:

sudo add-apt-repository ppa:webupd8team/java
sudo apt update
sudo apt install ant git python-software-properties -y
sudo apt install oracle-java7-installer -y
sudo apt install lib32z1 lib32ncurses5 zlib1g:i386 libncurses5:i386 libstdc++6:i386  -y

# Downloading appinventor source
cd /home/$USER/Documents && git clone https://github.com/mit-cml/appinventor-sources

# Making secret appinventor key TOP SECRET
cd /home/$USER/Documents/appinventor-sources/appinventor && ant MakeAuthKey

# Compiling appinventor
cd /home/$USER/Documents/appinventor-sources/appinventor && ant

# Download AppEngine and extract in /home/$USER/Documents folder named "appengine-java-sdk"
https://cloud.google.com/appengine/docs/java/download


#Running appinventor server:
cd /home/$USER/Documents/appengine-java-sdk/bin && ./dev_appserver.sh --port=8888 --address=0.0.0.0 /home/$USER/Documents/appinventor-sources/appinventor/appengine/build/war

#Running build server:
cd /home/$USER/Documents/appinventor-sources/appinventor/buildserver && ant RunLocalBuildServer

# Local website to access appinventor:
localhost:8888

Jos Flores

unread,
Dec 3, 2016, 7:48:19 AM12/3/16
to app-inventor-open-source-dev

Thanks for that, Nir.

Should that be apt-get, or has apt changed in 16.04?

--------------------------------------------
mobile. brevity.typos.cheers


--

Nir Vana

unread,
Dec 3, 2016, 10:28:33 AM12/3/16
to App Inventor Open Source Development
Actually you can you use "apt search", "apt install", "apt remove", etc..  for example "apt search", provides results sorted alphabetically.

The big news for this version is that we included a new “apt” binary that combines the most commonly used commands from apt-get and apt-cache. The commands are the same as their apt-get/apt-cache counterparts but with slightly different configuration options.

Jos Flores

unread,
Dec 3, 2016, 12:04:22 PM12/3/16
to app-inventor-open-source-dev
good to know! :)

cheers,
José
> --
> You received this message because you are subscribed to the Google Groups
> "App Inventor Open Source Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to app-inventor-open-so...@googlegroups.com.
> To post to this group, send email to
> app-inventor-o...@googlegroups.com.

Marcos Assumpcao

unread,
Jun 23, 2017, 11:20:47 AM6/23/17
to App Inventor Open Source Development
I have same insue!
My Problem is that i used IZarc.exe app to open ZIP files and add a lot of PNG pictures files, make a compact file then rename to *.aia.... BUT IZarc make files like *.7z...(with same zip extensio name!!!)...
Then after many works, i try to use "CONVERT to ZIP files" in IZarc options menu... then rename file to *.aia and try to import and SUCCESS!!!
Reply all
Reply to author
Forward
0 new messages