Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
1 registered (SteveS), 29 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 06/05/06
Posts: 105
Top Posters (30 Days)
Ruben 49
Gizmo 24
DennyP 24
Dunny 17
SteveS 14
AllenAyres 12
dbremer 10
drkknght00 9
SD 9
driv 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 1 of 2 1 2 >
Topic Options
#169069 - 11/25/06 08:35 PM [NOTABUG] backup failure
Okusi Offline
member
Registered: 06/05/06
Posts: 163
Loc: Jakarta, Indonesia
I just tried to backup my data files, and got this error about half-way through the procedure:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 3383773 bytes) in /home/www/jakchat/forums/admin/dodbbackup.php on line 157

any thoughts?


Edited by Rick (12/03/06 01:05 PM)
_________________________
Okusi Associates -- Indonesian business and management services
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#169070 - 11/25/06 08:40 PM Re: backup failure [Re: Okusi]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
Easy, your alotted memory from your server was completely used... You had used 8388608 bytes (8 megabytes) and the script tried to use 3383773 additional bytes (3.2270174 megabytes).

Your webhost would have to increase the php memory limit which would be doubtful in most cases (16mb is a nice round upgrade number to request).

Your best bet however wouild be to run backups from command line, they're much faster and don't rely on the php variables.
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#169071 - 11/25/06 08:43 PM Re: backup failure [Re: Gizmo]
Okusi Offline
member
Registered: 06/05/06
Posts: 163
Loc: Jakarta, Indonesia
thanks for that. how do run backups from the command line? (you mean the mysql command line i presume).
_________________________
Okusi Associates -- Indonesian business and management services
Top
#169073 - 11/25/06 08:52 PM Re: backup failure [Re: Okusi]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
Nope, I mean through an SSH or Telnet session using the mysqldump command:
Code:
mysqldump -uusername -ppassword database_name > database_name.sql


Whichever directory you issue the command from will be where your database_name.sql file will be created; additionally you can specify a path before database_name.sql.

How, if you have PHPMyAdmin you could create an archive (tar, tar.gz, .zip, etc) of yoru forums which will download much faster, but depending on the size of your forums I'm not sure if it'd time out or not going this route.
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#169085 - 11/25/06 10:41 PM Re: backup failure [Re: Gizmo]
Okusi Offline
member
Registered: 06/05/06
Posts: 163
Loc: Jakarta, Indonesia
i could not get database_name to work (i don't know the names of the databases, but i noticed an option for "all-databases" and i used that instead.

Code:
mysqldump -hhostname -uusername -ppassword --all-databases > mybackup.sql


this means, of course, that all the databases are in one file. does that matter??
_________________________
Okusi Associates -- Indonesian business and management services
Top
#169096 - 11/26/06 12:04 AM Re: backup failure [Re: Okusi]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
database name woudl be whatever your database name is; as I don't know your setup I just put "database name" in there... You can get the name of the database that UBB is using out of your configuration file...

As you can see fromt he ines i posted, you'd have to replace "username" "password" and "databasename" with the appropraite information; hostname shouldn't have to be used though since it'll by default try localhost.
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#169099 - 11/26/06 12:22 AM Re: backup failure [Re: Gizmo]
Okusi Offline
member
Registered: 06/05/06
Posts: 163
Loc: Jakarta, Indonesia
i tried without using hostname, but it didn't work for me on my system ... obviously my localhost is not the same as my mysql hostname.
_________________________
Okusi Associates -- Indonesian business and management services
Top
#169108 - 11/26/06 01:23 AM Re: backup failure [Re: Okusi]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
Originally Posted By: KuKuKaChu
i tried without using hostname, but it didn't work for me on my system ... obviously my localhost is not the same as my mysql hostname.
ahh, in that case your mysql username probably isn't set to accept connections from localhost (probably just the loopback address)

I hope that you got your backup built from the command line though
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#169110 - 11/26/06 01:26 AM Re: backup failure [Re: Gizmo]
Okusi Offline
member
Registered: 06/05/06
Posts: 163
Loc: Jakarta, Indonesia
Originally Posted By: Gizmo
I hope that you got your backup built from the command line though

yes, the command-line method worked just fine, and very fast!
_________________________
Okusi Associates -- Indonesian business and management services
Top
#169112 - 11/26/06 01:28 AM Re: backup failure [Re: Okusi]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
Originally Posted By: KuKuKaChu
Originally Posted By: Gizmo
I hope that you got your backup built from the command line though

yes, the command-line method worked just fine, and very fast!


lol indeed fast... generally though I woudln't recommend using the all-databases flag though, since i'tll backup every db you have access to (and on a missconfigured server you may snag crap you won't want or that aren't your db's), instead you shoudl specify the databases that you want specifically.
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
Page 1 of 2 1 2 >



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Ability to "like" individual posts (not Facebook "likes)
by doug
Yesterday at 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Custom forum permissions
by ntdoc
05/18/12 02:07 PM
Forum Stats
10489 Members
36 Forums
33840 Topics
181693 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image