Unable to launch App Inventor main server

After following carefully the instructions about how to build App Inventor from MIT sources, I succeded to build App Inventor 2 Background Tasks projects sources (https://github.com/thequixotic/appinventor-sources/tree/services-final), but when I try to launch local main server by App Engine SDK (google-cloud-sdk-folder\bin\java_dev_appserver.cmd --port=8888 --address=0.0.0.0 your-appinventor-folder\appengine\build\war), the command seems working, but I eventually get this result and I can't understand clearly what went wrong:

launch-server-error

Any help or suggestion will be very appreciated.
Thanks all in advance.

There's not really enough information here to have an idea of what happened. The whole stack trace would be more useful. If I had to take a shot in the dark, I'd say you probably did an ant clean at some point in another window and that is causing some issue with the gcloud server.

Hi Evan,
Before all, let me say thank you for your kind feedback.
You are fully right, actually the output of the command turns out to be much more long, but I reported just the last chunk, hoping somebody else came across a similar issue. No ant clean command launched in the meanwhile. I put here below the complete output, I don’t know if it is exactly what you ask for, but I hope it could be meaningful and suggest something more. I have a hard time understanding such output, that looks to me quite messy. I am a newbie and I tried to follow the instructions carefully. Actually, I just crave to setup a local server, in order to recover and modify my App Inventor Tasks projects and I feel a bit disappointed, since a very little step is missing to reach my goal… I hope this issue could be just a stupid thing that can be easily solved.
Thank you again.

Here the complete output command (sorry for its bad formatting…):

C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin>java_dev_appserver.cmd --port=8888 --address=0.0.0.0 C:\appinventor-sources\appinventor\appengine\build\war\

Executing Command{executable=C:\Program Files\Java\jre1.8.0_261\bin\java, arguments=[-Dfile.encoding=UTF-8, -classpath, C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\google\appengine\tools\java\lib\appengine-tools-api.jar, com.google.appengine.tools.development.D

evAppServerMain, --property=kickstart.user.dir=C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin, --no_java_agent, --promote_yaml, --port=8888, --address=0.0.0.0, C:\appinventor-sources\appinventor\appengine\build\war], environment={GAE_ENV=localdev, GAE_RUNTIME=java8, GAE_SERVICE=default

, GAE_INSTANCE=7f2dba88-bb75-4917-8709-9c9d68e5c7a4, NIDAQMXSWITCHDIR=C:\Program Files (x86)\National Instruments\NI-DAQ\Switch, PATH=C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin..\bin\sdk;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Wi

ndows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\IVI Foundation\IVI\bin;C:\Program Files\IVI Foundation\IVI\bin;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;C:\Program Files\IVI Foundation\VISA\Win64\Bin;C:\Program Files (x86)\IVI Foundation\VISA\WinNT

\Bin;C:\Program Files\Git\cmd;C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin;C:\Program Files\Java\jdk1.8.0_261\bin;C:\apache-ant-1.10.8\bin, CLOUDSDK_INTERACTIVE_MULTI_COLUMN_COMPLETION_MENU=False, CLOUDSDK_VMWARE_LOCATION=us-central1, CLOUDSDK_INTERACTIVE_BOTTOM_BINDINGS_LINE=True, C

LOUDSDK_APP_PROMOTE_BY_DEFAULT=True, ALLUSERSPROFILE=C:\ProgramData, CLOUDSDK_CORE_LOG_HTTP_REDACT_TOKEN=True, CLOUDSDK_PROXY_RDNS=True, KMP_DUPLICATE_LIB_OK=TRUE, CLOUDSDK_CORE_SHOW_STRUCTURED_LOGS=never, CLOUDSDK_PYTHON=C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin..\platform\bundl

edpython\python.exe, PROGRAMFILES=C:\Program Files, IVIROOTDIR64=C:\Program Files\IVI Foundation\IVI, PSMODULEPATH=C:\Windows\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\platform\PowerShell, CLOUDSDK_CORE_TRACE_LOG=False, CLOUDSDK_CONTAINER_USE_

CLIENT_CERTIFICATE=False, CLOUDSDK_CORE_PASS_CREDENTIALS_TO_GSUTIL=True, CLOUDSDK_GSUTIL_PYTHON=C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin..\platform\bundledpython\python.exe, USERNAME=oliva, CLOUDSDK_APP_RUNTIME_ROOT=C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\platfo

rm\ext-runtime, CLOUDSDK_AUTH_TOKEN_HOST=https://www.googleapis.com/oauth2/v4/token, CLOUDSDK_ML_ENGINE_POLLING_INTERVAL=60, CLOUDSDK_CORE_ACCOUNT=salvy1977@gmail.com, CLOUDSDK_INTERACTIVE_MANPAGE_GENERATOR=True, CLOUDSDK_COMPUTE_GCE_METADATA_CHECK_TIMEOUT_SEC=3, CLOUDSDK_PROXY_USE_URLLIB3_VIA_SHIM=

False, VXIPNPPATH64=C:\Program Files\IVI Foundation\VISA, PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC, CLOUDSDK_CORE_API_HOST=https://www.googleapis.com, CLOUDSDK_EMULATOR_PUBSUB_HOST_PORT=localhost:8085, BUNDLED_PYTHON=C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin\

..\platform\bundledpython\python.exe, CLOUDSDK_CORE_RESOURCE_COMPLETION_STYLE=flags, CLOUDSDK_GAME_SERVICES_DEFAULT_DEPLOYMENT=-, CLOUDSDK_INTERACTIVE_SUGGEST=False, CLOUDSDK_VERSION=302.0.0, NIEXTCCOMPILERSUPP=C:\Program Files (x86)\National Instruments\Shared\ExternalCompilerSupport\C, CLOUDSDK_C

ORE_COLOR_THEME=off, CLOUDSDK_CORE_PROJECT=app-inventor-tasks, HOMEPATH=\Users\oliva, CLOUDSDK_CORE_ENABLE_GRI=False, CLOUDSDK_VMWARE_NODE-TYPE=c1-highmem-72-metal, PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 158 Stepping 10, GenuineIntel, WINDOWS_TRACING_LOGFILE=C:\BVTBin\Tests\installpackage\csilo

gfile.log, PUBLIC=C:\Users\Public, CLOUDSDK_AUTH_GOOGLE_AUTH_ALLOWED=False, CLOUDSDK_CORE_INTERACTIVE_UX_STYLE=InteractiveUXStyles.NORMAL, CLOUDSDK_APP_CONTAINER_BUILDER_IMAGE=gcr.io/cloud-builders/docker, CLOUDSDK_COMPUTE_USE_NEW_LIST_USABLE_SUBNETS_API=False, CLOUDSDK_INTERACTIVE_SHOW_HELP=True, J

AVA_HOME=C:\Program Files\Java\jdk1.8.0_261, PROMPT=$P$G, PROGRAMFILES(X86)=C:\Program Files (x86), CLOUDSDK_SURVEY_DISABLE_PROMPTS=False, CLOUDSDK_INTERACTIVE_COMPLETION_MENU_LINES=4, CLOUDSDK_INTERACTIVE_FIXED_PROMPT_POSITION=False, ANT_HOME=C:\apache-ant-1.10.8, CLOUDSDK_GCLOUDIGNORE_ENABLED=True

, APPDATA=C:\Users\oliva\AppData\Roaming, CLOUDSDK_CORE_CHECK_GCE_METADATA=True, CLOUDSDK_CORE_LINT=none, CLOUDSDK_ROOT_DIR=C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin.., CLOUDSDK_INTERACTIVE_HIDDEN=False, CLOUDSDK_APP_RUNTIME_BUILDERS_ROOT=gs://runtime-builders/, CLOUDSDK_BILLING_

QUOTA_PROJECT=CURRENT_PROJECT, CLOUDSDK_PYTHON_ARGS_NO_S=-S=, COMPUTERNAME=PSO5-V1-W764, NIIVIPATH=C:\Program Files (x86)\IVI Foundation\IVI, CLOUDSDK_EMULATOR_DATASTORE_HOST_PORT=localhost:8081, CLOUDSDK_GAME_SERVICES_LOCATION=global, CLOUDSDK_CONTAINER_BUILD_CHECK_TAG=True, GCE_METADATA_TIMEOUT=3

, CLOUDSDK_AUTH_CLIENT_ID=32555940559.apps.googleusercontent.com, CLOUDSDK_CONTAINER_USE_APPLICATION_DEFAULT_CREDENTIALS=False, CLOUDSDK_HEALTHCARE_LOCATION=us-central1, HOMEDRIVE=C:, NUMBER_OF_PROCESSORS=2, CLOUDSDK_DEVSHELL_METADATA_IMAGE=gcr.io/google_appengine/faux-metadata:latest, CLOUDSDK_INTE

RACTIVE_PROMPT=$ , NO_WORKING_PYTHON_FOUND="false", PROCESSOR_LEVEL=6, SYSTEMDRIVE=C:, CLOUDSDK_CORE_LOG_HTTP=False, FP_NO_HOST_CHECK=NO, CLOUDSDK_WRAPPER=1, CLOUDSDK_CORE_SHOULD_PROMPT_TO_ENABLE_API=True, CLOUDSDK_APP_USE_APPENGINE_API=True, CLOUDSDK_ACTIVE_CONFIG_NAME=default, CLOUDSDK_INTERACTIVE

_OBFUSCATE=False, PROCESSOR_ARCHITECTURE=AMD64, CLOUDSDK_FUNCTIONS_REGION=us-central1, CLOUDSDK_WORKFLOWS_LOCATION=us-central1, VXIPNPPATH=C:\Program Files (x86)\IVI Foundation\VISA, CLOUDSDK_INTERACTIVE_BOTTOM_STATUS_LINE=False, CLOUDSDK_INTERACTIVE_HELP_LINES=10, PROGRAMDATA=C:\ProgramData, CLOUD

SDK_EXPERIMENTAL_FAST_COMPONENT_UPDATE=False, CLOUDSDK_LIFESCIENCES_LOCATION=us-central1, CLOUDSDK_CORE_DISABLE_USAGE_REPORTING=True, CLOUDSDK_CORE_DISABLE_FILE_LOGGING=False, CLOUDSDK_EMULATOR_BIGTABLE_HOST_PORT=localhost:8086, CLOUDSDK_ACCESSIBILITY_SCREEN_READER=False, CLOUDSDK_AUTH_AUTH_HOST=htt

ps://accounts.google.com/o/oauth2/auth, WINDIR=C:\Windows, CLOUDSDK_INTERACTIVE_DEBUG=False, IVIROOTDIR32=C:\Program Files (x86)\IVI Foundation\IVI, CLOUDSDK_PYTHON_ARGS=-S, CLOUDSDK_APP_STOP_PREVIOUS_VERSION=True, CLOUDSDK_DATAFLOW_PRINT_ONLY=False, LOCALAPPDATA=C:\Users\oliva\AppData\Local, CLOUD

SDK_DEVSHELL_IMAGE=gcr.io/dev_con/cloud-dev-common:prod, CLOUDSDK_AUTH_DISABLE_LOAD_GOOGLE_AUTH=False, COMMONPROGRAMFILES(X86)=C:\Program Files (x86)\Common Files, USERDOMAIN=PSO5-V1-W764, LOGONSERVER=\PSO5-V1-W764, CLOUDSDK_COMPUTE_GCE_METADATA_READ_TIMEOUT_SEC=20, CLOUDSDK_BUILDS_USE_KANIKO=False

, NO_GCE_CHECK=False, WINDOWS_TRACING_FLAGS=3, CLOUDSDK_BUILDS_CHECK_TAG=True, CLOUDSDK_INTERACTIVE_CONTEXT=, CLOUDSDK_INTERACTIVE_JUSTIFY_BOTTOM_LINES=False, PROGRAMW6432=C:\Program Files, SYSTEMROOT=C:\Windows, CLOUDSDK_DATAFLOW_DISABLE_PUBLIC_IPS=False, CLOUDSDK_DEPLOYMENT_MANAGER_GLOB_IMPORTS=Fa

lse, CLOUDSDK_AUTH_DISABLE_ACTIVATE_SERVICE_ACCOUNT_GOOGLE_AUTH=False, MKL_SERIAL=YES, OS=Windows_NT, COMMONPROGRAMW6432=C:\Program Files\Common Files, CLOUDSDK_AUTH_DISABLE_CREDENTIALS=False, COMMONPROGRAMFILES=C:\Program Files\Common Files, COMSPEC=C:\Windows\system32\cmd.exe, CLOUDSDK_BUILDS_KANI

KO_IMAGE=gcr.io/kaniko-project/executor:latest, CLOUDSDK_BUILDS_KANIKO_CACHE_TTL=6, CLOUDSDK_AUTH_CLIENT_SECRET=ZmssLNjJy2998hD4CTg2ejr2, PROCESSOR_REVISION=9e0a, CLOUDSDK_GAME_SERVICES_DEFAULT_REALM=-, CLOUDSDK_PUBSUB_LEGACY_OUTPUT=False, TEMP=C:\Users\oliva\AppData\Local\Temp, USERPROFILE=C:\Users

\oliva, CLOUDSDK_CORE_MAX_LOG_DAYS=30, TMP=C:\Users\oliva\AppData\Local\Temp, WHERE_FOUND=C:\Windows\System32\where.exe, CLOUDSDK_CORE_USER_OUTPUT_ENABLED=True}, workingDirectory=Optional[C:\appinventor-sources\appinventor\appengine\build\war], stdinSource=InputSource{kind=PROCESS}, stdoutSink=Outpu

tSink{kind=JVM_OUT}, stderrSink=OutputSink{kind=JVM_ERR}, successCondition=ExitCodeSuccessCondition{exitCodes=[0]}, executor=com.google.appengine.repackaged.com.google.common.labs.command.NativeProcess$1@6f2b958e}

java.lang.IllegalArgumentException: the Java7 runtime is not supported anymore.

at com.google.appengine.tools.development.SharedMain.configureRuntime(SharedMain.java:222)

at com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:374)

