BiTel

Форум BiTel
bgbilling.ru     docs.bitel.ru     wiki.bitel.ru     dbinfo.bitel.ru     bgcrm.ru     billing.bitel.ru     bitel.ru    
Текущее время: 23 июн 2025, 15:16

Часовой пояс: UTC + 5 часов [ Летнее время ]




Начать новую тему Ответить на тему  [ Сообщений: 9 ] 
Автор Сообщение
 Заголовок сообщения: EventProcessor - Problem with MQ connection! Timeout conne..
СообщениеДобавлено: 03 ноя 2011, 14:52 
Не в сети

Зарегистрирован: 07 ноя 2008, 12:51
Сообщения: 99
Карма: -9
Обновлял с 4.6 на 5.1
Система: FreeBSD 8.2-RELEASE-p4
(я знаю, что вы ее не поддерживаете, но помогите пожалуйста)
При запуске сервера BGBilling в лог сыплются ошибки:
Код:
proxy# cat server.log
11-03/13:11:25  INFO [main] DefaultServerSetup - Binding javax.jms.ConnectionFactory[org.apache.activemq.ActiveMQConnectionFactory@384065] to java:comp/env/mq/connectionFactory
11-03/13:11:25  INFO [main] DefaultServerSetup - Init DB connection pools
11-03/13:11:25  INFO [main] DefaultServerSetup - Binding JDBC pool "master" to java:comp/env/jdbc/master
11-03/13:11:26  INFO [main] DefaultServerSetup - Init trash pools..
11-03/13:11:27  INFO [main] Server - Starting BGBillingServer..
11-03/13:11:27  INFO [main] Server - HTTP Connector: *:8080
11-03/13:11:27  INFO [main] Server - Starting HTTP connector...
11-03/13:11:27  INFO [main] Server - HTTPS Connector: *:8080
11-03/13:11:27  INFO [main] Server - Starting HTTPS connector..
11-03/13:11:28  INFO [main] Server - Browsing installed modules and plugins...
11-03/13:11:28  INFO [main] Server - card v.5.1 build 170 from 07.07.2011 12:48:08
11-03/13:11:28  INFO [main] Server - ipn v.5.1 build 243 from 19.08.2011 16:13:38
11-03/13:11:28  INFO [main] Server - npay v.5.1 build 187 from 21.09.2011 17:44:07
11-03/13:11:28  INFO [main] Server - reports v.5.1 build 178 from 19.10.2011 13:47:39
11-03/13:11:28  INFO [main] Server - trayinfo v.5.1 build 146 from 20.05.2011 16:24:48
11-03/13:11:32 ERROR [main] EventProcessor - Problem with MQ connection! Timeout connecting to the MQ broker!
11-03/13:11:36 ERROR [main] EventProcessor - Problem with MQ connection! Timeout connecting to the MQ broker!
11-03/13:11:40 ERROR [main] EventProcessor - Problem with MQ connection! Timeout connecting to the MQ broker!
11-03/13:11:44 ERROR [main] EventProcessor - Problem with MQ connection! Timeout connecting to the MQ broker!
11-03/13:11:48 ERROR [main] EventProcessor - Problem with MQ connection! Timeout connecting to the MQ broker!
11-03/13:11:52 ERROR [main] EventProcessor - Problem with MQ connection! Timeout connecting to the MQ broker!
11-03/13:11:56 ERROR [main] EventProcessor - Problem with MQ connection! Timeout connecting to the MQ broker!
11-03/13:12:00 ERROR [main] EventProcessor - Problem with MQ connection! Timeout connecting to the MQ broker!
11-03/13:12:04 ERROR [main] EventProcessor - Problem with MQ connection! Timeout connecting to the MQ broker!
11-03/13:12:08 ERROR [main] EventProcessor - Problem with MQ connection! Timeout connecting to the MQ broker!
11-03/13:12:12 ERROR [main] EventProcessor - Problem with MQ connection! Timeout connecting to the MQ broker!
11-03/13:12:16 ERROR [main] EventProcessor - Problem with MQ connection! Timeout connecting to the MQ broker!
11-03/13:12:20 ERROR [main] EventProcessor - Problem with MQ connection! Timeout connecting to the MQ broker!
11-03/13:12:24 ERROR [main] EventProcessor - Problem with MQ connection! Timeout connecting to the MQ broker!
11-03/13:12:28 ERROR [main] EventProcessor - Problem with MQ connection! Timeout connecting to the MQ broker!
11-03/13:12:32 ERROR [main] EventProcessor - Problem with MQ connection! Timeout connecting to the MQ broker!
11-03/13:12:36 ERROR [main] EventProcessor - Problem with MQ connection! Timeout connecting to the MQ broker!
11-03/13:12:40 ERROR [main] EventProcessor - Problem with MQ connection! Timeout connecting to the MQ broker!
11-03/13:12:44 ERROR [main] EventProcessor - Problem with MQ connection! Timeout connecting to the MQ broker!
11-03/13:12:48 ERROR [main] EventProcessor - Problem with MQ connection! Timeout connecting to the MQ broker!
11-03/13:12:52 ERROR [main] EventProcessor - Problem with MQ connection! Timeout connecting to the MQ broker!
11-03/13:12:56 ERROR [main] EventProcessor - Problem with MQ connection! Timeout connecting to the MQ broker!
11-03/13:13:00 ERROR [main] EventProcessor - Problem with MQ connection! Timeout connecting to the MQ broker!
11-03/13:13:04 ERROR [main] EventProcessor - Problem with MQ connection! Timeout connecting to the MQ broker!
11-03/13:13:08 ERROR [main] EventProcessor - Problem with MQ connection! Timeout connecting to the MQ broker!
11-03/13:13:12 ERROR [main] EventProcessor - Problem with MQ connection! Timeout connecting to the MQ broker!
11-03/13:13:16 ERROR [main] EventProcessor - Problem with MQ connection! Timeout connecting to the MQ broker!
11-03/13:13:20 ERROR [main] EventProcessor - Problem with MQ connection! Timeout connecting to the MQ broker!
11-03/13:13:24 ERROR [main] EventProcessor - Problem with MQ connection! Timeout connecting to the MQ broker!
11-03/13:13:28 ERROR [main] EventProcessor - Problem with MQ connection! Timeout connecting to the MQ broker!
11-03/13:13:32 ERROR [main] EventProcessor - Problem with MQ connection! Timeout connecting to the MQ broker!
11-03/13:13:36 ERROR [main] EventProcessor - Problem with MQ connection! Timeout connecting to the MQ broker!
11-03/13:13:40 ERROR [main] EventProcessor - Problem with MQ connection! Timeout connecting to the MQ broker!

