-
Notifications
You must be signed in to change notification settings - Fork 69
Description
Hi 👋
I have some difficulties to setup my dev environment. I have installed couchdb locally and it run well:
curl --silent -XGET http://admin:[email protected]:5984/ ✔
{"couchdb":"Welcome","version":"3.2.2","git_sha":"d5b746b7c","uuid":"a93d5b2525abe571944e0a5315af21bc","features":["access-ready","partitioned","pluggable-storage-engines","reshard","scheduler"],"vendor":{"name":"The Apache Software Foundation"}}
Now I try unsuccessfully to start the docker image cozy-app-dev
as it's described in the documenttion. I just added the COUCHDB_URL
config because I'm running a couchdb V3 so I don't have the party mode enabled and I can't find any other way to setup the user/password for couchdb.
docker run --rm -it --env COUCHDB_URL=http://admin:password@localhost:5984/ --net=host -v "$(pwd)/build/drive":/data/cozy-app/drive cozy/cozy-app-dev
the output gives me:
checking that localhost:8080 is free... ok
waiting for couchdb...ok
checking couchdb on http://admin:password@localhost:5984/... failed
error: couchdb v1 is running on http://admin:password@localhost:5984/
error: you need couchdb version >= 2
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
As you can see in one of the call above my couchdb version is "3.2.2" so it should be ok but it still fail.
I have found the error location: https://github.com/cozy/cozy-stack/blob/master/scripts/cozy-app-dev.sh#L140 but I don't see what could fails. All I know is that if I enter an invalid user/password it give the same output but I'm pretty sure of my credentials as I'm connected with it and I tried directly with the curl.