Skip to content

CouchDB 2.3.1 Package Install Fails #229

@lsgroup

Description

@lsgroup

Environment:
Base-64 19.2.0
Upgraded pkgsrc: bootstrap-trunk-x86_64-20190317-upgrade.tar.gz

$ svcadm enable couchdb
results in error:
cat: @Prefix@/couchdb/releases/start_erl.data: No such file or directory
/opt/local/bin/couchdb[31]: exec: @Prefix@/couchdb/erts-/bin/erlexec: not found

Modify: /opt/local/bin/couchdb and hard coding in some @Prefix...

export ROOTDIR="/opt/local/couchdb"
... and ...
exec "$BINDIR/erlexec" -boot "$ROOTDIR/releases/$APP_VSN/couchdb"
-args_file "/opt/local/couchdb/releases/2.3.1/vm.args"
-config "${SYSCONFIG_FILE}" "$@"

When I run the service, I now get:
{database_does_not_exist,
[{mem3_shards,load_shards_from_db,"_users",
[{file,"src/mem3_shards.erl"},{line,395}]},

I removed the /var/db/couchdb dir that was installed with the pkg and replaced it with a couchdb database directory from a running couchdb instance.

Now, couchdb does not run as a service, it gives error:
Eshell V10.4.4 (abort with ^G)
1> *** Terminating erlang (nonode@nohost)

But, it will run on the shell:
root:/var/db# /opt/local/bin/couchdb

I can go to:
http://localhost:5984/_utils/index.html#/verifyinstall

when verifying "Creating Views", I get this error:
/opt/local/couchdb/lib/couch-2.3.1-RC3/priv/couchspawnkillable[20]: exec: /opt/local/couchdb/bin/couchjs: not found

So I copy:
$ mkdir /opt/local/couchdb/bin/
$ cp /opt/local/bin/couchjs /opt/local/couchdb/bin/

Now, I end up with error:

Error in process <0.3244.0> with exit value:
{{badmatch,{error,{nodedown,<<"progress not possible">>}}},
[{ddoc_cache_entry_validation_funs,recover,1,
[{file,"src/ddoc_cache_entry_validation_funs.erl"},{line,33}]},
{ddoc_cache_entry,do_open,1,
[{file,"src/ddoc_cache_entry.erl"},{line,297}]}]}

I'm suspecting the database dir, so I purge it:
$ rm -rf /var/db/couchdb
$ mkdir /var/db/couchdb

http://localhost:5984/_utils/index.html#/setup

do a node setup and everything seems to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions