Issue while pushing and pulling from mercurial repository.

Adrian Klaver adrian.klaver at aklaver.com
Mon Jul 11 14:26:13 UTC 2016


On 07/08/2016 12:03 PM, Oswal, Vipul (ETW - Infosys) wrote:
> Hi ,I am getting error. HTTP Error: 404 (Not Found) [command returned
> code 255
>
> Publishing/pulling the change from repository has suddenly stopped
> working. We have repository folder d:\hgrepo\active\all-projects.
>
> Below is hgweb.config file - [paths] / = d:\hgrepo* [web] allow_push = *
> push_ssl = false
>
> The URL - http://server:8989/hgweb.cgi/active/project-name/ gives us
> "404 - File or directory not found."
>
> ·        *server OS and software*– Microsoft windows server – 2008 R2
>
> *Mercurial version*– *TortoiseHg **version 2.4.1 *with Mercurial-2.2.2,
> Python-2.6.6, PyQt-4.8.6, Qt-4.7.4
>
> ·        *server access/error log – *
>
>   * % hg --repository C:\hg\active\NA_BRW pull --verbose
>     http://hillsbor-svr-va:8989/hgweb.cgi/active/license/NA_BRW/
>   * HTTP Error: 404 (Not Found)
>   * [command returned code 255 Fri Jul 08 10:29:04 2016]
>   * NA_BRW%
>
> ·        * *
>
> ·        *hgweb.cgi script –*
>
> #!/usr/bin/env python
>
> #
>
> # An example hgweb CGI script, edit as necessary
>
> # See also http://mercurial.selenic.com/wiki/PublishingRepositories
>
>
>
> # Path to repo or hgweb config to serve (see 'hg help hgweb')
>
> config = "c:\inetpub\hg2\hgweb.config"
>
>
>
> # Uncomment and adjust if Mercurial is not installed system-wide
>
> # (consult "installed modules" path from 'hg debuginstall'):
>
> #import sys; sys.path.insert(0, "/path/to/python/lib")
>
>
>
> # Uncomment to send python tracebacks to the browser if an error occurs:
>
> #import cgitb; cgitb.enable()
>
>
>
> from mercurial import demandimport; demandimport.enable()
>
> from mercurial.hgweb import hgweb, wsgicgi
>
> application = hgweb(config)
>
> wsgicgi.launch(application)
>
>
>
>
>
> We did not make any changes to files. Can you please suggest what would
> be the problem?

Was there an upgrade to the OS between the time the push/pull worked and 
the time it did not?

Have you checked firewall software to see if someone changed the rules?

Do the paths exist?

>
>
>
>
>
> Regards,
>
> Vipul Oswal | NA Tech –Developer | M -510-468-3827
>
>
>
>
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial
>


-- 
Adrian Klaver
adrian.klaver at aklaver.com



More information about the Mercurial mailing list