You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2022/04/20 19:51:12 UTC

[GitHub] [couchdb] jefferbrecht commented on issue #4001: Installation fails on Ubuntu 20.04 as of couchdb-3.2.2

jefferbrecht commented on issue #4001:
URL: https://github.com/apache/couchdb/issues/4001#issuecomment-1104396938

   Thanks! I just found a workaround at the same time you commented, which is to change this line in `/opt/couchdb/etc/vm.args`:
   
   ```
   # -setcookie
   ```
   
   to
   
   ```
   -setcookie somestring
   ```
   
   I wasn't able to get `debconf-set-selections` to work either; it looked like the DEBIAN/config script in the package was always overwriting any preseeded values as long as that blank commented line existed in that file:
   
   ```bash
   if [ -e /opt/couchdb/etc/vm.args ] ; then
     cookie="$(grep '^-setcookie' /opt/couchdb/etc/vm.args | cut -d ' ' -f 2 | stripwhitespace)"
     nodename="$(grep '^-name' /opt/couchdb/etc/vm.args | cut -d ' ' -f 2 | stripwhitespace)"
     db_set couchdb/cookie "${cookie}" # <-- ${cookie} is blank here
     if [ "${nodename}" != "couchdb@127.0.0.1" ]; then
       db_set couchdb/nodename "${nodename}"
     fi
   fi
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org