Bug 33616

Summary: Ejabberd не работает с mysql базой.
Product: Branch p8 Reporter: XBM <for_robot>
Component: ejabberdAssignee: Andrey Cherepanov <cas>
Status: REOPENED --- QA Contact: qa-p8 <qa-p8>
Severity: major    
Priority: P3 CC: mattakushi10, rider
Version: не указана   
Hardware: all   
OS: Linux   
Attachments:
Description Flags
конфигурационный файл. none

Description XBM 2017-07-04 16:56:55 MSK
Установлен стартер-кит P8 4.4.74-std-def-alt0.M80P.1
Установлен mysql  5.5.54-alt0.M80P.1 (ALT)
Установлен ejabberd-extra-2.1.13-alt1, ejabberd-2.1.13-alt1
После настройки ejabberd.cfg
выполняем:
[root@server-jabber opt]# echo "GRANT ALL ON jabber2017.* TO 'jabuser'@'localhost' IDENTIFIED BY '123';" | mysql -h localhost -u root
[root@server-jabber opt]# echo "CREATE DATABASE jabber2017;" | mysql -h localhost -u jabuser -p
Enter password: 
[root@server-jabber opt]# mysql -h localhost -D jabber2017 -u jabuser -p < mysql2.1.13.sql
Enter password: 
[root@server-jabber opt]# ejabberdctl start
[root@server-jabber opt]# ejabberdctl status
The node 'ejabberd@server-jabber' is starting with status: started
ejabberd is not running in that node
Check for error messages: /var/log/ejabberd/ejabberd.log
or other files in that directory.
[root@server-jabber opt]# nmap 127.0.0.1
Starting Nmap 5.51 ( http://nmap.org ) at 2017-07-04 18:16 +05
Nmap scan report for localhost.localdomain (127.0.0.1)
Host is up (0.0000050s latency).
Not shown: 996 closed ports
PORT     STATE SERVICE
3306/tcp open  mysql
5222/tcp open  xmpp-client
5269/tcp open  xmpp-server
5280/tcp open  xmpp-bosh
Nmap done: 1 IP address (1 host up) scanned in 0.25 seconds


В файл /var/log/ejabberd/erlang.log сыпится:
...

=CRASH REPORT==== 4-Jul-2017::18:16:48 ===
  crasher:
    initial call: ejabberd_odbc:init/1
    pid: <0.254.0>
    registered_name: []
    exception error: undefined function gen:debug_options/1
      in function  p1_fsm:init_it/6 (p1_fsm.erl, line 338)
    ancestors: ['ejabberd_odbc_sup_ou.v-int.ru',ejabberd_sup,<0.62.0>]
    messages: []
    links: [<0.253.0>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 376
    stack_size: 27
    reductions: 111
  neighbours:

=SUPERVISOR REPORT==== 4-Jul-2017::18:16:48 ===
     Supervisor: {local,'ejabberd_odbc_sup_ou.v-int.ru'}
     Context:    start_error
     Reason:     undef
     Offender:   [{pid,undefined},
                  {id,1},
                  {mfargs,{ejabberd_odbc,start_link,["ou.v-int.ru",30000]}},
                  {restart_type,transient},
                  {shutdown,2000},
                  {child_type,worker}]


=CRASH REPORT==== 4-Jul-2017::18:16:48 ===
  crasher:
    initial call: ejabberd_odbc:init/1
    pid: <0.258.0>
    registered_name: []
    exception error: undefined function gen:debug_options/1
      in function  p1_fsm:init_it/6 (p1_fsm.erl, line 338)
    ancestors: ['ejabberd_odbc_sup_ou.v-int.ru',ejabberd_sup,<0.62.0>]
    messages: []
    links: [<0.257.0>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 376
    stack_size: 27
    reductions: 111
  neighbours:
....
Comment 1 XBM 2017-07-04 16:58:24 MSK
Created attachment 7134 [details]
конфигурационный файл.
Comment 2 Maxim Knyazev 2020-09-15 13:00:34 MSK
Поддержка дистрибутива завершена. Используйте новые версии.
Comment 3 Anton Farygin 2020-09-15 13:02:15 MSK
Максим, не закрывайте существующие ошибки. Поддержка дистрибутива не завершена.