View Full Version : svnadmin load problems
MarmaladeMan
11-22-2006, 08:44 PM
Hello,
I'm trying to load a .dump file into a repository that I created through the esprit control panel. I'm new to SVN in general but I've been reading about repo migration here (http://svnbook.red-bean.com/nightly/en/svn.reposadmin.maint.html#svn.reposadmin.maint.mig rate). I've uploaded my .dump file via FTP to the particular repo directory I want it in (that corresponds to repo_name in my command line below). Then I type in this command through putty:
svnadmin load /repo/path/repo_name < dumpfilename.dump
But that doesn't work. I get a "dumpfilename.dump: No such file or directory" error. I've tried a gazillion different directory paths to no avail. What is the correct syntax? I realize this is probably the result of my own inexperience with SVN and not due to any problem with the version control server, but any help would be greatly appreciated! Thank you!
dumpfilename.dump doesn't exist in the current working directory. Change the path to reflect the actual location of the dump file.
MarmaladeMan
11-23-2006, 08:23 AM
Oh darn. Okay, I cd to the directory with the dump file in it, then attempt the same command, but I get:
Can't open file '/repo/path/repo_name/format': No such file or directory
When I try just using the /repo_name directory (no /repo/path before it), I get the same thing. I tried with no base directory, same thing. I can see that their is a "format" file when I check the FTP. Am I still doing something wrong?
MarmaladeMan
11-23-2006, 07:25 PM
Okay, I figured it out myself. I was specifying the wrong directory, silly me. Thanks for the help!
MarmaladeMan
11-28-2006, 10:43 AM
I have a new problem. The server has stopped accepting my SSH keys, and I have to enter my account password anytime I use putty to SSH into my account, or anytime I use Tortoise to browse the repo.
The key for my account worked properly yesterday. I was able to SSH into the server and browse the repo without ever entering my password. Now, when I attempt to connect through putty, I get:
Using username "marmalademan@hiprmod.net".
Server refused our key
marmalademan@hiprmod.net@hiprmod.net's password:
If I enter the password, things work fine. The only thing I can think of is that I've repeated the "Creating your public and private key" section of the Subversion tutorial (http://guide.apisnetworks.com/index.php/Subversion) a few times on my account now (including step 5, if that's at all meaningful) in an attempt to fix the keys (perhaps it confused the server??). I've also created a second user (mastermind@hiprmod.net) that can browse the repo, though he has the same problem of the server refusing his key.
Any advice here? Things seemed to be working fine and suddenly it seemed like I broke it, but have no idea why. Thanks in advance!
Ensure that the public key is loaded into Pageant and that the key you're using is in /home/<username>/.ssh/authorized_keys .ssh/ needs to have the permission 700 and everything under .ssh/ needs the permission 600. It's one of those causing the problem.
MarmaladeMan
11-28-2006, 12:41 PM
I've CHMODed the permissions like you said. Now I'm a little confused about the keys though: is it the public or the private key that's supposed to be loaded into pageant? The tutorial said the private key (.ppk file), which is what I have loaded. I don't have the .pub file because it was moved into authorized_keys. I downloaded authorized_keys from the FTP to look at it, and when I compare it to the private key data in the putty keygen, it seems to match.
Ack, sorry you're right. It should be the private key.
MarmaladeMan
11-28-2006, 02:13 PM
I have the private key loaded in pageant and I'm pretty confident it's the same key as the one listed in authorized_keys. Could I try deleting the whole /.ssh directory and restarting from scratch?
The only thing that you need to check is that the private key is in the file .ssh/authorized_keys. It should look like:
ssh-dss <private key as one big line> <user>@<domain>
and of course filling in the <>'s with their applicable values. I'd double check that Pageant is working correctly, because I'm lead to believe it's something small like that. If you haven't recreated a key pair, then that key you have on your computer should work fine against the server. Again the connection string for subversion should be svn+ssh://<user>@<domain>@<domain>/<some repo path>/
MarmaladeMan
11-28-2006, 09:36 PM
I've double-checked that the key was in authorized_keys, and I even copy-pasted the long string from the private key I have locally on my machine to authorized_keys, which I then uploaded by FTP. One thing that seemed odd to me was that, in authorized_keys, the <user>@<domain> at the end of the key showed up as marmalademan@gauss.apisnetworks.com. I tried changing that to marmalademan@hiprmod.net. Doesn't seem to change anything.
I have no idea how to check if pageant is working correctly. I have tried connecting with the private key loaded in pageant and tried without pageant running at all. Either way my key is rejected. I downloaded a new pageant.exe and saved it in a different directory. No dice. I created a new user through esprit with SSH shell and FTP access, and he gets the same problem of the server not accepting his key. I have no idea what's wrong because this was working perfectly yesterday and I can't spot a single thing I'm doing differently.
vBulletin® v3.7.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.