I have a mercurial repository which halfway trough a 93meg push to bitbucket suddenly stops with a 502 bad gateway error.
IS there anyway I can get some more diagnostic information. This has had me stumped for days!
This isn't a great answer, but switching from HTTP to SSH might solve your problem.
(It did for me.)
See here for instructions:
https://confluence.atlassian.com/bitbucket/set-up-an-ssh-key-728138079.html
Related
Yesterday i started to get a 404 error on my free account on openshift. I can log in via sftp and see the files in the /app-root/runtime/repo directory but when i navigate to the page i get a 404. Does anyone have any ideas on what this could be?
I ended up just deleting the gear, recreating it and then just uploading all the files again. Not a huge deal but kinda of a pain in the butt however it is a free service so i'll put down my pitch fork and torch.
Next time you observe this, SSH into the gear and inspect the logs at ~/app-root/logs (or, for some cartridges, ~/CART-NAME/logs).
I'm having difficulty cloning a repository in Mercurial.
The repository is stored at Kiln on demand, though I'm not sure that makes much difference.
I have a new install of Tortoise HG, which has of course installed the hg command line onto my machine.
When I attempt to clone the repository, I immediately receive the error:
abort: The system cannot find the path specified: 'F:\backups\_hgcookies'
Code: 255
I don't know where it's getting this path from - there is an 'F' drive on my machine that is completely empty aside from hidden system volume files.
The Kiln Tortoise install contains a couple of plugins bundled with it, including kilnauth, which I assume is using a cookie to store authentication information.
I've looked in the mercurial.ini file, however it contains no mention of this folder or hgcookies - that I can see.
I'm wondering if there's a permissions issue somewhere - I'm in the administrators group on the machine, but am on a company network with quite a bit of lockdown which has caused problems before.
I've not found any similar problems through googling, though it's been difficult to get relevent results with the word 'backup' and 'hgcookies' in my terms!
Any help, greatly appreciated.
Seems this was an issue with the KilnAuth extension. I'm not sure why it decided to store the cookies on the F: drive, but I manually created a 'backups' folder on that drive and that allowed it to store the cookie there with no problems.
I had some help from the FogCreek guys diagnosing this - I have to say I've never experienced such awesome customer service, really. Hats off to those guys!
My post receive hook simply runs gear postreceive. Where can I find this code and what it is doing?
There is nothing explaining this that I can find.
The code is available in OpenShift Origin Github repository https://github.com/openshift/origin-server/blob/efe69d24f4e7cb9941fb9932db8e6f3feebe6138/node/misc/bin/gear#L159. This primarily activates your deployment.
Im working through the following tutorial Mercurial Turotial and im stuck with the following:
Now I’m going to use the hg push command, which will push my changes from my repository into the central repository:
C:\Users\joel\recipes> hg push
pushing to http://joel.example.com:8000/
searching for changes
ssl required
Oh great. It figures that wouldn’t work. I neglected to think about the security implications of just running a random web server and allowing anybody in the world to push their stupid changes into it. Bear with me for a moment; I’m going to configure that server to allow anybody in the world to do anything they want to it. This can be done by editing the file .hg\hgrc on the server:
.hg\hgrc
[web]
push_ssl=False
allow_push=*
Needless to say, this is rather unsafe, but if you’re on a nice protected LAN at work and there’s a good firewall and you trust everybody on your LAN, this is reasonably OK. Otherwise, you’ll want to read the advanced chapters on security.
which file is he accessing?
Mercurial doesn't create configuration files automatically.
If you need the file and it doesn't exist, just create it yourself and put the settings from the tutorial inside.
Quote from Configuration files for Mercurial:
Files
Mercurial reads configuration data from several files, if they exist.
These files do not exist by default and you will have to create the
appropriate configuration files yourself
I have a mercurial repository, when I try to push my changes to bitbucket I suddenly get the error
HTTP Error 502: Bad Gateway
after a long moment of wait (searching changes..)
Any idea? this has had me stumped for two days!
Some people report similar issues when trying to push big changesets using the HTTP protocol. Try using SSH instead. You can find instructions for Bitbucket here.