i have build app inventor successfully ,but after i run app inventor server ,i can not visit

112 views
Skip to first unread message

孟神通

unread,
Sep 20, 2016, 8:38:28 PM9/20/16
to App Inventor Open Source Development
i have build app inventor successfully ,but after i run app inventor server ,i can not visit

孟神通

unread,
Sep 20, 2016, 8:52:06 PM9/20/16
to App Inventor Open Source Development



在 2016年9月21日星期三 UTC+8上午8:38:28,孟神通写道:

孟神通

unread,
Sep 20, 2016, 8:54:25 PM9/20/16
to App Inventor Open Source Development
root@iZ28g94hbuiZ:/var/www/ai2/appinventor-sources/appinventor# !1108
/usr/appengine/appengine-java-sdk/bin/dev_appserver.sh  --port=8888 --address=0.0.0.0 appengine/build/war/
Executing [/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java, -javaagent:/usr/appengine/appengine-java-sdk/lib/agent/appengine-agent.jar, -Xbootclasspath/p:/usr/appengine/appengine-java-sdk/lib/override/appengine-dev-jdk-overrides.jar, -classpath, /usr/appengine/appengine-java-sdk/lib/appengine-tools-api.jar, com.google.appengine.tools.development.DevAppServerMain, --property=kickstart.user.dir=/var/www/ai2/appinventor-sources/appinventor, --port=8888, --address=0.0.0.0, /var/www/ai2/appinventor-sources/appinventor/appengine/build/war]
Sep 21, 2016 8:51:56 AM com.google.appengine.tools.info.RemoteVersionFactory getVersion
java.net.ConnectException: Connection timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:635)
at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160)
at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264)
at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:934)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1302)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
at java.net.URL.openStream(URL.java:1048)
at com.google.appengine.tools.info.RemoteVersionFactory.getVersion(RemoteVersionFactory.java:76)
at com.google.appengine.tools.info.UpdateCheck.getApplicationVersionInfo(UpdateCheck.java:153)
at com.google.appengine.tools.info.UpdateCheck.maybePrintNagScreen(UpdateCheck.java:361)
at com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:261)
at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48)
at com.google.appengine.tools.development.DevAppServerMain.run(DevAppServerMain.java:225)
at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:216)

Sep 21, 2016 8:51:57 AM com.google.appengine.tools.development.SystemPropertiesManager setSystemProperties
INFO: Overwriting system property key 'java.util.logging.config.file', value '/usr/appengine/appengine-java-sdk/config/sdk/logging.properties' with value 'WEB-INF/logging.properties' from '/var/www/ai2/appinventor-sources/appinventor/appengine/build/war/WEB-INF/appengine-web.xml'
Sep 21, 2016 8:51:57 AM com.google.apphosting.utils.jetty.JettyLogger info
INFO: Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger
Sep 21, 2016 12:52:00 AM com.google.apphosting.utils.jetty.JettyLogger info
INFO: jetty-6.1.x
Sep 21, 2016 12:52:05 AM com.google.appinventor.server.storage.ObjectifyStorageIo <clinit>
INFO: Default GCS Bucket Configured from App Identity: app_default_bucket
Sep 21, 2016 12:52:05 AM com.google.appinventor.server.storage.ObjectifyStorageIo <init>
INFO: RetryParams: getInitialRetryDelayMillis() = 100
Sep 21, 2016 12:52:05 AM com.google.appinventor.server.storage.ObjectifyStorageIo <init>
INFO: RetryParams: getRequestTimeoutMillis() = 30000
Sep 21, 2016 12:52:05 AM com.google.appinventor.server.storage.ObjectifyStorageIo <init>
INFO: RetryParams: getRetryDelayBackoffFactor() = 2.0
Sep 21, 2016 12:52:05 AM com.google.appinventor.server.storage.ObjectifyStorageIo <init>
INFO: RetryParams: getRetryMaxAttempts() = 10
Sep 21, 2016 12:52:05 AM com.google.appinventor.server.storage.ObjectifyStorageIo <init>
INFO: RetryParams: getRetryMinAttempts() = 3
Sep 21, 2016 12:52:05 AM com.google.appinventor.server.storage.ObjectifyStorageIo <init>
INFO: RetryParams: getTotalRetryPeriodMillis() = 10000
Sep 21, 2016 12:52:06 AM com.google.appengine.api.datastore.dev.LocalDatastoreService init
INFO: Local Datastore initialized: 
Type: High Replication
Storage: /var/www/ai2/appinventor-sources/appinventor/appengine/build/war/WEB-INF/appengine-generated/local_db.bin
Sep 21, 2016 12:52:06 AM com.google.appengine.api.datastore.dev.LocalDatastoreService load
INFO: The backing store, /var/www/ai2/appinventor-sources/appinventor/appengine/build/war/WEB-INF/appengine-generated/local_db.bin, does not exist. It will be created.
Sep 21, 2016 12:52:07 AM com.google.apphosting.utils.jetty.JettyLogger info
Sep 21, 2016 12:52:07 AM com.google.appengine.tools.development.AbstractModule startup
INFO: Module instance default is running at http://localhost:8888/
Sep 21, 2016 12:52:07 AM com.google.appengine.tools.development.AbstractModule startup
INFO: The admin console is running at http://localhost:8888/_ah/admin
Sep 21, 2016 8:52:07 AM com.google.appengine.tools.development.DevAppServerImpl doStart
INFO: Dev App Server is now running
Sep 21, 2016 8:52:36 AM com.google.appengine.api.datastore.dev.LocalDatastoreService$11 run
INFO: Time to persist datastore: 40 ms


