Hi Andrew, Python 2.5.9+ performs SSL certificate validation when performing HTTPS requests. If the SSL certificate is self-signed, expired, or otherwise invalid, the requests will fail. It sounds like this is the case here. I imagine you're using a self-signed certificate?
There's unfortunately no easy way to tell Python to trust certain certificate chains without updating every request in our code (and that of third-party libraries that might also run into this). They don't have some default certificate chain they check in some public place. I think we need to solve this in some way (allowing a custom cert chain to be provided), but right now, you'll need to either use a certificate signed by a central authority or allow http:// URLs for the Mercurial repository. Christian On Tue, Jun 6, 2017 at 10:47 Andrew Wall <drews...@gmail.com> wrote: > I'm running an instance of Review Board internally for our company and > have tried adding a Mercurial repo for one of our teams. The server running > Review Board is using Ubuntu 16.04. > > After creating a simple diff for a one line change using the "hg diff" > command I tried to upload the diff via the web interface. I keep getting > the error mentioned in the title; > > *The file "path/to/file" (revision <rev-number>) was not found in the > repository.* > > I've also noticed some messages in the logs regarding the same file; > > *Unexpected error fetching file from <repo-url>/raw-file/<same > rev-number>/path/to/file: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] > certificate verify failed (_ssl.c:590)>* > > I've found some stack overflow questions, but the answers were all very > old. Is this potentially a configuration error for how I added the > Repository or is this pointing at a problem with uploading the diff? Is > there a way to force it to not verify a cert? > > When I check out the repo my .hgrc does not point to any certs. I just has > the following lines; > > *[web]* > *cacerts =* > > If there is any additional information I could provide that may be helpful > please let me know. > > -- > Supercharge your Review Board with Power Pack: > https://www.reviewboard.org/powerpack/ > Want us to host Review Board for you? Check out RBCommons: > https://rbcommons.com/ > Happy user? Let us know! https://www.reviewboard.org/users/ > --- > You received this message because you are subscribed to the Google Groups > "reviewboard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to reviewboard+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/ Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/ Happy user? Let us know! https://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.