Код:
proxy# cat server.out
Java Runtime: Sun Microsystems Inc. Java HotSpot(TM) Client VM [1.6.0_24] /usr/local/linux-sun-jdk1.6.0/jre
  Java endorsed dirs: /usr/local/linux-sun-jdk1.6.0/jre/lib/endorsed
  OS: Linux 2.6.16 [i386], file.encoding: ANSI_X3.4-1968, user.name: root
  Heap sizes: current=7808k  free=6320k  max=506816k



и сервер не запускается (8080 порт никто не слушает).
Код:
proxy# cat activemq.log
2011-11-03 11:52:34,040 | INFO  | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@11d0a4f: startup date [Thu Nov 03 11:52:34 YEKT 2011]; root of context hierarchy | org.apache.activemq.xbean.XBeanBrokerFactory$1 | main
2011-11-03 11:52:45,383 | WARN  | destroyApplicationContextOnStop parameter is deprecated, please use shutdown hooks instead | org.apache.activemq.xbean.XBeanBrokerService | main
2011-11-03 11:52:45,401 | INFO  | PListStore:/usr/local/lib/activemq/data/activeMQ/tmp_storage started | org.apache.activemq.store.kahadb.plist.PListStore | main
2011-11-03 11:52:45,674 | INFO  | Using Persistence Adapter: KahaDBPersistenceAdapter[/usr/local/lib/activemq/data/kahadb] | org.apache.activemq.broker.BrokerService | main
2011-11-03 11:52:46,636 | INFO  | KahaDB is version 3 | org.apache.activemq.store.kahadb.MessageDatabase | main
2011-11-03 11:52:46,786 | INFO  | Recovering from the journal ... | org.apache.activemq.store.kahadb.MessageDatabase | main
2011-11-03 11:52:46,787 | INFO  | Recovery replayed 1 operations from the journal in 0.08 seconds. | org.apache.activemq.store.kahadb.MessageDatabase | main
2011-11-03 11:52:47,007 | INFO  | ActiveMQ 5.4.2 JMS Message Broker (activeMQ) is starting | org.apache.activemq.broker.BrokerService | main
2011-11-03 11:52:47,008 | INFO  | For help or more information please see: http://activemq.apache.org/ | org.apache.activemq.broker.BrokerService | main
2011-11-03 11:52:47,606 | INFO  | Listening for connections at: nio://localhost:61616 | org.apache.activemq.transport.TransportServerThreadSupport | main
2011-11-03 11:52:47,607 | INFO  | Connector nio Started | org.apache.activemq.broker.TransportConnector | main
2011-11-03 11:52:47,616 | INFO  | ActiveMQ JMS Message Broker (activeMQ, ID:proxy.local-50841-1320299567101-0:1) started | org.apache.activemq.broker.BrokerService | main
2011-11-03 11:53:31,491 | INFO  | Transport failed: java.io.IOException: Wire format negotiation timeout: peer did not send his wire format. | org.apache.activemq.broker.TransportConnection.Transport | Async Exception Handler
2011-11-03 11:53:31,734 | INFO  | Transport failed: java.io.IOException: Wire format negotiation timeout: peer did not send his wire format. | org.apache.activemq.broker.TransportConnection.Transport | Async Exception Handler
2011-11-03 11:53:31,804 | INFO  | Transport failed: java.io.IOException: Wire format negotiation timeout: peer did not send his wire format. | org.apache.activemq.broker.TransportConnection.Transport | Async Exception Handler
2011-11-03 11:53:31,845 | INFO  | Transport failed: java.io.IOException: Wire format negotiation timeout: peer did not send his wire format. | org.apache.activemq.broker.TransportConnection.Transport | Async Exception Handler
2011-11-03 11:53:32,027 | INFO  | Transport failed: java.io.IOException: Wire format negotiation timeout: peer did not send his wire format. | org.apache.activemq.broker.TransportConnection.Transport | Async Exception Handler
2011-11-03 11:53:32,270 | INFO  | Transport failed: java.io.IOException: Wire format negotiation timeout: peer did not send his wire format. | org.apache.activemq.broker.TransportConnection.Transport | Async Exception Handler
2011-11-03 11:53:32,618 | INFO  | Transport failed: java.io.IOException: Wire format negotiation timeout: peer did not send his wire format. | org.apache.activemq.broker.TransportConnection.Transport | Async Exception Handler
2011-11-03 11:53:33,280 | INFO  | Transport failed: java.io.IOException: Wire format negotiation timeout: peer did not send his wire format. | org.apache.activemq.broker.TransportConnection.Transport | Async Exception Handler
2011-11-03 11:53:34,653 | INFO  | Transport failed: java.io.IOException: Wire format negotiation timeout: peer did not send his wire format. | org.apache.activemq.broker.TransportConnection.Transport | Async Exception Handler
2011-11-03 11:53:37,239 | INFO  | Transport failed: java.io.IOException: Wire format negotiation timeout: peer did not send his wire format. | org.apache.activemq.broker.TransportConnection.Transport | Async Exception Handler
2011-11-03 11:53:42,381 | INFO  | Transport failed: java.io.IOException: Wire format negotiation timeout: peer did not send his wire format. | org.apache.activemq.broker.TransportConnection.Transport | Async Exception Handler
2011-11-03 11:53:52,650 | INFO  | Transport failed: java.io.IOException: Wire format negotiation timeout: peer did not send his wire format. | org.apache.activemq.broker.TransportConnection.Transport | Async Exception Handler
2011-11-03 11:54:13,111 | INFO  | Transport failed: java.io.IOException: Wire format negotiation timeout: peer did not send his wire format. | org.apache.activemq.broker.TransportConnection.Transport | Async Exception Handler

