FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Can't backup - admdump
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
Can't backup - admdump [message #187284] Tue, 09 May 2017 15:03 Go to next message
xupetas is currently offline  xupetas   Portugal
Messages: 3
Registered: March 2014
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
Hello All,

I've installed fudforum and now i was trying to do the backup via CLI using admdump.php and it fails miserably:

... backup WWW_ROOT_DISK/images/message_icons/ (0 MB)
... backup WWW_ROOT_DISK/adm/ (0.54 MB)
... backup WWW_ROOT_DISK/adm/style/ (0.03 MB)
Backup database tables:
PHP Warning: mysqli::query(): MySQL server has gone away in /mnt/netcore/appz/kb.net.xpto.com/datadir/include/theme/default/db.inc on line 110

Warning: mysqli::query(): MySQL server has gone away in /mnt/netcore/appz/kb.net.xpto.com/datadir/include/theme/default/db.inc on line 110
PHP Warning: mysqli::query(): Error reading result set's header in /mnt/netcore/appz/kb.net.xpto.com/datadir/include/theme/default/db.inc on line 110

Warning: mysqli::query(): Error reading result set's header in /mnt/netcore/appz/kb.net.xpto.com/datadir/include/theme/default/db.inc on line 110
PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 130968 bytes) in /mnt/netcore/appz/kb.net.xpto.com/datadir/include/theme/default/db.inc on line 54

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 130968 bytes) in /mnt/netcore/appz/kb.net.xpto.com/datadir/include/theme/default/db.inc on line 54

What have i tried:

Changed the php.ini settings:

cat /etc/php5/cli/php.ini| grep -i memory
; Maximum amount of memory a script may consume (128MB)
; http://php.net/memory-limit
memory_limit = 4096M

Changed the memory_limit inside adm/admdump.php:

# grep -ir memory_limit *
adm/admimport.php: @ini_set('memory_limit', '-1');
adm/admdump.php: @ini_set('memory_limit', '-1');
adm/consist.php: @ini_set('memory_limit', '128M');
adm/indexdb.php: @ini_set('memory_limit', '128M');
adm/compact.php: @ini_set('memory_limit', '128M');
adm/admgeoip.php: @ini_set('memory_limit', '256M');

What am i missing? Like i said, i run on a cli based system. Can anyone shed some light on the matter?

[Updated on: Tue, 09 May 2017 15:04]

Report message to a moderator

Re: Can't backup - admdump [message #187320 is a reply to message #187284] Fri, 28 July 2017 15:35 Go to previous message
naudefj is currently offline  naudefj   United States
Messages: 3613
Registered: December 2004
Karma: 16
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Unfortunately this is not a forum problem, but rather a database problem.

This link may help: https://stackoverflow.com/questions/10474922/error-2006-hy000-mysql-server- has-gone-away

Good luck.
Frank
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: The /e modifier is deprecated
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Aug 17 19:20:05 EDT 2017

Total time taken to generate the page: 0.01256 seconds