Is it possible something else has changed? The firewall on the target server, 
or the version of Ruby you're running?

I'm trying to reproduce.

--
Dave Cassel, @dmcassel<https://twitter.com/dmcassel>
Technical Community Manager
MarkLogic Corporation<http://www.marklogic.com/>
http://developer.marklogic.com/

From: 
<[email protected]<mailto:[email protected]>>
 on behalf of Darrel Cox <[email protected]<mailto:[email protected]>>
Reply-To: MarkLogic Developer Discussion 
<[email protected]<mailto:[email protected]>>
Date: Tuesday, August 22, 2017 at 6:20 PM
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: Re: [MarkLogic Dev General] Roxy Deployment Error

Dave,

The admin console for server shows 8.0-6 and "ml qa info | grep server-version" 
reports....

/> ml qa info | grep server-version
ml.server-version: 8

Thanks,
Darrel



Darrel Cox<mailto:[email protected]>
Sr. Consultant | Avalon Consulting, LLC
M: 703-585-0392
LinkedIn<http://www.linkedin.com/company/avalon-consulting-llc> | 
Google+<http://www.google.com/+AvalonConsultingLLC> | 
Twitter<https://twitter.com/avalonconsult>

--------------------------------------------------------------------------------------------------------------------------------------
This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law.  If 
you are not the intended recipient, you should delete this message.  Any 
disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited.

On Tue, Aug 22, 2017 at 1:20 PM, Darrel Cox 
<[email protected]<mailto:[email protected]>> wrote:
I'm having an issue with a Roxy deployment. The "ml <env> bootstrap" works 
fine. However, I'm getting the error below when I try to do a "ml <env> deploy 
content" or "ml <env> deploy modules". When it runs locally (on my Mac) they 
work fine on a new Marklogic installation using both version 8.0-6 and 9.0-2. 
The servers that gives the error were probably upgraded from an earlier 
version. What earlier version(s) I'm not sure.

Error output....

/> ml qa deploy content