Сам activemq вроде работает, по крайней мере,
telnet 127.0.0.1 61616
выдает какую-то строку

Код:
proxy# java -version
java version "1.6.0_07"
Diablo Java(TM) SE Runtime Environment (build 1.6.0_07-b02)
Diablo Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)


Подскажите, в чем может быть проблема?


Вернуться к началу
 Профиль  
 
 Заголовок сообщения: Re: EventProcessor - Problem with MQ connection! Timeout con
СообщениеДобавлено: 03 ноя 2011, 15:50 
Не в сети
Клиент
Аватара пользователя

Зарегистрирован: 03 авг 2009, 18:42
Сообщения: 7166
Откуда: Благовещенск
Карма: 241
Поставьте линуксовую яву для начала.

_________________
Код:
  Клиент: вер. 6.2.714 / 25.05.2015 17:27:15
    os: Linux; java: Java HotSpot(TM) 64-Bit Server VM, v.1.8.0_45
  Сервер: вер. 6.2.881 / 22.05.2015 17:56:55
    os: Linux; java: Java HotSpot(TM) 64-Bit Server VM, v.1.8.0_45
Помощь по администрированию bgbilling в jabber конференции или Группа в telegram
Стиль программирования - пьяный мастерстер
Разработка мобильных приложений


Вернуться к началу
 Профиль  
 
 Заголовок сообщения: Re: EventProcessor - Problem with MQ connection! Timeout con
