LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-26-2011, 08:49 AM   #1
coolesting
LQ Newbie
 
Registered: Mar 2011
Posts: 2

Rep: Reputation: 0
Smile svn: is not a working copy


my project path is /var/www/my

my repository path is /home/svn/repos

now, i enter the " /var/www/my" directory, and modified some files, so, i want to update that modification to repository,

press the command as following,
that return a message

"svn update" --> "Skipped '.' "
"svn commit (or svn status)" --> "svn: '/var/www/my' is not a working copy
"
what happened to this ?

if i want to editing in any directory, or wherever, then submit to repository, how should i do ? setting config of where is it , or setting path for global variable ?

Last edited by coolesting; 03-26-2011 at 08:56 AM. Reason: fix it for information exactly
 
Old 03-26-2011, 08:53 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Do you have a proper .svn directory within /var/www/my?
 
1 members found this post helpful.
Old 03-26-2011, 08:55 AM   #3
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
Do you have a directory /var/www/my/.svn? If not, it means that
the files were not checked out or that an important directory
has been deleted.

My suggestion would be to "mv /var/www/my /var/www/my.save" and
then check out (do not export) the project again to /var/www/my.
You should then be able to copy updated files from my.save to
my and check them into svn.
 
1 members found this post helpful.
Old 03-26-2011, 09:35 AM   #4
coolesting
LQ Newbie
 
Registered: Mar 2011
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks everybody, i make the big mistake,
i import the project form /var/www/my to repository, then checkout it to ~/svn/my here ,

i should checkout to /var/www/my .
 
Old 03-26-2011, 09:40 AM   #5
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
Cool. Thanks for the update.
 
Old 01-02-2015, 07:15 AM   #6
systems@pickzy.com
LQ Newbie
 
Registered: Dec 2014
Posts: 24

Rep: Reputation: Disabled
thanks friends..

During the installation of svn on my centos 6.6.i'm having problem that,
when i enter URL on the browser "http://10.0.0.251/svn"

it'll display

Forbidden

You don't have permission to access /svn/ on this server.
Apache/2.2.15 (CentOS) Server at 10.0.0.251 Port 80


but i gave full permission for tht folder..
please help me friends....
 
Old 01-02-2015, 08:39 AM   #7
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
I'll bet that it's a problem with SELinux. See if it is on by running
by typing "getenforce". If it is in enforcing mode, we can follow up.

My second choice is that it's an apache issue. Look for errors at the
bottom of /var/log/httpd/error_log concerning /svn.
 
1 members found this post helpful.
Old 01-02-2015, 09:02 AM   #8
systems@pickzy.com
LQ Newbie
 
Registered: Dec 2014
Posts: 24

Rep: Reputation: Disabled
thanks for replying sir..

i have checked selinux that is in enforcing...

In the /var/log/httpd/error_log file about the following line is placed in four places of this file...

i'm new for linux sir...help me..

these are the last some files.
#Fri Jan 02 15:16:37 2015] [notice] Apache/2.2.15 (Unix) DAV/2 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips SVN/1.8.10 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations


But when i enter "10.0.0.251/svn/project_repo"
it'll display following without any authentication required....but i have created two htpasswd users ..
Code:
project_repo - Revision 0: /

Powered by Apache Subversion version 1.8.10 (r1615264).




...help me sir

Last edited by systems@pickzy.com; 01-02-2015 at 09:05 AM.
 
Old 01-02-2015, 09:11 AM   #9
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
The CentOS wiki has an article about setting up svn.
Please review this and see if it helps.

http://wiki.centos.org/HowTos/Subversion
 
Old 01-02-2015, 09:38 AM   #10
systems@pickzy.com
LQ Newbie
 
Registered: Dec 2014
Posts: 24

Rep: Reputation: Disabled
thanks for replying sir..

My problem is in 4th step of this document sir....

after 4th step when i enter the "10.0.0.251/svn/project_repo"
it'll show
Code:
project_repo - Revision 0: /

