AppInventor cannot run locally

1,073 views
Skip to first unread message

Thomas Oropeza

unread,
Jun 6, 2016, 4:52:11 PM6/6/16
to App Inventor Open Source Development, David Wolber, Jeffrey Schiller
Hi everyone,

I cannot get my instance of AppInventor to run locally on my machine. I am currently testing with the most recent version of master on the MIT Github.

When I open my localhost i get a message saying "The server is temporarily unavailable. Please try again later!"
Then my terminal mentions that the userId is null on login.

I have tried various different google app engine SDK including 1.9.38 (Most Recent), 1.9.21, 1.9.22, and 1.9.9. They all give the exact same error.

This is what my terminal output looks like.

dev_appserver.sh appengine/build/war/

Executing [/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/jre/bin/java, -XstartOnFirstThread, -javaagent:/Users/thomasoropeza/Documents/AppInventor/appengine-java-sdk-1.9.28/lib/agent/appengine-agent.jar, -Xbootclasspath/p:/Users/thomasoropeza/Documents/AppInventor/appengine-java-sdk-1.9.28/lib/override/appengine-dev-jdk-overrides.jar, -classpath, /Users/thomasoropeza/Documents/AppInventor/appengine-java-sdk-1.9.28/lib/appengine-tools-api.jar, com.google.appengine.tools.development.DevAppServerMain, --property=kickstart.user.dir=/Users/thomasoropeza/Documents/AppInventor/appinventor-sources/appinventor, /Users/thomasoropeza/Documents/AppInventor/appinventor-sources/appinventor/appengine/build/war]

objc[1043]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/jre/bin/java and /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.

Jun 06, 2016 1:44:03 PM com.google.appengine.tools.development.SystemPropertiesManager setSystemProperties

INFO: Overwriting system property key 'java.util.logging.config.file', value '/Users/thomasoropeza/Documents/AppInventor/appengine-java-sdk-1.9.28/config/sdk/logging.properties' with value 'WEB-INF/logging.properties' from '/Users/thomasoropeza/Documents/AppInventor/appinventor-sources/appinventor/appengine/build/war/WEB-INF/appengine-web.xml'

Jun 06, 2016 1:44:03 PM com.google.apphosting.utils.jetty.JettyLogger info

INFO: Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger

Jun 06, 2016 1:44:04 PM com.google.apphosting.utils.jetty.JettyLogger info

INFO: jetty-6.1.x

Jun 06, 2016 1:44:05 PM com.google.appinventor.server.storage.ObjectifyStorageIo <init>

INFO: RetryParams: getInitialRetryDelayMillis() = 100

Jun 06, 2016 1:44:05 PM com.google.appinventor.server.storage.ObjectifyStorageIo <init>

INFO: RetryParams: getRequestTimeoutMillis() = 30000

Jun 06, 2016 1:44:05 PM com.google.appinventor.server.storage.ObjectifyStorageIo <init>

INFO: RetryParams: getRetryDelayBackoffFactor() = 2.0

Jun 06, 2016 1:44:05 PM com.google.appinventor.server.storage.ObjectifyStorageIo <init>

INFO: RetryParams: getRetryMaxAttempts() = 10

Jun 06, 2016 1:44:05 PM com.google.appinventor.server.storage.ObjectifyStorageIo <init>

INFO: RetryParams: getRetryMinAttempts() = 3

Jun 06, 2016 1:44:05 PM com.google.appinventor.server.storage.ObjectifyStorageIo <init>

INFO: RetryParams: getTotalRetryPeriodMillis() = 10000

Jun 06, 2016 1:44:05 PM com.google.appengine.api.datastore.dev.LocalDatastoreService init

INFO: Local Datastore initialized: 

Type: High Replication

Storage: /Users/thomasoropeza/Documents/AppInventor/appinventor-sources/appinventor/appengine/build/war/WEB-INF/appengine-generated/local_db.bin

Jun 06, 2016 1:44:05 PM com.google.appengine.api.datastore.dev.LocalDatastoreService load