СообщениеДобавлено: 03 ноя 2011, 15:54 
Не в сети

Зарегистрирован: 07 ноя 2008, 12:51
Сообщения: 99
Карма: -9
установлены обе:
Код:
proxy# ls -l | grep jdk
drwxr-xr-x   9 root      wheel       512 30 окт 23:52 diablo-jdk1.6.0
lrwxr-xr-x   1 root      wheel        18 31 окт 16:33 jdk -> linux-sun-jdk1.6.0
drwxr-xr-x  10 root      wheel       512 26 окт 14:51 linux-sun-jdk1.6.0

diablo для activemq, linux-sun для bgbilling

ActiveMQ ставил из портов. Версия 5.5.0, кажется. Не могу найти в ней wrapper.conf


Вернуться к началу
 Профиль  
 
 Заголовок сообщения: Re: EventProcessor - Problem with MQ connection! Timeout con
СообщениеДобавлено: 03 ноя 2011, 16:12 
Не в сети

Зарегистрирован: 07 ноя 2008, 12:51
Сообщения: 99
Карма: -9
ядро freebsd собрано без поддержки IPv6. Может в этом проблема? Уже не знаю, на что и подумать...

tcpdump:
Код:
16:19:42.644123 IP localhost.56270 > localhost.61616: Flags [S], seq 638878342, win 65535, options [mss 16344,nop,wscale 3,sackOK,TS val 10440525 ecr 0], length 0
        0x0000:  4500 003c 1b42 4000 4006 0000 7f00 0001  E..<.B@.@.......
        0x0010:  7f00 0001 dbce f0b0 2614 8286 0000 0000  ........&.......
        0x0020:  a002 ffff fe30 0000 0204 3fd8 0103 0303  .....0....?.....
        0x0030:  0402 080a 009f 4f4d 0000 0000            ......OM....
16:19:42.644198 IP localhost.61616 > localhost.56270: Flags [S.], seq 2584591989, ack 638878343, win 65535, options [mss 16344,nop,wscale 3,sackOK,TS val 2818012672 ecr 10440525], length 0
        0x0000:  4500 003c 1b43 4000 4006 0000 7f00 0001  E..<.C@.@.......
        0x0010:  7f00 0001 f0b0 dbce 9a0d be75 2614 8287  ...........u&...
        0x0020:  a012 ffff fe30 0000 0204 3fd8 0103 0303  .....0....?.....
        0x0030:  0402 080a a7f7 7600 009f 4f4d            ......v...OM
16:19:42.644243 IP localhost.56270 > localhost.61616: Flags [.], ack 1, win 8960, options [nop,nop,TS val 10440525 ecr 2818012672], length 0
        0x0000:  4500 0034 1b44 4000 4006 0000 7f00 0001  E..4.D@.@.......
        0x0010:  7f00 0001 dbce f0b0 2614 8287 9a0d be76  ........&......v
        0x0020:  8010 2300 fe28 0000 0101 080a 009f 4f4d  ..#..(........OM
        0x0030:  a7f7 7600                                ..v.
