Re: Repository failover

2003-03-16 Thread Mahantesh M Vantmuri
Mark D. Baushke wrote:

[...]
Or, you can just specify the remote repository with the -d argument to
cvs.
Yes, one can do that also.

In addition, if you use the CVS_LOCAL_BRANCH_NUM patch that has been
committed to the cvshome main trunk (already available for various of
the *BSD versions of cvs), you can create a local development area
branch that the CVSup will not touch, this allows you to develop a
feature 'locally' and then when you have tested it and are ready for it
to be part of the main repository, merge it into the main trunk and
commit using the -d trick.
I think this patch eases such backup repos. We have done this on some 
other servers.
Currently working towards applying it to production servers.

Hmmm... It sounds tricky to know when to stop your CVSup activities
unless you just lose connectivity to the main repository.
Right, this is little bit tricky. One has to stop CVSup activities once 
you lose connectivity to main repository.
But  by contantly monitoring main repository, we can decide when to stop 
CVSup activities on main repo.

[...]
I think you would be better off to keep your main repository as the
primary and have the secondary 'backup' cvs servers available for some
local CVS_LOCAL_BRANCH_NUM work until the main repository is back
on-line.
I think that is better  solution.
Cheers.
Mahantesh.


___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs


cvs [login aborted]: reading from server: Connection reset by peer

2003-03-16 Thread Manolo
When i try cvs -t -d :pserver:[EMAIL PROTECTED]:/home/cvsroot login
get 
 - main loop with CVSROOT=:pserver:[EMAIL PROTECTED]:/home/cvsroot
Logging in to :pserver:[EMAIL PROTECTED]:2401/home/cvsroot
CVS password:
 - Connecting to localhost(127.0.0.1):2401
cvs [login aborted]: reading from server: Connection reset by peer
 - Lock_Cleanup()

Information:

0)emerge cvs
1)/etc/xinet.d/cvspserver

service cvspserver
{
disable = no
socket_type = stream
wait= no
user= root
group   = cvs
log_type= FILE /var/log/cvspserver
protocol= tcp
env = '$HOME=/home/cvsroot'
log_on_failure  += USERID
port= 2401
server  = /usr/bin/cvs
server_args = -f --allow-root=/home/cvsroot pserver
}

2)cvs -d /home/cvsroot init
3)groupadd cvs
4)edit /etc/group and add mmm876 and root to cvs group
4)chgrp -R cvs /home/cvsroot
5)chmod -R 770 /home/cvsroot
6)add to /home/cvsroot/CVSROOT/passwd line mmm876:fsdfsdffsd-- i generated
password using [ http://www.flash.net/cgi-bin/pw.pl ] util.
7)/etc/init.d/xinetd restart
8)netstat -tap
Proto Recv-Q Send-Q Local Address   Foreign Address State  
PID/Program name
tcp0  0 0.0.0.0:24010.0.0.0:*   LISTEN 
28581/xinetd

9)i try telnet localhost 2401  
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
Connection closed by foreign host.

this result tell me xinetd permit localhost:2401 connections.

What is wrong?
how can fix it?

Thanks in advance.

___
Yahoo! Messenger - Nueva versión GRATIS
Super Webcam, voz, caritas animadas, y más...
http://messenger.yahoo.es


___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs


Re: cvs [login aborted]: reading from server: Connection reset bypeer

2003-03-16 Thread Larry Jones
Manolo writes:
 
 9)i try telnet localhost 2401  
 Trying 127.0.0.1...
 Connected to localhost.localdomain.
 Escape character is '^]'.
 Connection closed by foreign host.
 
 this result tell me xinetd permit localhost:2401 connections.

It accepted the connection, but the connection was then immediatly
closed, which implies that the CVS server wasn't run.  Most likely you
either have the path to CVS wrong in your xinetd.conf or you have some
kind of firewall software (like tcp wrappers) that's denying access. 
Check your syslog for error messages from xinetd.