at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:45)

at com.google.appengine.tools.development.DevAppServerMain.run(DevAppServerMain.java:257)

at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:248)

Exception in thread "main" java.lang.IllegalStateException: com.google.appengine.repackaged.com.google.common.labs.command.CommandFailureException: Command{executable=C:\Program Files\Java\jre1.8.0_261\bin\java, arguments=[-Dfile.encoding=UTF-8, -classpath, C:\Program Files (x86)\Google\Cloud SDK\go

ogle-cloud-sdk\platform\google_appengine\google\appengine\tools\java\lib\appengine-tools-api.jar, com.google.appengine.tools.development.DevAppServerMain, --property=kickstart.user.dir=C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin, --no_java_agent, --promote_yaml, --port=8888, --addre

ss=0.0.0.0, C:\appinventor-sources\appinventor\appengine\build\war], environment={GAE_ENV=localdev, GAE_RUNTIME=java8, GAE_SERVICE=default, GAE_INSTANCE=7f2dba88-bb75-4917-8709-9c9d68e5c7a4, NIDAQMXSWITCHDIR=C:\Program Files (x86)\National Instruments\NI-DAQ\Switch, PATH=C:\Program Files (x86)\Goog

le\Cloud SDK\google-cloud-sdk\bin..\bin\sdk;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\IVI Foundation\IVI\bin;C:\Program Files\IVI Foundation\IVI\bin;C:\Program F

iles (x86)\IVI Foundation\VISA\WinNT\Bin;C:\Program Files\IVI Foundation\VISA\Win64\Bin;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;C:\Program Files\Git\cmd;C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin;C:\Program Files\Java\jdk1.8.0_261\bin;C:\apache-ant-1.10.8\bin, CLOUDS

DK_INTERACTIVE_MULTI_COLUMN_COMPLETION_MENU=False, CLOUDSDK_VMWARE_LOCATION=us-central1, CLOUDSDK_INTERACTIVE_BOTTOM_BINDINGS_LINE=True, CLOUDSDK_APP_PROMOTE_BY_DEFAULT=True, ALLUSERSPROFILE=C:\ProgramData, CLOUDSDK_CORE_LOG_HTTP_REDACT_TOKEN=True, CLOUDSDK_PROXY_RDNS=True, KMP_DUPLICATE_LIB_OK=TRUE

, CLOUDSDK_CORE_SHOW_STRUCTURED_LOGS=never, CLOUDSDK_PYTHON=C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin..\platform\bundledpython\python.exe, PROGRAMFILES=C:\Program Files, IVIROOTDIR64=C:\Program Files\IVI Foundation\IVI, PSMODULEPATH=C:\Windows\system32\WindowsPowerShell\v1.0\Mod

ules;C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\platform\PowerShell, CLOUDSDK_CORE_TRACE_LOG=False, CLOUDSDK_CONTAINER_USE_CLIENT_CERTIFICATE=False, CLOUDSDK_CORE_PASS_CREDENTIALS_TO_GSUTIL=True, CLOUDSDK_GSUTIL_PYTHON=C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin..\pl

atform\bundledpython\python.exe, USERNAME=oliva, CLOUDSDK_APP_RUNTIME_ROOT=C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\platform\ext-runtime, CLOUDSDK_AUTH_TOKEN_HOST=https://www.googleapis.com/oauth2/v4/token, CLOUDSDK_ML_ENGINE_POLLING_INTERVAL=60, CLOUDSDK_CORE_ACCOUNT=salvy1977@gmail

.com, CLOUDSDK_INTERACTIVE_MANPAGE_GENERATOR=True, CLOUDSDK_COMPUTE_GCE_METADATA_CHECK_TIMEOUT_SEC=3, CLOUDSDK_PROXY_USE_URLLIB3_VIA_SHIM=False, VXIPNPPATH64=C:\Program Files\IVI Foundation\VISA, PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC, CLOUDSDK_CORE_API_HOST=https://www.googl

eapis.com, CLOUDSDK_EMULATOR_PUBSUB_HOST_PORT=localhost:8085, BUNDLED_PYTHON=C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin..\platform\bundledpython\python.exe, CLOUDSDK_CORE_RESOURCE_COMPLETION_STYLE=flags, CLOUDSDK_GAME_SERVICES_DEFAULT_DEPLOYMENT=-, CLOUDSDK_INTERACTIVE_SUGGEST=Fal

se, CLOUDSDK_VERSION=302.0.0, NIEXTCCOMPILERSUPP=C:\Program Files (x86)\National Instruments\Shared\ExternalCompilerSupport\C, CLOUDSDK_CORE_COLOR_THEME=off, CLOUDSDK_CORE_PROJECT=app-inventor-tasks, HOMEPATH=\Users\oliva, CLOUDSDK_CORE_ENABLE_GRI=False, CLOUDSDK_VMWARE_NODE-TYPE=c1-highmem-72-meta

l, PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 158 Stepping 10, GenuineIntel, WINDOWS_TRACING_LOGFILE=C:\BVTBin\Tests\installpackage\csilogfile.log, PUBLIC=C:\Users\Public, CLOUDSDK_AUTH_GOOGLE_AUTH_ALLOWED=False, CLOUDSDK_CORE_INTERACTIVE_UX_STYLE=InteractiveUXStyles.NORMAL, CLOUDSDK_APP_CONTAINER_

BUILDER_IMAGE=gcr.io/cloud-builders/docker, CLOUDSDK_COMPUTE_USE_NEW_LIST_USABLE_SUBNETS_API=False, CLOUDSDK_INTERACTIVE_SHOW_HELP=True, JAVA_HOME=C:\Program Files\Java\jdk1.8.0_261, PROMPT=$P$G, PROGRAMFILES(X86)=C:\Program Files (x86), CLOUDSDK_SURVEY_DISABLE_PROMPTS=False, CLOUDSDK_INTERACTIVE_CO

MPLETION_MENU_LINES=4, CLOUDSDK_INTERACTIVE_FIXED_PROMPT_POSITION=False, ANT_HOME=C:\apache-ant-1.10.8, CLOUDSDK_GCLOUDIGNORE_ENABLED=True, APPDATA=C:\Users\oliva\AppData\Roaming, CLOUDSDK_CORE_CHECK_GCE_METADATA=True, CLOUDSDK_CORE_LINT=none, CLOUDSDK_ROOT_DIR=C:\Program Files (x86)\Google\Cloud SD

K\google-cloud-sdk\bin.., CLOUDSDK_INTERACTIVE_HIDDEN=False, CLOUDSDK_APP_RUNTIME_BUILDERS_ROOT=gs://runtime-builders/, CLOUDSDK_BILLING_QUOTA_PROJECT=CURRENT_PROJECT, CLOUDSDK_PYTHON_ARGS_NO_S=-S=, COMPUTERNAME=PSO5-V1-W764, NIIVIPATH=C:\Program Files (x86)\IVI Foundation\IVI, CLOUDSDK_EMULATOR_D

ATASTORE_HOST_PORT=localhost:8081, CLOUDSDK_GAME_SERVICES_LOCATION=global, CLOUDSDK_CONTAINER_BUILD_CHECK_TAG=True, GCE_METADATA_TIMEOUT=3, CLOUDSDK_AUTH_CLIENT_ID=32555940559.apps.googleusercontent.com, CLOUDSDK_CONTAINER_USE_APPLICATION_DEFAULT_CREDENTIALS=False, CLOUDSDK_HEALTHCARE_LOCATION=us-ce

ntral1, HOMEDRIVE=C:, NUMBER_OF_PROCESSORS=2, CLOUDSDK_DEVSHELL_METADATA_IMAGE=gcr.io/google_appengine/faux-metadata:latest, CLOUDSDK_INTERACTIVE_PROMPT=$ , NO_WORKING_PYTHON_FOUND="false", PROCESSOR_LEVEL=6, SYSTEMDRIVE=C:, CLOUDSDK_CORE_LOG_HTTP=False, FP_NO_HOST_CHECK=NO, CLOUDSDK_WRAPPER=1, CLOU

DSDK_CORE_SHOULD_PROMPT_TO_ENABLE_API=True, CLOUDSDK_APP_USE_APPENGINE_API=True, CLOUDSDK_ACTIVE_CONFIG_NAME=default, CLOUDSDK_INTERACTIVE_OBFUSCATE=False, PROCESSOR_ARCHITECTURE=AMD64, CLOUDSDK_FUNCTIONS_REGION=us-central1, CLOUDSDK_WORKFLOWS_LOCATION=us-central1, VXIPNPPATH=C:\Program Files (x86)\

IVI Foundation\VISA, CLOUDSDK_INTERACTIVE_BOTTOM_STATUS_LINE=False, CLOUDSDK_INTERACTIVE_HELP_LINES=10, PROGRAMDATA=C:\ProgramData, CLOUDSDK_EXPERIMENTAL_FAST_COMPONENT_UPDATE=False, CLOUDSDK_LIFESCIENCES_LOCATION=us-central1, CLOUDSDK_CORE_DISABLE_USAGE_REPORTING=True, CLOUDSDK_CORE_DISABLE_FILE_L

OGGING=False, CLOUDSDK_EMULATOR_BIGTABLE_HOST_PORT=localhost:8086, CLOUDSDK_ACCESSIBILITY_SCREEN_READER=False, CLOUDSDK_AUTH_AUTH_HOST=https://accounts.google.com/o/oauth2/auth, WINDIR=C:\Windows, CLOUDSDK_INTERACTIVE_DEBUG=False, IVIROOTDIR32=C:\Program Files (x86)\IVI Foundation\IVI, CLOUDSDK_PYT

HON_ARGS=-S, CLOUDSDK_APP_STOP_PREVIOUS_VERSION=True, CLOUDSDK_DATAFLOW_PRINT_ONLY=False, LOCALAPPDATA=C:\Users\oliva\AppData\Local, CLOUDSDK_DEVSHELL_IMAGE=gcr.io/dev_con/cloud-dev-common:prod, CLOUDSDK_AUTH_DISABLE_LOAD_GOOGLE_AUTH=False, COMMONPROGRAMFILES(X86)=C:\Program Files (x86)\Common Files

, USERDOMAIN=PSO5-V1-W764, LOGONSERVER=\PSO5-V1-W764, CLOUDSDK_COMPUTE_GCE_METADATA_READ_TIMEOUT_SEC=20, CLOUDSDK_BUILDS_USE_KANIKO=False, NO_GCE_CHECK=False, WINDOWS_TRACING_FLAGS=3, CLOUDSDK_BUILDS_CHECK_TAG=True, CLOUDSDK_INTERACTIVE_CONTEXT=, CLOUDSDK_INTERACTIVE_JUSTIFY_BOTTOM_LINES=False, PRO

GRAMW6432=C:\Program Files, SYSTEMROOT=C:\Windows, CLOUDSDK_DATAFLOW_DISABLE_PUBLIC_IPS=False, CLOUDSDK_DEPLOYMENT_MANAGER_GLOB_IMPORTS=False, CLOUDSDK_AUTH_DISABLE_ACTIVATE_SERVICE_ACCOUNT_GOOGLE_AUTH=False, MKL_SERIAL=YES, OS=Windows_NT, COMMONPROGRAMW6432=C:\Program Files\Common Files, CLOUDSDK_A

UTH_DISABLE_CREDENTIALS=False, COMMONPROGRAMFILES=C:\Program Files\Common Files, COMSPEC=C:\Windows\system32\cmd.exe, CLOUDSDK_BUILDS_KANIKO_IMAGE=gcr.io/kaniko-project/executor:latest, CLOUDSDK_BUILDS_KANIKO_CACHE_TTL=6, CLOUDSDK_AUTH_CLIENT_SECRET=ZmssLNjJy2998hD4CTg2ejr2, PROCESSOR_REVISION=9e0a,

CLOUDSDK_GAME_SERVICES_DEFAULT_REALM=-, CLOUDSDK_PUBSUB_LEGACY_OUTPUT=False, TEMP=C:\Users\oliva\AppData\Local\Temp, USERPROFILE=C:\Users\oliva, CLOUDSDK_CORE_MAX_LOG_DAYS=30, TMP=C:\Users\oliva\AppData\Local\Temp, WHERE_FOUND=C:\Windows\System32\where.exe, CLOUDSDK_CORE_USER_OUTPUT_ENABLED=True},

workingDirectory=Optional[C:\appinventor-sources\appinventor\appengine\build\war], stdinSource=InputSource{kind=PROCESS}, stdoutSink=OutputSink{kind=JVM_OUT}, stderrSink=OutputSink{kind=JVM_ERR}, successCondition=ExitCodeSuccessCondition{exitCodes=[0]}, executor=com.google.appengine.repackaged.com.g

oogle.common.labs.command.NativeProcess$1@6f2b958e}: CommandResult{exit code=1, stdout=, stderr=}