16:19:42.653937 IP localhost.61616 > localhost.56270: Flags [P.], ack 1, win 8192, options [nop,nop,TS val 2818012682 ecr 10440525], length 221
        0x0000:  4500 0111 1b45 4000 4006 0000 7f00 0001  E....E@.@.......
        0x0010:  7f00 0001 f0b0 dbce 9a0d be76 2614 8287  ...........v&...
        0x0020:  8018 2000 ff05 0000 0101 080a a7f7 760a  ..............v.
        0x0030:  009f 4f4d 0000 00d9 0141 6374 6976 654d  ..OM.....ActiveM
        0x0040:  5100 0000 0701 0000 00c7 0000 0008 0009  Q...............
        0x0050:  4361 6368 6553 697a 6505 0000 0400 000c  CacheSize.......
        0x0060:  4361 6368 6545 6e61 626c 6564 0101 0012  CacheEnabled....
        0x0070:  5369 7a65 5072 6566 6978 4469 7361 626c  SizePrefixDisabl
        0x0080:  6564 0100 0020 4d61 7849 6e61 6374 6976  ed....MaxInactiv
        0x0090:  6974 7944 7572 6174 696f 6e49 6e69 7461  ityDurationInita
        0x00a0:  6c44 656c 6179 0600 0000 0000 0027 1000  lDelay.......'..
        0x00b0:  1154 6370 4e6f 4465 6c61 7945 6e61 626c  .TcpNoDelayEnabl
        0x00c0:  6564 0101 0015 4d61 7849 6e61 6374 6976  ed....MaxInactiv
        0x00d0:  6974 7944 7572 6174 696f 6e06 0000 0000  ityDuration.....
        0x00e0:  0000 7530 0014 5469 6768 7445 6e63 6f64  ..u0..TightEncod
        0x00f0:  696e 6745 6e61 626c 6564 0101 0011 5374  ingEnabled....St
        0x0100:  6163 6b54 7261 6365 456e 6162 6c65 6401  ackTraceEnabled.
        0x0110:  01                                 


На запросы activemq возвращает один и тот же пакет длиной 221 байт


Вернуться к началу
 Профиль  
 
 Заголовок сообщения: Re: EventProcessor - Problem with MQ connection! Timeout con
СообщениеДобавлено: 03 ноя 2011, 20:27 
Не в сети
Клиент

Зарегистрирован: 12 фев 2008, 18:10
Сообщения: 3951
Карма: 249
Вот с таким конфигом 5.1 работала на фре, правда с линуховой явой:
Код:
# cat activemq.xml | grep '<'
<!--
<!-- START SNIPPET: example -->
<beans
    <!-- Allows us to use system properties as variables in this configuration file -->
    <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        <property name="locations">
            <value>file:${activemq.base}/conf/credentials.properties</value>
        </property>
    </bean>
    <!--
        The <broker> element is used to configure the ActiveMQ broker.
    <broker xmlns="http://activemq.apache.org/schema/core" brokerName="localhost" dataDirectory="${activemq.base}/data" destroyApplicationContextOnStop="true" useShutdownHook="true">
    <!-- <broker xmlns="http://activemq.apache.org/schema/core" brokerName="localhost" dataDirectory="${activemq.base}/data" destroyApplicationContextOnStop="true" useShutdownHook="true" schedulerSupport="false"> -->
        <!--
        <destinationPolicy>
            <policyMap>
              <policyEntries>
                <policyEntry topic=">" producerFlowControl="true" memoryLimit="1mb">
                  <pendingSubscriberPolicy>
                    <vmCursor />
                  </pendingSubscriberPolicy>
                </policyEntry>
                <policyEntry queue=">" producerFlowControl="true" memoryLimit="1mb">
                  <!-- Use VM cursor for better latency
                  <pendingQueuePolicy>
                    <vmQueueCursor/>
                  </pendingQueuePolicy>
                </policyEntry>
              </policyEntries>
            </policyMap>
        </destinationPolicy>
        <!--
        <managementContext>
            <managementContext createConnector="false"/>
        </managementContext>
        <!--
        <persistenceAdapter>
            <kahaDB directory="${activemq.base}/data/kahadb"/>
        </persistenceAdapter>
          <!--
        <systemUsage>
            <systemUsage>
                <memoryUsage>
                    <memoryUsage limit="20 mb"/>
                </memoryUsage>
                <storeUsage>
                    <storeUsage limit="1 gb"/>
                </storeUsage>
                <tempUsage>
                    <tempUsage limit="100 mb"/>
                </tempUsage>
            </systemUsage>
        </systemUsage>
        <!--
        <transportConnectors>
            <transportConnector name="nio" uri="nio://127.0.0.1:61616"/>
        </transportConnectors>
    </broker>
    <!--
    <import resource="jetty.xml"/>
