Backup Issue

Moderator: crythias

Locked
Mahesh
Znuny newbie
Posts: 46
Joined: 13 Jan 2014, 09:42
Znuny Version: 3.1.00
Real Name: Mahesh
Company: vc

Backup Issue

Post by Mahesh »

Hello,

I am getting below error while trying to run backup.pl --

Error message is --- "Dump MySQL rdbms ... mysqldump: Error 2020: Got packet bigger than 'max_allowed_packet' bytes when dumping table `ar ticle_plain` at row: 652"

My OS is CentOS 64bit and I am using mysql database. The OTRS version is -- 4.01.11

Thanks
Mahesh
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Backup Issue

Post by RStraub »

Do you remember when you installed how it said that you need a max_allowed_package_size for the mysql config?

The same is needed for mysql-dump (which is the same command, but under a different tag).

Check your /etc/mysql/my.cnf and make sure that under the [mysql] AND [mysqldump] theres a line like this:
max_allowed_packet = 20M
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
Mahesh
Znuny newbie
Posts: 46
Joined: 13 Jan 2014, 09:42
Znuny Version: 3.1.00
Real Name: Mahesh
Company: vc

Re: Backup Issue

Post by Mahesh »

This is already defined. My location is /etc/my.cnf.

The value currently is --- max_allowed_packet=102400M

Any further ideas....
root
Administrator
Posts: 4253
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Backup Issue

Post by root »

And you're sure the you specified this value under the [mysqld] and [mysqldump] section?
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Mahesh
Znuny newbie
Posts: 46
Joined: 13 Jan 2014, 09:42
Znuny Version: 3.1.00
Real Name: Mahesh
Company: vc

Re: Backup Issue

Post by Mahesh »

Here is the my.cnf --

Let me know if i have to add some lines to it.
--------------------------
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=root
max_allowed_packet=102400M
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

net_buffer_length=100M
#query_cache_size=100M

_____________________________________
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Backup Issue

Post by RStraub »

yeah, nothing regarding the [mysqldump] part :)
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
Mahesh
Znuny newbie
Posts: 46
Joined: 13 Jan 2014, 09:42
Znuny Version: 3.1.00
Real Name: Mahesh
Company: vc

Re: Backup Issue

Post by Mahesh »

I added it and its working fine now. Thanks ...
Giulio Soleni
Znuny wizard
Posts: 392
Joined: 30 Dec 2010, 14:35
Znuny Version: 6.0.x and 5.0.x
Real Name: Giulio Soleni
Company: IKS srl

Re: Backup Issue

Post by Giulio Soleni »

Mahesh wrote:Error message is --- "Dump MySQL rdbms ... mysqldump: Error 2020: Got packet bigger than 'max_allowed_packet' bytes when dumping table `ar ticle_plain` at row: 652"
By the way ... not a good idea in my humble opinion, to store the articles within the database, expecially if you have many tickets to manage.
It would be better to store them in the filesystem.
To do so, edit config settings in Ticket -> Core::Ticket
Ticket::StorageModule = ArticleStorageFS

The only drawback is that searching for attachment names is not supported when "FS" is used.
OTRS 6.0.x on CentOS 7.x with MariaDB 10.2.x database connected to an Active Directory for Agents and Customers.
ITSM and FAQ modules installed.
Locked