at com.google.appengine.tools.KickStart.(KickStart.java:283)

at com.google.appengine.tools.KickStart.main(KickStart.java:108)

Caused by: com.google.appengine.repackaged.com.google.common.labs.command.CommandFailureException: Command{executable=C:\Program Files\Java\jre1.8.0_261\bin\java, arguments=[-Dfile.encoding=UTF-8, -classpath, C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\google\a

ppengine\tools\java\lib\appengine-tools-api.jar, com.google.appengine.tools.development.DevAppServerMain, --property=kickstart.user.dir=C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin, --no_java_agent, --promote_yaml, --port=8888, --address=0.0.0.0, C:\appinventor-sources\appinventor\ap

pengine\build\war], environment={GAE_ENV=localdev, GAE_RUNTIME=java8, GAE_SERVICE=default, GAE_INSTANCE=7f2dba88-bb75-4917-8709-9c9d68e5c7a4, NIDAQMXSWITCHDIR=C:\Program Files (x86)\National Instruments\NI-DAQ\Switch, PATH=C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin..\bin\sdk;C:\P

rogram Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\IVI Foundation\IVI\bin;C:\Program Files\IVI Foundation\IVI\bin;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;C:\Prog

ram Files\IVI Foundation\VISA\Win64\Bin;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;C:\Program Files\Git\cmd;C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin;C:\Program Files\Java\jdk1.8.0_261\bin;C:\apache-ant-1.10.8\bin, CLOUDSDK_INTERACTIVE_MULTI_COLUMN_COMPLETION_MENU=False

, CLOUDSDK_VMWARE_LOCATION=us-central1, CLOUDSDK_INTERACTIVE_BOTTOM_BINDINGS_LINE=True, CLOUDSDK_APP_PROMOTE_BY_DEFAULT=True, ALLUSERSPROFILE=C:\ProgramData, CLOUDSDK_CORE_LOG_HTTP_REDACT_TOKEN=True, CLOUDSDK_PROXY_RDNS=True, KMP_DUPLICATE_LIB_OK=TRUE, CLOUDSDK_CORE_SHOW_STRUCTURED_LOGS=never, CLOUD

SDK_PYTHON=C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin..\platform\bundledpython\python.exe, PROGRAMFILES=C:\Program Files, IVIROOTDIR64=C:\Program Files\IVI Foundation\IVI, PSMODULEPATH=C:\Windows\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files (x86)\Google\Cloud SDK\goo

gle-cloud-sdk\platform\PowerShell, CLOUDSDK_CORE_TRACE_LOG=False, CLOUDSDK_CONTAINER_USE_CLIENT_CERTIFICATE=False, CLOUDSDK_CORE_PASS_CREDENTIALS_TO_GSUTIL=True, CLOUDSDK_GSUTIL_PYTHON=C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin..\platform\bundledpython\python.exe, USERNAME=oliva,

CLOUDSDK_APP_RUNTIME_ROOT=C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\platform\ext-runtime, CLOUDSDK_AUTH_TOKEN_HOST=https://www.googleapis.com/oauth2/v4/token, CLOUDSDK_ML_ENGINE_POLLING_INTERVAL=60, CLOUDSDK_CORE_ACCOUNT=salvy1977@gmail.com, CLOUDSDK_INTERACTIVE_MANPAGE_GENERATOR=True

, CLOUDSDK_COMPUTE_GCE_METADATA_CHECK_TIMEOUT_SEC=3, CLOUDSDK_PROXY_USE_URLLIB3_VIA_SHIM=False, VXIPNPPATH64=C:\Program Files\IVI Foundation\VISA, PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC, CLOUDSDK_CORE_API_HOST=https://www.googleapis.com, CLOUDSDK_EMULATOR_PUBSUB_HOST_PORT=loc

alhost:8085, BUNDLED_PYTHON=C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin..\platform\bundledpython\python.exe, CLOUDSDK_CORE_RESOURCE_COMPLETION_STYLE=flags, CLOUDSDK_GAME_SERVICES_DEFAULT_DEPLOYMENT=-, CLOUDSDK_INTERACTIVE_SUGGEST=False, CLOUDSDK_VERSION=302.0.0, NIEXTCCOMPILERSUPP=

C:\Program Files (x86)\National Instruments\Shared\ExternalCompilerSupport\C, CLOUDSDK_CORE_COLOR_THEME=off, CLOUDSDK_CORE_PROJECT=app-inventor-tasks, HOMEPATH=\Users\oliva, CLOUDSDK_CORE_ENABLE_GRI=False, CLOUDSDK_VMWARE_NODE-TYPE=c1-highmem-72-metal, PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 15

8 Stepping 10, GenuineIntel, WINDOWS_TRACING_LOGFILE=C:\BVTBin\Tests\installpackage\csilogfile.log, PUBLIC=C:\Users\Public, CLOUDSDK_AUTH_GOOGLE_AUTH_ALLOWED=False, CLOUDSDK_CORE_INTERACTIVE_UX_STYLE=InteractiveUXStyles.NORMAL, CLOUDSDK_APP_CONTAINER_BUILDER_IMAGE=gcr.io/cloud-builders/docker, CLOUD

SDK_COMPUTE_USE_NEW_LIST_USABLE_SUBNETS_API=False, CLOUDSDK_INTERACTIVE_SHOW_HELP=True, JAVA_HOME=C:\Program Files\Java\jdk1.8.0_261, PROMPT=$P$G, PROGRAMFILES(X86)=C:\Program Files (x86), CLOUDSDK_SURVEY_DISABLE_PROMPTS=False, CLOUDSDK_INTERACTIVE_COMPLETION_MENU_LINES=4, CLOUDSDK_INTERACTIVE_FIXED

_PROMPT_POSITION=False, ANT_HOME=C:\apache-ant-1.10.8, CLOUDSDK_GCLOUDIGNORE_ENABLED=True, APPDATA=C:\Users\oliva\AppData\Roaming, CLOUDSDK_CORE_CHECK_GCE_METADATA=True, CLOUDSDK_CORE_LINT=none, CLOUDSDK_ROOT_DIR=C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin.., CLOUDSDK_INTERACTIVE_H

IDDEN=False, CLOUDSDK_APP_RUNTIME_BUILDERS_ROOT=gs://runtime-builders/, CLOUDSDK_BILLING_QUOTA_PROJECT=CURRENT_PROJECT, CLOUDSDK_PYTHON_ARGS_NO_S=-S=, COMPUTERNAME=PSO5-V1-W764, NIIVIPATH=C:\Program Files (x86)\IVI Foundation\IVI, CLOUDSDK_EMULATOR_DATASTORE_HOST_PORT=localhost:8081, CLOUDSDK_GAME_

SERVICES_LOCATION=global, CLOUDSDK_CONTAINER_BUILD_CHECK_TAG=True, GCE_METADATA_TIMEOUT=3, CLOUDSDK_AUTH_CLIENT_ID=32555940559.apps.googleusercontent.com, CLOUDSDK_CONTAINER_USE_APPLICATION_DEFAULT_CREDENTIALS=False, CLOUDSDK_HEALTHCARE_LOCATION=us-central1, HOMEDRIVE=C:, NUMBER_OF_PROCESSORS=2, CLO

UDSDK_DEVSHELL_METADATA_IMAGE=gcr.io/google_appengine/faux-metadata:latest, CLOUDSDK_INTERACTIVE_PROMPT=$ , NO_WORKING_PYTHON_FOUND="false", PROCESSOR_LEVEL=6, SYSTEMDRIVE=C:, CLOUDSDK_CORE_LOG_HTTP=False, FP_NO_HOST_CHECK=NO, CLOUDSDK_WRAPPER=1, CLOUDSDK_CORE_SHOULD_PROMPT_TO_ENABLE_API=True, CLOUD

SDK_APP_USE_APPENGINE_API=True, CLOUDSDK_ACTIVE_CONFIG_NAME=default, CLOUDSDK_INTERACTIVE_OBFUSCATE=False, PROCESSOR_ARCHITECTURE=AMD64, CLOUDSDK_FUNCTIONS_REGION=us-central1, CLOUDSDK_WORKFLOWS_LOCATION=us-central1, VXIPNPPATH=C:\Program Files (x86)\IVI Foundation\VISA, CLOUDSDK_INTERACTIVE_BOTTOM

_STATUS_LINE=False, CLOUDSDK_INTERACTIVE_HELP_LINES=10, PROGRAMDATA=C:\ProgramData, CLOUDSDK_EXPERIMENTAL_FAST_COMPONENT_UPDATE=False, CLOUDSDK_LIFESCIENCES_LOCATION=us-central1, CLOUDSDK_CORE_DISABLE_USAGE_REPORTING=True, CLOUDSDK_CORE_DISABLE_FILE_LOGGING=False, CLOUDSDK_EMULATOR_BIGTABLE_HOST_POR

T=localhost:8086, CLOUDSDK_ACCESSIBILITY_SCREEN_READER=False, CLOUDSDK_AUTH_AUTH_HOST=https://accounts.google.com/o/oauth2/auth, WINDIR=C:\Windows, CLOUDSDK_INTERACTIVE_DEBUG=False, IVIROOTDIR32=C:\Program Files (x86)\IVI Foundation\IVI, CLOUDSDK_PYTHON_ARGS=-S, CLOUDSDK_APP_STOP_PREVIOUS_VERSION=T

rue, CLOUDSDK_DATAFLOW_PRINT_ONLY=False, LOCALAPPDATA=C:\Users\oliva\AppData\Local, CLOUDSDK_DEVSHELL_IMAGE=gcr.io/dev_con/cloud-dev-common:prod, CLOUDSDK_AUTH_DISABLE_LOAD_GOOGLE_AUTH=False, COMMONPROGRAMFILES(X86)=C:\Program Files (x86)\Common Files, USERDOMAIN=PSO5-V1-W764, LOGONSERVER=\PSO5-V1-

W764, CLOUDSDK_COMPUTE_GCE_METADATA_READ_TIMEOUT_SEC=20, CLOUDSDK_BUILDS_USE_KANIKO=False, NO_GCE_CHECK=False, WINDOWS_TRACING_FLAGS=3, CLOUDSDK_BUILDS_CHECK_TAG=True, CLOUDSDK_INTERACTIVE_CONTEXT=, CLOUDSDK_INTERACTIVE_JUSTIFY_BOTTOM_LINES=False, PROGRAMW6432=C:\Program Files, SYSTEMROOT=C:\Windows

, CLOUDSDK_DATAFLOW_DISABLE_PUBLIC_IPS=False, CLOUDSDK_DEPLOYMENT_MANAGER_GLOB_IMPORTS=False, CLOUDSDK_AUTH_DISABLE_ACTIVATE_SERVICE_ACCOUNT_GOOGLE_AUTH=False, MKL_SERIAL=YES, OS=Windows_NT, COMMONPROGRAMW6432=C:\Program Files\Common Files, CLOUDSDK_AUTH_DISABLE_CREDENTIALS=False, COMMONPROGRAMFILES

=C:\Program Files\Common Files, COMSPEC=C:\Windows\system32\cmd.exe, CLOUDSDK_BUILDS_KANIKO_IMAGE=gcr.io/kaniko-project/executor:latest, CLOUDSDK_BUILDS_KANIKO_CACHE_TTL=6, CLOUDSDK_AUTH_CLIENT_SECRET=ZmssLNjJy2998hD4CTg2ejr2, PROCESSOR_REVISION=9e0a, CLOUDSDK_GAME_SERVICES_DEFAULT_REALM=-, CLOUDSDK

_PUBSUB_LEGACY_OUTPUT=False, TEMP=C:\Users\oliva\AppData\Local\Temp, USERPROFILE=C:\Users\oliva, CLOUDSDK_CORE_MAX_LOG_DAYS=30, TMP=C:\Users\oliva\AppData\Local\Temp, WHERE_FOUND=C:\Windows\System32\where.exe, CLOUDSDK_CORE_USER_OUTPUT_ENABLED=True}, workingDirectory=Optional[C:\appinventor-sources\

appinventor\appengine\build\war], stdinSource=InputSource{kind=PROCESS}, stdoutSink=OutputSink{kind=JVM_OUT}, stderrSink=OutputSink{kind=JVM_ERR}, successCondition=ExitCodeSuccessCondition{exitCodes=[0]}, executor=com.google.appengine.repackaged.com.google.common.labs.command.NativeProcess$1@6f2b958

e}: CommandResult{exit code=1, stdout=, stderr=}