Powered by Apache Subversion version 1.8.10 (r1615264).



when i enter
"10.0.0.251/project_repo"
Code:
Forbidden

You don't have permission to access /project_repo/ on this server.
Apache/2.2.15 (CentOS) Server at 10.0.0.251 Port 80

but no one is displaying popup window for username and password.


my /etc/httpd/conf.d/subversion.conf/ file is

Code:
LoadModule dav_svn_module     modules/mod_dav_svn.so
LoadModule authz_svn_module   modules/mod_authz_svn.so

#
# Example configuration to enable HTTP access for a directory
# containing Subversion repositories, "/var/www/svn".  Each repository
# must be both:
#
#   a) readable and writable by the 'apache' user, and
#
#   b) labelled with the 'httpd_sys_content_t' context if using
#   SELinux
#

#
# To create a new repository "http://localhost/repos/stuff" using
# this configuration, run as root:
#
#   # cd /var/www/svn
#   # svnadmin create stuff   
#   # chown -R apache.apache stuff
#   # chcon -R -t httpd_sys_content_t stuff
#

<Location /project_repo>
   DAV svn
   SVNParentPath /var/www/svn/project_repo
   <LimitExcept GET PROPFIND OPTIONS REPORT>
      AuthType Basic
      AuthName "authorization Realm"
      AuthUserFile /etc/svn-users
      Require valid-user
   </LimitExcept>
</Location>
CustomLog logs/svn_logfile "%t %u %{SVN-ACTION}e" env=SVN-ACTION
please sir help me
 
Old 01-02-2015, 12:01 PM   #11
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
Try running these commands, which will see if the problem is with SELinux.
Code:
yum -y install setroubleshoot-server
sealert -a /var/log/audit/audit.log

Last edited by carltm; 01-02-2015 at 12:02 PM.
 
Old 01-03-2015, 03:16 AM   #12
systems@pickzy.com
LQ Newbie
 
Registered: Dec 2014
Posts: 24

Rep: Reputation: Disabled
thanks for replying sir..

when i run yum -y install setroubleshoot-server

Code:
[root@svn ~]# yum -y install setroubleshoot-server
You have new mail in /var/spool/mail/root
[root@svn ~]# yum -y install setroubleshoot-server
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.excellmedia.net
 * extras: centos.excellmedia.net
 * rpmforge: mirror.smartmedia.net.id
 * updates: centos.excellmedia.net
 * webtatic: uk.repo.webtatic.com
Package setroubleshoot-server-3.0.47-6.el6.x86_64 already installed and latest version
Nothing to do
for

" sealert -a /var/log/audit/audit.log"

Code:
type=AVC msg=audit(1417420746.816:236): avc:  denied  { write } for  pid=8779 comm="sendmail" name="log" dev=devtmpfs ino=13145 scontext=unconfined_u:system_r:httpd_sys_script_t:s0 tcontext=system_u:object_r:devlog_t:s0 tclass=sock_file
 
**** Invalid AVC allowed in current policy ***
what is AVC and how to rectify that problem....

may i know "why selinux is needed for authentication purpose"
because i can't understand sir...
 
Old 01-03-2015, 03:41 AM   #13
systems@pickzy.com
LQ Newbie
 
Registered: Dec 2014
Posts: 24

Rep: Reputation: Disabled
v

what to do sir...I can't understand my problem sir?help me sir

Last edited by systems@pickzy.com; 01-03-2015 at 03:42 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
copy svn working dir without svn hidden dirs and files? erinspice Linux - Software 4 03-29-2011 06:58 PM
SVN post-commit not working! Please... someone... help. thetar Linux - Server 3 02-28-2011 07:36 PM
SVN tagging: How to update working copy from a tagged release kenneho Programming 2 01-08-2010 04:46 PM
SVN working copy locked error updating e17 sources. The_Seraphim Linux - Software 0 04-28-2009 04:53 AM
Copy svn repo from one server to another? matiasar Linux - Software 2 09-10-2008 08:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration