nickva commented on PR #106:
URL: https://github.com/apache/couchdb-pkg/pull/106#issuecomment-1399874968

   Setting the cookie worked. I rebuilt debian-buster deb with it and installed 
in a VM.
   
   deb install dialog:
   ```
   CouchDB Erlang magic cookie: a \nb#$/c/d@:1
   ```
   
   vm.args file
   ```
   -setcookie 'a 
   b#$/c/d@:1'
   ```
   CouchDB seems to start and I can access it via curl.
   
   However, unfortunately the single quotes seem to break our remsh script. 
   
   ```
   couchdb@debian10:~$ ./bin/remsh 
   Erlang/OTP 24 [erts-12.3.2.7] [source] [64-bit] [smp:2:2] [ds:2:2:10] 
[async-threads:1] [jit]
   
   *** ERROR: Shell process terminated! (^G to start new job) ***
   
   ```
   
   Likely due to assumptions how we parse the cookie value there 
https://github.com/apache/couchdb/blob/3181d928e060687e2a214192ba17c401811c6da3/rel/overlay/bin/remsh#L50-L57
   
   ```
   ARGS_FILE_COOKIE=$(awk '$1=="-setcookie"{print $2}' "$ARGS_FILE")
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to