Yealink Forums

Full Version: Yealink Device Management issues
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I can not get phones to provision in the Yealink Device Management.

DHCP option 66 is configured correctly as "https://10.61.0.10:28443/dm.cfg"
My T48G with latest firmware: 35.8.1.80 will not connect to the server

I have installed CentOS on a fresh VM and then installed the Yealink Device Manager as root using the instructions here:

http://forum.yealink.com/forum/announcements.php?aid=19

I noticed that during install, the config database section has an error.

.//base_install.sh: line 203: mysql: command not found
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
Code:
sudo ./install.sh install 10.61.0.10
.//base_install.sh: line 203: mysql: command not found

=========================================================
start Device Server Install.
=========================================================


=========================================================
stop all Device Manager first
=========================================================

stop all device manager service
systemctl stop tcp-server begin
systemctl stop tcp-server end
systemctl stop tomcat_dm begin
systemctl stop tomcat_dm end
systemctl stop redis begin
systemctl stop redis end
systemctl stop mariadb begin
systemctl stop mariadb end
systemctl stop rabbitmq-server begin
systemctl stop rabbitmq-server end
disable all device manager service
systemctl disable rabbitmq-server begin
Removed symlink /etc/systemd/system/multi-user.target.wants/rabbitmq-server.service.
systemctl disable rabbitmq-server end
systemctl disable mariadb begin
Removed symlink /etc/systemd/system/multi-user.target.wants/mariadb.service.
systemctl disable mariadb end
systemctl disable redis begin
Removed symlink /etc/systemd/system/multi-user.target.wants/redis.service.
systemctl disable redis end
systemctl disable tomcat_dm begin
Removed symlink /etc/systemd/system/multi-user.target.wants/tomcat_dm.service.
systemctl disable tomcat_dm end
systemctl disable tcp-server begin
Removed symlink /etc/systemd/system/multi-user.target.wants/tcp-server.service.
systemctl disable tcp-server end
Loaded plugins: fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package rabbitmq-server.noarch 0:3.7.4-1.el7 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================​================================================================================​================================================================================​=============================================================================
Package                                                                           Arch                                                                     Version                                                                        Repository                                                                   Size
================================================================================​================================================================================​================================================================================​=============================================================================
Removing:
rabbitmq-server                                                                   noarch                                                                   3.7.4-1.el7                                                                    installed                                                                    13 M

Transaction Summary
================================================================================​================================================================================​================================================================================​=============================================================================
Remove  1 Package

Installed size: 13 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : rabbitmq-server-3.7.4-1.el7.noarch                                                                                                                                                                                                                                                                        1/1
  Verifying  : rabbitmq-server-3.7.4-1.el7.noarch                                                                                                                                                                                                                                                                        1/1

Removed:
  rabbitmq-server.noarch 0:3.7.4-1.el7

Complete!
Loaded plugins: fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package erlang.x86_64 0:20.3-1.el7.centos will be erased
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================​================================================================================​================================================================================​=============================================================================
Package                                                                   Arch                                                                      Version                                                                              Repository                                                                    Size
================================================================================​================================================================================​================================================================================​=============================================================================
Removing:
erlang                                                                    x86_64                                                                    20.3-1.el7.centos                                                                    installed                                                                     31 M

Transaction Summary
================================================================================​================================================================================​================================================================================​=============================================================================
Remove  1 Package

Installed size: 31 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : erlang-20.3-1.el7.centos.x86_64                                                                                                                                                                                                                                                                           1/1
  Verifying  : erlang-20.3-1.el7.centos.x86_64                                                                                                                                                                                                                                                                           1/1

Removed:
  erlang.x86_64 0:20.3-1.el7.centos

Complete!
[root@ydm dm_install]# clear
[root@ydm dm_install]# ./install.sh install 10.61.0.10
.//base_install.sh: line 203: mysql: command not found

=========================================================
start Device Server Install.
=========================================================


=========================================================
stop all Device Manager first
=========================================================

stop all device manager service
systemctl stop tcp-server begin
systemctl stop tcp-server end
systemctl stop tomcat_dm begin
systemctl stop tomcat_dm end
systemctl stop redis begin
systemctl stop redis end
systemctl stop mariadb begin
systemctl stop mariadb end
systemctl stop rabbitmq-server begin
Failed to stop rabbitmq-server.service: Access denied
See system logs and 'systemctl status rabbitmq-server.service' for details.
Failed to get load state of rabbitmq-server.service: Access denied
systemctl stop rabbitmq-server end
systemctl stop firewalld beging
systemctl stop firewalld end
kill all device manager service
Failed to stop rabbitmq-server.service: Access denied
See system logs and 'systemctl status rabbitmq-server.service' for details.
Failed to get load state of rabbitmq-server.service: Access denied
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
/core/ dirctory exit
/var/log/yealink// dirctory not exit,create it
/var/log/yealink/common/ dirctory not exit,create it
/var/log/yealink/dm/ dirctory not exit,create it
/var/log/yealink/dm//tomcat_dm/ dirctory not exit,create it
/var/log/yealink/common//redis/ dirctory not exit,create it
/var/log/yealink/common//mariadb/ dirctory not exit,create it
/usr/local/yealink/ dirctory not exit,create it
/usr/local/yealink/common/ dirctory not exit,create it
/usr/local/yealink/dm/ dirctory not exit,create it

=========================================================
Install Erlang
=========================================================

Loaded plugins: fastestmirror
Examining /usr/local/yealink/common//rabbitmq/erlang-20.3-1.el7.centos.x86_64.rpm: erlang-20.3-1.el7.centos.x86_64
Marking /usr/local/yealink/common//rabbitmq/erlang-20.3-1.el7.centos.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package erlang.x86_64 0:20.3-1.el7.centos will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================​================================================================================​================================================================================​=============================================================================
Package                                                             Arch                                                                Version                                                                         Repository                                                                                     Size
================================================================================​================================================================================​================================================================================​=============================================================================
Installing:
erlang                                                              x86_64                                                              20.3-1.el7.centos                                                               /erlang-20.3-1.el7.centos.x86_64                                                               31 M

Transaction Summary
================================================================================​================================================================================​================================================================================​=============================================================================
Install  1 Package

Total size: 31 M
Installed size: 31 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : erlang-20.3-1.el7.centos.x86_64                                                                                                                                                                                                                                                                           1/1
  Verifying  : erlang-20.3-1.el7.centos.x86_64                                                                                                                                                                                                                                                                           1/1

Installed:
  erlang.x86_64 0:20.3-1.el7.centos

Complete!

=========================================================
Install Rabbitmq
=========================================================

Loaded plugins: fastestmirror
Examining /usr/local/yealink/common//rabbitmq/rabbitmq-server-3.7.4-1.el7.noarch.rpm: rabbitmq-server-3.7.4-1.el7.noarch
Marking /usr/local/yealink/common//rabbitmq/rabbitmq-server-3.7.4-1.el7.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package rabbitmq-server.noarch 0:3.7.4-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================​================================================================================​================================================================================​=============================================================================
Package                                                                    Arch                                                              Version                                                                   Repository                                                                                      Size
================================================================================​================================================================================​================================================================================​=============================================================================
Installing:
rabbitmq-server                                                            noarch                                                            3.7.4-1.el7                                                               /rabbitmq-server-3.7.4-1.el7.noarch                                                             13 M

Transaction Summary
================================================================================​================================================================================​================================================================================​=============================================================================
Install  1 Package

Total size: 13 M
Installed size: 13 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : rabbitmq-server-3.7.4-1.el7.noarch                                                                                                                                                                                                                                                                        1/1
  Verifying  : rabbitmq-server-3.7.4-1.el7.noarch                                                                                                                                                                                                                                                                        1/1

Installed:
  rabbitmq-server.noarch 0:3.7.4-1.el7

Complete!

=========================================================
Install JDK
=========================================================


=========================================================
Install Tcp-server
=========================================================


=========================================================
Install MariaDB
=========================================================

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.sfo12.us.leaseweb.net
* extras: mirror.tocici.com
* updates: centos.s.uw.edu
Package libaio-0.3.109-13.el7.x86_64 already installed and latest version
Nothing to do