-Larry Jones

The living dead don't NEED to solve word problems. -- Calvin


___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs


setgid failed: Operation not permitted

2003-03-16 Thread Ed Swierk
I'm running a CVS pserver as a non-root user (cvs) on host cvs.  I have 
created a mapping for each user in the CVSROOT/passwd file:

  user1::cvs
  user2::cvs
  ...
A few users are getting a setgid failed: Operation not permitted error, 
but only when accessing the repository via SSH port forwarding (ssh -L 
2401:cvs:2401, with CVSROOT=:pserver:[EMAIL PROTECTED]:/cvs).  Everything 
works when accessing the repository directly (with 
CVSROOT=:pserver:[EMAIL PROTECTED]:/cvs).

The server version is 1.11.5.  Every file in the repository is owned by 
group cvs (which is the primary group of user cvs).  Should the files be 
owned by user cvs as well?

Any ideas what the problem might be, or how to go about tracking it down?

--Ed



___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs


Re: cvs [login aborted]: reading from server: Connection reset bypeer

2003-03-16 Thread Manolo
El Domingo, 16 de Marzo de 2003 18:08, escribió:
 Manolo writes:
  9)i try telnet localhost 2401
  Trying 127.0.0.1...
  Connected to localhost.localdomain.
  Escape character is '^]'.
  Connection closed by foreign host.
 
  this result tell me xinetd permit localhost:2401 connections.

 It accepted the connection, but the connection was then immediatly
 closed, which implies that the CVS server wasn't run.  Most likely you
 either have the path to CVS wrong in your xinetd.conf or you have some
 kind of firewall software (like tcp wrappers) that's denying access.
 Check your syslog for error messages from xinetd.

 -Larry Jones

 The living dead don't NEED to solve word problems. -- Calvi

1)iptables -F
2)and add ALL:ALL in hosts.allow restart and  xinetd

Now :
cvs -t -d :pserver:[EMAIL PROTECTED]:/home/cvsroot login
 - main loop with CVSROOT=:pserver:[EMAIL PROTECTED]:/home/cvsroot
Logging in to :pserver:[EMAIL PROTECTED]:2401/home/cvsroot
CVS password:
 - Connecting to localhost(127.0.0.1):2401

 ---wait forever---

and 

telnet localhost 2401
Trying 127.0.0.1...
   wait forever---

/var/log/cvspserver,/var/log/syslog --don't show anything
then i run xinetd -d -- don't show anything

netstat -tap return

tcp  0   0 *:cvspserver  *:*   LISTEN 12194/xinetd
tcp  0   1 localhost.localdom:2196 localhost.lo:cvspserver SYN_SENT107/cvs


how can know what happend?

___
Yahoo! Messenger - Nueva versión GRATIS
Super Webcam, voz, caritas animadas, y más...
http://messenger.yahoo.es


___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs


Repository ruined, help for rebulding up from working files.

2003-03-16 Thread
Dear all,
This might be a little embarrassed to say the truth, but it did happen
anyway.
I got my server disk failed with no any response, and while rebuild up my
system, I accidentally ruined my backup disk.
So what I only have in hand now are work files and some change logs files
created a couple days ago.
Is there any possible way to re-gain the infomation in repository?
Any suggestion?

Regards,
Chia-Hsiu Liang.




___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs


Re: setgid failed: Operation not permitted

2003-03-16 Thread Larry Jones
Ed Swierk writes:
 
 A few users are getting a setgid failed: Operation not permitted error, 
 but only when accessing the repository via SSH port forwarding (ssh -L 
 2401:cvs:2401, with CVSROOT=:pserver:[EMAIL PROTECTED]:/cvs).  Everything 
 works when accessing the repository directly (with 
 CVSROOT=:pserver:[EMAIL PROTECTED]:/cvs).

A setgid() failure implies that the CVS server isn't running as root.

-Larry Jones

Start tying the sheets together.  We'll go out the window. -- Calvin


___
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs