jguillod / couchdb-on-raspberry-pi

How to install CouchDB on Raspbian Stretch / Raspberry PI
37 stars 6 forks source link

No Admin Account Found #1

Open martin9115 opened 4 years ago

martin9115 commented 4 years ago

Hi, create project. I have an issue: After i run this command in CLI, (sudo -i -u couchdb /home/couchdb/bin/couchdb ) i've got next error

No Admin Account Found, aborting startup. Please configure an admin account in your local.ini file.

How to create new Account ?

wintifrosch commented 4 years ago

At the end of /home/couchdb/etc/local.ini, you must specify an admin password and uncomment the line.

martin9115 commented 4 years ago

I dont have local.ini file

wintifrosch commented 4 years ago

@martin9115: in Step 4: First run and check in the manual you were instructed to to edit the /home/couchdb/etc/local.ini file. At the end of this file, you will find a section labeled with [admins]:

;To create an admin account uncomment the '[admins]' section below and add a ; line in the format 'username = password'. When you next start CouchDB, it ; will change the password to a hash (so that your passwords don't linger ; around in plain-text files). You can add more admin accounts with more ; 'username = password' lines. Don't forget to restart CouchDB after ; changing this. [admins] admin = yoursecretpassword

In older versions, there was a # character in front of a comment line, in recent versions you will find a ;.
You must add your own secret password on the last line, uncomment this line, save the file and restart CouchDB.

@jguillod: please update step 4 in the manual. From CouchDB Docs 3.4 Authentication and Authorization

Changed in version 3.0.0: CouchDB requires an admin account to start. If an admin account has not been created, CouchDB will print an error message and terminate.

martin9115 commented 4 years ago

Thank you! I fix the problem and create database. Now i'm trying to sent sensor data via Node-red to IBM Cloudant database . Can you help me?

wintifrosch commented 4 years ago

Yes, individual support is possible but may be liable to pay costs. DM me or jguillod.

martin9115 commented 4 years ago

Unfortunately i can't afford it, but thank you for the help so far.