Roxy::Http : request failure count: 1, exception: #<Errno::ECONNRESET: 
Connection reset by peer>
Roxy::Http : request failure count: 2, exception: #<Errno::ECONNRESET: 
Connection reset by peer>
Roxy::Http : request failure count: 3, exception: #<Errno::ECONNRESET: 
Connection reset by peer>
Roxy::Http : request failure count: 4, exception: #<Errno::ECONNRESET: 
Connection reset by peer>
Roxy::Http : re-raising same error: 10.134.123.185 temporarily unavailable: 
(Connection reset by peer) -- error count: 4, error age: 0
ERROR: 10.134.123.185 temporarily unavailable: (Connection reset by peer)
ERROR: ["/dofri/deploy/lib/RoxyHttp.rb:362:in `block in request'", 
"/dofri/deploy/lib/RoxyHttp.rb:352:in `loop'", 
"/dofri/deploy/lib/RoxyHttp.rb:352:in `request'", 
"/dofri/deploy/lib/MLClient.rb:113:in `go'", "/dofri/deploy/lib/xcc.rb:175:in 
`go'", "/dofri/deploy/lib/xcc.rb:136:in `block in load_files'", 
"/dofri/deploy/lib/xcc.rb:129:in `each'", "/dofri/deploy/lib/xcc.rb:129:in 
`each_with_index'", "/dofri/deploy/lib/xcc.rb:129:in `load_files'", 
"/dofri/deploy/lib/server_config.rb:1250:in `load_data'", 
"/dofri/deploy/lib/server_config.rb:2364:in `deploy_content'", 
"/dofri/deploy/lib/server_config.rb:1188:in `deploy'", "deploy/lib/ml.rb:166:in 
`<main>'"]


---------------


I updated the ml comand-line file and changed line 158 to the highlighted line 
below. Adding -v and -w. According to ruby -h, this turns on verbose mode and 
warnings for the script.

#    ruby -I deploy -I deploy/lib deploy/lib/ml.rb "$@" || exit $?
    ruby -v -w -I deploy -I deploy/lib deploy/lib/ml.rb "$@" || exit $?

Error output after adding -v -w ....

/> ml qa deploy content
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin15]
/dofri/deploy/lib/Help.rb:155: warning: mismatched indentations at 'end' with 
'case' at 61
/dofri/deploy/lib/server_config.rb:1553: warning: assigned but unused variable 
- r
/dofri/deploy/lib/server_config.rb:1841: warning: assigned but unused variable 
- r
/dofri/deploy/lib/server_config.rb:1850: warning: assigned but unused variable 
- r
/dofri/deploy/lib/server_config.rb:2195: warning: assigned but unused variable 
- r
/dofri/deploy/lib/server_config.rb:2353: warning: assigned but unused variable 
- r
/dofri/deploy/lib/server_config.rb:2404: warning: assigned but unused variable 
- r
/dofri/deploy/lib/server_config.rb:2410: warning: assigned but unused variable 
- r
/dofri/deploy/lib/server_config.rb:2476: warning: assigned but unused variable 
- r
/dofri/deploy/lib/server_config.rb:2483: warning: assigned but unused variable 
- dbid
/dofri/deploy/lib/RoxyHttp.rb:279: warning: assigned but unused variable - e
/dofri/deploy/lib/RoxyHttp.rb:84: warning: method redefined; discarding old 
basic_auth
/usr/local/Cellar/ruby/2.3.0/lib/ruby/2.3.0/net/http/header.rb:420: warning: 
previous definition of basic_auth was here
/dofri/deploy/lib/xcc.rb:57: warning: mismatched indentations at 'end' with 
'def' at 52
/dofri/deploy/lib/xcc.rb:115: warning: assigned but unused variable - r
/dofri/deploy/lib/xcc.rb:232: warning: assigned but unused variable - body
/dofri/deploy/lib/MLClient.rb:80: warning: assigned but unused variable - 
request_params
/dofri/deploy/lib/xcc.rb:27: warning: method redefined; discarding old set_path
/dofri/deploy/lib/RoxyHttp.rb:31: warning: previous definition of set_path was 
here
/dofri/deploy/lib/xcc.rb:52: warning: method redefined; discarding old 
read_status_line
/usr/local/Cellar/ruby/2.3.0/lib/ruby/2.3.0/net/http/response.rb:39: warning: 
previous definition of read_status_line was here
/dofri/deploy/lib/xcc.rb:62: warning: method redefined; discarding old 
keep_alive?
/usr/local/Cellar/ruby/2.3.0/lib/ruby/2.3.0/net/http.rb:1514: warning: previous 
definition of keep_alive? was here
/dofri/deploy/lib/xcc.rb:69: warning: method redefined; discarding old 
connection_keep_alive?
/usr/local/Cellar/ruby/2.3.0/lib/ruby/2.3.0/net/http/header.rb:439: warning: 
previous definition of connection_keep_alive? was here
/dofri/deploy/lib/ml_rest.rb:113: warning: assigned but unused variable - size
/dofri/deploy/lib/ml_rest.rb:234: warning: assigned but unused variable - is_xqy
/dofri/deploy/lib/ml_rest.rb:221: warning: assigned but unused variable - size
/dofri/deploy/lib/server_config.rb:3193: warning: File.exists? is a deprecated 
name, use File.exist? instead
/dofri/deploy/lib/MLClient.rb:56: warning: instance variable @http not 
initialized
/dofri/deploy/lib/server_config.rb:1239: warning: File.exists? is a deprecated 
name, use File.exist? instead
Roxy::Http : request failure count: 1, exception: #<Errno::ECONNRESET: 
Connection reset by peer>
Roxy::Http : request failure count: 2, exception: #<Errno::ECONNRESET: 
Connection reset by peer>
Roxy::Http : request failure count: 3, exception: #<Errno::ECONNRESET: 
Connection reset by peer>
Roxy::Http : request failure count: 4, exception: #<Errno::ECONNRESET: 
Connection reset by peer>
Roxy::Http : re-raising same error: 10.134.124.21 temporarily unavailable: 
(Connection reset by peer) -- error count: 4, error age: 0
ERROR: 10.134.124.21 temporarily unavailable: (Connection reset by peer)
ERROR: ["/dofri/deploy/lib/RoxyHttp.rb:362:in `block in request'", 
"/dofri/deploy/lib/RoxyHttp.rb:352:in `loop'", 
"/dofri/deploy/lib/RoxyHttp.rb:352:in `request'", 
"/dofri/deploy/lib/MLClient.rb:113:in `go'", "/dofri/deploy/lib/xcc.rb:175:in 
`go'", "/dofri/deploy/lib/xcc.rb:136:in `block in load_files'", 
"/dofri/deploy/lib/xcc.rb:129:in `each'", "/dofri/deploy/lib/xcc.rb:129:in 
`each_with_index'", "/dofri/deploy/lib/xcc.rb:129:in `load_files'", 
"/dofri/deploy/lib/server_config.rb:1250:in `load_data'", 
"/dofri/deploy/lib/server_config.rb:2364:in `deploy_content'", 
"/dofri/deploy/lib/server_config.rb:1188:in `deploy'", "deploy/lib/ml.rb:166:in 
`<main>'"]


Thanks,
Darrel

--------------------------------------------------------------------------------------------------------------------------------------
This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law.  If 
you are not the intended recipient, you should delete this message.  Any 
disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited.

_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to