INFO: The backing store, /Users/thomasoropeza/Documents/AppInventor/appinventor-sources/appinventor/appengine/build/war/WEB-INF/appengine-generated/local_db.bin, does not exist. It will be created.

Jun 06, 2016 1:44:06 PM com.google.apphosting.utils.jetty.JettyLogger info

INFO: Started SelectChann...@127.0.0.1:8080

Jun 06, 2016 1:44:06 PM com.google.appengine.tools.development.AbstractModule startup

INFO: Module instance default is running at http://localhost:8080/

Jun 06, 2016 1:44:06 PM com.google.appengine.tools.development.AbstractModule startup

INFO: The admin console is running at http://localhost:8080/_ah/admin

Jun 06, 2016 1:44:06 PM com.google.appengine.tools.development.DevAppServerImpl doStart

INFO: Dev App Server is now running

Jun 06, 2016 1:44:13 PM com.google.appinventor.server.OdeAuthFilter doFilter

INFO: isReadOnly = false

Jun 06, 2016 1:44:13 PM com.google.appinventor.server.OdeAuthFilter doFilter

INFO: userid is null on login.

Jun 06, 2016 1:44:13 PM com.google.appengine.tools.appstats.AppstatsFilter doFilter

INFO: Appstats available: /appstats/details?time=1465245853358


Thank you,

Thomas Oropeza

Jos Flores

unread,
Jun 6, 2016, 5:05:19 PM6/6/16
to app-inventor-open-source-dev, Jeffrey Schiller, wolberd

It seems like you have both JRE and JDK in your classpath, and JRE is being found first.

You can set up JAVA_HOME to point to the SDK, or fix your PATH. And use something earlier than 1.9.28 (22 or 27 is fine).

Cheers,
José

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

--
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.

Thomas Oropeza

unread,
Jun 6, 2016, 5:25:21 PM6/6/16
to App Inventor Open Source Development, j...@mit.edu, wol...@gmail.com
This is what my PATH looks like now, and I am not sure how to set my classpath correctly.

Thomass-MacBook-Pro:appinventor thomasoropeza$ echo $PATH

/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/thomasoropeza/Documents/SDK/appengine-java-sdk-1.9.22/bin

Jun 06, 2016 1:44:06 PM com.google.appengine.tools.development.AbstractModule startup

INFO: Module instance default is running at http://localhost:8080/

Jun 06, 2016 1:44:06 PM com.google.appengine.tools.development.AbstractModule startup

INFO: The admin console is running at http://localhost:8080/_ah/admin

Jun 06, 2016 1:44:06 PM com.google.appengine.tools.development.DevAppServerImpl doStart

INFO: Dev App Server is now running

Jun 06, 2016 1:44:13 PM com.google.appinventor.server.OdeAuthFilter doFilter

INFO: isReadOnly = false

Jun 06, 2016 1:44:13 PM com.google.appinventor.server.OdeAuthFilter doFilter

INFO: userid is null on login.

Jun 06, 2016 1:44:13 PM com.google.appengine.tools.appstats.AppstatsFilter doFilter

INFO: Appstats available: /appstats/details?time=1465245853358


Thank you,

Thomas Oropeza

--
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.

Jos Flores

unread,
Jun 6, 2016, 5:31:09 PM6/6/16
to app-inventor-open-source-dev, Jeffrey Schiller, wolberd

This may help https://dzone.com/articles/java-findingsetting

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

Jun 06, 2016 1:44:06 PM com.google.appengine.tools.development.AbstractModule startup

INFO: Module instance default is running at http://localhost:8080/

Jun 06, 2016 1:44:06 PM com.google.appengine.tools.development.AbstractModule startup

INFO: The admin console is running at http://localhost:8080/_ah/admin

Jun 06, 2016 1:44:06 PM com.google.appengine.tools.development.DevAppServerImpl doStart

INFO: Dev App Server is now running

Jun 06, 2016 1:44:13 PM com.google.appinventor.server.OdeAuthFilter doFilter

INFO: isReadOnly = false

Jun 06, 2016 1:44:13 PM com.google.appinventor.server.OdeAuthFilter doFilter

