Hello,

We’ve had our database working for a few months without an incident. I just 
started seeing our app fail due to CouchDB. The CouchDB log states the 
following:

> SyntaxError: JSON.parse: unterminated string
> Stacktrace:
>       ()@share/couchdb/server/main.js:1556
>       @share/couchdb/server/main.js:1573
>       @:0
> Failed to execute script.
> Apache CouchDB 1.6.1 (LogLevel=warning) is starting.
> Apache CouchDB has started. Time to relax.
> [error] [<0.148.0>] Could not open file 
> /Library/Developer/Database/xcs.couch: file already exists
> [Sat, 04 Apr 2015 19:00:37 GMT] [error] [<0.148.0>] Could not open file 
> /Library/Developer/Database/xcs.couch: file already exists
> [error] [emulator] Error in process <0.277.0> with exit value: 
> {function_clause,[{couch_compress,decompress,[<<0 
> bytes>>],[{file,"/SourceCache/XCSCouchDB/XCSCouchDB-2/dependencies/couchdb/src/couchdb/couch_compress.erl"},{line,67}]},{couch_file,pread_term,2,[{file,"/SourceCache/XCSCo…
>  


Why is it stating "Could not open file <…> file already exists”? If the 
database exists (expected), why cannot be opened? And why is 
share/couchdb/server/main.js giving an error? AFAIK, our CouchDB installation 
hasn’t been touched in months. Any ideas?

Thanks,

— Tito

Reply via email to