傀儡 400 错误'GETCWD’
技术说明
傀儡: 无法从远程服务器时出错检索目录 400 在SERVER "无法解析的环境" GETCWD
木偶大师版本 2.7.18. 木偶代理版本 2.7.18.
断断续续的 400 错误 "无法解析的环境: dev的'出现,否则正常工作在生产服务器上. 此故障不会发生在本地工作站的测试环境.
检查DOS的编码方式
LRCF并从DOS ^ M行结尾编码的文件在代码中创建奇怪的副作用在Linux下运行.
我最近更新了我的Eclipse IDE. 从UTF-8修改默认编码. 我创建的包括已经提交到Subversion版本库的新木偶模块. 这些模块最终被检查出来的木偶大师.
查找DOS编码的文件
1 |
find . | xargs file | grep "CRLF" |
新模块和svn文件位于.
临时的解决办法
重Eclipse IDE中编码为UTF-8 Unix行结尾.
使用命令unix2dos改变这一切。SVN和傀儡文件到Unix的编码.
1 |
dos2unix <file> |
木偶运行恢复正常.
永久修复
设置了svn:EOL式的颠覆,让发展在异构平台.
在我木偶的设置, 傀儡用户的主目录是/ var / lib中/傀儡. Subversion存储它的配置文件有: /无功/ lib中/傀儡/。颠覆/配置. 一个示例性配置的:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
enable-auto-props = yes ### Section for configuring automatic properties. [auto-props] # Puppet *.pp = svn:eol-style=native *.erb = svn:eol-style=native *.conf = svn:eol-style=native # *.dsp = svn:eol-style=CRLF *.dsw = svn:eol-style=CRLF *.sh = svn:eol-style=native;svn:executable *.txt = svn:eol-style=native;svn:keywords=Author Date Id Rev URL; # Java *.java = svn:eol-style=native *.properties = svn:mime-type=text/plain;svn:eol-style=native *.xml = svn:mime-type=text/xml;svn:eol-style=native *.xsl = svn:mime-type=text/xml;svn:eol-style=native *.xsd = svn:mime-type=text/xml;svn:eol-style=native *.wsdl = svn:mime-type=text/xml;svn:eol-style=native *.pl = svn:eol-style=native *.py = svn:eol-style=native *.cmd = svn:eol-style=native *.bat = svn:eol-style=native *.htm* = svn:eol-style=native;svn:mime-type=text/html *.css = svn:eol-style=native *.js = svn:eol-style=native ## Misc Text Files README* = svn:eol-style=native;svn:mime-type=text/plain LICENSE* = svn:eol-style=native;svn:mime-type=text/plain ChangeLog = svn:eol-style=native;svn:mime-type=text/plain ## Binary *.png = svn:mime-type=image/png *.jpg = svn:mime-type=image/jpeg *.gif = svn:mime-type=image/gif *.png = svn:mime-type=image/png ## C/C++ Files Makefile = svn:eol-style=native *.c = svn:eol-style=native *.cpp = svn:eol-style=native *.h = svn:eol-style=native *.hpp = svn:eol-style=native |
成为第一个发表评论. 发表评论