Backups no longer working

Use this forum if you have installed hMailServer and want to ask a question related to a production release of hMailServer. Before posting, please read the troubleshooting guide. A large part of all reported issues are already described in detail here.
Post Reply
User avatar
PCE|Christian
Normal user
Normal user
Posts: 56
Joined: 2015-02-12 18:32
Location: Germany
Contact:

Backups no longer working

Post by PCE|Christian » 2015-03-27 16:23

Hi everyone,

i have some problems with my local hmailserver. I would love to do a backup, but it won't work.

Here comes the log:

Code: Select all

2015-03-25 11:24:52.977	Backup started
2015-03-25 11:24:53.098	Loading backup settings....
2015-03-25 11:24:53.108	Backing up domains...
2015-03-25 11:24:53.113	Backing up account keith.eyeball@...
2015-03-25 11:24:53.138	Backing up account pcexakt@...
2015-03-25 11:24:53.155	Backing up account christian.weber@...
2015-03-25 11:24:53.243	Backing up account fax@...
2015-03-25 11:24:53.256	Backing up account info@...
2015-03-25 11:24:53.376	Backing up account paypal@...
2015-03-25 11:24:53.406	Backing up data directory...
After "Backing up data directory" nothing happens. I took a look at the backup folder, there are no new files. I restarted my complete server, but that did not help.

System informations:
Windows Server 2012 R2 Datacenter Edition
2x Intel Xeon E5335 2 GHz
16 Gigs of RAM
A nice little RAID5, and some other not relevant stuff.

Any ideas?

Regards, Christian
Regards, Christian

hMailserver 5.6-B2145 on Windows Server 2012 R2 Datacenter

User avatar
jimimaseye
Moderator
Moderator
Posts: 8172
Joined: 2011-09-08 17:48

Re: Backups no longer working

Post by jimimaseye » 2015-03-27 16:46

2 things:

1, do a DIAGNOSTIC and look at that. It has a line about "backup directory is writeable" or similar. What does it say? (post it here)
2, post a screen shot of the settings in BACKUP prior to you hitting START.


EDIT:

oh, and
3, WAIT!!! it does say "Backing up data directory..." there and that can take time depending on how big you current data directory is. And after it creates a copy of that data directoiry, it then compresses it with 7zip which is really slow. (9gb took 50 minutes on my box).

Best advice: watch the system process CPU to see if it is still running or not.
Last edited by jimimaseye on 2015-03-27 17:09, edited 1 time in total.
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

User avatar
PCE|Christian
Normal user
Normal user
Posts: 56
Joined: 2015-02-12 18:32
Location: Germany
Contact:

Re: Backups no longer working

Post by PCE|Christian » 2015-03-27 17:08

Here they come...!

Err...maybe not...getting the followiung error from you forum:

Code: Select all

Could not upload attachment to ./files/43351_a9e9f7c81598764d497b38cd063bcff6.
Anyway, here they are:

http://www.pc-exakt.de/hmail_1.JPG
http://www.pc-exakt.de/hmail_2.JPG
Regards, Christian

hMailserver 5.6-B2145 on Windows Server 2012 R2 Datacenter

User avatar
jimimaseye
Moderator
Moderator
Posts: 8172
Joined: 2011-09-08 17:48

Re: Backups no longer working

Post by jimimaseye » 2015-03-27 17:12

Christian, first see my point (3) above (I edited and added later). This is important.

Second: BEWARE! You have not ticked 'compress files' in your screenshot. YOU MUST! Otherwise you will not be able to RESTORE from this backup. (Dont ask why, it's too long to explain and frankly ridiculously contentious. Just accept what I am saying).
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

User avatar
PCE|Christian
Normal user
Normal user
Posts: 56
Joined: 2015-02-12 18:32
Location: Germany
Contact:

Re: Backups no longer working

Post by PCE|Christian » 2015-03-27 17:23

Ok, i will check compression. Just look at the date from the log, i only got about 3 gigs of mail, which would never two or three days to backup. Aftert hitting sthe backup button, my cpu has nothing to do. I will give it a try with compression, maybe that will fix the problem.
Regards, Christian

hMailserver 5.6-B2145 on Windows Server 2012 R2 Datacenter

User avatar
jimimaseye
Moderator
Moderator
Posts: 8172
Joined: 2011-09-08 17:48

Re: Backups no longer working

Post by jimimaseye » 2015-03-27 17:31

Ok, report back when you can.
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

User avatar
mattg
Moderator
Moderator
Posts: 20293
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Backups no longer working

Post by mattg » 2015-03-27 17:46

ALSO, I'd wait

That initial log just shows that the backup was still going
If it fails that logs , if it completes that log shows.
Either way the logs shows.

That backup was still going
(Watch Task Manager and you will see)
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

User avatar
PCE|Christian
Normal user
Normal user
Posts: 56
Joined: 2015-02-12 18:32
Location: Germany
Contact:

Re: Backups no longer working

Post by PCE|Christian » 2015-03-27 18:00

How many days/weeks should i wait? The last backup is dated at 2015-01-09, it was running since i restarted the server a few days ago and started another one. There is nothing running, i'm doing every sunday night a backup of my 3 TB Raid5 to an external HDD, that takes about 6-8 hours, and you will tell me i should wait a few months for backupping 3 gigs? Lol :wink: Something is not right, i will make a new backup later with compression on.
Regards, Christian

hMailserver 5.6-B2145 on Windows Server 2012 R2 Datacenter

User avatar
PCE|Christian
Normal user
Normal user
Posts: 56
Joined: 2015-02-12 18:32
Location: Germany
Contact:

Re: Backups no longer working

Post by PCE|Christian » 2015-03-27 19:03

Code: Select all

2015-03-27 17:30:54.921	Backing up data directory...
That's all again, no CPU usage, no new files/folders/actions in backup directory, nothing is happening.
Regards, Christian

hMailserver 5.6-B2145 on Windows Server 2012 R2 Datacenter

User avatar
jimimaseye
Moderator
Moderator
Posts: 8172
Joined: 2011-09-08 17:48

Re: Backups no longer working

Post by jimimaseye » 2015-03-27 21:49

Try doing some diagnostic tests:

1, do backup WITHOUT messages (just domains and settings - should be done in a second) - what happens?
2, AND/OR change the backup directory and point it to somewhere internal (rule out the EXternal HD).
3, (You using PROCESS EXPLORER to view individual process children?)
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

User avatar
mattg
Moderator
Moderator
Posts: 20293
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Backups no longer working

Post by mattg » 2015-03-28 01:20

ALSO, where is your Data directory?
What user does the hMailserver 'service' run under?

I'm guessing that you are running the backup from the GUI? (and not from a script)
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

User avatar
PCE|Christian
Normal user
Normal user
Posts: 56
Joined: 2015-02-12 18:32
Location: Germany
Contact:

Re: Backups no longer working

Post by PCE|Christian » 2015-03-28 04:10

The Data directory is on the same RAID as the Backup Directory. And yes, i manually click on backup because i did not read how to do it with scripts - i have not much time at the moment so this needs to wait a few weeks.
What user does the hMailserver 'service' run under?
Local System Account
Regards, Christian

hMailserver 5.6-B2145 on Windows Server 2012 R2 Datacenter

User avatar
jimimaseye
Moderator
Moderator
Posts: 8172
Joined: 2011-09-08 17:48

Re: Backups no longer working

Post by jimimaseye » 2015-03-30 10:41

Christian, I have just done a test by doing a full backup. I monitored the processes with process explorer.

During the "Backing up data directory..." process, it is the Hmailserver.exe process that you should see a slightly increased CPU (I mean in my case from 0.1% up to around 1.1% ish). In any case you if you can view the open files of the process (PROCESS EXPLORER from sysinternals allows you to do that) and you should be able to see the the ever-changing open files as it backups up to the Backup directory (prior to calling the zip command which will launch a 7za.exe subprocess taking 24% cpu).

Maybe you can look for this to determine if your backup really has 'stalled'.
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

User avatar
PCE|Christian
Normal user
Normal user
Posts: 56
Joined: 2015-02-12 18:32
Location: Germany
Contact:

Re: Backups no longer working

Post by PCE|Christian » 2015-03-30 15:50

Windows taskamanager shows me 0.1 - 0.3 % CPU usage from hmailserver. "Backup Data Directory" is now running since the 27th of March, nothing happens. I took a look in the backup directory, there are no changes/new files or folders, so i think i could guarantee that there is no action taking place. Is there any more detailled log?
Regards, Christian

hMailserver 5.6-B2145 on Windows Server 2012 R2 Datacenter

User avatar
jimimaseye
Moderator
Moderator
Posts: 8172
Joined: 2011-09-08 17:48

Re: Backups no longer working

Post by jimimaseye » 2015-03-30 16:14

Well, look, its a little mystery.

However, that backup shouldnt really be relied on and it is infinitely better if you create your own backup procedure. By doing so you will have the ability to include more data (including INI config files) and database dumps - all of which helps restoring easier., The internal backup doesnt do this and relies you to configure or reinstall these other things manually upon restore).

My suggestion is, although annoying, just forget about it for now and set about setting up a more personalised, comprehensive and reliable backup procedure of your own. (refer to the backup script I offered for guidelines if you need).
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

prisma
Senior user
Senior user
Posts: 310
Joined: 2010-07-09 13:16

Re: Backups no longer working

Post by prisma » 2015-03-31 12:04

jimimaseye wrote:(Dont ask why, it's too long to explain and frankly ridiculously contentious. Just accept what I am saying).
LOL, ROFL :lol:
jimimaseye wrote:However, that backup shouldnt really be relied on and it is infinitely better if you create your own backup procedure.
Sad. ... Hmmm, we're talking about the lack of a reliable build-in backup system, but has anybody ever ensured that martin knows about the problems? Would be quite fair, wouldn't it?

EDIT: Uuups just saw viewtopic.php?p=174088 . OK, he knows about a part of the problems...

Post Reply