INFO: userid is null on login.

Jun 06, 2016 1:44:13 PM com.google.appengine.tools.appstats.AppstatsFilter doFilter

INFO: Appstats available: /appstats/details?time=1465245853358


Thank you,

Thomas Oropeza

--
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.

--
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.

Thomas Oropeza

unread,
Jun 7, 2016, 2:20:14 PM6/7/16
to App Inventor Open Source Development, j...@mit.edu, wol...@gmail.com
I think that I fixed that issue but the localhost error is still coming up. I also downgraded my java 7 version because people have mentioned that later versions of java 7 give this problem. This is my new terminal output 

Thomass-MacBook-Pro:appinventor-sources thomasoropeza$ dev_appserver.sh appinventor/appengine/build/war/

Jun 07, 2016 11:16:44 AM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml

INFO: Successfully processed /Users/thomasoropeza/Documents/AppInventor/appinventor-sources/appinventor/appengine/build/war/WEB-INF/appengine-web.xml

Executing [/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/jre/bin/java, -XstartOnFirstThread, -javaagent:/Users/thomasoropeza/Documents/SDK/appengine-java-sdk-1.9.22/lib/agent/appengine-agent.jar, -Xbootclasspath/p:/Users/thomasoropeza/Documents/SDK/appengine-java-sdk-1.9.22/lib/override/appengine-dev-jdk-overrides.jar, -classpath, /Users/thomasoropeza/Documents/SDK/appengine-java-sdk-1.9.22/lib/appengine-tools-api.jar, com.google.appengine.tools.development.DevAppServerMain, --property=kickstart.user.dir=/Users/thomasoropeza/Documents/AppInventor/appinventor-sources, /Users/thomasoropeza/Documents/AppInventor/appinventor-sources/appinventor/appengine/build/war]

********************************************************

There is a new version of the SDK available.

-----------

Latest SDK:

Release: 1.9.38

Timestamp: Mon May 02 10:54:17 PDT 2016

API versions: [1.0]


-----------

Your SDK:

Release: 1.9.22

Timestamp: Thu May 14 17:06:24 PDT 2015

API versions: [1.0]


-----------

Please visit https://developers.google.com/appengine/downloads for the latest SDK.

********************************************************

Jun 07, 2016 11:16:46 AM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml

INFO: Successfully processed /Users/thomasoropeza/Documents/AppInventor/appinventor-sources/appinventor/appengine/build/war/WEB-INF/appengine-web.xml

Jun 07, 2016 11:16:46 AM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml

INFO: Successfully processed /Users/thomasoropeza/Documents/AppInventor/appinventor-sources/appinventor/appengine/build/war/WEB-INF/web.xml

Jun 07, 2016 11:16:46 AM com.google.appengine.tools.development.SystemPropertiesManager setSystemProperties

INFO: Overwriting system property key 'java.util.logging.config.file', value '/Users/thomasoropeza/Documents/SDK/appengine-java-sdk-1.9.22/config/sdk/logging.properties' with value 'WEB-INF/logging.properties' from '/Users/thomasoropeza/Documents/AppInventor/appinventor-sources/appinventor/appengine/build/war/WEB-INF/appengine-web.xml'

Jun 07, 2016 11:16:46 AM com.google.apphosting.utils.jetty.JettyLogger info

INFO: Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger

Jun 07, 2016 6:16:47 PM com.google.apphosting.utils.jetty.JettyLogger info

INFO: jetty-6.1.x

Jun 07, 2016 6:16:48 PM com.google.appinventor.server.storage.ObjectifyStorageIo <init>

INFO: RetryParams: getInitialRetryDelayMillis() = 100

Jun 07, 2016 6:16:48 PM com.google.appinventor.server.storage.ObjectifyStorageIo <init>

INFO: RetryParams: getRequestTimeoutMillis() = 30000

Jun 07, 2016 6:16:48 PM com.google.appinventor.server.storage.ObjectifyStorageIo <init>

INFO: RetryParams: getRetryDelayBackoffFactor() = 2.0

