07-16 17:06:25.589: DEBUG/dalvikvm(652): Trying to load lib
/data/data/com.arandomurl.couchapp/lib/libcom_google_ase_Exec.so
0x406436a0
07-16 17:06:25.589: DEBUG/dalvikvm(652): Added shared lib
/data/data/com.arandomurl.couchapp/lib/libcom_google_ase_Exec.so
0x406436a0
07-16 17:06:25.601: DEBUG/dalvikvm(652): No JNI_OnLoad found in
/data/data/com.arandomurl.couchapp/lib/libcom_google_ase_Exec.so
0x406436a0, skipping init
07-16 17:06:25.729: VERBOSE/CouchDB(652):
/data/data/com.arandomurl.couchapp/couchdb/bin/couchdb[42]: basename:
not found
07-16 17:06:25.769: VERBOSE/CouchDB(652):
/data/data/com.arandomurl.couchapp/couchdb/bin/couchdb[333]: can't
create temporary file /sqlite_stmt_journals/mksh.hPJmxX1140: No such
file or directory
07-16 17:06:25.789: VERBOSE/CouchDB(652):
/data/data/com.arandomurl.couchapp/couchdb/bin/couchdb[333]: getopt:
not found
07-16 17:06:25.810: VERBOSE/CouchDB(652): Try ` -h' for more information.
07-16 17:06:25.830: VERBOSE/CouchDB(652):
/data/data/com.arandomurl.couchapp/couchdb/bin/couchdb: erl: not found
07-16 17:06:25.840: VERBOSE/CouchDB(652): CouchDB has stopped unexpectedly
07-16 17:06:25.889: VERBOSE/CouchAppActivity(652):
java.io.IOException: I/O error
07-16 17:06:25.889: VERBOSE/CouchAppActivity(652): at
org.apache.harmony.luni.platform.OSFileSystem.read(Native Method)
07-16 17:06:25.889: VERBOSE/CouchAppActivity(652): at
dalvik.system.BlockGuard$WrappedFileSystem.read(BlockGuard.java:172)
07-16 17:06:25.889: VERBOSE/CouchAppActivity(652): at
java.io.FileInputStream.read(FileInputStream.java:208)
07-16 17:06:25.889: VERBOSE/CouchAppActivity(652): at
java.io.InputStreamReader.read(InputStreamReader.java:248)
07-16 17:06:25.889: VERBOSE/CouchAppActivity(652): at
java.io.BufferedReader.fillBuf(BufferedReader.java:130)
07-16 17:06:25.889: VERBOSE/CouchAppActivity(652): at
java.io.BufferedReader.readLine(BufferedReader.java:357)
07-16 17:06:25.889: VERBOSE/CouchAppActivity(652): at
com.couchbase.libcouch.CouchProcess$1.run(CouchProcess.java:48)
07-16 17:06:25.889: VERBOSE/CouchAppActivity(652): at
java.lang.Thread.run(Thread.java:1020)
I've put the full log here:
https://gist.github.com/1086794
Thanks,
marty
marty
07-18 13:14:24.299: VERBOSE/CouchDB(389): test: permission denied
07-18 13:14:24.349: VERBOSE/CouchDB(389): [: permission denied
07-18 13:14:24.359: VERBOSE/CouchDB(389): test: permission denied
07-18 13:14:24.389: VERBOSE/CouchDB(389): [: permission denied
07-18 13:14:24.399: VERBOSE/CouchDB(389): getopt: permission denied
07-18 13:14:24.409: VERBOSE/CouchDB(389): test: permission denied
07-18 13:14:24.409: VERBOSE/CouchDB(389): [: permission denied
07-18 13:14:24.418: VERBOSE/CouchDB(389): test: permission denied
07-18 13:14:24.418: VERBOSE/CouchDB(389): test: permission denied
07-18 13:14:24.428: VERBOSE/CouchDB(389): test: permission denied
07-18 13:14:24.428: VERBOSE/CouchDB(389): test: permission denied
07-18 13:14:24.428: VERBOSE/CouchDB(389): test: permission denied
07-18 13:14:24.448: VERBOSE/CouchDB(389): test: permission denied
07-18 13:14:24.468: VERBOSE/CouchDB(389): sed: permission denied
Has anyone else encountered these problems? Am I missing something
obvious, or heading the wrong direction here?
marty
> I hard-coded the startup script to not use basename and I was able to
> get couch to start. Several other things are still missing from the
> startup script, but they are are not fatal.
Those are "normal" failures, Marty.
basename was expected to fail and it's failure should not have prevented
you from launching Couch. This leads me to believe that the problem was
something else (I could be completely wrong about this since I've only
given your initial report a cursory look).
Would you please post a diff of the changes that you made? I'm
interested in knowing what you needed to do to get this to work.
Also, what version of Android are you running? Is it a stock
distribution or did you root the phone/install a custom ROM?
Thanks,
Matt
--
Matt Adams
Radical Dynamic
www.radicaldynamic.com
The change I made was to couchdb/bin/couchdb
From:
basename=`basename $0`
To:
basename="couchdb"
Then re-tarred/gzipped, added .jpg extension and dropped into
Android-Demo/assets. Uninstalled previous build, relaunched app.
Something in my tar/gzipping appears to have broken the progress bar
during installtion, but adb logcat shows the files extracting fine.
I'm not working with a real device right now. This is stock Android
SDK I installed on Saturday. The emulator instance I got working is
using SDK version 8. Earlier I discovered that anything newer than 10
would fail to load android_icu.
marty
Yeah, based on what you and Matt are saying I'll revert my change and
see if I can debug the system call to start couch.
marty
The release-0.1.tgz.jpg inside of the Android-Demo is old and still
has references to:
export HOME=/data/data/%app_name%/cache
The release-0.1.tgz.jpg in libcouch-android was updated more recently
and correctly points to:
export HOME=/data/data/%app_name%
In my own testing I got these files mixed up as well, which is why I
thought the basename changed fixed things.
marty
> In my own testing I got these files mixed up as well, which is why I
> thought the basename changed fixed things.
Sounds right to me, Marty. Looks like you've got it figured out!