" /> Trouble starting Primary confserv after Failover - Genesys CTI User Forum

Author Topic: Trouble starting Primary confserv after Failover  (Read 8778 times)

phil

  • Guest
Trouble starting Primary confserv after Failover
« on: March 23, 2010, 12:47:38 PM »
Advertisement
hi,

i think i messed up my cfg- files again. both 'confserv' and 'confserv_HA'  start up properly. but when the confserv_HA becomes primary due to a failover confserv can't initialize again, afterwards. If I switch off confserv_HA primary, then  confserv is able to initialize again. I'm not sure about the naming convention in the Cfg- file concerning Backup Config Server. Following Message is put out in Log:

Std 04502 Cannot connect to ConfigurationServer '' at host 'test1.domain.de', port 2020, reason 'CFGServerNotFound' on dbsync_violated executed when server is not fully loaded

Topology
---------
  test0                          test1

  cfg_dbserver              cfg_dbserver_HA
  confserv                      confserv_HA


confserv.cfg@test0:
------------------
[confserv]
port =2020
management-port =2021
server = dbserver
encryption = false
encoding = utf-8

[history-log]
all=histlog
expiration=30
client-expiration=1
max-records=1000
active=true
failsafe-store-processing=true

[log]
verbose = all
standard = network
all = D:\var\log\genesys\confserv\confserv
time_format=ISO8601
buffering = false
expire = 10
segement = 10000

[hca]
schema = none
record-vag = true

[soap]
port = 2022
debug = true
client_lifespan = 600

[dbserver]
host =test0
port =4040
dbengine =oracle
dbserver =testawd
username =genconfig
password =***
server = dbserver_HA
reconnect-timeout = 10
response-timeout = 600

[dbserver_HA]
host =test1
port =4040
dbengine =oracle
dbserver =testawd
username =genconfig
password =***
server = dbserver
reconnect-timeout = 10
response-timeout = 600

confserv.cfg@test1:
-------------------------

[confserv_HA]
port=2020
management-port=2021
server=dbserver
encryption=false
encoding=utf-8
force-reconnect-reload=true

[history-log]
all=histlog
expiration=30
client-expiration=1
max-records=1000
active=true
failsafe-store-processing=true

[log]
verbose=all
standard=network
all=D:\var\log\genesys\confserv_HA\confserv_HA
buffering=false
expire=10
segment=50000
time_format=ISO8601

[hca]
schema = none

[soap]
port=2022
debug=true
client_lifespan=600

[dbserver]
host=test0
port=4040
dbengine=oracle
dbserver=testawd
username=genconfig
password=***
server=dbserver_HA
reconnect-timeout=10
response-timeout=600

[dbserver_HA]
host=test1
port=4040
dbengine = oracle
dbserver = testawd
username = genconfig
password = ***
server = dbserver
reconnect-timeout=10
response-timeout=600


What is my error in reasoning? Hope somebody can help.

Cheers

Phil

« Last Edit: March 23, 2010, 01:15:29 PM by phil »

Offline Timur Karimov

  • Sr. Member
  • ****
  • Posts: 415
  • Karma: 2
Re: Trouble starting Primary confserv after Failover
« Reply #1 on: March 23, 2010, 06:52:56 PM »
  • Best Answer
  • provide log files from you promary conf. server immediately after it restart.

    phil

    • Guest
    Re: Trouble starting Primary confserv after Failover
    « Reply #2 on: March 24, 2010, 08:13:50 AM »
  • Best Answer
  • Here's the log from primary confserv when it fails to initialize as backup after abnormal termination:

    Build information :
      Description : (Content freeze)
      Timestamp  : Feb  3 2010 09:07:14
      Components  :
        Configuration library  v.7.6.000.05
        Common library          v.7.5.000.41 C2
        Service library        v.7.5.000.04 MT
        Message library        v.7.5.000.01
        Log library            v.7.6.000.00 MT
        LCA library            v.7.5.000.06
        Thread library          v.7.6.000.00
        DBServer library        v.7.5.000.02
        Genesys License library v.7.5.000.00 MT
        License library        v.FLEXLm 8.3c
        Stat Script library    v.7.5.000.00

    Application name: confserv
    Application type: ConfigurationServer (21)
    Command line:    confserv.exe -service ConfigServerST -c confserv.cfg -app confserv -host test1.domain.de -port 2020 -sstart
    Host name:        test0
    DST:              TZ = 1, timeb = 0
    Time zone:        -3600, W. Europe Standard Time, W. Europe Daylight Time
    UTC time:        2010-03-23T12:42:37.416
    Local time:      2010-03-23T13:42:37.416
    Start time (UTC): 2010-03-23T12:42:37
    Running time:    0:00:00:00
    Host info:        Windows 5.2.3790, 2, Service Pack 2, 2.0, 0110, 3
    File:            (1) D:\var\log\genesys\confserv\confserv.20100323_134237_417.log

    2010-03-23T13:42:37.416 Trc 04112 The Log Output of type 'D:\var\log\genesys\confserv\confserv' has been created and opened
    2010-03-23T13:42:37.416 Std 22110 Encoding [utf-8] is set successfully.
    2010-03-23T13:42:37.416 Std 05060 Application started
    2010-03-23T13:42:37.416 Std 22100 Genesys Configuration Server. Version 7.6.000.57
    2010-03-23T13:42:37.416 Std 22101 Copyright (c) 1997-2009 Genesys Telecommunications Laboratories, Inc.
    2010-03-23T13:42:37.416 Std 22102 Server application name is set to [confserv]
    2010-03-23T13:42:37.416 Std 22915 Server mode is set to [PRIMARY]
    2010-03-23T13:42:37.416 Std 22900 Objectset [main-cfgset] is being loaded ...
    2010-03-23T13:42:37.603 Std 22901 Objectset [main-cfgset] : XML schema is loaded
    13:42:37.681  dbserver_manager with alias main-dbserver has being registered for the socket 248, reference counter 3
    2010-03-23T13:42:37.681 Trc 04500 Connecting to DBServer '' at host 'test0', port 4040
    2010-03-23T13:42:37.697 Std 04503 Connected to DBServer '' at host 'test0', port 4040
    2010-03-23T13:42:37.697 Trc 24400 Trying to open database [testawd] ,SQL server [testawd]
    2010-03-23T13:42:37.775 Std 07001 Database 'testawd' opened
    13:42:37.775  dbserver_manager with alias dbcontroller_alias has being registered for the socket 292, reference counter 3
    13:42:37.775 cfg_refresh DB server connection connecting
    13:42:37.775 cfg_refresh DB server connection established
    2010-03-23T13:42:37.853 Std 22913 Configuration database version is [7.5]
    2010-03-23T13:42:37.853 Std 22918 Configuration tenancy model is: [SINGLE-TENANT]
    Database schema is reading ... done
    2010-03-23T13:42:37.900 Std 22910 Database schema [dbschema.xml] is loaded
    MAXDBIE request is about to be sent
    MAXDBID read responce received
    2010-03-23T13:42:37.916 Std 22500 LCA is connected at [test0.domain.de:4999]
    2010-03-23T13:42:37.916 Std 22911 Backup server [confserv_HA] on [test1.domain.de:2020] is set up in the configuration
    2010-03-23T13:42:37.916 Trc 04500 Connecting to ConfigurationServer '' at host 'test1.domain.de', port 2020
    addp-trace off
    (addp_xconfig) local OFF, remote OFF, trace off
    2010-03-23T13:42:39.056 Std 04502 Cannot connect to ConfigurationServer '' at host 'test1.domain.de', port 2020, reason 'CFGServerNotFound'
    2010-03-23T13:42:39.056 Std 22906 Objectset [main-cfgset] : data is cleaned up. Source : [DBServer]
    2010-03-23T13:42:39.056 Std 22902 Objectset [main-cfgset] : read requests sent on DBServer
    Cluster [principal] is being read ...........................done
    Cluster [statistic] is being read ........done
    Cluster [persons] is being read ...............done
    Cluster [CTI] is being read .....done
    Cluster [scripts] is being read .....done
    Cluster [outbound] is being read ...............done
    Cluster [gvp] is being read .....done
    Cluster [service] is being read ...2010-03-23T13:42:42.963 Trc 04500 Connecting to ConfigurationServer '' at host 'test1.domain.de', port 2020
    addp-trace off
    (addp_xconfig) local OFF, remote OFF, trace off
    2010-03-23T13:42:43.884 Std 04502 Cannot connect to ConfigurationServer '' at host 'test1.domain.de', port 2020, reason 'CFGServerNotFound'
    on_dbsync_violated executed  when server is not fully loaded
    2010-03-23T13:42:43.884 Std 22300 Another Configuration Server is detected
    2010-03-23T13:42:43.884 Std 22905 Objectset [main-cfgset] failed to load
    refresh stopped because of unhandled violation of access to cfg_refresh table
    Main loop has ended
    2010-03-23T13:42:43.884 Std 05063 Normal termination
    13:42:43.963  dbserver_manager with alias main-dbserver is about to unregister form socket 248, reference counter 2 (reason - disconnect)
    2010-03-23T13:42:43.963 Std 04505 Disconnected from DBServer ''
    13:42:43.963  dbserver_manager with alias dbcontroller_alias is about to unregister form socket 292, reference counter 2 (reason - disconnect)
    13:42:43.963 cfg_refresh DB server disconnected
    2010-03-23T13:42:43.963 Std 22501 LCA is disconnected
    ConnCleanup: 7.5.000.41 C2
    0) fd=228 SERVER: 0.0.0.0:0 connected q--x-r
    Timers created 84
    Timers deleted 22
    Invalid timers 0
    Conn created  6
    Conn accepted  0
    Conn connected 2
    Conn exceptions 0
    Conn closed    5
    Conn deleted  5
    Conn balance  1
    Errors        0
    2010-03-23T13:42:43.963 Trc 04109 Logging service stopped

    Offline René

    • Administrator
    • Hero Member
    • *****
    • Posts: 1832
    • Karma: 62
    Re: Trouble starting Primary confserv after Failover
    « Reply #3 on: March 24, 2010, 09:46:16 AM »
  • Best Answer
  • Hi Phil,

    Message in your log is clear - there is another Configuration Server in primary mode running using the same database thus Configuration Server cannot initialize properly.

    [quote]2010-03-23T13:42:43.884 Std 22300 Another Configuration Server is detected
    2010-03-23T13:42:43.884 Std 22905 Objectset [main-cfgset] failed to load
    refresh stopped because of unhandled violation of access to cfg_refresh table
    Main loop has ended[/quote]

    It seems to me that your primary Configuration Server is unable to connect to backup CS (by meaning of deployment) so it tries to start in primary mode. Please check that you have configured correctly backup server in CME (application "confserv", tab "Server Info") and there is no firewall blocking communication between primary and backup Configuration Servers.

    R.

    phil

    • Guest
    Re: Trouble starting Primary confserv after Failover
    « Reply #4 on: March 24, 2010, 10:06:24 AM »
  • Best Answer
  • hi rené,

    thanks for your feedback.

    the backup for the primary is properly configured. the proper failover is confirming this. afaik, the primary has not to be configured as backup for the backup CS.
    Firewall is a good hint. Indeed, both hosts are configured in the same subnet, but a telnet shows the port 2020 is blocked. im gonna figure that out. must be kinda local firewall.

    Cheers

    Phil
    « Last Edit: March 24, 2010, 10:17:28 AM by phil »

    phil

    • Guest
    Re: Trouble starting Primary confserv after Failover
    « Reply #5 on: March 24, 2010, 11:35:12 AM »
  • Best Answer
  • everything#s fine now...

    i couldnt find any firewall. after restarting confserv_HA while confserv was running the port could be reached. im not really sure what this is supposed to mean, but at least it's working 100 % proper

    thanks for your effort, folks

    cheers

    phil

    Offline kheuch1985

    • Newbie
    • *
    • Posts: 1
    • Karma: 0
    • genesysMAn
    Re: Trouble starting Primary confserv after Failover
    « Reply #6 on: January 19, 2012, 05:07:09 PM »
  • Best Answer
  • hi, i have the same problem as you can you tell what are you done to resolve them.

    cdt
    thank you in advance