Note that there are some explanatory texts on larger screens.

plurals
  1. POmercurial-server says: No section: 'paths' Must be run as the 'hg' user
    primarykey
    data
    text
    <p>I try to tune hg through this (official) tutorial: <a href="http://dev.lshift.net/paul/mercurial-server/docbook.html" rel="nofollow">http://dev.lshift.net/paul/mercurial-server/docbook.html</a></p> <p>when i try: </p> <pre><code>sudo -u hg /usr/share/mercurial-server/refresh-auth </code></pre> <p>it says:</p> <pre><code>No section: 'paths' Must be run as the 'hg' user </code></pre> <p>So it is a problem</p> <p><strong>UPD:</strong></p> <p>way to resolve, and true tutorial for install mercurial-server:</p> <p>on remote server:</p> <pre><code>0) save your repos to homedir 1) &lt;username&gt;@&lt;remote_server&gt;:$ sudo apt-get purge mercurial mercurial-server 2) &lt;username&gt;@&lt;remote_server&gt;:$ sudo userdel -r hg 3) &lt;username&gt;@&lt;remote_server&gt;:$ sudo rm -r /var/lib/mercurial-server 4) &lt;username&gt;@&lt;remote_server&gt;:$ sudo rm -r /etc/mercurial-server 5) &lt;username&gt;@&lt;remote_server&gt;:$ sudo rm -r /usr/share/mercurial-server 6) &lt;username&gt;@&lt;remote_server&gt;:$ sudo apt-get install mercurial mercurial-server 7) &lt;username&gt;@&lt;remote_server&gt;:$ exit </code></pre> <p>on localhost:</p> <pre><code>8) ssh -A &lt;remote_hg_server_domain&gt; </code></pre> <p>on remote server:</p> <pre><code>9) &lt;username&gt;@&lt;remote_server&gt;:$ ssh-add -L &gt; id_rsa.pub 10) &lt;username&gt;@&lt;remote_server&gt;:$ sudo mkdir -p /etc/mercurial-server/keys/root/&lt;username&gt; 11) &lt;username&gt;@&lt;remote_server&gt;:$ sudo cp my-key /etc/mercurial-server/keys/root/&lt;username&gt;/localhost (if you work from local terminal) 12) &lt;username&gt;@&lt;remote_server&gt;:$ sudo -u hg /usr/share/mercurial-server/refresh-auth - OOPS </code></pre> <p>we get</p> <pre><code>Traceback (most recent call last): File "/usr/share/mercurial-server/refresh-auth", line 22, in &lt;module&gt; refreshauth.refreshAuth() File "/usr/share/mercurial-server/mercurialserver/refreshauth.py", line 49, in refreshAuth kf = open(ffn) IOError: [Errno 13] Permission denied: '/etc/mercurial-server/keys/root/&lt;username&gt;/localhost' </code></pre> <p>resolving:</p> <pre><code>13) &lt;username&gt;@&lt;remote_server&gt;:$ sudo chmod 644 /etc/mercurial-server/keys/root/&lt;username&gt;/localhost 14) &lt;username&gt;@&lt;remote_server&gt;:$ sudo -u hg /usr/share/mercurial-server/refresh-auth 15) &lt;username&gt;@&lt;remote_server&gt;:$ sudo chmod 600 /etc/mercurial-server/keys/root/&lt;username&gt;/localhost </code></pre> <p>works good</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload