[ https://issues.apache.org/jira/browse/TC-83?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15803238#comment-15803238 ]
Zhilin Huang commented on TC-83: -------------------------------- Hi David, I do not this error related to riak responding. Below is the code in "traffic_ops/app/lib/MojoPlugins/SslKeys.pm": 48 #generate key and csr 49 my $result = UI::Utils->exec_command( 50 "openssl req -nodes -newkey rsa:2048 -keyout $TMP_LOCATION/$hostname.key -out $TMP_LOCATION/$hostname.csr -subj /C=\"$country\"/ST=\"$state\"/L=\"$city\"/O=\"$org\"/OU=\" $unit\"/CN=$hostname" 51 ); 52 if ( $result != 0 ) { 53 $response = { _rc => 400, _content => "Error creating key and csr. Result is $result" }; 54 return $response; 55 } >From above code, this error "Error creating key and csr. Result is $result" >only happens when executing openssl command in Traffic Ops. And in our testbed only restart traffic_ops will recover. The reason is forked child process reaped by system, and "wait()" in the parent failed. Another evidence is when this issue happens, we could find the key and car file actually generated under "/var/tmp" location. So the command should have been executed successfully. > traffic_ops reports "Response was Error creating key and csr" when generating > key for an HTTPS DS > ------------------------------------------------------------------------------------------------- > > Key: TC-83 > URL: https://issues.apache.org/jira/browse/TC-83 > Project: Traffic Control > Issue Type: Bug > Components: Traffic Ops > Affects Versions: 1.7.0 > Reporter: Zhilin Huang > > traffic_ops reports "Response was Error creating key and csr. Result is -1" > when generating key for an HTTPS DS. This happens when traffic_ops has not > been restarted for a day or so. Restarting traffic_ops will recover. -- This message was sent by Atlassian JIRA (v6.3.4#6332)