在 2016年9月21日星期三 UTC+8上午8:38:28,孟神通写道:
i have build app inventor successfully ,but after i run app inventor server ,i can not visit

Evan W. Patton

unread,
Sep 21, 2016, 4:28:20 AM9/21/16
to app-inventor-o...@googlegroups.com
So it looks like the server is starting okay. The stack trace is just a failure to check for a new version of the SDK, but it might be indicative of other permissions problems. One thing to check is whether SELinux is running and in enforce mode as it may be blocking Java from receiving requests on port 8888. If so you would need to either switch to permissive mode or add an SELinux allowance for that port. Another thing to check is run sudo netstat-ntlp | grep 8080 and verify that you see Java running on that port and not something else. 

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

孟神通

unread,
Sep 21, 2016, 8:38:22 AM9/21/16
to App Inventor Open Source Development
thank you very much ,you answer inspried me very much ,but i have not installed selinux, and i give the appinventor dictionary 777 use chmod -R 777 
but i still can not work

root@iZ28g94hbuiZ:/var/www/ai2/appinventor-sources/appinventor# !1177
/usr/appengine/appengine-java-sdk/bin/dev_appserver.sh  --port=8888 --address=0.0.0.0 appengine/build/war/
Executing [/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java, -javaagent:/usr/appengine/appengine-java-sdk/lib/agent/appengine-agent.jar, -Xbootclasspath/p:/usr/appengine/appengine-java-sdk/lib/override/appengine-dev-jdk-overrides.jar, -classpath, /usr/appengine/appengine-java-sdk/lib/appengine-tools-api.jar, com.google.appengine.tools.development.DevAppServerMain, --property=kickstart.user.dir=/var/www/ai2/appinventor-sources/appinventor, --port=8888, --address=0.0.0.0, /var/www/ai2/appinventor-sources/appinventor/appengine/build/war]
Sep 21, 2016 8:37:18 PM com.google.appengine.tools.info.RemoteVersionFactory getVersion
Sep 21, 2016 8:37:19 PM com.google.appengine.tools.development.SystemPropertiesManager setSystemProperties
INFO: Overwriting system property key 'java.util.logging.config.file', value '/usr/appengine/appengine-java-sdk/config/sdk/logging.properties' with value 'WEB-INF/logging.properties' from '/var/www/ai2/appinventor-sources/appinventor/appengine/build/war/WEB-INF/appengine-web.xml'
Sep 21, 2016 8:37:19 PM com.google.apphosting.utils.jetty.JettyLogger info
INFO: Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger
Sep 21, 2016 12:37:21 PM com.google.apphosting.utils.jetty.JettyLogger info
INFO: jetty-6.1.x
Sep 21, 2016 12:37:26 PM com.google.appinventor.server.storage.ObjectifyStorageIo <clinit>
INFO: Default GCS Bucket Configured from App Identity: app_default_bucket
Sep 21, 2016 12:37:26 PM com.google.appinventor.server.storage.ObjectifyStorageIo <init>
INFO: RetryParams: getInitialRetryDelayMillis() = 100
Sep 21, 2016 12:37:26 PM com.google.appinventor.server.storage.ObjectifyStorageIo <init>
INFO: RetryParams: getRequestTimeoutMillis() = 30000
Sep 21, 2016 12:37:26 PM com.google.appinventor.server.storage.ObjectifyStorageIo <init>
INFO: RetryParams: getRetryDelayBackoffFactor() = 2.0
Sep 21, 2016 12:37:26 PM com.google.appinventor.server.storage.ObjectifyStorageIo <init>
INFO: RetryParams: getRetryMaxAttempts() = 10
Sep 21, 2016 12:37:26 PM com.google.appinventor.server.storage.ObjectifyStorageIo <init>
INFO: RetryParams: getRetryMinAttempts() = 3
Sep 21, 2016 12:37:26 PM com.google.appinventor.server.storage.ObjectifyStorageIo <init>
INFO: RetryParams: getTotalRetryPeriodMillis() = 10000
Sep 21, 2016 12:37:27 PM com.google.appengine.api.datastore.dev.LocalDatastoreService init
INFO: Local Datastore initialized: 
Type: High Replication
Storage: /var/www/ai2/appinventor-sources/appinventor/appengine/build/war/WEB-INF/appengine-generated/local_db.bin
Sep 21, 2016 12:37:27 PM com.google.appengine.api.datastore.dev.LocalDatastoreService load
INFO: Time to load datastore: 66 ms
Sep 21, 2016 12:37:28 PM com.google.apphosting.utils.jetty.JettyLogger info
Sep 21, 2016 12:37:28 PM com.google.appengine.tools.development.AbstractModule startup
INFO: Module instance default is running at http://localhost:8888/
Sep 21, 2016 12:37:28 PM com.google.appengine.tools.development.AbstractModule startup
INFO: The admin console is running at http://localhost:8888/_ah/admin
Sep 21, 2016 8:37:28 PM com.google.appengine.tools.development.DevAppServerImpl doStart
INFO: Dev App Server is now running


