Hmailserver crashing sporadically

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
marceloleaes
New user
New user
Posts: 25
Joined: 2018-06-19 03:12

Hmailserver crashing sporadically

Post by marceloleaes » 2018-07-05 13:55

I am facing a recurring problem of crashes in one of my installations.
Follows log and dump attached.

Thank you in advance for any help.

Windows Server 2016 Essentials
MySQL 5.7
5.6.7-B2425
Attachments
minidump_2018-07-05 015248_{E98392CF-C279-4711-80BB-CD3298F26663}.zip
(44.23 KiB) Downloaded 44 times
ERROR_hmailserver_2018-07-05.zip
(1.89 KiB) Downloaded 51 times

marceloleaes
New user
New user
Posts: 25
Joined: 2018-06-19 03:12

Re: Hmailserver crashing sporadically

Post by marceloleaes » 2018-07-05 15:58

dumps collected in the morning period
problem continues even after settings release the date folder in the antivirus and permissions check
Attachments
Logs.zip
(182.35 KiB) Downloaded 44 times

User avatar
Dravion
Senior user
Senior user
Posts: 1393
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: Hmailserver crashing sporadically

Post by Dravion » 2018-07-06 00:36

I checked your logs and hMailServer Crashdumps.

There are multiple Errors, but all comes down to a "bad allocation" Error. The other Errors are followups and caused by the "bad allocation" Error
in the first place.

This Error is RAM Memory related and has nothing to do with anything else. Its not possible to just change Systemsettings or Install/Reinstall hMailServer or even Install Windows freshky from scratch to solve this Problem, because its an RAM Module Hardware Error. Its normal that such an Error is caused mostly sporadicly because it occurs only under the condition that a random operation needs RAM Memoryblocks for executing some operation. The overall process of allocating and releasing and reallocating RAM Blocks are dynamically and not Linear. However: The Windows Kernel will shutdown a process causing this type of Error.

Solution: Test your RAM Modules with Memtest86+ and buy functioning replacement RAM Modules.

Tip: Allways TEST your RAM Modules to avoid bad surprises. Even brand new RAM Modules can be damaged because RAM Modules are rarely tested
at all (sad but true).So, if you install your new memory, dont assume anything is allright, allways run a few hours Memtest86+ to make sure your new Modules are really working.

There is no other Solution to solve this Problem. Its possible if you change something that the Error appears less but it will come back for sure until
your replace your faulty Hardware.

marceloleaes
New user
New user
Posts: 25
Joined: 2018-06-19 03:12

Re: Hmailserver crashing sporadically

Post by marceloleaes » 2018-07-06 02:20

Hi Dravion

Thanks for the remarks

This is a new Dell T330 server, however I will follow your advice and run the MEMtest

I made adjustments to the Hmail performance options and the problems stopped right now.

He was suspicious until the moment of the performance of the controller RAID that does not exceed of 40 MB / s in the recording and the reading varies a lot. I have an open call with Dell on this subject.

As soon as you run the memtest return with result

marceloleaes
New user
New user
Posts: 25
Joined: 2018-06-19 03:12

Re: Hmailserver crashing sporadically

Post by marceloleaes » 2018-07-16 00:46

Hello

I was able to run the memtest on the machine today as well as the Dell diagnostic tool.
The memory and all the hardware are OK, but the problems continue
What items should I take into consideration besides these?
Follow the latest dumps and logs collected as well as Memtest photo
índice.jpg
Attachments
Logs.zip
(468.81 KiB) Downloaded 47 times

palinka
Senior user
Senior user
Posts: 882
Joined: 2017-09-12 17:57

Re: Hmailserver crashing sporadically

Post by palinka » 2018-07-16 01:00

I believe "bad allocation" can also be hard disk related.

User avatar
Dravion
Senior user
Senior user
Posts: 1393
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: Hmailserver crashing sporadically

Post by Dravion » 2018-07-16 01:14

As far as i can see, only 2048 MBytes between 14 GBytes upto 16 GBytes was tested according to your Memtest86+ Screenshot.

How long was the memtest running in total?
It looks like it was only running 25 Minutes but for 16 GBytes a reliable test needs allmost 20h to provide a reliable assesment.

marceloleaes
New user
New user
Posts: 25
Joined: 2018-06-19 03:12

Re: Hmailserver crashing sporadically

Post by marceloleaes » 2018-07-16 01:27

I followed for 8 hours yesterday, I got the result today
I used the default option of mesmtest

User avatar
Dravion
Senior user
Senior user
Posts: 1393
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: Hmailserver crashing sporadically

