couchdb 1.2.0 wont start, /var/run/couchdb/couchdb.pid

Write tutorials and howtos in here
More tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Do not start a support topic here please, Before you post please read this

couchdb 1.2.0 wont start, /var/run/couchdb/couchdb.pid

Postby mr.generic.user on Wed Jan 16, 2013 5:39 pm

I have been looking to fix this for a while, and I have finally done so. I thought I would share my fix/patch in case someone else was having trouble, or if someone had a better idea.

Background:
The error first showed up as a startup error about not having permissions to the /var/run/couchdb/couchdb.pid. Later testing gave me a json error response from the command line.

Fix:
edit file /etc/init.d/couchdb
in function start_couchdb
after: mkdir -p "$RUN_DIR"
add: chown -R $COUCHDB_USER "$RUN_DIR"

I am attaching a tar.gz file that contains a diff/patch file and a simple script to run the patch. Just download the tarball, uncompress it, and from inside the directory at the command line run:
sudo ./fixCouchDBInit

I hope this helps someone else. If anyone else has any suggestions, or if I have done something wrong, please let me know.
Attachments
fixCouchDBInit.tar.gz
fixCouchDBInit/
fixCouchDBInit/fixCouchDBInit.patch
fixCouchDBInit/readme.txt
fixCouchDBInit/fixCouchDBInit
(598 Bytes) Downloaded 68 times
mr.generic.user
Level 1
Level 1
 
Posts: 2
Joined: Fri Apr 27, 2012 12:53 pm

Linux Mint is funded by ads and donations.
 

Return to Tutorials / Howtos

Who is online

Users browsing this forum: No registered users and 1 guest