SVN提交后名称解析暂时性故障 [英] svn post-commit Temporary failure in name resolution

查看:209
本文介绍了SVN提交后名称解析暂时性故障的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我SVN配置通过Apache DAV可访问。

然后,我有一个post-commit钩子,告诉詹金斯资源库已通过一个简单的wget命令更改持续集成服务器(并使其建立):

 的/ opt / local / bin目录/ wget的(多选项)的https://jenkins.domain.tld/subversion/$ {} UUID / notifyCommit转= $ REV> > $ LOGFILE

脚本检查wget的收益code,然后回声一个错误信息并退出1(所以svn客户端知道提交失败)。

日志文件包含了故障后:

   -  2012-04-04 10:56:54-- HTTPS://jenkins.domain.tld/subversion/4d729FFF-FFFF-4fb8-b8b5-be083cf6fe96/notifyCommit? REV = 302
分辨率德jenkins.domain.tld(jenkins.domain.tld)...échec:名称解析暂时性故障。
wget的:不可能去résoudreL'住址DE L'套餐«jenkins.domain.tld»

主机 jenkins.domain.tld 已被添加到 / etc / hosts中,以确保该决议能够T失败,但我仍然有问题。

当然,我已经检查从CLI中提交后命令,和它的作品。

我添加此行后提交脚本:

 的/ usr / bin中/主机jenkins.domain.tld>> $ LOGFILE

和解析工作就好了... ...也许wget的问题。

刚刚更换的wget调用使用卷曲相当,同样的问题:

 卷曲:(6)无法解析主机'jenkins.domain.tld


解决方案

好吧,没有找到问题的起源,而是一个解决方案(pretty丑):


  

更新:我解决它同时充分停止Apache,等待片刻,然后再次启动。但是,这并不能说明根本原因这种行为(因此没有令人满意的解决方案)。所以我离开这个开放的。


从:<一href=\"http://serverfault.com/questions/129772/php-gethostbyname-suddenly-no-longer-resolves-names-to-ips-when-run-in-apache\">http://serverfault.com/questions/129772/php-gethostbyname-suddenly-no-longer-resolves-names-to-ips-when-run-in-apache

First, I have svn configured to be accessible via apache DAV.

Then I have a post-commit hook that tell jenkins continuous integration server that the repository has changed via a simple wget command (and make it build) :

/opt/local/bin/wget (many-options) https://jenkins.domain.tld/subversion/${UUID}/notifyCommit?rev=$REV >> $LOGFILE

The script checks wget return code, and then echos an error message and exit with 1 (so the svn client knows the commit failed).

The LOGFILE contains after a failure :

--2012-04-04 10:56:54--  https://jenkins.domain.tld/subversion/4d729FFF-FFFF-4fb8-b8b5-be083cf6fe96/notifyCommit?rev=302
Résolution de jenkins.domain.tld (jenkins.domain.tld)... échec: Temporary failure in name resolution.
wget : impossible de résoudre l'adresse de l'hôte «jenkins.domain.tld»

The host jenkins.domain.tld has been added to /etc/hosts to be sure that resolution can't fail, but I'm still having the issue.

Of course, I have checked the post-commit command from CLI, and it works.

I've added this line to the post-commit script :

/usr/bin/host jenkins.domain.tld >> $LOGFILE

And resolution works just fine... maybe a wget issue.

Just replaced wget call with a curl equivalent, same issue :

curl: (6) Couldn't resolve host 'jenkins.domain.tld'

解决方案

Ok, not found the issue origin, but a solution (pretty ugly) :

Update: I solved it meanwhile by fully stopping apache, waiting for a moment, then starting it again. But that doesn't explain the root cause for this behaviour (and thus there's no satisfying solution). So I leave this open.

From : http://serverfault.com/questions/129772/php-gethostbyname-suddenly-no-longer-resolves-names-to-ips-when-run-in-apache

这篇关于SVN提交后名称解析暂时性故障的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