at com.google.appengine.repackaged.com.google.common.labs.command.CommandProcess.processFinished(CommandProcess.java:260)

at com.google.appengine.repackaged.com.google.common.labs.command.CommandProcess.await(CommandProcess.java:149)

at com.google.appengine.tools.KickStart.(KickStart.java:281)

... 1 more

So here's the root issue:

java.lang.IllegalArgumentException: the Java7 runtime is not supported anymore.

We upgraded to the Java 8 runtime some time ago as Google removed support for it. You may need to update your master branch to a more recent version of App Inventor to make progress.

1 Like

Hi Evan,
Honestly, I don’t know what to think about your suggestion, actually I just cloned App Inventor Tasks project branch I found at the following link:

Unfortunately, the issue seems getting much more complicated than I imagined, especially for a newbie as me... What I can't understand is why server build succeeded (I could expect such kind of error happening in this stage), but I can't eventually launch it...
Do you think your suggestion is simple to apply? What I have to do in practice?
Thank you again.

Hi Evan,
Could I kindly ask for your help about the current issue? Unfortunately, I am stuck and I don't know what I have to practically do to apply your suggestion...
Thank you again.

You should be able to run it using the deprecated AppEngine Standard Java SDK

Checkout the instructions provided here https://github.com/thequixotic/appinventor-sources/blob/services-final/README.md

