Solved

can't svn commit to https repository

Posted on 2008-10-08
11
716 Views
Last Modified: 2013-11-25
I am using a versioning system for the first time for a course in operating systems with a significant code
base and a requirement of 4-5 student teams.  I was running FreeBSD 7.0 before a mishap (that'll be another
question) and was able to use a command

"svn co https://isvn.eecs.berkeley.edu/cs162/groupXX/trunk/nachos " to retrieve the code.  I did so multiple
different time in different directories:

# ls
.metadata               Oct2c                   SystemCalls.txt
Condition2.java         Oct2d                   cs415
HOW2SVN                 Oct3                    nachos
KThread.java            Oct3b                   nachos-java.tar.gz
Oct1                    Oct3c                   untarred
Oct2                    Oct3not
Oct2b                   PriorityScheduler.java
# pwd
/mnt/usr/home/kayve/cs162

called "Oct1.." maybe that was the error? I was told to do a commmand something like "svn ci nachos"
(nachos is the project directory, and is what is produced by untarring that nachos-java.tar.gz tarball
you see in the above listing.), but this failed as well.

The prompt above is my own laptop.. I will do a uname on what is happening at the moment:

# uname -a
FreeBSD kayve-PC 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 11:05:30 UTC 2007     root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP  i386
#
 
But note from the "pwd" above that I am browsing "/mnt/usr.." which is a hard drive that has problems
but I am able to mount it.  I was working on that hardrive the same evening doing a bunch of svn co's
when a du command crashed that hard drive.  It doesn't boot so well anymore, but I will talk about that
in another question
0
Comment
Question by:kayvey
  • 6
  • 4
11 Comments
 
LVL 29

Expert Comment

by:TeRReF
Comment Utility
What is the exact svn error? So you are able to checkout stuff, but not to commit your code? If so, you should move the nachos dir within a repository directory (say Oct1) and use the command (within the Oct1 dir)
svn add nachos

If that works you can commit it by using:
svn ci nachos
0
 
LVL 9

Expert Comment

by:chingmd
Comment Utility
If you are having a HD issue, I HIGHLY suggest not trying to do any svn operations.   Whether you are using FSDB or BDB for the file database, it is very likely that any interruption will cause DB corruption.  

Typically, easily fixed, on the HTTPS host, with an svnadmin recovery /path/to/repos.  But any significant errors may not be recoverable, and you'd need to restore from a backup.  (which everyone always has :)    )

The HD error is likely the root of the issue, and not SVN.



0
 

Author Comment

by:kayvey
Comment Utility
you want to check out the specifics of the HD issue?

http://www.experts-exchange.com/Storage/Hard_Drives/Q_23798083.html

I am able to mount from my older operable HD right now


# mount /dev/da0s4 /mnt/usr
# fsck_ufs -y /mnt/usr
** /dev/da0s4 (NO WRITE)
** Last Mounted on /mnt/usr
** Phase 1 - Check Blocks and Sizes
INCORRECT BLOCK COUNT I=2779162 (4 should be 0)
CORRECT? no

fsck_ufs: cannot alloc 871186332 bytes for inoinfo
#

0
 
LVL 29

Expert Comment

by:TeRReF
Comment Utility
The -y in fsck_ufs won't work since you're not in single user mode. Boot in single user mode and try that command again...
0
 

Author Comment

by:kayvey
Comment Utility
oh rats.  am I going to be able to do any of this without a cvsup on this "'about to breakdown months ago' HD "

/dev/ad0s2d             /var            ufs     rw              2       2
/dev/acd0               /cdrom          cd9660  ro,noauto       0       0
# pkg_add -r svn
Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.2-release/Latest/svn.tbz: File unavailable (e.g., file not found, no access)
pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.2-release/Latest/svn.tbz' by URL
# set -o vi
# pkg_add -r subversion
Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.2-release/Latest/subversion.tbz: File unavailable (e.g., file not found, no access)
pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.2-release/Latest/subversion.tbz' by URL
#
% head HOW2SVN
Hey,

I'm trying to get nachos through SVN . I am guessng that I need to connect
to

https://isvn.eecs.berkeley.edu/cs162/groupXX/trunk/nachos (XX being my
groupnumber).

It gives some wierd errors. Anybody know why?

% pwd
/home/kayve/cs162
% svn co https://isvn.eecs.berkeley.edu/cs162/group6/trunk/nachos
zsh: command not found: svn
% uname -a
FreeBSD  6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 11:05:30 UTC 2007     root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP  i386
%


0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

Author Comment

by:kayvey
Comment Utility
Can I boot on the crappy old hard drive with the broken hard drive mounted from the NexStar in single user mode, or do I need to get out my screwdriver?
0
 
LVL 29

Accepted Solution

by:
TeRReF earned 500 total points
Comment Utility
FreeBSD 6.2 is not supported anymore so those dirs do not exist anymore on the ftp servers... You might be able to install subversion via the port collection (if you still have that)
0
 

Author Comment

by:kayvey
Comment Utility
Don't forget to give advice about fixing the hard drive here:

http://www.experts-exchange.com/Storage/Hard_Drives/Q_23798083.html#a22673343

and SVN here!  {:)
0
 

Author Comment

by:kayvey
Comment Utility
oh oh. I'm a little confused now


--This line, and those below, will be ignored--

M    userprog/UserKernel.java
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
svn-commit.tmp: unmodified: line 1
0
 

Author Comment

by:kayvey
Comment Utility
~
~
svn-commit.tmp: 4 lines, 80 characters.

Log message unchanged or not specified
a)bort, c)ontinue, e)dit
c
Sending        nachos/userprog/UserKernel.java
Transmitting file data .
Committed revision 40.

oh.  never mind

yay
0
 
LVL 29

Expert Comment

by:TeRReF
Comment Utility
If you commit, you should add a line or 2 above this one:

--This line, and those below, will be ignored--

So you can check the svn log later on to see what happened a what revision, might save you a lot of searching in the future :-)
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
When working in a large software development team, whether you have many developers working on the same projects, or your project is linked to other projects; it is very important that developers regularly perform "get latest" to ensure that the cha…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now