</beans>
<!-- END SNIPPET: example -->


Основное это:
Код:
<broker xmlns="http://activemq.apache.org/schema/core" brokerName="localhost" dataDirectory="${activemq.base}/data" destroyApplicationContextOnStop="true" useShutdownHook="true">

Код:
<transportConnectors>
    <transportConnector name="nio" uri="nio://127.0.0.1:61616"/>
</transportConnectors>


Вернуться к началу
 Профиль  
 
 Заголовок сообщения: Re: EventProcessor - Problem with MQ connection! Timeout con
СообщениеДобавлено: 03 ноя 2011, 23:08 
Не в сети

Зарегистрирован: 07 ноя 2008, 12:51
Сообщения: 99
Карма: -9
А где вводятся логин и пароль? Под Linux нужно править wrapper.conf в каталоге linux/, но во фре этого файла вообще нет. Я пробовал скопировать этот файл в bin/, но ничего не изменилось и wrapper.log так и не появился.


Вернуться к началу
 Профиль  
 
 Заголовок сообщения: Re: EventProcessor - Problem with MQ connection! Timeout con
СообщениеДобавлено: 03 ноя 2011, 23:47 
Не в сети
Клиент

Зарегистрирован: 12 фев 2008, 18:10
Сообщения: 3951
Карма: 249
jmx.access + jmx.password ?

Давно гонял 5.1, подзабыл уже что там и куда. Помнится я стандартные логин/пароль использовал в БГБ, а не те что в доке, чтобы activemq если что обновлять было проще (не надо было там под БГБ ничего толком писать).


Вернуться к началу
 Профиль  
 
 Заголовок сообщения: Re: EventProcessor - Problem with MQ connection! Timeout con
СообщениеДобавлено: 04 ноя 2011, 08:49 
Не в сети

Зарегистрирован: 07 ноя 2008, 12:51
Сообщения: 99
Карма: -9
snark писал(а):
Давно гонял 5.1, подзабыл уже что там и куда. Помнится я стандартные логин/пароль использовал в БГБ, а не те что в доке, чтобы activemq если что обновлять было проще (не надо было там под БГБ ничего толком писать).

Получается, что в 5.2 это сделано по-другому? Может мне имеет смысл обновиться до 5.2?

Что все-таки насчет wrapper.conf? Он вообще на freebsd не нужен?


Вернуться к началу
 Профиль  
 
 Заголовок сообщения: Re: EventProcessor - Problem with MQ connection! Timeout con
СообщениеДобавлено: 04 ноя 2011, 23:36 
Не в сети
Клиент

Зарегистрирован: 12 фев 2008, 18:10
Сообщения: 3951
Карма: 249
5.1 - 1-я версия биллинга которой нужен activemq.
В отношении связки БГБ + activemq нет разницы 5.1, 5.2 или какая нить следующая версия, IMHO.


Вернуться к началу
 Профиль  
 
Показать сообщения за:  Поле сортировки  
Начать новую тему Ответить на тему  [ Сообщений: 9 ] 

Часовой пояс: UTC + 5 часов [ Летнее время ]


Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 1


Вы не можете начинать темы
Вы не можете отвечать на сообщения
Вы не можете редактировать свои сообщения
Вы не можете удалять свои сообщения
Вы не можете добавлять вложения

Найти:
Перейти:  
POWERED_BY
Русская поддержка phpBB
[ Time : 0.055s | 34 Queries | GZIP : On ]