The easiest thing to do is just add <runtime>java8</runtime> in the appengine/war/WEB-INF/appengine-web.xml file. The older SDK is deprecated and we can't guarantee anything about how long Google will keep it available.

1 Like

Hi pavi2410, hi Evan, thank you so much for your kind help.
After including runtime statement in appengine-web.xml file, I was eventually successful in running main server, even though it was beforehand necessary to launch a new build of the server.
Sadly, I discovered that the project I got from GitHub and I built up comes as a standard App Inventor server, it is not App Inventor Services project I was exactly looking for...

After so struggling, that turns out to be quite disappointing.
GitHub link where I cloned from the project is: https://github.com/thequixotic/appinventor-sources/tree/services-final.
However, I found a different GitHub link in the document here: https://ai2gsoc16.wordpress.com/app-inventor-services/
So, I am pretty confused and I suspect none of them is correct.
Is somebody able to point me out the surely right GitHub link hosting App Inventor Services project, desirably the most up-to-date version? I am very little experienced about GitHub...
Thank you again. Until next time.

Hi everyboby,
Drawing on my last post, I wonder if anybody could kindly suggest me the right Github repository link for last version of App Inventor Background Services, among the many AI2 project branches listed in Quixotic Github area:

https://github.com/thequixotic/appinventor-sources/branches/all

