Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I executed following cgr-migration command
- root@cgrc8:/usr/share/cgrates/tariffplans/tutorial# cgr-migrator -migrate=*set_versions -datadb_name 10 -datadb_port 27017 -datadb_user cgrates -datadb_passwd cgrates -datadb_type mongo -stordb_type postgres -stordb_port 5432 -stordb_user cgrates -stordb_passwd CGRateS.org -verbose
- Result:
- 2017/12/01 10:22:56 Initializing dataDB:mongo
- 2017/12/01 10:22:56 Initializing storDB:postgres
- 2017/12/01 10:22:56 Initializing oldDataDB:mongo
- 2017/12/01 10:22:56 Initializing oldstorDB:postgres
- 2017/12/01 10:22:56 Migrating: *set_versions
- 2017/12/01 10:22:56 migrating[*set_versions]
- 2017/12/01 10:22:56 migrating*set_versions
- 2017/12/01 10:22:56 Done migrating!
- root@cgrc8:/usr/share/cgrates/tariffplans/tutorial#
- root@cgrc8:/usr/share/cgrates/tariffplans/tutorial#
- root@cgrc8:/usr/share/cgrates/tariffplans/tutorial#
- Then i executed cgr-engine command that end up on panic
- "data_db": { // database used to store runtime data (eg: accounts, cdr stats)
- "db_type": "mongo", // data_db type: <redis|mongo>
- "db_host": "127.0.0.1", // data_db host address
- "db_port": 27017, // data_db port to reach the database
- "db_name": "10", // data_db database name to connect to
- "db_user": "cgrates", // username to use when connecting to data_db
- "db_password": "cgrates", // password to use when connecting to data_db
- // "load_history_size": 10, // Number of records in the load history
- },
- root@cgrc8:/usr/share/cgrates/tariffplans/tutorial# cgr-engine -config_dir=/usr/share/cgrates/tutorials/kamevapi/cgrates/etc/cgrates -logger=*stdout
- 2017/12/01 10:24:29 method Call has wrong number of ins: 4
- 2017/12/01 10:24:29 [INFO]<HTTP> enabling handler for JSON-RPC
- 2017/12/01 10:24:29 [INFO]<HTTP> enabling handler for WebSocket connections
- 2017/12/01 10:24:29 [INFO]<HTTP> start listening at <0.0.0.0:2080>
- 2017/12/01 10:24:29 [INFO]Starting CGRateS CDRS service.
- 2017/12/01 10:24:29 method Call has wrong number of ins: 4
- 2017/12/01 10:24:29 [INFO]Starting Threshold Service
- 2017/12/01 10:24:29 method Call has wrong number of ins: 4
- 2017/12/01 10:24:29 [INFO]Starting Resource Service
- 2017/12/01 10:24:29 method Call has wrong number of ins: 4
- 2017/12/01 10:24:29 [INFO]Starting Stat Service
- 2017/12/01 10:24:29 method Call has wrong number of ins: 4
- 2017/12/01 10:24:29 [INFO]Starting CGRateS SMKamailio service.
- 2017/12/01 10:24:29 [INFO]Starting CGRateS JSON server at <0.0.0.0:2012>.
- 2017/12/01 10:24:29 [INFO]Starting CGRateS GOB server at <127.0.0.1:2013>.
- 2017/12/01 10:24:29 method Call has wrong number of ins: 4
- 2017/12/01 10:24:29 method Call has wrong number of ins: 4
- panic: runtime error: invalid memory address or nil pointer dereference
- [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xbe4aaa]
- goroutine 36 [running]:
- github.com/cgrates/cgrates/engine.(*UserProfile).GetId(0x0, 0xc4204ec600, 0x15)
- /usr/local/goapps/src/github.com/cgrates/cgrates/src/github.com/cgrates/cgrates/engine/users.go:60 +0x4a
- github.com/cgrates/cgrates/engine.(*UserMap).ReloadUsers(0xc4202ba820, 0x0, 0x0, 0xc420483f18, 0xc42048ce40, 0x756f656d69745f74)
- /usr/local/goapps/src/github.com/cgrates/cgrates/src/github.com/cgrates/cgrates/engine/users.go:136 +0x1dd
- github.com/cgrates/cgrates/engine.NewUserMap(0xc420488a80, 0xc4203a7a80, 0x1, 0x4, 0x756f656d69745f79, 0x22733222203a2274, 0x90909090909092c)
- /usr/local/goapps/src/github.com/cgrates/cgrates/src/github.com/cgrates/cgrates/engine/users.go:100 +0x1ad
- main.startUsersServer(0xc4202c6780, 0xc420488a80, 0xc4204b20e0, 0xc42012e360)
- /usr/local/goapps/src/github.com/cgrates/cgrates/src/github.com/cgrates/cgrates/cmd/cgr-engine/cgr-engine.go:529 +0x60
- created by main.main
- /usr/local/goapps/src/github.com/cgrates/cgrates/src/github.com/cgrates/cgrates/cmd/cgr-engine/cgr-engine.go:908 +0x11db
- root@cgrc8:/usr/share/cgrates/tariffplans/tutorial#
- -------------------------------------------
- Replaced datadb from "mongo" to "redis"
- "data_db": { // database used to store runtime data (eg: accounts, cdr stats)
- "db_type": "redis", // data_db type: <redis|mongo>
- "db_host": "127.0.0.1", // data_db host address
- "db_port": 6379, // data_db port to reach the database
- "db_name": "10", // data_db database name to connect to
- // "db_user": "cgrates", // username to use when connecting to data_db
- // "db_password": "cgrates", // password to use when connecting to data_db
- // "load_history_size": 10, // Number of records in the load history
- },
- cgr-engine -config_dir=/usr/share/cgrates/tutorials/kamevapi/cgrates/etc/cgrates -logger=*stdout
- 2017/12/01 10:31:40 [INFO]Starting CGRateS CDRS service.
- 2017/12/01 10:31:40 [INFO]Starting CGRateS SMKamailio service.
- 2017/12/01 10:31:40 method Call has wrong number of ins: 4
- 2017/12/01 10:31:40 [INFO]Starting Threshold Service
- 2017/12/01 10:31:40 method Call has wrong number of ins: 4
- 2017/12/01 10:31:40 [INFO]Starting Resource Service
- 2017/12/01 10:31:40 method Call has wrong number of ins: 4
- 2017/12/01 10:31:40 [INFO]<HTTP> enabling handler for JSON-RPC
- 2017/12/01 10:31:40 [INFO]<HTTP> enabling handler for WebSocket connections
- 2017/12/01 10:31:40 [INFO]<HTTP> start listening at <0.0.0.0:2080>
- 2017/12/01 10:31:40 [INFO]Starting Stat Service
- 2017/12/01 10:31:40 method Call has wrong number of ins: 4
- 2017/12/01 10:31:40 method Call has wrong number of ins: 4
- 2017/12/01 10:31:40 [INFO]Starting CGRateS GOB server at <127.0.0.1:2013>.
- 2017/12/01 10:31:40 [INFO]Starting CGRateS JSON server at <0.0.0.0:2012>.
- 2017/12/01 10:31:40 [INFO]could not get load history: [] (<nil>)
- 2017/12/01 10:31:40 method Call has wrong number of ins: 4
- 2017/12/01 10:31:40 method Call has wrong number of ins: 4
- 2017/12/01 10:31:40 [INFO]<ServiceManager> Starting CGRateS Scheduler.
- 2017/12/01 10:31:40 method Call has wrong number of ins: 4
- 2017/12/01 10:31:40 method Call has wrong number of ins: 4
- 2017/12/01 10:31:40 [INFO]Registering CDRS HTTP Handlers.
- 2017/12/01 10:31:40 [INFO]Registering CDRS RPC service.
- 2017/12/01 10:31:40 method Call has wrong number of ins: 4
- 2017/12/01 10:31:40 method ProcessExternalCdr has wrong number of ins: 2
- 2017/12/01 10:31:40 method RateCDRs reply type not a pointer: bool
- 2017/12/01 10:31:40 method RegisterHandlersToServer has wrong number of ins: 2
- 2017/12/01 10:31:40 method Timezone has wrong number of ins: 1
- 2017/12/01 10:31:40 [INFO]<Cdrc> Monitoring /var/spool/cgrates/cdrc/in for file moves.
- KamEvapi:10:31:40 <KamEvapi> Attempting connect to Kamailio at: 127.0.0.1:8448
- 2017/12/01 10:31:40 [INFO]<Scheduler> processing 4 action plans
- 2017/12/01 10:31:40 [INFO]<Scheduler> queued 0 action plans
- KamEvapi:10:31:40 <KamEvapi> Successfully connected to 127.0.0.1:8448!
Add Comment
Please, Sign In to add comment