You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "eric casteleijn (JIRA)" <ji...@apache.org> on 2009/09/08 18:15:58 UTC
[jira] Created: (COUCHDB-498) .ini file chaining not properly reset
by -n switch
.ini file chaining not properly reset by -n switch
--------------------------------------------------
Key: COUCHDB-498
URL: https://issues.apache.org/jira/browse/COUCHDB-498
Project: CouchDB
Issue Type: Bug
Affects Versions: 0.10
Environment: Ubuntu Linux 09.10 (karmic) unreleased
Reporter: eric casteleijn
Fix For: 0.10
I've added as line 220 in /usr/bin/couchdb:
echo "startarguments: $start_arguments"
Now, when I do:
/usr/bin/couchdb -n -a /tmp/tmp871WkT/xdg_config/desktop-couch/desktop-couchdb.ini -p /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.pid -o /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.stdout -e /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.stderr -b
I get:
Apache CouchDB has started, time to relax.
eric@thelog:~$ startarguments: \"/etc/couchdb/default.ini\", \"/etc/couchdb/local.ini\", \""/etc/couchdb/default.ini"\", \""/tmp/tmp871WkT/xdg_config/desktop-couch/desktop-couchdb.ini"\"
which suggests to me that the -n switch in this case does not actually reset the .ini chain.
This came to light when I noticed that any admin users I added in my system CouchDB also affected any other CouchDB I ran on the same machine. Which seems logical if my analysis of the bug is correct, since the admin users would be stored in /etc/couchdb/local.ini which is always picked up.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (COUCHDB-498) .ini file chaining not properly reset
by -n switch
Posted by "Adam Kocoloski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-498?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adam Kocoloski updated COUCHDB-498:
-----------------------------------
Attachment: background_start_config_reset.patch
I think all we needed to do was add a -n in the config chain, but I also dropped the quoting of the background start args, to be consistent with the behavior for interactive startup.
Eric, care to check that this fixes things for you?
> .ini file chaining not properly reset by -n switch
> --------------------------------------------------
>
> Key: COUCHDB-498
> URL: https://issues.apache.org/jira/browse/COUCHDB-498
> Project: CouchDB
> Issue Type: Bug
> Affects Versions: 0.10
> Environment: Ubuntu Linux 09.10 (karmic) unreleased
> Reporter: eric casteleijn
> Fix For: 0.10
>
> Attachments: background_start_config_reset.patch
>
>
> I've added as line 220 in /usr/bin/couchdb:
> echo "startarguments: $start_arguments"
> Now, when I do:
> /usr/bin/couchdb -n -a /tmp/tmp871WkT/xdg_config/desktop-couch/desktop-couchdb.ini -p /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.pid -o /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.stdout -e /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.stderr -b
> I get:
> Apache CouchDB has started, time to relax.
> eric@thelog:~$ startarguments: \"/etc/couchdb/default.ini\", \"/etc/couchdb/local.ini\", \""/etc/couchdb/default.ini"\", \""/tmp/tmp871WkT/xdg_config/desktop-couch/desktop-couchdb.ini"\"
> which suggests to me that the -n switch in this case does not actually reset the .ini chain.
> This came to light when I noticed that any admin users I added in my system CouchDB also affected any other CouchDB I ran on the same machine. Which seems logical if my analysis of the bug is correct, since the admin users would be stored in /etc/couchdb/local.ini which is always picked up.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (COUCHDB-498) .ini file chaining not properly reset
by -n switch
Posted by "Adam Kocoloski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-498?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adam Kocoloski closed COUCHDB-498.
----------------------------------
Thanks for confirming the fix. Cheers, Adam
> .ini file chaining not properly reset by -n switch
> --------------------------------------------------
>
> Key: COUCHDB-498
> URL: https://issues.apache.org/jira/browse/COUCHDB-498
> Project: CouchDB
> Issue Type: Bug
> Affects Versions: 0.10
> Environment: Ubuntu Linux 09.10 (karmic) unreleased
> Reporter: eric casteleijn
> Fix For: 0.10
>
> Attachments: background_start_config_reset.patch
>
>
> I've added as line 220 in /usr/bin/couchdb:
> echo "startarguments: $start_arguments"
> Now, when I do:
> /usr/bin/couchdb -n -a /tmp/tmp871WkT/xdg_config/desktop-couch/desktop-couchdb.ini -p /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.pid -o /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.stdout -e /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.stderr -b
> I get:
> Apache CouchDB has started, time to relax.
> eric@thelog:~$ startarguments: \"/etc/couchdb/default.ini\", \"/etc/couchdb/local.ini\", \""/etc/couchdb/default.ini"\", \""/tmp/tmp871WkT/xdg_config/desktop-couch/desktop-couchdb.ini"\"
> which suggests to me that the -n switch in this case does not actually reset the .ini chain.
> This came to light when I noticed that any admin users I added in my system CouchDB also affected any other CouchDB I ran on the same machine. Which seems logical if my analysis of the bug is correct, since the admin users would be stored in /etc/couchdb/local.ini which is always picked up.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (COUCHDB-498) .ini file chaining not properly
reset by -n switch
Posted by "Adam Kocoloski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-498?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adam Kocoloski resolved COUCHDB-498.
------------------------------------
Resolution: Fixed
Hi Eric, I committed this patch to 0.10.x and trunk. Can you let us know if it doesn't work for you?
> .ini file chaining not properly reset by -n switch
> --------------------------------------------------
>
> Key: COUCHDB-498
> URL: https://issues.apache.org/jira/browse/COUCHDB-498
> Project: CouchDB
> Issue Type: Bug
> Affects Versions: 0.10
> Environment: Ubuntu Linux 09.10 (karmic) unreleased
> Reporter: eric casteleijn
> Fix For: 0.10
>
> Attachments: background_start_config_reset.patch
>
>
> I've added as line 220 in /usr/bin/couchdb:
> echo "startarguments: $start_arguments"
> Now, when I do:
> /usr/bin/couchdb -n -a /tmp/tmp871WkT/xdg_config/desktop-couch/desktop-couchdb.ini -p /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.pid -o /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.stdout -e /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.stderr -b
> I get:
> Apache CouchDB has started, time to relax.
> eric@thelog:~$ startarguments: \"/etc/couchdb/default.ini\", \"/etc/couchdb/local.ini\", \""/etc/couchdb/default.ini"\", \""/tmp/tmp871WkT/xdg_config/desktop-couch/desktop-couchdb.ini"\"
> which suggests to me that the -n switch in this case does not actually reset the .ini chain.
> This came to light when I noticed that any admin users I added in my system CouchDB also affected any other CouchDB I ran on the same machine. Which seems logical if my analysis of the bug is correct, since the admin users would be stored in /etc/couchdb/local.ini which is always picked up.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (COUCHDB-498) .ini file chaining not properly
reset by -n switch
Posted by "eric casteleijn (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12753322#action_12753322 ]
eric casteleijn commented on COUCHDB-498:
-----------------------------------------
This fixes the issue for me on the 0.10 branch, thanks so much, Adam!
> .ini file chaining not properly reset by -n switch
> --------------------------------------------------
>
> Key: COUCHDB-498
> URL: https://issues.apache.org/jira/browse/COUCHDB-498
> Project: CouchDB
> Issue Type: Bug
> Affects Versions: 0.10
> Environment: Ubuntu Linux 09.10 (karmic) unreleased
> Reporter: eric casteleijn
> Fix For: 0.10
>
> Attachments: background_start_config_reset.patch
>
>
> I've added as line 220 in /usr/bin/couchdb:
> echo "startarguments: $start_arguments"
> Now, when I do:
> /usr/bin/couchdb -n -a /tmp/tmp871WkT/xdg_config/desktop-couch/desktop-couchdb.ini -p /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.pid -o /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.stdout -e /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.stderr -b
> I get:
> Apache CouchDB has started, time to relax.
> eric@thelog:~$ startarguments: \"/etc/couchdb/default.ini\", \"/etc/couchdb/local.ini\", \""/etc/couchdb/default.ini"\", \""/tmp/tmp871WkT/xdg_config/desktop-couch/desktop-couchdb.ini"\"
> which suggests to me that the -n switch in this case does not actually reset the .ini chain.
> This came to light when I noticed that any admin users I added in my system CouchDB also affected any other CouchDB I ran on the same machine. Which seems logical if my analysis of the bug is correct, since the admin users would be stored in /etc/couchdb/local.ini which is always picked up.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (COUCHDB-498) .ini file chaining not properly
reset by -n switch
Posted by "Adam Kocoloski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12752597#action_12752597 ]
Adam Kocoloski commented on COUCHDB-498:
----------------------------------------
Sorry, I see Karmic and 0.10 above. What Erlang/OTP version are you running?
> .ini file chaining not properly reset by -n switch
> --------------------------------------------------
>
> Key: COUCHDB-498
> URL: https://issues.apache.org/jira/browse/COUCHDB-498
> Project: CouchDB
> Issue Type: Bug
> Affects Versions: 0.10
> Environment: Ubuntu Linux 09.10 (karmic) unreleased
> Reporter: eric casteleijn
> Fix For: 0.10
>
>
> I've added as line 220 in /usr/bin/couchdb:
> echo "startarguments: $start_arguments"
> Now, when I do:
> /usr/bin/couchdb -n -a /tmp/tmp871WkT/xdg_config/desktop-couch/desktop-couchdb.ini -p /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.pid -o /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.stdout -e /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.stderr -b
> I get:
> Apache CouchDB has started, time to relax.
> eric@thelog:~$ startarguments: \"/etc/couchdb/default.ini\", \"/etc/couchdb/local.ini\", \""/etc/couchdb/default.ini"\", \""/tmp/tmp871WkT/xdg_config/desktop-couch/desktop-couchdb.ini"\"
> which suggests to me that the -n switch in this case does not actually reset the .ini chain.
> This came to light when I noticed that any admin users I added in my system CouchDB also affected any other CouchDB I ran on the same machine. Which seems logical if my analysis of the bug is correct, since the admin users would be stored in /etc/couchdb/local.ini which is always picked up.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (COUCHDB-498) .ini file chaining not properly
reset by -n switch
Posted by "Adam Kocoloski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12752600#action_12752600 ]
Adam Kocoloski commented on COUCHDB-498:
----------------------------------------
Eric, I can confirm the bug when running CouchDB as a background process. Will fix.
> .ini file chaining not properly reset by -n switch
> --------------------------------------------------
>
> Key: COUCHDB-498
> URL: https://issues.apache.org/jira/browse/COUCHDB-498
> Project: CouchDB
> Issue Type: Bug
> Affects Versions: 0.10
> Environment: Ubuntu Linux 09.10 (karmic) unreleased
> Reporter: eric casteleijn
> Fix For: 0.10
>
>
> I've added as line 220 in /usr/bin/couchdb:
> echo "startarguments: $start_arguments"
> Now, when I do:
> /usr/bin/couchdb -n -a /tmp/tmp871WkT/xdg_config/desktop-couch/desktop-couchdb.ini -p /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.pid -o /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.stdout -e /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.stderr -b
> I get:
> Apache CouchDB has started, time to relax.
> eric@thelog:~$ startarguments: \"/etc/couchdb/default.ini\", \"/etc/couchdb/local.ini\", \""/etc/couchdb/default.ini"\", \""/tmp/tmp871WkT/xdg_config/desktop-couch/desktop-couchdb.ini"\"
> which suggests to me that the -n switch in this case does not actually reset the .ini chain.
> This came to light when I noticed that any admin users I added in my system CouchDB also affected any other CouchDB I ran on the same machine. Which seems logical if my analysis of the bug is correct, since the admin users would be stored in /etc/couchdb/local.ini which is always picked up.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (COUCHDB-498) .ini file chaining not properly
reset by -n switch
Posted by "Adam Kocoloski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12752607#action_12752607 ]
Adam Kocoloski commented on COUCHDB-498:
----------------------------------------
mmm, note that patch was against trunk, so it may not apply cleanly to 0.10
> .ini file chaining not properly reset by -n switch
> --------------------------------------------------
>
> Key: COUCHDB-498
> URL: https://issues.apache.org/jira/browse/COUCHDB-498
> Project: CouchDB
> Issue Type: Bug
> Affects Versions: 0.10
> Environment: Ubuntu Linux 09.10 (karmic) unreleased
> Reporter: eric casteleijn
> Fix For: 0.10
>
> Attachments: background_start_config_reset.patch
>
>
> I've added as line 220 in /usr/bin/couchdb:
> echo "startarguments: $start_arguments"
> Now, when I do:
> /usr/bin/couchdb -n -a /tmp/tmp871WkT/xdg_config/desktop-couch/desktop-couchdb.ini -p /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.pid -o /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.stdout -e /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.stderr -b
> I get:
> Apache CouchDB has started, time to relax.
> eric@thelog:~$ startarguments: \"/etc/couchdb/default.ini\", \"/etc/couchdb/local.ini\", \""/etc/couchdb/default.ini"\", \""/tmp/tmp871WkT/xdg_config/desktop-couch/desktop-couchdb.ini"\"
> which suggests to me that the -n switch in this case does not actually reset the .ini chain.
> This came to light when I noticed that any admin users I added in my system CouchDB also affected any other CouchDB I ran on the same machine. Which seems logical if my analysis of the bug is correct, since the admin users would be stored in /etc/couchdb/local.ini which is always picked up.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (COUCHDB-498) .ini file chaining not properly
reset by -n switch
Posted by "Noah Slater (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12752599#action_12752599 ]
Noah Slater commented on COUCHDB-498:
-------------------------------------
My last comment was so hilariously wrong, I just deleted it. Pretend I said nothing.
> .ini file chaining not properly reset by -n switch
> --------------------------------------------------
>
> Key: COUCHDB-498
> URL: https://issues.apache.org/jira/browse/COUCHDB-498
> Project: CouchDB
> Issue Type: Bug
> Affects Versions: 0.10
> Environment: Ubuntu Linux 09.10 (karmic) unreleased
> Reporter: eric casteleijn
> Fix For: 0.10
>
>
> I've added as line 220 in /usr/bin/couchdb:
> echo "startarguments: $start_arguments"
> Now, when I do:
> /usr/bin/couchdb -n -a /tmp/tmp871WkT/xdg_config/desktop-couch/desktop-couchdb.ini -p /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.pid -o /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.stdout -e /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.stderr -b
> I get:
> Apache CouchDB has started, time to relax.
> eric@thelog:~$ startarguments: \"/etc/couchdb/default.ini\", \"/etc/couchdb/local.ini\", \""/etc/couchdb/default.ini"\", \""/tmp/tmp871WkT/xdg_config/desktop-couch/desktop-couchdb.ini"\"
> which suggests to me that the -n switch in this case does not actually reset the .ini chain.
> This came to light when I noticed that any admin users I added in my system CouchDB also affected any other CouchDB I ran on the same machine. Which seems logical if my analysis of the bug is correct, since the admin users would be stored in /etc/couchdb/local.ini which is always picked up.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (COUCHDB-498) .ini file chaining not properly
reset by -n switch
Posted by "eric casteleijn (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12752724#action_12752724 ]
eric casteleijn commented on COUCHDB-498:
-----------------------------------------
I manually applied the two changes it as best I could against my installed couch (by editing /usr/bin/couchdb directly, probably not the smartest idea) but that showed zero difference. Can you confirm that "-n -a some.ini" really completely bypasses all the .ini files in /etc/couchdb/ ?
> .ini file chaining not properly reset by -n switch
> --------------------------------------------------
>
> Key: COUCHDB-498
> URL: https://issues.apache.org/jira/browse/COUCHDB-498
> Project: CouchDB
> Issue Type: Bug
> Affects Versions: 0.10
> Environment: Ubuntu Linux 09.10 (karmic) unreleased
> Reporter: eric casteleijn
> Fix For: 0.10
>
> Attachments: background_start_config_reset.patch
>
>
> I've added as line 220 in /usr/bin/couchdb:
> echo "startarguments: $start_arguments"
> Now, when I do:
> /usr/bin/couchdb -n -a /tmp/tmp871WkT/xdg_config/desktop-couch/desktop-couchdb.ini -p /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.pid -o /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.stdout -e /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.stderr -b
> I get:
> Apache CouchDB has started, time to relax.
> eric@thelog:~$ startarguments: \"/etc/couchdb/default.ini\", \"/etc/couchdb/local.ini\", \""/etc/couchdb/default.ini"\", \""/tmp/tmp871WkT/xdg_config/desktop-couch/desktop-couchdb.ini"\"
> which suggests to me that the -n switch in this case does not actually reset the .ini chain.
> This came to light when I noticed that any admin users I added in my system CouchDB also affected any other CouchDB I ran on the same machine. Which seems logical if my analysis of the bug is correct, since the admin users would be stored in /etc/couchdb/local.ini which is always picked up.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (COUCHDB-498) .ini file chaining not properly
reset by -n switch
Posted by "Adam Kocoloski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12752856#action_12752856 ]
Adam Kocoloski commented on COUCHDB-498:
----------------------------------------
Hi Eric, I just double-checked. In the SVN 0.10.x branch, the -n option works correctly interactively and fails to reset the chain in batch mode. If I change line 141 of bin/couchdb to
background_start_arguments="-n"
-n works in background mode, too. I stuck "this_is_default", "this_is_local", and "this_is_foo" configuration blocks in the 3 files to be sure. I only tested it on OS X 10.6.
> .ini file chaining not properly reset by -n switch
> --------------------------------------------------
>
> Key: COUCHDB-498
> URL: https://issues.apache.org/jira/browse/COUCHDB-498
> Project: CouchDB
> Issue Type: Bug
> Affects Versions: 0.10
> Environment: Ubuntu Linux 09.10 (karmic) unreleased
> Reporter: eric casteleijn
> Fix For: 0.10
>
> Attachments: background_start_config_reset.patch
>
>
> I've added as line 220 in /usr/bin/couchdb:
> echo "startarguments: $start_arguments"
> Now, when I do:
> /usr/bin/couchdb -n -a /tmp/tmp871WkT/xdg_config/desktop-couch/desktop-couchdb.ini -p /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.pid -o /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.stdout -e /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.stderr -b
> I get:
> Apache CouchDB has started, time to relax.
> eric@thelog:~$ startarguments: \"/etc/couchdb/default.ini\", \"/etc/couchdb/local.ini\", \""/etc/couchdb/default.ini"\", \""/tmp/tmp871WkT/xdg_config/desktop-couch/desktop-couchdb.ini"\"
> which suggests to me that the -n switch in this case does not actually reset the .ini chain.
> This came to light when I noticed that any admin users I added in my system CouchDB also affected any other CouchDB I ran on the same machine. Which seems logical if my analysis of the bug is correct, since the admin users would be stored in /etc/couchdb/local.ini which is always picked up.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (COUCHDB-498) .ini file chaining not properly
reset by -n switch
Posted by "Adam Kocoloski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12752596#action_12752596 ]
Adam Kocoloski commented on COUCHDB-498:
----------------------------------------
Hi Eric, can you add version and platform information here?
> .ini file chaining not properly reset by -n switch
> --------------------------------------------------
>
> Key: COUCHDB-498
> URL: https://issues.apache.org/jira/browse/COUCHDB-498
> Project: CouchDB
> Issue Type: Bug
> Affects Versions: 0.10
> Environment: Ubuntu Linux 09.10 (karmic) unreleased
> Reporter: eric casteleijn
> Fix For: 0.10
>
>
> I've added as line 220 in /usr/bin/couchdb:
> echo "startarguments: $start_arguments"
> Now, when I do:
> /usr/bin/couchdb -n -a /tmp/tmp871WkT/xdg_config/desktop-couch/desktop-couchdb.ini -p /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.pid -o /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.stdout -e /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.stderr -b
> I get:
> Apache CouchDB has started, time to relax.
> eric@thelog:~$ startarguments: \"/etc/couchdb/default.ini\", \"/etc/couchdb/local.ini\", \""/etc/couchdb/default.ini"\", \""/tmp/tmp871WkT/xdg_config/desktop-couch/desktop-couchdb.ini"\"
> which suggests to me that the -n switch in this case does not actually reset the .ini chain.
> This came to light when I noticed that any admin users I added in my system CouchDB also affected any other CouchDB I ran on the same machine. Which seems logical if my analysis of the bug is correct, since the admin users would be stored in /etc/couchdb/local.ini which is always picked up.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (COUCHDB-498) .ini file chaining not properly
reset by -n switch
Posted by "Noah Slater (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12752598#action_12752598 ]
Noah Slater commented on COUCHDB-498:
-------------------------------------
"since the admin users would be stored in /etc/couchdb/local.ini which is always picked up."
Wrong. The -n switch COMPLETELY resets the chain, including the default locations.
> .ini file chaining not properly reset by -n switch
> --------------------------------------------------
>
> Key: COUCHDB-498
> URL: https://issues.apache.org/jira/browse/COUCHDB-498
> Project: CouchDB
> Issue Type: Bug
> Affects Versions: 0.10
> Environment: Ubuntu Linux 09.10 (karmic) unreleased
> Reporter: eric casteleijn
> Fix For: 0.10
>
>
> I've added as line 220 in /usr/bin/couchdb:
> echo "startarguments: $start_arguments"
> Now, when I do:
> /usr/bin/couchdb -n -a /tmp/tmp871WkT/xdg_config/desktop-couch/desktop-couchdb.ini -p /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.pid -o /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.stdout -e /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.stderr -b
> I get:
> Apache CouchDB has started, time to relax.
> eric@thelog:~$ startarguments: \"/etc/couchdb/default.ini\", \"/etc/couchdb/local.ini\", \""/etc/couchdb/default.ini"\", \""/tmp/tmp871WkT/xdg_config/desktop-couch/desktop-couchdb.ini"\"
> which suggests to me that the -n switch in this case does not actually reset the .ini chain.
> This came to light when I noticed that any admin users I added in my system CouchDB also affected any other CouchDB I ran on the same machine. Which seems logical if my analysis of the bug is correct, since the admin users would be stored in /etc/couchdb/local.ini which is always picked up.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (COUCHDB-498) .ini file chaining not properly reset
by -n switch
Posted by "Noah Slater (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-498?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Noah Slater updated COUCHDB-498:
--------------------------------
Comment: was deleted
(was: "since the admin users would be stored in /etc/couchdb/local.ini which is always picked up."
Wrong. The -n switch COMPLETELY resets the chain, including the default locations.)
> .ini file chaining not properly reset by -n switch
> --------------------------------------------------
>
> Key: COUCHDB-498
> URL: https://issues.apache.org/jira/browse/COUCHDB-498
> Project: CouchDB
> Issue Type: Bug
> Affects Versions: 0.10
> Environment: Ubuntu Linux 09.10 (karmic) unreleased
> Reporter: eric casteleijn
> Fix For: 0.10
>
>
> I've added as line 220 in /usr/bin/couchdb:
> echo "startarguments: $start_arguments"
> Now, when I do:
> /usr/bin/couchdb -n -a /tmp/tmp871WkT/xdg_config/desktop-couch/desktop-couchdb.ini -p /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.pid -o /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.stdout -e /tmp/tmp871WkT/xdg_cache/desktop-couch/desktop-couchdb.stderr -b
> I get:
> Apache CouchDB has started, time to relax.
> eric@thelog:~$ startarguments: \"/etc/couchdb/default.ini\", \"/etc/couchdb/local.ini\", \""/etc/couchdb/default.ini"\", \""/tmp/tmp871WkT/xdg_config/desktop-couch/desktop-couchdb.ini"\"
> which suggests to me that the -n switch in this case does not actually reset the .ini chain.
> This came to light when I noticed that any admin users I added in my system CouchDB also affected any other CouchDB I ran on the same machine. Which seems logical if my analysis of the bug is correct, since the admin users would be stored in /etc/couchdb/local.ini which is always picked up.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.