I would like to attempt building the project up again, but I don't know which one to select and I would avoid to eventually discover I picked up the wrong branch.
Thanks all in advance.

I believe this branch is the one running in production sans branding information:

Dear Evan, dear Pavi2410,
After furtherly enduring, I am pretty glad to report that I finally succeeded to build and to run App Inventor 2 Services project locally on my PC:

My mistake was essentially due to my lack of knowledge about GitHub and its working ways. Through some struggles, I realized that I had to clone the services-final branch included in App Inventor project main repository of The Quixotic's GitHub page. So, after including the statement for deprecated old SDK and building the project up, both servers eventually ran successfully.
Let me express you my sincere gratitude to have been so patient and helpful in supporting me.
Thank you again and my best regards.

1 Like

Hi Evan,
I preferred to build up and run the branch you suggested (services-final-jis), allegedly the official one up-to-date and running in production, but after I login (by test@example.com or by any other user), I get the following error:

If I continue and I create a new project, the error keeps popping up (with a different reason), the project does not open and App Inventor environment seems doomed and no longer usable:

No error was triggered instead with services-final branch. Any suggestion about this issue?
Besides, I have other two questions:

  • Which are the differences between services-final and services-final-jis branches? What I actually miss if I revert to and I use services-final branch?
  • Is there a better way to stop the servers from running other than sending Ctrl+C keys to command line window?

Thank you again for your valuable help. Until next time.