точно
вот ошибка которая была при работе скрипта update.sh
лог обновления
Код:
USAGE: ./snapshot.sh [CMD]
Where [CMD] in:
* create - to create snapshot in 'snapshots' directory
* restore [FILE] - to restore state to [FILE]'s snapshot state
root@bill:/usr/local/billing# ./snapshot.sh create
Snapshot name: 2016.02.08_05.49.44.tar
root@bill:/usr/local/billing# ./update.sh
Found actual snapshot: ./snapshots/2016.02.08_05.49.44.tar.gz
# Stopping DataLoader
$Stopping bgdataloader: /etc/init.d/bgdataloader: 81: [: false: unexpected operator
Sending 'stop' on 127.0.0.1:9033
Result: Port 9033 is empty.
# Stopping Scheduler
$Stopping bgscheduler: /etc/init.d/bgscheduler: 81: [: false: unexpected operator
Sending 'stop' on 127.0.0.1:9066
Result: Port 9066 is empty.
# Stopping Server
$Stopping bgbilling: /etc/init.d/bgbilling: 81: [: false: unexpected operator
java.net.SocketTimeoutException: Receive timed out
at java.net.PlainDatagramSocketImpl.receive0(Native Method)
at java.net.AbstractPlainDatagramSocketImpl.receive(AbstractPlainDatagramSocketImpl.java:146)
at java.net.DatagramSocket.receive(DatagramSocket.java:817)
at bitel.billing.server.Server.executeCommand(Server.java:399)
at bitel.billing.server.Server.main(Server.java:350)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at ru.bitel.common.bootstrap.Boot.boot(Boot.java:129)
at ru.bitel.common.bootstrap.Boot.main(Boot.java:178)
# Start Updating
02-08/05:50:06 INFO [main] DefaultServerSetup - Binding javax.jms.ConnectionFactory[org.apache.activemq.ActiveMQConnectionFactory@1d3cdb70] to java:comp/env/mq/connectionFactory
02-08/05:50:06 INFO [main] DefaultServerSetup - Init DB connection pools
02-08/05:50:07 INFO [main] DefaultServerSetup - Binding JDBC pool "master" to java:comp/env/jdbc/master
02-08/05:50:07 INFO [main] AnnotatedMBean - Register MBean ru.bitel.bgbilling.server.util:type=DatabaseConnectionPool,name=master
02-08/05:50:07 INFO [main] DefaultServerSetup - Init trash pools..
mq 02-08/05:50:07 INFO [EventProcessor-init] EventProcessor - Init EventProcessor MQ connection factory...
mq 02-08/05:50:07 DEBUG [EventProcessor-init] FailoverTransport - Reconnect was triggered but transport is not started yet. Wait for start to connect the transport.
mq 02-08/05:50:08 DEBUG [EventProcessor-init] FailoverTransport - Started.
mq 02-08/05:50:08 DEBUG [EventProcessor-init] FailoverTransport - Waking up reconnect task
mq 02-08/05:50:08 DEBUG [ActiveMQ Task] FailoverTransport - urlList connectionList:[nio://127.0.0.1:61616?socketBufferSize=1000000]
mq 02-08/05:50:08 DEBUG [ActiveMQ Task] FailoverTransport - Attempting connect to: nio://127.0.0.1:61616?socketBufferSize=1000000
mq 02-08/05:50:08 DEBUG [ActiveMQ Task] WireFormatNegotiator - Sending: WireFormatInfo { version=6, properties={CacheSize=1024, CacheEnabled=true, SizePrefixDisabled=false, MaxInactivityDurationInitalDelay=10000, TcpNoDelayEnabled=true, MaxInactivityDuration=30000, TightEncodingEnabled=true, StackTraceEnabled=true}, magic=[A,c,t,i,v,e,M,Q]}
mq 02-08/05:50:08 DEBUG [ActiveMQ NIO Worker] WireFormatNegotiator - Received WireFormat: WireFormatInfo { version=9, properties={CacheSize=1024, MaxFrameSize=9223372036854775807, CacheEnabled=true, SizePrefixDisabled=false, TcpNoDelayEnabled=true, MaxInactivityDurationInitalDelay=10000, MaxInactivityDuration=30000, TightEncodingEnabled=true, StackTraceEnabled=true}, magic=[A,c,t,i,v,e,M,Q]}
mq 02-08/05:50:08 DEBUG [ActiveMQ NIO Worker] WireFormatNegotiator - tcp:///127.0.0.1:61616 before negotiation: OpenWireFormat{version=6, cacheEnabled=false, stackTraceEnabled=false, tightEncodingEnabled=false, sizePrefixDisabled=false}
mq 02-08/05:50:08 DEBUG [ActiveMQ NIO Worker] WireFormatNegotiator - tcp:///127.0.0.1:61616 after negotiation: OpenWireFormat{version=6, cacheEnabled=true, stackTraceEnabled=true, tightEncodingEnabled=true, sizePrefixDisabled=false}
mq 02-08/05:50:08 DEBUG [ActiveMQ Task] FailoverTransport - Connection established
mq 02-08/05:50:08 INFO [ActiveMQ Task] FailoverTransport - Successfully connected to nio://127.0.0.1:61616?socketBufferSize=1000000
02-08/05:50:08 DEBUG [main] EventProcessor - Add ru.bitel.bgbilling.server.util.Setup$1@47b0efe1 to BG.Event.ru.bitel.bgbilling.kernel.event.events.system.ModuleConfigModifiedEvent
Update starting...
Update from ftp://ftp.bgbilling.ru/pub/bgbilling
Server version is 6.0
Set passive mode...
Changing dir to /pub/bgbilling/6.0
Checking updates for ipn..
Checking updates for bill..
Checking updates for ru.bitel.bgbilling.plugins.crm..
Checking updates for dialup..
Checking updates for ru.bitel.bgbilling.plugins.documents..
Checking updates for email..
Found update for email build 188 packet email_6.0_189.zip updating to build 189
Checking updates for npay..
Found update for npay build 233 packet npay_6.0_234.zip updating to build 234
Checking updates for rscm..
Checking updates for voiceip..
Found update for voiceip build 234 packet voiceip_6.0_236.zip updating to build 236
Checking updates for reports..
Found update for reports build 226 packet reports_6.0_228.zip updating to build 228
Checking updates for dba..
Checking updates for phone..
Found update for phone build 308 packet phone_6.0_310.zip updating to build 310
Checking updates for ru.bitel.bgbilling.plugins.helpdesk..
Checking updates for inet..
Found update for inet build 1509 packet inet_6.0_1515.zip updating to build 1515
Checking updates for card..
Found update for card build 230 packet card_6.0_231.zip updating to build 231
Checking updates for rurupay..
Checking updates for server..
Found update for BGBillingServer build 1862 packet update_6.0.zip updating to build 1872
Checking updates for update_lib..
Checking updates for client..
Found update for BGBillingClient build 1384 packet update_6.0.zip updating to build 1393
Install 8 updates (y/n):
y
Downloading email_6.0_189.zip OK!
Downloading npay_6.0_234.zip OK!
Downloading voiceip_6.0_236.zip OK!
Downloading reports_6.0_228.zip OK!
Downloading phone_6.0_310.zip OK!
Downloading inet_6.0_1515.zip OK!
Downloading card_6.0_231.zip OK!
Downloading update_6.0.zip OK!
Start installing..
Module: email already installed. Reinstalling....
Data extract finished...
Extract data => OK
Database updated...
Install ticket inserted..
Base update => OK
Reinit module instanses
Module Instance init => OK
Executing call AddSchedulerTasks; param: email.sc
Scheduled class bitel.billing.server.email.Locker already exists!
Scheduled class ru.bitel.bgbilling.modules.email.server.AccountController already exists!
Result => true
Executing call PutFile; param: email.xml:actions
Result => true
Execute calls => OK
File's copy finished...
File copy => OK
Remove libs => OK
Module email was successfull installed!
Please, restart BGBilling server.
Module: npay already installed. Reinstalling....
Data extract finished...
Extract data => OK
Database updated...
Install ticket inserted..
Base update => OK
Reinit module instanses
REINIT module => 38
REINIT module => 27
REINIT module => 37
REINIT module => 13
REINIT module => 26
REINIT module => 25
Module Instance init => OK
Executing call AddSchedulerTasks; param: npay.sc
Scheduled class bitel.billing.server.npay.Calculator already exists!
Scheduled class ru.bitel.bgbilling.modules.npay.server.task.DebetStatusManageLocker already exists!
Result => true
Executing call PutFile; param: npay.xml:actions
Result => true
Execute calls => OK
File's copy finished...
File copy => OK
Remove libs => OK
Module npay was successfull installed!
Please, restart BGBilling server.
Module: voiceip already installed. Reinstalling....
Data extract finished...
Extract data => OK
Database updated...
Install ticket inserted..
Base update => OK
Reinit module instanses
REINIT module => 8
Module Instance init => OK
Executing call PutFile; param: voiceip.xml:actions
Result => true
Executing call AddSchedulerTasks; param: voiceip.sc
Scheduled class bitel.billing.server.voiceip.BalanceSetter already exists!
Result => true
Execute calls => OK
File's copy finished...
File copy => OK
Remove libs => OK
Module voiceip was successfull installed!
Please, restart BGBilling server.
Module: reports already installed. Reinstalling....
Data extract finished...
Extract data => OK
Database updated...
Install ticket inserted..
Base update => OK
Reinit module instanses
REINIT module => 22
Module Instance init => OK
Executing call ExecuteSQL; param: reports.sql
Executing database update...OK
Result => true
Executing call PutFile; param: reports:.
Result => true
Executing call PutFile; param: reports.xml:actions
Result => true
Execute calls => OK
File's copy finished...
File copy => OK
Remove libs => OK
Module reports was successfull installed!
Please, restart BGBilling server.
Module: phone already installed. Reinstalling....
Data extract finished...
Extract data => OK
Database updated...
Install ticket inserted..
Base update => OK
Reinit module instanses
Module Instance init => OK
Executing call AddSchedulerTasks; param: phone.sc
Scheduled class bitel.billing.server.phone.BalanceSetter already exists!
Result => true
Executing call PutFile; param: phone.xml:actions
Result => true
Execute calls => OK
File's copy finished...
File copy => OK
Remove libs => OK
Module phone was successfull installed!
Please, restart BGBilling server.
Module: inet already installed. Reinstalling....
Data extract finished...
Extract data => OK
Database updated...
Install ticket inserted..
Base update => OK
Reinit module instanses
REINIT module => 30
Table 'bgbilling.inv_ip_resource_subscription_dyn_201112' doesn't exist
Table 'bgbilling.inv_ip_resource_subscription_dyn_30_201112' doesn't exist
(1146) Table 'bgbilling.inv_ip_resource_subscription_dyn_30' doesn't exist
Module Instance init => OK
Executing call AddSchedulerTasks; param: inet.sc
Scheduled class ru.bitel.bgbilling.modules.inet.task.InetServPeriodTask already exists!
Result => true
Executing call PutFile; param: inet.xml:actions
Result => true
Executing call PutFile; param: ru:dyn
Result => true
Execute calls => OK
File's copy finished...
File copy => OK
Remove libs => OK
Module inet was successfull installed!
Please, restart BGBilling server.
Module: card already installed. Reinstalling....
Data extract finished...
Extract data => OK
Database updated...
Install ticket inserted..
Base update => OK
Reinit module instanses
REINIT module => 24
Module Instance init => OK
Executing call PutFile; param: id:webroot
Result => true
Executing call PutFile; param: card.xml:actions
Result => true
Execute calls => OK
File's copy finished...
File copy => OK
Remove libs => OK
Module card was successfull installed!
Please, restart BGBilling server.
Module: update already installed. Reinstalling....
Data extract finished...
Extract data => OK
Database updated...
Install ticket inserted..
Base update => OK
Module Instance init => OK
Executing call ExecuteSQL; param: patch.sql
Executing database update...OK
Result => true
Executing call ExecuteSQL; param: kernel_event.sql
Executing database update...OK
Result => true
Executing call AddSchedulerTasks; param: patch.sc
Scheduled class bitel.billing.server.script.TimerEventGenerate already exists!
Scheduled class bitel.billing.server.contract.DebtMailSender already exists!
Scheduled class bitel.billing.server.contract.ContractStatusSetter already exists!
Scheduled class bitel.billing.server.admin.integration.PaymentLoader already exists!
Scheduled class ru.bitel.bgbilling.kernel.task.server.Validator already exists!
Scheduled class bitel.billing.server.script.global.bean.GlobalScriptTimer already exists!
Result => true
Executing call PutFile; param: js:webroot
Result => true
Executing call PutFile; param: css:webroot
Result => true
Executing call PutFile; param: img:webroot
Result => true
Executing call PutFile; param: help:webroot
Result => true
Executing call PutFile; param: WEB-INF:webroot
Result => true
Executing call PutFile; param: style.css:webroot
Result => true
Executing call PutFile; param: auth.html:webroot
Result => true
Executing call PutFile; param: menu.xml:data
Result => true
Executing call PutFile; param: toolbar.xml:data
Result => true
Executing call PutFile; param: log4j.xml:data
Result => true
Executing call PutFile; param: default.web.xml:data
Result => true
Executing call PutFile; param: actions:.
Result => true
Executing call PutFile; param: snapshot.sh:.
Result => true
Executing call PutFile; param: update.sh:.
Result => true
Execute calls => OK
File's copy finished...
File copy => OK
Remove libs => OK
Module update was successfull installed!
Please, restart BGBilling server.
REPLACED FILES:
/usr/local/billing/./reports/phone_dest_ts.jrxml
/usr/local/billing/dyn/ru/bitel/bgbilling/modules/inet/dyn/device/manad/ManadServiceActivator.java
/usr/local/billing/dyn/ru/bitel/bgbilling/modules/inet/dyn/device/terminal/AbstractTerminalServiceActivator.java
/usr/local/billing/./update.sh
02-08/05:51:02 INFO [Thread-4] EventProcessor - Shutdown EventProcessor...
02-08/05:51:02 DEBUG [Thread-4] ActiveMQMessageConsumer - remove: ID:bill-54696-1454899807950-0:1:2:1, lastDeliveredSequenceId:0
# Starting Server
$Starting bgbilling: /etc/init.d/bgbilling: 66: [: false: unexpected operator
OK
# Starting Scheduler
$Starting bgscheduler: /etc/init.d/bgscheduler: 66: [: false: unexpected operator
OK
# Starting DataLoader
$Starting bgdataloader: /etc/init.d/bgdataloader: 66: [: false: unexpected operator
OK
name = ipn
ipn.jar
name = bill
bill.jar
name = ru.bitel.bgbilling.plugins.crm
crm.jar
name = dialup
dialup.jar
name = ru.bitel.bgbilling.plugins.documents
documents.jar
name = email
email.jar
name = npay
npay.jar
name = rscm
rscm.jar
name = voiceip
voiceip.jar
name = reports
reports.jar
name = dba
dba.jar
name = update
client.jar
name = phone
phone.jar
name = ru.bitel.bgbilling.plugins.helpdesk
helpdesk.jar
name = update_lib
spring-beans.jar
policy.jar
ha-api.jar
serializer.jar
management-api.jar
csvlib.jar
streambuffer.jar
eventbus.jar
xalan.jar
update_lib.jar
stax-ex.jar
xml-apis-ext.jar
bgfonts.jar
spring-core.jar
poi.jar
jfreechart.jar
jasperreports.jar
smackx.jar
fop.jar
commons-collections.jar
swing-i18n-ru.jar
jaxb-impl.jar
commons-digester.jar
commons-logging.jar
jaxws-tools.jar
kunststoff.jar
jaxws-api.jar
metouia.jar
xml-apis.jar
xercesImpl.jar
xmlgraphics-commons.jar
smack.jar
commons-io.jar
mimepull.jar
jcommon.jar
barbecue.jar
gmbal-api-only.jar
javadbf.jar
log4j.jar
iText.jar
ostermillerutils.jar
PgsLookAndFeel.jar
avalon-framework.jar
batik.jar
jaxws-rt.jar
name = update_lib
spring-beans.jar
policy.jar
ha-api.jar
serializer.jar
management-api.jar
csvlib.jar
streambuffer.jar
eventbus.jar
xalan.jar
update_lib.jar
stax-ex.jar
xml-apis-ext.jar
bgfonts.jar
spring-core.jar
poi.jar
jfreechart.jar
jasperreports.jar
smackx.jar
fop.jar
commons-collections.jar
swing-i18n-ru.jar
jaxb-impl.jar
commons-digester.jar
commons-logging.jar
jaxws-tools.jar
kunststoff.jar
jaxws-api.jar
metouia.jar
xml-apis.jar
xercesImpl.jar
xmlgraphics-commons.jar
smack.jar
commons-io.jar
mimepull.jar
jcommon.jar
barbecue.jar
gmbal-api-only.jar
javadbf.jar
log4j.jar
iText.jar
ostermillerutils.jar
PgsLookAndFeel.jar
avalon-framework.jar
batik.jar
jaxws-rt.jar
name = inet
inet.jar
name = card
card.jar
name = rurupay
rurupay.jar
adding: JNLP-INF/APPLICATION.JNLP(in = 1030) (out= 451)(deflated 56%)
jar signed.
Warning:
No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2033-03-21) or after any future revocation date.
jar signed.
Warning:
No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2033-03-21) or after any future revocation date.
./update.sh: 44: ./update.sh: Syntax error: "}" unexpected
root@bill:/usr/local/billing# ./server_start.sh
root@bill:/usr/local/billing# ./data_loader_start.sh
root@bill:/usr/local/billing# ./scheduler_start.sh
root@bill:/usr/local/billing# ./server_status.sh
BGBillingServer v 6.0 build 1872 from 10.12.2015 18:39:39
Started: 08.02.2016 05:51:10 Uptime: 0 d 00:01:12
Memory total: 760 217 600; max: 7 635 730 432; free: 638 259 112
Memory pools:
Non-heap memory[Code Cache]: max: 50 331 648; used: 2 543 680; peek: 2 560 448
Heap memory[PS Eden Space]: max: 2 797 600 768; used: 91 685 120; peek: 198 705 152
Heap memory[PS Survivor Space]: max: 33 030 144; used: 30 191 432; peek: 30 191 432
Heap memory[PS Old Gen]: max: 5 726 273 536; used: 81 936; peek: 81 936
Non-heap memory[PS Perm Gen]: max: 209 715 200; used: 31 834 224; peek: 31 834 224
Thread count: 23
Connections pool to Master status Idle: 1; Active: 0; maxActive: 300; maxIdle: 20