max1976 Опубликовано 5 мая, 2016 · Жалоба $VAR1 = [ '1462420800000', '1462352700000', '3.1', '2.2', '4.6' ]; В логах такое: 2016-05-05 12:33:46 | INFO | main | Starting RKN at Thu May 5 12:33:46 2016 2016-05-05 12:33:46 | INFO | main | lastDumpDate <= prev. dump date. Exiting. Это не ошибка, а нормальная работа скрипта. Вставьте в строку 313 код print Dumper(\@result); и скопируйте что будет выведено в консоль при возникновении ошибки. сейчас вручную дамп выгрузился, удалил его вместе с архивом, ещё раз запускаю в логах тоже самое и вот что на выхлопе $VAR1 = []; $VAR1 = []; $VAR1 = []; $VAR1 = []; Снимите tcpdump'ом что прилетает в ответ на запросы скрипта. Вставить ник Цитата Ответить с цитированием Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах More sharing options...
cREoz Опубликовано 5 мая, 2016 · Жалоба Как мне кажется, VersionMismatch отдаёт один из неисправных серверов за балансером. Этот скрипт делает запрос getLastDumpDateEx в бесконечном цикле: #!/usr/bin/env perl -w use 5.010; use strict; use warnings; use SOAP::Lite; my $soap = SOAP::Lite->service('http://vigruzki.rkn.gov.ru/services/OperatorRequestTest/?wsdl'); my @a; print "request:"; $| = 1; while(1) { @a = $soap->getLastDumpDateEx(); last if @a ne 0; print " ."; sleep 10; } say " done"; say join(", ", @a); и если от сервера сразу прилетает VersionMismatch, то на все остальные попытки будет тоже самое. Думаю, что перед следующей попыткой нужно закрыть подключение (обнулить переменную $soap ?) и поставить тайм-аут на минуту, но Perl я не знаю( Вставить ник Цитата Ответить с цитированием Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах More sharing options...
taf_321 Опубликовано 5 мая, 2016 · Жалоба Кстати, чтобы не городить в системе несколько openssl, сделал вот такую правку в скрипте (358): - `$openssl_bin_path/openssl smime -sign -in $req_file -out $sig_file -binary -signer $dir/cert.pem -outform DER`; + `OPENSSL_CONF=$dir/sign/openssl.cnf openssl smime -sign -in $req_file -out $sig_file -binary -signer $dir/cert.pem -outform DER`; Вставить ник Цитата Ответить с цитированием Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах More sharing options...
cREoz Опубликовано 5 мая, 2016 (изменено) · Жалоба П.С. изменил свой код вот так: use 5.010; use strict; use warnings; use SOAP::Lite; my @a; print "request:"; $| = 1; while(1) { my $soap = SOAP::Lite->service('http://vigruzki.rkn.gov.ru/services/OperatorRequestTest/?wsdl'); @a = $soap->getLastDumpDateEx(); last if @a ne 0; $soap = undef; print " ."; sleep 60; } say " done"; say join(", ", @a); знакомые уже ошибки в логах, но на N-ю попытку сработало: $ perl test-public.pl request: .Subroutine _call redefined at (eval 112) line 50. Subroutine OperatorRequestService::want_som redefined at (eval 112) line 92. Subroutine AUTOLOAD redefined at (eval 112) line 109. Subroutine OperatorRequestService::getLastDumpDateEx redefined at (eval 112) line 107. Subroutine OperatorRequestService::getResult redefined at (eval 112) line 107. Subroutine OperatorRequestService::sendRequest redefined at (eval 112) line 107. Subroutine OperatorRequestService::getLastDumpDate redefined at (eval 112) line 107. .Subroutine _call redefined at (eval 119) line 50. Subroutine OperatorRequestService::want_som redefined at (eval 119) line 92. Subroutine AUTOLOAD redefined at (eval 119) line 109. Subroutine OperatorRequestService::sendRequest redefined at (eval 119) line 107. Subroutine OperatorRequestService::getLastDumpDate redefined at (eval 119) line 107. Subroutine OperatorRequestService::getLastDumpDateEx redefined at (eval 119) line 107. Subroutine OperatorRequestService::getResult redefined at (eval 119) line 107. .Subroutine _call redefined at (eval 126) line 50. Subroutine OperatorRequestService::want_som redefined at (eval 126) line 92. Subroutine AUTOLOAD redefined at (eval 126) line 109. Subroutine OperatorRequestService::getLastDumpDateEx redefined at (eval 126) line 107. Subroutine OperatorRequestService::getResult redefined at (eval 126) line 107. Subroutine OperatorRequestService::sendRequest redefined at (eval 126) line 107. Subroutine OperatorRequestService::getLastDumpDate redefined at (eval 126) line 107. .Subroutine _call redefined at (eval 133) line 50. Subroutine OperatorRequestService::want_som redefined at (eval 133) line 92. Subroutine AUTOLOAD redefined at (eval 133) line 109. Subroutine OperatorRequestService::getLastDumpDate redefined at (eval 133) line 107. Subroutine OperatorRequestService::sendRequest redefined at (eval 133) line 107. Subroutine OperatorRequestService::getResult redefined at (eval 133) line 107. Subroutine OperatorRequestService::getLastDumpDateEx redefined at (eval 133) line 107. done 1462436700000, 1462436400000, 3.1, 2.2, 4.4 Кстати, чтобы не городить в системе несколько openssl В CentOS 7 и Fedora 23 OpenSSL из дистрибутива не имеет библиотеки GOST, так что всё равно его нужно собирать отдельно (( Изменено 5 мая, 2016 пользователем cREoz Вставить ник Цитата Ответить с цитированием Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах More sharing options...
zelfix Опубликовано 5 мая, 2016 · Жалоба max1976, установил и настроил фильтрацию на основе nfqfliter. Пилот работает отлично, почти не кушает ресурсы. Мне кажется, пользователи должны иметь возможность отблагодарить вас за труд через donate. Нигде не нашел информации, как это можно сделать. Вставить ник Цитата Ответить с цитированием Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах More sharing options...
max1976 Опубликовано 5 мая, 2016 · Жалоба П.С. изменил свой код вот так: ... У себя я проверил скрипт на CentOS 6 и CentOS 7 - никогда не выдает ошибки VersionMismatch. Напишите в поддержку РКН что иногда их сервер выдает такую ошибку, может найдут причину ошибки. max1976, установил и настроил фильтрацию на основе nfqfliter. Пилот работает отлично, почти не кушает ресурсы. Мне кажется, пользователи должны иметь возможность отблагодарить вас за труд через donate. Нигде не нашел информации, как это можно сделать. Я об этом не думал :) Делал прогу для себя и решил поделиться с другими. Вставить ник Цитата Ответить с цитированием Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах More sharing options...
dnvk Опубликовано 5 мая, 2016 · Жалоба 2max1976, хитрая кнопочка должна быть ). Поддерживаю zelfix. Вставить ник Цитата Ответить с цитированием Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах More sharing options...
OK-2004 Опубликовано 5 мая, 2016 (изменено) · Жалоба выкачал свежий git 10 мин назад. Вот его лог: 2016-05-05 13:10:09 | DEBUG | main | Last dump date: 1462361505 2016-05-05 13:10:09 | DEBUG | main | Last action: getResult 2016-05-05 13:10:09 | DEBUG | main | Last code: d58d4231edc01b91b51ebbf779a67ac0 2016-05-05 13:10:09 | DEBUG | main | Last result: got 2016-05-05 13:10:09 | INFO | main | Starting RKN at Thu May 5 13:10:09 2016 2016-05-05 13:10:09 | DEBUG | main | Checking dump date... 2016-05-05 13:10:09 | ERROR | main | Soap result not defined, retrying... 2016-05-05 13:10:09 | ERROR | main | Soap result not defined, retrying... 2016-05-05 13:10:09 | ERROR | main | Soap result not defined, retrying... 2016-05-05 13:10:09 | ERROR | main | Soap result not defined, retrying... 2016-05-05 13:10:09 | FATAL | main | 3 attempts failed, giving up. Вот выхлоп варешарка: Запрос1: GET /services/OperatorRequest/?wsdl HTTP/1.1 TE: deflate,gzip;q=0.3 Connection: TE, close Host: vigruzki.rkn.gov.ru User-Agent: libwww-perl/6.05 Ответ1: HTTP/1.1 200 OK Server: nginx/1.4.7 Date: Thu, 05 May 2016 10:10:09 GMT Content-Type: text/xml; charset=utf-8 Content-Length: 7641 Connection: close X-Powered-By: PHP/5.4.27 <wsdl:definitions name="OperatorRequest" targetNamespace="http://vigruzki.rkn.gov.ru/OperatorRequest/" xmlns:tns="http://vigruzki.rkn.gov.ru/OperatorRequest/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">'>http://schemas.xmlsoap.org/wsdl/soap/"> .<wsdl:types> ..<xsd:schema targetNamespace="http://vigruzki.rkn.gov.ru/OperatorRequest/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">'>http://www.w3.org/2001/XMLSchema"> ...<xsd:element name="getLastDumpDate"> ....<xsd:annotation><xsd:documentation>......................... .....................</xsd:documentation></xsd:annotation> ....<xsd:complexType> .....<xsd:sequence/> ....</xsd:complexType> ...</xsd:element> ...<xsd:element name="getLastDumpDateResponse"> ....<xsd:annotation><xsd:documentation>.......... .... ............ .............. .................... ....................</xsd:documentation></xsd:annotation> ....<xsd:complexType> .....<xsd:sequence> ......<xsd:element name="lastDumpDate" type="xsd:long"/> .....</xsd:sequence> ....</xsd:complexType> ...</xsd:element> ... ...<xsd:element name="getLastDumpDateEx"> ....<xsd:annotation><xsd:documentation>............ .............. .................... .............. ....................</xsd:documentation></xsd:annotation> ....<xsd:complexType> .....<xsd:sequence/> ....</xsd:complexType> ...</xsd:element> ... ...<xsd:element name="getLastDumpDateExResponse"> ....<xsd:annotation><xsd:documentation>.......... .... ............ .............. .................... .............. ....................</xsd:documentation></xsd:annotation> ....<xsd:complexType> .....<xsd:sequence> ......<xsd:element name="lastDumpDate" type="xsd:long"/> ......<xsd:element name="lastDumpDateUrgently" type="xsd:long"/> ......<xsd:element name="webServiceVersion" type="xsd:string"/> ......<xsd:element name="dumpFormatVersion" type="xsd:string"/> ......<xsd:element name="docVersion" type="xsd:string"/> .....</xsd:sequence> ....</xsd:complexType> ...</xsd:element> ... ...<xsd:element name="sendRequest"> ....<xsd:annotation><xsd:documentation>............ .... ................ ..............</xsd:documentation></xsd:annotation> ....<xsd:complexType> .....<xsd:sequence> ......<xsd:element name="requestFile" type="xsd:base64Binary"/> ......<xsd:element name="signatureFile" type="xsd:base64Binary"/> ......<xsd:element name="dumpFormatVersion" type="xsd:string" minOccurs="0"/> .....</xsd:sequence> ....</xsd:complexType> ...</xsd:element> ... ...<xsd:element name="sendRequestResponse"> ....<xsd:annotation><xsd:documentation>.......... .... ............ .... ................ ..............</xsd:documentation></xsd:annotation> ....<xsd:complexType> .....<xsd:sequence> ......<xsd:element name="result" type="xsd:boolean"/> ......<xsd:element name="resultComment" type="xsd:string" minOccurs="0" maxOccurs="1"/> ......<xsd:element name="code" type="xsd:string" minOccurs="0" maxOccurs="1"/> .....</xsd:sequence> ....</xsd:complexType> ...</xsd:element> ...<xsd:element name="getResult"> ....<xsd:annotation><xsd:documentation>............ .... .................. ....................</xsd:documentation></xsd:annotation> ....<xsd:complexType> .....<xsd:sequence> ......<xsd:element name="code" type="xsd:string"/> .....</xsd:sequence> ....</xsd:complexType> ...</xsd:element> ... ...<xsd:element name="getResultResponse"> ....<xsd:annotation><xsd:documentation>.......... .... ............ .... .................. ....................</xsd:documentation></xsd:annotation> ....<xsd:complexType> .....<xsd:sequence> ......<xsd:element name="result" type="xsd:boolean"/> ......<xsd:element name="resultComment" type="xsd:string" minOccurs="0" maxOccurs="1"/> ......<xsd:element name="registerZipArchive" type="xsd:base64Binary" minOccurs="0" maxOccurs="1"/> ......<xsd:element name="resultCode" type="xsd:int"/> ......<xsd:element name="dumpFormatVersion" type="xsd:string" minOccurs="0" maxOccurs="1"/> ......<xsd:element name="operatorName" type="xsd:string" minOccurs="0" maxOccurs="1"/> ......<xsd:element name="inn" type="xsd:string" minOccurs="0" maxOccurs="1"/> .....</xsd:sequence> ....</xsd:complexType> ...</xsd:element> ..</xsd:schema> .</wsdl:types> .<wsdl:message name="getLastDumpDate"> ..<wsdl:part name="parameters" element="tns:getLastDumpDate"/> .</wsdl:message> .<wsdl:message name="getLastDumpDateResponse"> ..<wsdl:part name="parameters" element="tns:getLastDumpDateResponse"/> .</wsdl:message> .<wsdl:message name="getLastDumpDateEx"> ..<wsdl:part name="parameters" element="tns:getLastDumpDateEx"/> .</wsdl:message> .<wsdl:message name="getLastDumpDateExResponse"> ..<wsdl:part name="parameters" element="tns:getLastDumpDateExResponse"/> .</wsdl:message> .<wsdl:message name="sendRequest"> ..<wsdl:part name="parameters" element="tns:sendRequest"/> .</wsdl:message> .<wsdl:message name="sendRequestResponse"> ..<wsdl:part name="parameters" element="tns:sendRequestResponse"/> .</wsdl:message> .<wsdl:message name="getResult"> ..<wsdl:part name="parameters" element="tns:getResult"/> .</wsdl:message> .<wsdl:message name="getResultResponse"> ..<wsdl:part name="parameters" element="tns:getResultResponse"/> .</wsdl:message> .<wsdl:portType name="OperatorRequestPortType"> ..<wsdl:operation name="getLastDumpDate"> ...<wsdl:input message="tns:getLastDumpDate"/> ...<wsdl:output message="tns:getLastDumpDateResponse"/> ..</wsdl:operation> ..<wsdl:operation name="getLastDumpDateEx"> ...<wsdl:input message="tns:getLastDumpDateEx"/> ...<wsdl:output message="tns:getLastDumpDateExResponse"/> ..</wsdl:operation> ..<wsdl:operation name="sendRequest"> ...<wsdl:input message="tns:sendRequest"/> ...<wsdl:output message="tns:sendRequestResponse"/> ..</wsdl:operation> ..<wsdl:operation name="getResult"> ...<wsdl:input message="tns:getResult"/> ...<wsdl:output message="tns:getResultResponse"/> ..</wsdl:operation> .</wsdl:portType> .<wsdl:binding name="OperatorRequestPortBinding" type="tns:OperatorRequestPortType"> ..<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> ..<wsdl:operation name="getLastDumpDate"> ...<soap:operation soapAction="http://vigruzki.rkn.gov.ru/services/OperatorRequest/getLastDumpDate" style="document"/> ...<wsdl:input> ....<soap:body use="literal"/> ...</wsdl:input> ...<wsdl:output> ....<soap:body use="literal"/> ...</wsdl:output> ..</wsdl:operation> ..<wsdl:operation name="getLastDumpDateEx"> ...<soap:operation soapAction="http://vigruzki.rkn.gov.ru/services/OperatorRequest/getLastDumpDateEx" style="document"/> ...<wsdl:input> ....<soap:body use="literal"/> ...</wsdl:input> ...<wsdl:output> ....<soap:body use="literal"/> ...</wsdl:output> ..</wsdl:operation> ..<wsdl:operation name="sendRequest"> ...<soap:operation soapAction="http://vigruzki.rkn.gov.ru/services/OperatorRequest/sendRequest" style="document"/> ...<wsdl:input> ....<soap:body use="literal"/> ...</wsdl:input> ...<wsdl:output> ....<soap:body use="literal"/> ...</wsdl:output> ..</wsdl:operation> ..<wsdl:operation name="getResult"> ...<soap:operation soapAction="http://vigruzki.rkn.gov.ru/services/OperatorRequest/getResult" style="document"/> ...<wsdl:input> ....<soap:body use="literal"/> ...</wsdl:input> ...<wsdl:output> ....<soap:body use="literal"/> ...</wsdl:output> ..</wsdl:operation> .</wsdl:binding> .<wsdl:service name="OperatorRequestService"> ..<wsdl:port name="OperatorRequestPort" binding="tns:OperatorRequestPortBinding"> ...<soap:address location="http://vigruzki.rkn.gov.ru/services/OperatorRequest/"/> ..</wsdl:port> .</wsdl:service> </wsdl:definitions> Запрос2: POST /services/OperatorRequest/ HTTP/1.1 TE: deflate,gzip;q=0.3 Connection: TE, close Accept: text/xml Accept: multipart/* Accept: application/soap Host: vigruzki.rkn.gov.ru User-Agent: SOAP::Lite/Perl/1.09 Content-Length: 505 Content-Type: text/xml; charset=utf-8 SOAPAction: "http://vigruzki.rkn.gov.ru/services/OperatorRequest/getLastDumpDateEx" <?xml version="1.0" encoding="UTF-8"?><soap:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://vigruzki.rkn.gov.ru/OperatorRequest/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><tns:getLastDumpDateEx xsi:nil="true" /></soap:Body></soap:Envelope> Ответ2: HTTP/1.1 500 Internal Service Error Server: nginx/1.4.7 Date: Thu, 05 May 2016 10:10:09 GMT Content-Type: text/xml; charset=utf-8 Content-Length: 289 Connection: close X-Powered-By: PHP/5.4.27 <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:VersionMismatch</faultcode><faultstring>Wrong Version</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope> Запрос3: POST /services/OperatorRequest/ HTTP/1.1 TE: deflate,gzip;q=0.3 Connection: TE, close Accept: text/xml Accept: multipart/* Accept: application/soap Host: vigruzki.rkn.gov.ru User-Agent: SOAP::Lite/Perl/1.09 Content-Length: 505 Content-Type: text/xml; charset=utf-8 SOAPAction: "http://vigruzki.rkn.gov.ru/services/OperatorRequest/getLastDumpDateEx" <?xml version="1.0" encoding="UTF-8"?><soap:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://vigruzki.rkn.gov.ru/OperatorRequest/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><tns:getLastDumpDateEx xsi:nil="true" /></soap:Body></soap:Envelope> Ответ3: HTTP/1.1 500 Internal Service Error Server: nginx/1.4.7 Date: Thu, 05 May 2016 10:10:09 GMT Content-Type: text/xml; charset=utf-8 Content-Length: 289 Connection: close X-Powered-By: PHP/5.4.27 <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:VersionMismatch</faultcode><faultstring>Wrong Version</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope> Запрос4: POST /services/OperatorRequest/ HTTP/1.1 TE: deflate,gzip;q=0.3 Connection: TE, close Accept: text/xml Accept: multipart/* Accept: application/soap Host: vigruzki.rkn.gov.ru User-Agent: SOAP::Lite/Perl/1.09 Content-Length: 505 Content-Type: text/xml; charset=utf-8 SOAPAction: "http://vigruzki.rkn.gov.ru/services/OperatorRequest/getLastDumpDateEx" <?xml version="1.0" encoding="UTF-8"?><soap:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://vigruzki.rkn.gov.ru/OperatorRequest/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><tns:getLastDumpDateEx xsi:nil="true" /></soap:Body></soap:Envelope> Ответ4: HTTP/1.1 500 Internal Service Error Server: nginx/1.4.7 Date: Thu, 05 May 2016 10:10:09 GMT Content-Type: text/xml; charset=utf-8 Content-Length: 289 Connection: close X-Powered-By: PHP/5.4.27 <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:VersionMismatch</faultcode><faultstring>Wrong Version</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope> Запрос5: POST /services/OperatorRequest/ HTTP/1.1 TE: deflate,gzip;q=0.3 Connection: TE, close Accept: text/xml Accept: multipart/* Accept: application/soap Host: vigruzki.rkn.gov.ru User-Agent: SOAP::Lite/Perl/1.09 Content-Length: 505 Content-Type: text/xml; charset=utf-8 SOAPAction: "http://vigruzki.rkn.gov.ru/services/OperatorRequest/getLastDumpDateEx" <?xml version="1.0" encoding="UTF-8"?><soap:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://vigruzki.rkn.gov.ru/OperatorRequest/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><tns:getLastDumpDateEx xsi:nil="true" /></soap:Body></soap:Envelope> Ответ5: HTTP/1.1 500 Internal Service Error Server: nginx/1.4.7 Date: Thu, 05 May 2016 10:10:09 GMT Content-Type: text/xml; charset=utf-8 Content-Length: 289 Connection: close X-Powered-By: PHP/5.4.27 <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:VersionMismatch</faultcode><faultstring>Wrong Version</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope> Изменено 5 мая, 2016 пользователем OK-2004 Вставить ник Цитата Ответить с цитированием Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах More sharing options...
zhenya` Опубликовано 5 мая, 2016 · Жалоба ну вот и ответ.. 500ая на стороне сервера.. не справляется.. или нода в кластере у них тупит Вставить ник Цитата Ответить с цитированием Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах More sharing options...
OK-2004 Опубликовано 5 мая, 2016 · Жалоба В посте http://forum.nag.ru/forum/index.php?showtopic=79886&view=findpost&p=1278793 я уже приводил выхлоп zapret_cheker.py, который работает как часы даже если его запускать с интералом в 5 мин. Помоему POST-запросы zapret_cheker-а немного отличаются от тех что делает zapret.pl Вставить ник Цитата Ответить с цитированием Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах More sharing options...
max1976 Опубликовано 5 мая, 2016 · Жалоба В посте http://forum.nag.ru/forum/index.php?showtopic=79886&view=findpost&p=1278793 я уже приводил выхлоп zapret_cheker.py, который работает как часы даже если его запускать с интералом в 5 мин. Помоему POST-запросы zapret_cheker-а немного отличаются от тех что делает zapret.pl Попробуйте обновить SOAP::Lite до версии 1.19 (последней), т.к. у вас установлена 1.09. Вставить ник Цитата Ответить с цитированием Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах More sharing options...
OK-2004 Опубликовано 5 мая, 2016 (изменено) · Жалоба Обновил: cpan -D SOAP::Lite Reading '/root/.cpan/Metadata' Database was generated on Thu, 05 May 2016 10:17:02 GMT SOAP::Lite ------------------------------------------------------------------------- (no description) P/PH/PHRED/SOAP-Lite-1.19.tar.gz /usr/local/share/perl/5.18.2/SOAP/Lite.pm Installed: 1.19 CPAN: 1.19 up to date Fred Moyer (PHRED) fred@redhotpenguin.com Теже яйцы: 2016-05-05 14:21:37 | DEBUG | main | Last dump date: 1462361505 2016-05-05 14:21:37 | DEBUG | main | Last action: getResult 2016-05-05 14:21:37 | DEBUG | main | Last code: d58d4231edc01b91b51ebbf779a67ac0 2016-05-05 14:21:37 | DEBUG | main | Last result: got 2016-05-05 14:21:37 | INFO | main | Starting RKN at Thu May 5 14:21:37 2016 2016-05-05 14:21:37 | DEBUG | main | Checking dump date... 2016-05-05 14:21:37 | ERROR | main | Soap result not defined, retrying... 2016-05-05 14:21:37 | ERROR | main | Soap result not defined, retrying... 2016-05-05 14:21:37 | ERROR | main | Soap result not defined, retrying... 2016-05-05 14:21:37 | ERROR | main | Soap result not defined, retrying... 2016-05-05 14:21:37 | FATAL | main | 3 attempts failed, giving up. Сокращённый дамп: 1) GET /services/OperatorRequest/?wsdl HTTP/1.1 TE: deflate,gzip;q=0.3 Connection: TE, close Host: vigruzki.rkn.gov.ru User-Agent: libwww-perl/6.05 2) HTTP/1.1 200 OK Server: nginx/1.4.7 Date: Thu, 05 May 2016 11:21:37 GMT Content-Type: text/xml; charset=utf-8 Content-Length: 7641 Connection: close X-Powered-By: PHP/5.4.27 3) POST /services/OperatorRequest/ HTTP/1.1 TE: deflate,gzip;q=0.3 Connection: TE, close Accept: text/xml Accept: multipart/* Accept: application/soap Host: vigruzki.rkn.gov.ru User-Agent: SOAP::Lite/Perl/1.17 Content-Length: 505 Content-Type: text/xml; charset=utf-8 SOAPAction: "http://vigruzki.rkn.gov.ru/services/OperatorRequest/getLastDumpDateEx" <?xml version="1.0" encoding="UTF-8"?><soap:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://vigruzki.rkn.gov.ru/OperatorRequest/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><tns:getLastDumpDateEx xsi:nil="true" /></soap:Body></soap:Envelope> 4) HTTP/1.1 500 Internal Service Error Server: nginx/1.4.7 Date: Thu, 05 May 2016 11:21:37 GMT Content-Type: text/xml; charset=utf-8 Content-Length: 289 Connection: close X-Powered-By: PHP/5.4.27 <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:VersionMismatch</faultcode><faultstring>Wrong Version</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope> Смутило правда, что в POST-запросе фигурировал User-Agent: SOAP::Lite/Perl/1.17 Откуда взялась версия "1.17" - хз.... Изменено 5 мая, 2016 пользователем OK-2004 Вставить ник Цитата Ответить с цитированием Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах More sharing options...
max1976 Опубликовано 5 мая, 2016 · Жалоба Смутило правда, что в POST-запросе фигурировал User-Agent: SOAP::Lite/Perl/1.17 Хотя откуда взялась весрия 1.17 - хз.... У меня так же. Вот ваша строка xml запроса: <?xml version="1.0" encoding="UTF-8"?><soap:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://vigruzki.rkn.gov.ru/OperatorRequest/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><tns:getLastDumpDateEx xsi:nil="true" /></soap:Body></soap:Envelope> и у меня: <?xml version="1.0" encoding="UTF-8"?><soap:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://vigruzki.rkn.gov.ru/OperatorRequest/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><tns:getLastDumpDateEx xsi:nil="true" /></soap:Body></soap:Envelope> различие в xmlns:soap . Вставить ник Цитата Ответить с цитированием Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах More sharing options...
OK-2004 Опубликовано 5 мая, 2016 · Жалоба Хм, так что же делать? В каком месте я дурак ? Вставить ник Цитата Ответить с цитированием Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах More sharing options...
max1976 Опубликовано 5 мая, 2016 · Жалоба Хм, так что же делать? В каком месте я дурак ? Ищите откуда у вас подставляется неверное значение. В SOAP::Lite есть файл Constants.pm, в нём все и описано: use constant URI_SOAP11_ENV => "http://schemas.xmlsoap.org/soap/envelope/"; $SOAP_VERSION = '1.1'; %SOAP_VERSIONS = ( 1.1 => { NEXT_ACTOR => URI_SOAP11_NEXT_ACTOR, NS_ENV => URI_SOAP11_ENV, NS_ENC => URI_SOAP11_ENC, DEFAULT_XML_SCHEMA => URI_2001_SCHEMA_XSD, DEFAULT_HTTP_CONTENT_TYPE => 'text/xml', }, 1.2 => { NEXT_ACTOR => URI_SOAP12_NEXT_ACTOR, NS_ENV => URI_SOAP12_ENV, NS_ENC => URI_SOAP12_ENC, DEFAULT_XML_SCHEMA => URI_2001_SCHEMA_XSD, DEFAULT_HTTP_CONTENT_TYPE => 'application/soap+xml', }, ); Вставить ник Цитата Ответить с цитированием Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах More sharing options...
OK-2004 Опубликовано 5 мая, 2016 · Жалоба Constants.pm выглядел также , но походу был не в том месте где надо... Корочь VersionMismatch пропало, но появилась другая фишка: 2016-05-05 15:51:27 | DEBUG | main | Last dump date: 1462361505 2016-05-05 15:51:27 | DEBUG | main | Last action: getResult 2016-05-05 15:51:27 | DEBUG | main | Last code: d58d4231edc01b91b51ebbf779a67ac0 2016-05-05 15:51:27 | DEBUG | main | Last result: got 2016-05-05 15:51:27 | INFO | main | Starting RKN at Thu May 5 15:51:27 2016 2016-05-05 15:51:27 | DEBUG | main | Checking dump date... 2016-05-05 15:51:27 | DEBUG | main | RKN last dump date: 1462449600 2016-05-05 15:51:27 | DEBUG | main | lastDumpDate > prev. dump date. Working now. 2016-05-05 15:51:27 | DEBUG | main | Sending request... 2016-05-05 15:51:27 | DEBUG | main | запрос принят 2016-05-05 15:51:27 | DEBUG | main | Getting result... 2016-05-05 15:51:27 | ERROR | main | Can not get result: не найден запрос по указанному идентификатору В выхлопе : POST /services/OperatorRequest/ HTTP/1.1 TE: deflate,gzip;q=0.3 Connection: TE, close Accept: text/xml Accept: multipart/* Accept: application/soap Host: vigruzki.rkn.gov.ru User-Agent: SOAP::Lite/Perl/1.17 Content-Length: 509 Content-Type: text/xml; charset=utf-8 SOAPAction: "http://vigruzki.rkn.gov.ru/services/OperatorRequest/getLastDumpDateEx" <?xml version="1.0" encoding="UTF-8"?><soap:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://vigruzki.rkn.gov.ru/OperatorRequest/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><tns:getLastDumpDateEx'>http://www.w3.org/2001/XMLSchema-instance"><soap:Body><tns:getLastDumpDateEx xsi:nil="true" /></soap:Body></soap:Envelope> HTTP/1.1 200 OK Server: nginx/1.4.7 Date: Thu, 05 May 2016 12:51:27 GMT Content-Type: text/xml; charset=utf-8 Content-Length: 500 Connection: close X-Powered-By: PHP/5.4.27 <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://vigruzki.rkn.gov.ru/OperatorRequest/"><SOAP-ENV:Body><ns1:getLastDumpDateExResponse><lastDumpDate>1462449600000</lastDumpDate><lastDumpDateUrgently>1462443420000</lastDumpDateUrgently><webServiceVersion>3.1</webServiceVersion><dumpFormatVersion>2.2</dumpFormatVersion><docVersion>4.6</docVersion></ns1:getLastDumpDateExResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> POST /services/OperatorRequest/ HTTP/1.1 TE: deflate,gzip;q=0.3 Connection: TE, close Accept: text/xml Accept: multipart/* Accept: application/soap Host: vigruzki.rkn.gov.ru User-Agent: SOAP::Lite/Perl/1.17 Content-Length: 5338 Content-Type: text/xml; charset=utf-8 SOAPAction: "http://vigruzki.rkn.gov.ru/services/OperatorRequest/sendRequest" <?xml version="1.0" encoding="UTF-8"?> <soap:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://vigruzki.rkn.gov.ru/OperatorRequest/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soap:Body> <tns:sendRequest> <requestFile xsi:type="xsd:base64Binary">PD94bW......VzdD4K</requestFile> <signatureFile xsi:type="xsd:base64Binary">MIIMp......Qy3sg</signatureFile> <dumpFormatVersion xsi:type="xsd:string">2.2</dumpFormatVersion></tns:sendRequest></soap:Body></soap:Envelope> HTTP/1.1 200 OK Server: nginx/1.4.7 Date: Thu, 05 May 2016 12:51:27 GMT Content-Type: text/xml; charset=utf-8 Content-Length: 398 Connection: close X-Powered-By: PHP/5.4.27 <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://vigruzki.rkn.gov.ru/OperatorRequest/"> <SOAP-ENV:Body> <ns1:sendRequestResponse> <result>true</result> <resultComment>............ ............</resultComment> <code>0cfeb9079e6c7b5b62cc8d0aa9d6c868</code> </ns1:sendRequestResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> POST /services/OperatorRequest/ HTTP/1.1 TE: deflate,gzip;q=0.3 Connection: TE, close Accept: text/xml Accept: multipart/* Accept: application/soap Host: vigruzki.rkn.gov.ru User-Agent: SOAP::Lite/Perl/1.17 Content-Length: 567 Content-Type: text/xml; charset=utf-8 SOAPAction: "http://vigruzki.rkn.gov.ru/services/OperatorRequest/getResult" <?xml version="1.0" encoding="UTF-8"?> <soap:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://vigruzki.rkn.gov.ru/OperatorRequest/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soap:Body> <tns:getResult> <code xsi:type="xsd:string">d58d4231edc01b91b51ebbf779a67ac0</code> </tns:getResult> </soap:Body></soap:Envelope> HTTP/1.1 200 OK Server: nginx/1.4.7 Date: Thu, 05 May 2016 12:51:27 GMT Content-Type: text/xml; charset=utf-8 Content-Length: 437 Connection: close X-Powered-By: PHP/5.4.27 <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://vigruzki.rkn.gov.ru/OperatorRequest/"> <SOAP-ENV:Body> <ns1:getResultResponse><result>false</result> <resultComment>.... ............ ............ .... .................... ............................</resultComment> <resultCode>-9</resultCode></ns1:getResultResponse> </SOAP-ENV:Body></SOAP-ENV:Envelope> видно, что скрипту по SOAPAction: "http://vigruzki.rkn.gov.ru/services/OperatorRequest/sendRequest" возвращается идентификатор: <code>0cfeb9079e6c7b5b62cc8d0aa9d6c868</code> но дальше он почему-то в SOAPAction: "http://vigruzki.rkn.gov.ru/services/OperatorRequest/getResult" кидает <code xsi:type="xsd:string">d58d4231edc01b91b51ebbf779a67ac0</code> Но она ведь не равна идентификатору, который вернул сайт. на всякий случай select * from zap2_settings\G : *************************** 1. row *************************** param: lastDumpDate value: 1462361505 *************************** 2. row *************************** param: lastAction value: getResult *************************** 3. row *************************** param: lastResult value: err *************************** 4. row *************************** param: lastCode value: 0cfeb9079e6c7b5b62cc8d0aa9d6c868 *************************** 5. row *************************** param: lastActionDate value: 1462452687 *************************** 6. row *************************** param: lastDump value: <?xml version="1.0" encoding="windows-1251"?> <reg:register updateTime="2014-02-02T12:00:00+04:00" updateTimeUrgently="2014-02-01T11:00:00" xmlns:reg="http://rsoc.ru" xmlns:tns="http://rsoc.ru"> <content id="1101" includeTime="2013-12-01T10:00:05"> <decision date="2013-12-01" number="9" org=" 6 rows in set (0.00 sec) Вставить ник Цитата Ответить с цитированием Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах More sharing options...
max1976 Опубликовано 5 мая, 2016 (изменено) · Жалоба видно, что скрипту по SOAPAction: "http://vigruzki.rkn.gov.ru/services/OperatorRequest/sendRequest" возвращается идентификатор: <code>0cfeb9079e6c7b5b62cc8d0aa9d6c868</code> но дальше он почему-то в SOAPAction: "http://vigruzki.rkn.gov.ru/services/OperatorRequest/getResult" кидает <code xsi:type="xsd:string">d58d4231edc01b91b51ebbf779a67ac0</code> Но она ведь не равна идентификатору, который вернул сайт. Да, есть баг. Исправлено. Изменено 5 мая, 2016 пользователем max1976 Вставить ник Цитата Ответить с цитированием Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах More sharing options...
cREoz Опубликовано 5 мая, 2016 (изменено) · Жалоба Constants.pm выглядел также , но походу был не в том месте где надо... А куда его нужно положить? добавил $soap->envprefix('SOAP-ENV'); в тестовый скрипт: #!/usr/bin/env perl -w use 5.010; use strict; use warnings; use SOAP::Lite; my $soap = SOAP::Lite->service('http://vigruzki.rkn.gov.ru/services/OperatorRequestTest/?wsdl'); $soap->envprefix('SOAP-ENV'); my @a; print "request:"; $| = 1; while(1) { @a = $soap->getLastDumpDateEx(); last if @a ne 0; print " ."; sleep 10; } say " done"; say join(", ", @a); и запустив его 300 раз подряд for i in {1..300}; do perl test.pl; sleep 1; done; ни разу не получил ошибку! XML-запрос выглядит так: <?xml version="1.0" encoding="UTF-8" ?> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://vigruzki.rkn.gov.ru/OperatorRequest/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SOAP-ENV:Body> <tns:getLastDumpDateEx xsi:nil="true"/> </SOAP-ENV:Body> </SOAP-ENV:Envelope> похоже, что модуль SOAP::Lite иногда неправильно задаёт значение для атрибута xmlns:soap max1976, как это можно добавить к Zapret.pm? П.С. вот так, у меня, работает 100% diff --git a/Zapret.pm b/Zapret.pm index 22c992d..65adb12 100644 --- a/Zapret.pm +++ b/Zapret.pm @@ -19,6 +19,7 @@ sub new my $self={ service => SOAP::Lite->service($URL) }; + $self->{service}->envprefix('SOAP-ENV'); bless $self,$class; return $self; } Изменено 5 мая, 2016 пользователем cREoz Вставить ник Цитата Ответить с цитированием Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах More sharing options...
OK-2004 Опубликовано 6 мая, 2016 (изменено) · Жалоба На счёт Constants.pm... Ununtu server 14.04 поставил сам deb-пакет soap::lite (но версии 1.09). До версии 1.19 я этот пакет "дотянул" из cpan, не удалив deb-пакет ( думал что 1.19 "сверху" перепишется ) . В результате в системе оказалось два пакета soap::lite и два Constants.pm. Перл походу запутался и я решил ему помочь, удалив deb-пакет и и заново переставив пакет из cpan. Наверное лучше будет вообще удалять все деб-пакеты с либами перла и ставить на место их самый свежие из cpan. Так хотябы будет какое-то соответствие версий. А теперь о приятном... (По ходу вселенский оргазм всёж наступил....) Уважаемый max1976! Вы проделали титаническую работу и последний слепок из git-а отработал всё правильно. Вот выхлоп самого скрипта: Too late to run CHECK block at /usr/lib/perl5/EV.pm line 123. Не знаю - о чём он говорит, но наверное это не страшно. Вот лог работы скрипта: 2016-05-06 10:19:13 | DEBUG | main | Last dump date: 1462361505 2016-05-06 10:19:13 | DEBUG | main | Last action: getResult 2016-05-06 10:19:13 | DEBUG | main | Last code: 0cfeb9079e6c7b5b62cc8d0aa9d6c868 2016-05-06 10:19:13 | DEBUG | main | Last result: err 2016-05-06 10:19:13 | INFO | main | Starting RKN at Fri May 6 10:19:13 2016 2016-05-06 10:19:13 | DEBUG | main | Checking dump date... 2016-05-06 10:19:13 | DEBUG | main | RKN last dump date: 1462518000 2016-05-06 10:19:13 | DEBUG | main | lastDumpDate > prev. dump date. Working now. 2016-05-06 10:19:13 | DEBUG | main | Sending request... 2016-05-06 10:19:13 | DEBUG | main | Got code: 7b5bc789ed74bb11c81fb8e74c1b9050 2016-05-06 10:19:13 | DEBUG | main | Getting result... 2016-05-06 10:19:13 | ERROR | main | Can not get result: запрос обрабатывается 2016-05-06 10:19:13 | INFO | main | Reestr not yet ready. Waiting... 2016-05-06 10:19:18 | DEBUG | main | Getting result... 2016-05-06 10:19:18 | ERROR | main | Can not get result: запрос обрабатывается 2016-05-06 10:19:18 | INFO | main | Reestr not yet ready. Waiting... 2016-05-06 10:19:23 | DEBUG | main | Getting result... 2016-05-06 10:19:23 | ERROR | main | Can not get result: запрос обрабатывается 2016-05-06 10:19:23 | INFO | main | Reestr not yet ready. Waiting... 2016-05-06 10:19:28 | DEBUG | main | Getting result... 2016-05-06 10:19:28 | ERROR | main | Can not get result: запрос обрабатывается 2016-05-06 10:19:28 | INFO | main | Reestr not yet ready. Waiting... 2016-05-06 10:19:33 | DEBUG | main | Getting result... 2016-05-06 10:19:33 | ERROR | main | Can not get result: запрос обрабатывается 2016-05-06 10:19:33 | INFO | main | Reestr not yet ready. Waiting... 2016-05-06 10:19:38 | DEBUG | main | Getting result... 2016-05-06 10:19:38 | DEBUG | main | Got result, parsing dump. 2016-05-06 10:19:38 | DEBUG | main | Parsing dump... ...... ...... Вот "эталонный" обмен: -> GET /services/OperatorRequest/?wsdl HTTP/1.1 TE: deflate,gzip;q=0.3 Connection: TE, close Host: vigruzki.rkn.gov.ru User-Agent: libwww-perl/6.05 <- HTTP/1.1 200 OK Server: nginx/1.4.7 Date: Fri, 06 May 2016 07:19:13 GMT Content-Type: text/xml; charset=utf-8 Content-Length: 7641 Connection: close X-Powered-By: PHP/5.4.27 <wsdl:definitions name="OperatorRequest" targetNamespace="http://vigruzki.rkn.gov.ru/OperatorRequest/" xmlns:tns="http://vigruzki.rkn.gov.ru/OperatorRequest/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"> <wsdl:types> <xsd:schema targetNamespace="http://vigruzki.rkn.gov.ru/OperatorRequest/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">'>http://www.w3.org/2001/XMLSchema"> <xsd:element name="getLastDumpDate"> <xsd:annotation><xsd:documentation>запрос времени последнего обновления</xsd:documentation></xsd:annotation> <xsd:complexType> <xsd:sequence/> </xsd:complexType> </xsd:element> <xsd:element name="getLastDumpDateResponse"> <xsd:annotation><xsd:documentation>ответ на запрос времени последнего обновления</xsd:documentation></xsd:annotation> <xsd:complexType> <xsd:sequence> <xsd:element name="lastDumpDate" type="xsd:long"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="getLastDumpDateEx"> <xsd:annotation><xsd:documentation>запрос времени последнего важного обновления</xsd:documentation></xsd:annotation> <xsd:complexType> <xsd:sequence/> </xsd:complexType> </xsd:element> <xsd:element name="getLastDumpDateExResponse"> <xsd:annotation><xsd:documentation>ответ на запрос времени последнего важного обновления</xsd:documentation></xsd:annotation> <xsd:complexType> <xsd:sequence> <xsd:element name="lastDumpDate" type="xsd:long"/> <xsd:element name="lastDumpDateUrgently" type="xsd:long"/> <xsd:element name="webServiceVersion" type="xsd:string"/> <xsd:element name="dumpFormatVersion" type="xsd:string"/> <xsd:element name="docVersion" type="xsd:string"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="sendRequest"> <xsd:annotation><xsd:documentation>запрос на выгрузку реестра</xsd:documentation></xsd:annotation> <xsd:complexType> <xsd:sequence> <xsd:element name="requestFile" type="xsd:base64Binary"/> <xsd:element name="signatureFile" type="xsd:base64Binary"/> <xsd:element name="dumpFormatVersion" type="xsd:string" minOccurs="0"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="sendRequestResponse"> <xsd:annotation><xsd:documentation>ответ на запрос на выгрузку реестра</xsd:documentation></xsd:annotation> <xsd:complexType> <xsd:sequence> <xsd:element name="result" type="xsd:boolean"/> <xsd:element name="resultComment" type="xsd:string" minOccurs="0" maxOccurs="1"/> <xsd:element name="code" type="xsd:string" minOccurs="0" maxOccurs="1"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="getResult"> <xsd:annotation><xsd:documentation>запрос на получение результата</xsd:documentation></xsd:annotation> <xsd:complexType> <xsd:sequence> <xsd:element name="code" type="xsd:string"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="getResultResponse"> <xsd:annotation><xsd:documentation>ответ на запрос на получение результата</xsd:documentation></xsd:annotation> <xsd:complexType> <xsd:sequence> <xsd:element name="result" type="xsd:boolean"/> <xsd:element name="resultComment" type="xsd:string" minOccurs="0" maxOccurs="1"/> <xsd:element name="registerZipArchive" type="xsd:base64Binary" minOccurs="0" maxOccurs="1"/> <xsd:element name="resultCode" type="xsd:int"/> <xsd:element name="dumpFormatVersion" type="xsd:string" minOccurs="0" maxOccurs="1"/> <xsd:element name="operatorName" type="xsd:string" minOccurs="0" maxOccurs="1"/> <xsd:element name="inn" type="xsd:string" minOccurs="0" maxOccurs="1"/> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema> </wsdl:types> <wsdl:message name="getLastDumpDate"> <wsdl:part name="parameters" element="tns:getLastDumpDate"/> </wsdl:message> <wsdl:message name="getLastDumpDateResponse"> <wsdl:part name="parameters" element="tns:getLastDumpDateResponse"/> </wsdl:message> <wsdl:message name="getLastDumpDateEx"> <wsdl:part name="parameters" element="tns:getLastDumpDateEx"/> </wsdl:message> <wsdl:message name="getLastDumpDateExResponse"> <wsdl:part name="parameters" element="tns:getLastDumpDateExResponse"/> </wsdl:message> <wsdl:message name="sendRequest"> <wsdl:part name="parameters" element="tns:sendRequest"/> </wsdl:message> <wsdl:message name="sendRequestResponse"> <wsdl:part name="parameters" element="tns:sendRequestResponse"/> </wsdl:message> <wsdl:message name="getResult"> <wsdl:part name="parameters" element="tns:getResult"/> </wsdl:message> <wsdl:message name="getResultResponse"> <wsdl:part name="parameters" element="tns:getResultResponse"/> </wsdl:message> <wsdl:portType name="OperatorRequestPortType"> <wsdl:operation name="getLastDumpDate"> <wsdl:input message="tns:getLastDumpDate"/> <wsdl:output message="tns:getLastDumpDateResponse"/> </wsdl:operation> <wsdl:operation name="getLastDumpDateEx"> <wsdl:input message="tns:getLastDumpDateEx"/> <wsdl:output message="tns:getLastDumpDateExResponse"/> </wsdl:operation> <wsdl:operation name="sendRequest"> <wsdl:input message="tns:sendRequest"/> <wsdl:output message="tns:sendRequestResponse"/> </wsdl:operation> <wsdl:operation name="getResult"> <wsdl:input message="tns:getResult"/> <wsdl:output message="tns:getResultResponse"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="OperatorRequestPortBinding" type="tns:OperatorRequestPortType"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="getLastDumpDate"> <soap:operation soapAction="http://vigruzki.rkn.gov.ru/services/OperatorRequest/getLastDumpDate" style="document"/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> <wsdl:output> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="getLastDumpDateEx"> <soap:operation soapAction="http://vigruzki.rkn.gov.ru/services/OperatorRequest/getLastDumpDateEx" style="document"/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> <wsdl:output> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="sendRequest"> <soap:operation soapAction="http://vigruzki.rkn.gov.ru/services/OperatorRequest/sendRequest" style="document"/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> <wsdl:output> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="getResult"> <soap:operation soapAction="http://vigruzki.rkn.gov.ru/services/OperatorRequest/getResult" style="document"/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> <wsdl:output> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="OperatorRequestService"> <wsdl:port name="OperatorRequestPort" binding="tns:OperatorRequestPortBinding"> <soap:address location="http://vigruzki.rkn.gov.ru/services/OperatorRequest/"/> </wsdl:port> </wsdl:service> </wsdl:definitions> -> POST /services/OperatorRequest/ HTTP/1.1 TE: deflate,gzip;q=0.3 Connection: TE, close Accept: text/xml Accept: multipart/* Accept: application/soap Host: vigruzki.rkn.gov.ru User-Agent: SOAP::Lite/Perl/1.17 Content-Length: 509 Content-Type: text/xml; charset=utf-8 SOAPAction: "http://vigruzki.rkn.gov.ru/services/OperatorRequest/getLastDumpDateEx" <?xml version="1.0" encoding="UTF-8"?><soap:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://vigruzki.rkn.gov.ru/OperatorRequest/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><tns:getLastDumpDateEx xsi:nil="true" /></soap:Body></soap:Envelope> <- HTTP/1.1 200 OK Server: nginx/1.4.7 Date: Fri, 06 May 2016 07:19:13 GMT Content-Type: text/xml; charset=utf-8 Content-Length: 500 Connection: close X-Powered-By: PHP/5.4.27 <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://vigruzki.rkn.gov.ru/OperatorRequest/"><SOAP-ENV:Body><ns1:getLastDumpDateExResponse><lastDumpDate>1462518000000</lastDumpDate><lastDumpDateUrgently>1462513920000</lastDumpDateUrgently><webServiceVersion>3.1</webServiceVersion><dumpFormatVersion>2.2</dumpFormatVersion><docVersion>4.6</docVersion></ns1:getLastDumpDateExResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> -> POST /services/OperatorRequest/ HTTP/1.1 TE: deflate,gzip;q=0.3 Connection: TE, close Accept: text/xml Accept: multipart/* Accept: application/soap Host: vigruzki.rkn.gov.ru User-Agent: SOAP::Lite/Perl/1.17 Content-Length: 5338 Content-Type: text/xml; charset=utf-8 SOAPAction: "http://vigruzki.rkn.gov.ru/services/OperatorRequest/sendRequest" <?xml version="1.0" encoding="UTF-8"?><soap:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://vigruzki.rkn.gov.ru/OperatorRequest/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><tns:sendRequest> <requestFile xsi:type="xsd:base64Binary">PD94b.............WVzdD4K</requestFile> <signatureFile xsi:type="xsd:base64Binary">MIIMp...........dk53PG</signatureFile> <dumpFormatVersion xsi:type="xsd:string">2.2</dumpFormatVersion></tns:sendRequest></soap:Body></soap:Envelope> <- HTTP/1.1 200 OK Server: nginx/1.4.7 Date: Fri, 06 May 2016 07:19:13 GMT Content-Type: text/xml; charset=utf-8 Content-Length: 398 Connection: close X-Powered-By: PHP/5.4.27 <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://vigruzki.rkn.gov.ru/OperatorRequest/"><SOAP-ENV:Body><ns1:sendRequestResponse><result>true</result> <resultComment>запрос принят</resultComment> <code>7b5bc789ed74bb11c81fb8e74c1b9050</code></ns1:sendRequestResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> -> POST /services/OperatorRequest/ HTTP/1.1 TE: deflate,gzip;q=0.3 Connection: TE, close Accept: text/xml Accept: multipart/* Accept: application/soap Host: vigruzki.rkn.gov.ru User-Agent: SOAP::Lite/Perl/1.17 Content-Length: 567 Content-Type: text/xml; charset=utf-8 SOAPAction: "http://vigruzki.rkn.gov.ru/services/OperatorRequest/getResult" <?xml version="1.0" encoding="UTF-8"?><soap:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://vigruzki.rkn.gov.ru/OperatorRequest/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><tns:getResult><code xsi:type="xsd:string">7b5bc789ed74bb11c81fb8e74c1b9050</code></tns:getResult></soap:Body></soap:Envelope> <- HTTP/1.1 200 OK Server: nginx/1.4.7 Date: Fri, 06 May 2016 07:19:13 GMT Content-Type: text/xml; charset=utf-8 Content-Length: 392 Connection: close X-Powered-By: PHP/5.4.27 <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://vigruzki.rkn.gov.ru/OperatorRequest/"><SOAP-ENV:Body><ns1:getResultResponse><result>false</result> <resultComment>запрос обрабатывается</resultComment> <resultCode>0</resultCode></ns1:getResultResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> -> POST /services/OperatorRequest/ HTTP/1.1 TE: deflate,gzip;q=0.3 Connection: TE, close Accept: text/xml Accept: multipart/* Accept: application/soap Host: vigruzki.rkn.gov.ru User-Agent: SOAP::Lite/Perl/1.17 Content-Length: 567 Content-Type: text/xml; charset=utf-8 SOAPAction: "http://vigruzki.rkn.gov.ru/services/OperatorRequest/getResult" <?xml version="1.0" encoding="UTF-8"?><soap:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://vigruzki.rkn.gov.ru/OperatorRequest/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><tns:getResult><code xsi:type="xsd:string">7b5bc789ed74bb11c81fb8e74c1b9050</code></tns:getResult></soap:Body></soap:Envelope> <- HTTP/1.1 200 OK Server: nginx/1.4.7 Date: Fri, 06 May 2016 07:19:18 GMT Content-Type: text/xml; charset=utf-8 Content-Length: 392 Connection: close X-Powered-By: PHP/5.4.27 <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://vigruzki.rkn.gov.ru/OperatorRequest/"><SOAP-ENV:Body><ns1:getResultResponse><result>false</result><resultComment> запрос обрабатывается</resultComment> <resultCode>0</resultCode></ns1:getResultResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> -> POST /services/OperatorRequest/ HTTP/1.1 TE: deflate,gzip;q=0.3 Connection: TE, close Accept: text/xml Accept: multipart/* Accept: application/soap Host: vigruzki.rkn.gov.ru User-Agent: SOAP::Lite/Perl/1.17 Content-Length: 567 Content-Type: text/xml; charset=utf-8 SOAPAction: "http://vigruzki.rkn.gov.ru/services/OperatorRequest/getResult" <?xml version="1.0" encoding="UTF-8"?><soap:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://vigruzki.rkn.gov.ru/OperatorRequest/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><tns:getResult><code xsi:type="xsd:string">7b5bc789ed74bb11c81fb8e74c1b9050</code></tns:getResult></soap:Body></soap:Envelope> <- HTTP/1.1 200 OK Server: nginx/1.4.7 Date: Fri, 06 May 2016 07:19:23 GMT Content-Type: text/xml; charset=utf-8 Content-Length: 392 Connection: close X-Powered-By: PHP/5.4.27 <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://vigruzki.rkn.gov.ru/OperatorRequest/"><SOAP-ENV:Body><ns1:getResultResponse><result>false</result><resultComment>запрос обрабатывается</resultComment><resultCode>0</resultCode></ns1:getResultResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> -> POST /services/OperatorRequest/ HTTP/1.1 TE: deflate,gzip;q=0.3 Connection: TE, close Accept: text/xml Accept: multipart/* Accept: application/soap Host: vigruzki.rkn.gov.ru User-Agent: SOAP::Lite/Perl/1.17 Content-Length: 567 Content-Type: text/xml; charset=utf-8 SOAPAction: "http://vigruzki.rkn.gov.ru/services/OperatorRequest/getResult" <?xml version="1.0" encoding="UTF-8"?><soap:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://vigruzki.rkn.gov.ru/OperatorRequest/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><tns:getResult><code xsi:type="xsd:string">7b5bc789ed74bb11c81fb8e74c1b9050</code></tns:getResult></soap:Body></soap:Envelope> <- HTTP/1.1 200 OK Server: nginx/1.4.7 Date: Fri, 06 May 2016 07:19:28 GMT Content-Type: text/xml; charset=utf-8 Content-Length: 392 Connection: close X-Powered-By: PHP/5.4.27 <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://vigruzki.rkn.gov.ru/OperatorRequest/"><SOAP-ENV:Body><ns1:getResultResponse><result>false</result><resultComment>запрос обрабатывается</resultComment><resultCode>0</resultCode></ns1:getResultResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> -> POST /services/OperatorRequest/ HTTP/1.1 TE: deflate,gzip;q=0.3 Connection: TE, close Accept: text/xml Accept: multipart/* Accept: application/soap Host: vigruzki.rkn.gov.ru User-Agent: SOAP::Lite/Perl/1.17 Content-Length: 567 Content-Type: text/xml; charset=utf-8 SOAPAction: "http://vigruzki.rkn.gov.ru/services/OperatorRequest/getResult" <?xml version="1.0" encoding="UTF-8"?><soap:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://vigruzki.rkn.gov.ru/OperatorRequest/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><tns:getResult><code xsi:type="xsd:string">7b5bc789ed74bb11c81fb8e74c1b9050</code></tns:getResult></soap:Body></soap:Envelope> <- HTTP/1.1 200 OK Server: nginx/1.4.7 Date: Fri, 06 May 2016 07:19:33 GMT Content-Type: text/xml; charset=utf-8 Content-Length: 392 Connection: close X-Powered-By: PHP/5.4.27 <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://vigruzki.rkn.gov.ru/OperatorRequest/"><SOAP-ENV:Body><ns1:getResultResponse><result>false</result><resultComment>запрос обрабатывается</resultComment><resultCode>0</resultCode></ns1:getResultResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> -> POST /services/OperatorRequest/ HTTP/1.1 TE: deflate,gzip;q=0.3 Connection: TE, close Accept: text/xml Accept: multipart/* Accept: application/soap Host: vigruzki.rkn.gov.ru User-Agent: SOAP::Lite/Perl/1.17 Content-Length: 567 Content-Type: text/xml; charset=utf-8 SOAPAction: "http://vigruzki.rkn.gov.ru/services/OperatorRequest/getResult" <?xml version="1.0" encoding="UTF-8"?><soap:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://vigruzki.rkn.gov.ru/OperatorRequest/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><tns:getResult><code xsi:type="xsd:string">7b5bc789ed74bb11c81fb8e74c1b9050</code></tns:getResult></soap:Body></soap:Envelope> <- HTTP/1.1 200 OK Server: nginx/1.4.7 Date: Fri, 06 May 2016 07:19:38 GMT Content-Type: text/xml; charset=utf-8 Content-Length: 9048763 Connection: close X-Powered-By: PHP/5.4.27 <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://vigruzki.rkn.gov.ru/OperatorRequest/"><SOAP-ENV:Body><ns1:getResultResponse><result>true</result> <registerZipArchive>UEsD........ .............................. ............................. ....==</registerZipArchive> <resultCode>1</resultCode> <dumpFormatVersion>2.2</dumpFormatVersion> <operatorName>Ребята с Ваших чердаков</operatorName> <inn>2128506</inn> </ns1:getResultResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> Последняя запись отчета в базе: mysql> select * from zap2_settings\G *************************** 1. row *************************** param: lastDumpDate value: 1462519189 *************************** 2. row *************************** param: lastAction value: getResult *************************** 3. row *************************** param: lastResult value: got *************************** 4. row *************************** param: lastCode value: 7b5bc789ed74bb11c81fb8e74c1b9050 *************************** 5. row *************************** param: lastActionDate value: 1462519153 *************************** 6. row *************************** param: lastDump value: <?xml version="1.0" encoding="windows-1251"?> <reg:register updateTime="2014-02-02T12:00:00+04:00" updateTimeUrgently="2014-02-01T11:00:00" xmlns:reg="http://rsoc.ru" xmlns:tns="http://rsoc.ru"> <content id="1101" includeTime="2013-12-01T10:00:05"> <decision date="2013-12-01" number="9" org=" 6 rows in set (0.00 sec) Изменено 6 мая, 2016 пользователем OK-2004 Вставить ник Цитата Ответить с цитированием Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах More sharing options...
max1976 Опубликовано 6 мая, 2016 (изменено) · Жалоба Вот выхлоп самого скрипта: Too late to run CHECK block at /usr/lib/perl5/EV.pm line 123. Попробуйте обновить AnyEvent и EV, возможно кривые версии в вашей системе установлены. Изменено 6 мая, 2016 пользователем max1976 Вставить ник Цитата Ответить с цитированием Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах More sharing options...
cREoz Опубликовано 6 мая, 2016 · Жалоба возможно кривые версии в вашей системе установлены. а нет ли для Perl-а что-то подобного Python-овского virtualenv, чтобы не смешивать пакеты из дистрибутива и CPAN? Вставить ник Цитата Ответить с цитированием Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах More sharing options...
max1976 Опубликовано 6 мая, 2016 (изменено) · Жалоба а нет ли для Perl-а что-то подобного Python-овского virtualenv, чтобы не смешивать пакеты из дистрибутива и CPAN? Есть, perlbrew. Изменено 6 мая, 2016 пользователем max1976 Вставить ник Цитата Ответить с цитированием Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах More sharing options...
dragjj Опубликовано 10 мая, 2016 · Жалоба Добрый день всем. Может кто нибудь объяснить как юзать nfqfilter? Установил, запустил: LD_LIBRARY_PATH=/usr/local/lib/ nfqfilter -c /nfqfilter-master/etc/nfqfilter.ini прописал: iptables -t mangle -A PREROUTING -s 192.168.1.0/24 -p tcp -m tcp -j NFQUEUE --queue-num 0 --queue-bypass Но дальше ничего не происходит, ничего не блокируется. В логах ничего не появляется. Вставить ник Цитата Ответить с цитированием Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах More sharing options...
zhenya` Опубликовано 10 мая, 2016 · Жалоба а прогнать трафик через машинку с nfq ? Вставить ник Цитата Ответить с цитированием Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах More sharing options...
dragjj Опубликовано 12 мая, 2016 · Жалоба В общем сделал по данной инструкции Для перенаправления трафика на фильтр необходимо использовать следующую конструкцию iptables: iptables -t mangle -A PREROUTING -s x.x.x.x/y -p tcp -m tcp -j NFQUEUE --queue-num 0 --queue-bypass где, x.x.x.x/y сеть, которую необходимо проверять. Для блокировки SSL/ip:port трафика необходимо использовать следующее правило: iptables -A FORWARD -m mark --mark 17 -p tcp -j REJECT --reject-with tcp-reset где 17, это значение из конфига nfqfilter. Так же вместо маркировки трафика можно сразу посылать TCP RST клиенту и серверу, если указать в конфиге send_rst = true . Интернет работает без ограничений, ничего не блокируется. Делал по этой инструкции: http://www.linux.org.ru/forum/admin/12123889 Все работает, но на данную команду iptables -A FORWARD -m set --match-set zapret_gov_ssl_ip dst -p tcp -j REJECT --reject-with tcp-rst iptables ругается, и https не переводит на страницу с объяснением блокировки, а пишет, что ошибка при установлении защищённого соединения. Вставить ник Цитата Ответить с цитированием Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах More sharing options...