linux服务器部署svn常见错误处理→转载

时间:2023-03-08 21:46:14
转载地址→http://blog.seweal.com/post/2013-02-04/svn-errors
【开放svn端口】
iptables -I INPUT -p tcp --dport 3690 -j ACCEPT  #开放3690端口
/etc/rc.d/init.d/iptables save   #保存配置,非常重要,保存才能生效
/etc/init.d/iptables status   # 查看是否已经成功:

如果提示 iptables: command not found

则是没有安装 iptables组件,安装即可:

yum install iptables

【错误】

很多人安装完svn后常遗漏的一步就是在服务器端导入项目:

svn import /home/wwwroot/public_html/   file:///data/svndata/project -m "init"

【错误】

服务器端执行svn up 的时候,提示报错:

svn up skipped '.'

问题在于你的服务器端不是个working copy (工作副本)

如何证明一下呢,很简单,只要在服务器端执行下

svn st

即可(意思是显示svn当前状态status),会提示你:

svn: warning: '.' is not a working copy

当前目录并不是svn的工作副本,好了,问题好解决。

只要重新检出下就可以了,注意是在服务器端检出,不是在客户端检出哦,(我想你客户端应该已经检出过了。)

[user@user ~]# svn co svn://xxx.com/project your_project_dir
[user@user ~]# cd your_project_dir
[user@user ~]# svn up

其中your_project_dir 是你的目录,但是如果你的顺序是:

[user@user ~]# cd your_project_dir
[user@user your_project_dir]# svn co http://xxx.com/project
[user@user your_project_dir]# svn up

就容易出现 skipped '.' 的错误。

【错误】

方法options 失败于 could not read status line,远程主机强迫关闭了一个现有的连接。

我曾经出过这个错误,不论是客户端还是服务器端,服务器拒绝了连接。

检出服务是跑着的,端口是开着的,也加入iptables了

后来才发现,是路径写错了

svn://xxx.com/project

写成了

http://xxx.com/project

svn协议写成了http协议,有多少孩子跟我犯了同样的错误呢。