Post by Dravion » 2018-07-16 10:36

Sounds legit.

Please download and let the HMSInfo scan some OS and hMailServer settings (hMailServer needs not to be running)
https://github.com/Dravion/HMSInfo/rele ... msinfo.exe

1) Download and Start hmsinfo.exe
2) Click Scan and then click Save to saving the results in a Logfile.

#Extra logfiles
1) Open a Windows Command prompt (you dont need a admin Command prompt)
2) type in the following commands, which will result in extra logfiles in your user folder (for example C:\users\youruser\file.log

wmic /output:%userprofile%\hms_ram_info.txt path Win32_PhysicalMemory get * /value
wmic /output:%userprofile%\hms_mainnoard_info.txt path Win32_BaseBoard get * /value
wmic /output:%userprofile%\hms_bios_info.txt path Win32_BIOS get * /value

3) Add the hmsinfo Logfile and hms_ram_info.tx and hms_mainnoard_info.txt and hms_bios_info.txt to a ZIP-Archive
4) In your next replay, append your Zip Archive with all 4 Logfiles to it

ps: Your regular hMailServer Logfiles and Crashdumps *.dmp files are verry old. Can you provide newer versions?

User avatar
Dravion
Senior user
Senior user
Posts: 1393
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: Hmailserver crashing sporadically

Post by Dravion » 2018-07-17 08:07

palinka wrote:
2018-07-16 01:00
I believe "bad allocation" can also be hard disk related.
Only throretically.
In the Windows Crashdumps you can exactly see which Functioncall results in this Error. Its the C++ new instruction which maps to Windows internal HeapAlloc() which interact with the CPU Memory Management Unit (MMU) to allocate a Memory Page of for the Virtual RAM Memory Pool.

As the name Virtual Memory says, its virtual and doesnt needs to be necessary mapped to RAM bc Memory Pages can reside in the PAGEFILE.SYS file which is trying to emulate real RAM Memory to increase the amount of Virtual Memory (a old trick from the past, when RAM Modules where verry expenssive).However: If a Harddisk Bad Sector or SSD Cell Failure is hitting pagefile.sys it could theoretically cause a Bad Allocation Error as well but its not verry likely.

However: In this case we have 16 GBytes of RAM and could simply turn.of the Pagedile.sys usage by Windows Memory Manager to elimate this potential Error source.

palinka
Senior user
Senior user
Posts: 882
Joined: 2017-09-12 17:57

Re: Hmailserver crashing sporadically

Post by palinka » 2018-07-17 11:34

Thanks for the explanation. Now it makes sense why I had BSOD with that error in the past, while the OP and others complaining here did not. In my case it was a HD (it was not on a HMS machine). And I do recall seeing something about pagefile in the error.

User avatar
aleMau5
New user
New user
Posts: 24
Joined: 2013-01-23 19:00

Re: Hmailserver crashing sporadically

Post by aleMau5 » 2018-07-18 17:50

I had Bad Allocation issues, until about two day ago that I switched to a x64 build.

marceloleaes
New user
New user
Posts: 25
Joined: 2018-06-19 03:12

Re: Hmailserver crashing sporadically

Post by marceloleaes » 2019-02-20 03:49

After changing to x64, did your problems disappear permanently or still continue?

User avatar
aleMau5
New user
New user
Posts: 24
Joined: 2013-01-23 19:00

Re: Hmailserver crashing sporadically

Post by aleMau5 » 2019-02-20 07:03

marceloleaes wrote:
2019-02-20 03:49
After changing to x64, did your problems disappear permanently or still continue?
They disappeared completely!

User avatar
Dravion
Senior user
Senior user
Posts: 1393
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: Hmailserver crashing sporadically

Post by Dravion » 2019-02-20 08:30

aleMau5 wrote:
2019-02-20 07:03
marceloleaes wrote:
2019-02-20 03:49
After changing to x64, did your problems disappear permanently or still continue?
They disappeared completely!

Can you say which 64-Bit Release do you use?

User avatar
aleMau5
New user
New user
Posts: 24
Joined: 2013-01-23 19:00

Re: Hmailserver crashing sporadically

Post by aleMau5 » 2019-02-25 23:31

Dravion wrote:
2019-02-20 08:30
aleMau5 wrote:
2019-02-20 07:03
marceloleaes wrote:
2019-02-20 03:49
After changing to x64, did your problems disappear permanently or still continue?
They disappeared completely!

Can you say which 64-Bit Release do you use?
5.6.7-B2426