在 2016年9月21日星期三 UTC+8下午4:28:20,Evan Patton写道:
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-source-dev+unsub...@googlegroups.com.

Evan Patton

unread,
Sep 21, 2016, 8:59:44 AM9/21/16
to App Inventor Open Source Development
What is the output of the following commands?

sudo netstat -ntlp | grep java

Evan

Jeffrey Schiller

unread,
Sep 21, 2016, 10:36:49 AM9/21/16
to app-inventor-o...@googlegroups.com
Also make sure you are using an older version of the App Engine SDK. Due
to a bug in Google’s later versions, you need to run a version of 1.9.27
or older.

-Jeff

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

孟神通

unread,
Sep 21, 2016, 11:01:46 PM9/21/16
to App Inventor Open Source Development
thank  you very muck,now i can visit my server by disable update check,but i got new error: Server error: could not save one or more files. Please try again later!,
i have give appinventor and appengine dictionaries the most permission,but does not work.


root@iZ28g94hbuiZ:/usr# sudo netstat -ntlp | grep java
tcp        0      0 0.0.0.0:8888            0.0.0.0:*               LISTEN      7710/java       
root@iZ28g94hbuiZ:/usr# curl localhost:8888
<!-- Copyright 2007 Google Inc. All Rights Reserved. -->
<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="X-UA-Compatible" content="IE=10">
    <!--meta name="gwt:property" content="locale=en_US"-->
    <!-- Title is set at runtime. -->
    <title> </title>


在 2016年9月21日星期三 UTC+8下午8:59:44,Evan Patton写道:

孟神通

unread,
Sep 21, 2016, 11:02:43 PM9/21/16
to App Inventor Open Source Development
thank you Jeff, i am sure my App Engine SDK version is a  version of 1.9.27

在 2016年9月21日星期三 UTC+8下午10:36:49,j...@mit.edu写道:

Jeffrey Schiller

unread,
Sep 21, 2016, 11:15:54 PM9/21/16
to app-inventor-o...@googlegroups.com
孟神通 writes:
> thank you very muck,now i can visit my server by disable update
> check,but i got new error: Server error: could not save one or more
> files. Please try again later!,
>
> *i have give appinventor and appengine dictionaries the most
> permission,but does not work.*

Is this really the last item in the log:
>>> Sep 21, 2016 8:37:28 PM
>>> com.google.appengine.tools.development.DevAppServerImpl doStart
>>> INFO: Dev App Server is now running

The log should continue when you attempt to access the site. Such log
entries might provide clues as to what is going on.

This line:
>> https://appengine.google.com/api/updatecheck?runtime=java&release=1.9.42&timestamp=1468608347&api_versions=['1.0

causes me to believe that you are actually running version 1.9.42. That
version is too new and will not work.
signature.asc
Reply all
Reply to author
Forward
0 new messages