=========================================================
Install Redis
=========================================================


=========================================================
Install WEB Server
=========================================================


=========================================================
WEB context
=========================================================


=========================================================
Setup Environment
=========================================================

groupadd: group 'mysql' already exists
useradd: user 'mysql' already exists
Installing MariaDB/MySQL system tables in '/usr/local/yealink/common/mariadb/data' ...
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
To do so, start the server, then issue the following commands:

'./bin/mysqladmin' -u root password 'new-password'
'./bin/mysqladmin' -u root -h ydm.dragonfireservices.net password 'new-password'

Alternatively you can run:
'./bin/mysql_secure_installation'

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the MariaDB Knowledgebase at http://mariadb.com/kb or the
MySQL manual for more instructions.

You can start the MariaDB daemon with:
cd '.' ; ./bin/mysqld_safe --datadir='/usr/local/yealink/common/mariadb/data'

You can test the MariaDB daemon with mysql-test-run.pl
cd './mysql-test' ; perl mysql-test-run.pl

Please report any problems at http://mariadb.org/jira

The latest information about MariaDB is available at http://mariadb.org/.
You can find additional information about the MySQL part at:
http://dev.mysql.com
Consider joining MariaDB's strong and vibrant community:
https://mariadb.org/get-involved/

mkdir: cannot create directory ‘/var/lib/mysql’: File exists

=========================================================
Install systemd service
=========================================================


=========================================================
Install server version
=========================================================


=========================================================
start_service
=========================================================

systemctl start rabbitmq-server begin
systemctl start rabbitmq-server end
Adding user "yealink" ...
User "yealink" already exists
Setting tags for user "yealink" to [administrator] ...
Setting permissions for user "yealink" in vhost "/" ...
systemctl start mariadb begin
systemctl start mariadb end
systemctl start redis begin
systemctl start redis end
systemctl start tcp-server begin
systemctl start tcp-server end

=========================================================
enable_service
=========================================================

enable all device manager service
systemctl enable rabbitmq-server begin
Created symlink from /etc/systemd/system/multi-user.target.wants/rabbitmq-server.service to /usr/lib/systemd/system/rabbitmq-server.service.
systemctl enable rabbitmq-server end
systemctl enable mariadb begin
Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service.
systemctl enable mariadb end
systemctl enable redis begin
Created symlink from /etc/systemd/system/multi-user.target.wants/redis.service to /usr/lib/systemd/system/redis.service.
systemctl enable redis end
systemctl enable tomcat_dm begin
Created symlink from /etc/systemd/system/multi-user.target.wants/tomcat_dm.service to /usr/lib/systemd/system/tomcat_dm.service.
systemctl enable tomcat_dm end
systemctl enable tcp-server begin
Created symlink from /etc/systemd/system/multi-user.target.wants/tcp-server.service to /usr/lib/systemd/system/tcp-server.service.
systemctl enable tcp-server end

=========================================================
Config databases
=========================================================

mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
systemctl start tomcat_dm begin
systemctl start tomcat_dm end
mv: cannot stat ‘/home/jonathan.martinez/dm_install/script/clear_cache.sh’: No such file or directory

=========================================================
Install Success!!!
=========================================================
I get the same thing on a fresh VM of centos 7.

I did try to parse through the install scripts and verify the install steps,

Ran a couple of the mysql commands from the scripts manually with the proper credentials, ( yealink's script set's the MySQL pass to be "media" using root as the user ) to see if that re-initialized/fixed it. No love.

Tailing a couple of the logs, there are errors, But nothing I can determine how to fix myself.

Code:
[noc@yealink log]$ tail -f IPP_web_admin_log
        at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156)
        at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:109)
        at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:83)
        at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSessio​n.java:148)
        at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSessio​n.java:141)
        at sun.reflect.GeneratedMethodAccessor99.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav​a:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTem​plate.java:434)
        ... 35 common frames omitted
For T4S SFB firmware which compatible with YDMP, you need update to 66.9.0.45.
You can get the firmware from the link below.
Link: http://sfyms.yealink.com/?ShareToken=C6C...C11A2EEF14
Reference URL's