"Cookie file ... exists, but could not be opened" when running 'hg clone' as root - Kiln Knowledge Exchange most recent 30 from http://kiln.stackexchange.com 2013-05-22T08:18:42Z http://kiln.stackexchange.com/feeds/question/4662 http://www.creativecommons.org/licenses/by-nc/2.5/rdf http://kiln.stackexchange.com/questions/4662/cookie-file-exists-but-could-not-be-opened-when-running-hg-clone-as-root "Cookie file ... exists, but could not be opened" when running 'hg clone' as root scjody 2012-02-23T17:51:50Z 2013-05-03T06:22:00Z <p>I am attempting to clone a repository using an access token stored in my .hgrc. I have enabled the kilnauth extension. When I clone as a regular user it works fine, but when running 'hg clone' as root I get:</p> <pre> # hg clone https://clone.url Cookie file /root/.hgcookies/d41d8cd98f00b204e9800998ecf8427e exists, but could not be opened. Continuing without cookie authentication. http authorization required realm: kiln user: </pre> <p>If I enter my access token at the user prompt it works fine, but that's what I'm trying to avoid.</p> http://kiln.stackexchange.com/questions/4662/cookie-file-exists-but-could-not-be-opened-when-running-hg-clone-as-root/4710#4710 Answer by Hao Lian for "Cookie file ... exists, but could not be opened" when running 'hg clone' as root Hao Lian 2012-03-20T19:13:55Z 2012-03-20T19:13:55Z <p>Hi scjody! We've seen this bug before; please email our support staff and they'll assist you.</p> http://kiln.stackexchange.com/questions/4662/cookie-file-exists-but-could-not-be-opened-when-running-hg-clone-as-root/4747#4747 Answer by scjody for "Cookie file ... exists, but could not be opened" when running 'hg clone' as root scjody 2012-04-17T20:07:02Z 2012-04-17T20:07:02Z <p>As a workaround, note that entering the access token at the user prompt once sets up persistent cookies so that it doesn't need to be entered every time.</p>