Jun 07, 2016 6:16:48 PM com.google.appinventor.server.storage.ObjectifyStorageIo <init>

INFO: RetryParams: getRetryMaxAttempts() = 10

Jun 07, 2016 6:16:48 PM com.google.appinventor.server.storage.ObjectifyStorageIo <init>

INFO: RetryParams: getRetryMinAttempts() = 3

Jun 07, 2016 6:16:48 PM com.google.appinventor.server.storage.ObjectifyStorageIo <init>

INFO: RetryParams: getTotalRetryPeriodMillis() = 10000

Jun 07, 2016 6:16:48 PM com.google.appengine.api.datastore.dev.LocalDatastoreService init

INFO: Local Datastore initialized: 

Type: High Replication

Storage: /Users/thomasoropeza/Documents/AppInventor/appinventor-sources/appinventor/appengine/build/war/WEB-INF/appengine-generated/local_db.bin

Jun 07, 2016 6:16:48 PM com.google.appengine.api.datastore.dev.LocalDatastoreService load

INFO: Time to load datastore: 15 ms

Jun 07, 2016 6:16:48 PM com.google.apphosting.utils.jetty.JettyLogger info

INFO: Started SelectChann...@127.0.0.1:8080

Jun 07, 2016 6:16:48 PM com.google.appengine.tools.development.AbstractModule startup

INFO: Module instance default is running at http://localhost:8080/

Jun 07, 2016 6:16:48 PM com.google.appengine.tools.development.AbstractModule startup

INFO: The admin console is running at http://localhost:8080/_ah/admin

Jun 07, 2016 6:16:48 PM com.google.appengine.tools.development.DevAppServerImpl doStart

INFO: Dev App Server is now running

Jun 07, 2016 6:17:04 PM com.google.appengine.tools.appstats.AppstatsFilter doFilter

INFO: Appstats available: /appstats/details?time=1465323424021

Jun 07, 2016 6:17:04 PM com.google.appengine.tools.appstats.AppstatsFilter doFilter

INFO: Appstats available: /appstats/details?time=1465323424021

Jun 07, 2016 6:17:04 PM com.google.appengine.tools.appstats.AppstatsFilter doFilter

INFO: Appstats available: /appstats/details?time=1465323424486

Jun 07, 2016 6:17:04 PM com.google.appinventor.server.OdeAuthFilter doFilter

INFO: isReadOnly = false

Jun 07, 2016 6:17:04 PM com.google.appinventor.server.OdeAuthFilter doFilter

INFO: userid is null on login.

Jun 07, 2016 6:17:04 PM com.google.appengine.tools.appstats.AppstatsFilter doFilter

INFO: Appstats available: /appstats/details?time=1465323424679 

Jos Flores

unread,
Jun 7, 2016, 3:10:43 PM6/7/16
to app-inventor-open-source-dev, Jeffrey Schiller, David Wolber
Are you missing a couple of arguments to your dev script? --port=8888
--address=0.0.0.0

cheers,
José

Thomas Oropeza

unread,
Jun 7, 2016, 3:40:30 PM6/7/16
to App Inventor Open Source Development, j...@mit.edu, wol...@gmail.com
That's exactly it! What solved the jdk problem is downgrading my java 1.7 from 1.7.0_48 to 1.7.0_25. 

Thanks so much!

-Thomas

Jeffrey Schiller

unread,
Jun 7, 2016, 3:41:18 PM6/7/16
to Jos Flores, app-inventor-open-source-dev, Jeffrey Schiller, David Wolber
Note: the "userid is null on login" is a normal message. I'll be posting a document on how the new session based login system works shortly. It will explain where this message comes from.

-Jeff

Thomas Oropeza

unread,
Jun 7, 2016, 5:08:06 PM6/7/16
to app-inventor-o...@googlegroups.com, Jos Flores, Jeffrey Schiller, David Wolber
Ok great thanks Jeff

Thank You,

Thomas Oropeza

You received this message because you are subscribed to a topic in the Google Groups "App Inventor Open Source Development" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/app-inventor-open-source-dev/kGhIlgpBh4k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to app-inventor-open-so...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages