How to solve:You Must Create an Auth Key see misc/docs/authkey.md

244 views
Skip to first unread message

孟神通

unread,
Sep 20, 2016, 9:08:10 AM9/20/16
to App Inventor Open Source Development
 [java]    Linking succeeded -- 17.761s

CheckKeystore:

Keystore:
     [echo] Using KeyczarTool to generate keystore
    [mkdir] Created dir: /var/www/ai2/appinventor-sources/appinventor/appengine/build/war/keystore
     [java] log4j:WARN No appenders could be found for logger (org.keyczar.Keyczar).
     [java] log4j:WARN Please initialize the log4j system properly.
     [java] log4j:WARN No appenders could be found for logger (org.keyczar.Keyczar).
     [java] log4j:WARN Please initialize the log4j system properly.

CheckAuthKey:

InstallAuthKey:

BUILD FAILED
/var/www/ai2/appinventor-sources/appinventor/build.xml:16: The following error occurred while executing this line:
/var/www/ai2/appinventor-sources/appinventor/appengine/build.xml:279: You Must Create an Auth Key see misc/docs/authkey.md

Total time: 8 minutes 30 seconds

孟神通

unread,
Sep 20, 2016, 9:11:26 AM9/20/16
to App Inventor Open Source Development

The directory war/WEB-INF/authkey contains the encryption keys used to encrypt/decrypt session cookies.

We could create this file each time we build the system. However that would result in each build invalidating any cookies used by the previous build. This would be a disaster for our production environment and an annoyance for developers working with the local development server.

Instead we keep a copy of the authkey keys in the file $HOME/.appinventor/authkey.zip. During the build process its contents are unzipped and placed in war/WEB-INF/authkey. If this file doesn’t exist an error (pointing to this file) is generated by the build system.


在 2016年9月20日星期二 UTC+8下午9:08:10,孟神通写道:

Jeffrey Schiller

unread,
Sep 20, 2016, 9:12:49 AM9/20/16
to app-inventor-o...@googlegroups.com

Follow the instructions in ...misc/docs/authkey.md. Basically you use
“ant makeauthkey” to create the key. You only need to do this once. The
key is stored in your home directory and used when you build MIT App
Inventor.

-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 20, 2016, 9:49:13 AM9/20/16
to App Inventor Open Source Development
thank your very much, i have solved this problem and i met a new problem
 Cannot run program "/tmp/aapt3936039970921041657": error=2, No such file or director

could you help me 

[java] INFO: ____Executing /usr/jdk/jre/bin/java -mx824M -jar /tmp/dx_2443278981131012833.jar --dex --positions=lines --output=/tmp/1474377759769_0.10716719810462727-0/youngandroidproject/../build/tmp/classes2.dex /var/www/ai2/appinventor-sources/appinventor/build/buildserver/dexCache/dex-cached-3dbee72667f107b4f76f2d5aa33c5687.jar /var/www/ai2/appinventor-sources/appinventor/build/buildserver/dexCache/dex-cached-8ca2437d3dbbaa2e76195adedfd901f4.jar /var/www/ai2/appinventor-sources/appinventor/build/buildserver/dexCache/dex-cached-5c3dfb562d5c95e5c104910b7bd5491f.jar /var/www/ai2/appinventor-sources/appinventor/build/buildserver/dexCache/dex-cached-9a0bee400fbba48cea726f34474b674d.jar /var/www/ai2/appinventor-sources/appinventor/build/buildserver/dexCache/dex-cached-ac4cf27497116ecf2b530b9d7975ec0b.jar
     [java] Merged dex #1 (148 defs/144.0KiB)
     [java] Merged dex #2 (1 defs/1.7KiB)
     [java] Merged dex #3 (34 defs/66.9KiB)
     [java] Merged dex #4 (56 defs/51.8KiB)
     [java] Merged dex #5 (182 defs/334.3KiB)
     [java] Result is 421 defs/732.6KiB. Took 1.4s
     [java] Sep 20, 2016 9:27:09 PM com.google.appinventor.buildserver.Compiler setProgress
     [java] INFO: The current progress is 75%
     [java] Sep 20, 2016 9:27:09 PM com.google.appinventor.buildserver.Compiler runDx
     [java] INFO: DX time: 261.376 seconds
     [java] Sep 20, 2016 9:27:09 PM com.google.appinventor.buildserver.Compiler setProgress
     [java] INFO: The current progress is 85%
     [java] Sep 20, 2016 9:27:09 PM com.google.appinventor.buildserver.Execution execute
     [java] INFO: ____Executing /tmp/aapt3936039970921041657 package -v -f -M /tmp/1474377759769_0.10716719810462727-0/youngandroidproject/../build/AndroidManifest.xml -S /tmp/1474377759769_0.10716719810462727-0/youngandroidproject/../build/res -A /tmp/1474377759769_0.10716719810462727-0/youngandroidproject/../assets -I /tmp/android7149715253834416076.jar -F /tmp/1474377759769_0.10716719810462727-0/youngandroidproject/../build/deploy/MIT AI2 Companion.ap_ /tmp/1474377759769_0.10716719810462727-0/youngandroidproject/../build/libs
     [java] Sep 20, 2016 9:27:09 PM com.google.appinventor.buildserver.Execution execute
     [java] WARNING: ____Execution failure: 
     [java] java.io.IOException: Cannot run program "/tmp/aapt3936039970921041657": error=2, No such file or directory
     [java] at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)
     [java] at java.lang.Runtime.exec(Runtime.java:617)
     [java] at com.google.appinventor.buildserver.Execution.execute(Execution.java:111)
     [java] at com.google.appinventor.buildserver.Compiler.runAaptPackage(Compiler.java:1220)
     [java] at com.google.appinventor.buildserver.Compiler.compile(Compiler.java:673)
     [java] at com.google.appinventor.buildserver.ProjectBuilder.build(ProjectBuilder.java:170)
     [java] at com.google.appinventor.buildserver.Main.main(Main.java:82)
     [java] Caused by: java.io.IOException: error=2, No such file or directory
     [java] at java.lang.UNIXProcess.forkAndExec(Native Method)
     [java] at java.lang.UNIXProcess.<init>(UNIXProcess.java:186)
     [java] at java.lang.ProcessImpl.start(ProcessImpl.java:130)
     [java] at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028)
     [java] ... 6 more
     [java] 
     [java] Sep 20, 2016 9:27:09 PM com.google.appinventor.buildserver.Compiler runAaptPackage
     [java] WARNING: YAIL compiler - AAPT execution failed.


在 2016年9月20日星期二 UTC+8下午9:12:49,j...@mit.edu写道:

Evan Patton

unread,
Sep 20, 2016, 9:59:47 AM9/20/16
to App Inventor Open Source Development
I've seen this happen on 64-bit installations where the 32-bit libraries are not present. If you are on a Debian-based system, you can install 32-bit compatibility libraries by doing sudo apt-get install ia32-libs
Depending on what distribution of Linux you are using your mileage may vary.

Evan

Jeffrey Schiller

unread,
Sep 20, 2016, 10:02:32 AM9/20/16
to app-inventor-o...@googlegroups.com

孟神通 writes:
> thank your very much, i have solved this problem and i met a new
> problem Cannot run program "/tmp/aapt3936039970921041657": error=2, No
> such file or director could you help me

Take a look at our document on how to build MIT App Inventor from
sources (found at http://appinventor.mit.edu/appinventor-sources). In
particular look at:

https://docs.google.com/document/pub?id=1Xc9yt02x3BRoq5m1PJHBr81OOv69rEBy8LVG_84j9jc#h.pz6zzhs54gxj

which talks about making sure you have the 32 bit libraries needed to
run Google’s “aapt” program (which is the program it is complaining
about).

-Jeff

孟神通

unread,
Sep 20, 2016, 8:41:37 PM9/20/16
to App Inventor Open Source Development
thank you very much ,i had built app inventor successfully ,and i noticed that openjdk1.7 was recomended.so i re-ant my app inventor.

在 2016年9月20日星期二 UTC+8下午10:02:32,j...@mit.edu写道:
Reply all
Reply to author
Forward
0 new messages