User avatar
Dravion
Senior user
Senior user
Posts: 1393
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: Hmailserver crashing sporadically

Post by Dravion » 2019-02-26 00:49

Ok, its one of my Builds:

viewtopic.php?f=10&t=33576

Good to know that some Memory related issues doesnt occur on 64-Bit builds.

ps: Latest LTS Release is 2427 which supports. Only difference between LTS 2426 and 2427 is MS-SQL-Server 2008+SP4 upto
SQL-Server 2017 (Express/Standard and Enterprise) TLSv1.2. secure Connection Support. This addresses only hMailServer
Users running MS-SQL Server as Database instead of MySQL, MariaDB or PostgreSQL or MS-SQL-CE (the Builtin DB of hMailServer).

User avatar
aleMau5
New user
New user
Posts: 24
Joined: 2013-01-23 19:00

Re: Hmailserver crashing sporadically

Post by aleMau5 » 2019-03-06 09:13

Dravion wrote:
2019-02-26 00:49
Ok, its one of my Builds:

viewtopic.php?f=10&t=33576

Good to know that some Memory related issues doesnt occur on 64-Bit builds.

ps: Latest LTS Release is 2427 which supports. Only difference between LTS 2426 and 2427 is MS-SQL-Server 2008+SP4 upto
SQL-Server 2017 (Express/Standard and Enterprise) TLSv1.2. secure Connection Support. This addresses only hMailServer
Users running MS-SQL Server as Database instead of MySQL, MariaDB or PostgreSQL or MS-SQL-CE (the Builtin DB of hMailServer).
Thanks for saving me with that build! I'm currently running it with MySQL, and I'm scared of updating it, I don't want to break it again :lol: (But I guess I'll have to, at some point)

User avatar
Dravion
Senior user
Senior user
Posts: 1393
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: Hmailserver crashing sporadically

Post by Dravion » 2019-03-06 13:42

I think you on the secure side as long as you dont intermix my HCD and LTS Releases. LTS only gets Security fixes and and Bug fixes while HCD will bring new features and feature removals.

marceloleaes
New user
New user
Posts: 25
Joined: 2018-06-19 03:12

Re: Hmailserver crashing sporadically

Post by marceloleaes » 2019-03-06 21:15

Gentlemen,

Thanks for the help and comments.
I made a new installation and on other completely different hardware I have the same problems.
I send the logs of this attached installation.

I have already concluded that the problem is really in Hmail, the latest stable version available on the site.

Question:

Can I migrate to the x64 version of Dravion just by running the installer or am I going to have to do something else?
Because I have already exhausted any chance of being a problem in my environment that is generating these errors.
Attachments
Logs.zip
(854.25 KiB) Downloaded 20 times

User avatar
Dravion
Senior user
Senior user
Posts: 1393
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: Hmailserver crashing sporadically

Post by Dravion » 2019-03-06 23:22

I have checked update install from 32-Bit to 64-Bit. It will work because the update function is the same.
Until the Database version isnt changed by hMailServer official, this should work.

ps: I dont plan to change Table structure of the LTS Version in any shape or form, this will be done by
hMailServer HCD (which isnt ready right now, its a lot of work and rewriting the code).

But to make sure you on the safe side, just backup your hMailServer 32-Bit Installation Data
with the internal Backup system and run the 64-Bit hMailServer Setup over your existing 32-Bit
hMailServer Installation. You dont need to manually download and move libmysql.dll to you
hMailServer\bin folder, the correct libmysql.dll (64-Bit version) is allready part of the Installer now.

User avatar
aleMau5
New user
New user
Posts: 24
Joined: 2013-01-23 19:00

Re: Hmailserver crashing sporadically

Post by aleMau5 » 2019-03-09 05:59

Dravion wrote:
2019-03-06 23:22
I have checked update install from 32-Bit to 64-Bit. It will work because the update function is the same.
Until the Database version isnt changed by hMailServer official, this should work.

ps: I dont plan to change Table structure of the LTS Version in any shape or form, this will be done by
hMailServer HCD (which isnt ready right now, its a lot of work and rewriting the code).

But to make sure you on the safe side, just backup your hMailServer 32-Bit Installation Data
with the internal Backup system and run the 64-Bit hMailServer Setup over your existing 32-Bit
hMailServer Installation. You dont need to manually download and move libmysql.dll to you
hMailServer\bin folder, the correct libmysql.dll (64-Bit version) is allready part of the Installer now.
Oh, great! Good to know, I'll be updating soon then. Thank you very much! :D

Post Reply