Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
The content you are looking for has been archived. View related content below.
Dec 16, 2025 6:23:47 AM
Apr 1, 2020 1:00:03 PM
A Qlik Replicate task (or service) crashes when it encounters a critical error and the Operating System (OS) steps in and immediately terminates the task (or service). As such no cleanup is done and the Replicate log file (task or service) immediately ends without the usual stopping message, e.g.,
00001650: 2019-01-14T07:42:40 [AT_GLOBAL ]I: Closing log file at Mon Jan 14 07:42:40 2019 (at_logger.c:2436)
Additionally, the OS will log the crash in its own log file. On Windows, you can view the information from the OS in the Windows Event Viewer applet (Event ID 1001 on repctl.exe). On Linux, the location and method to view it depend on the system configuration. If necessary, ask the Linux Admin.
The basic idea of what needs to be done after a Replicate crash is the same whether Replicate is running on Windows or Linux. You need to get a crash dump file from the OS and match it with a Replicate log file. Ideally, you want a log file with the logger module set to Verbose where the crash occurs, but this may not be possible. Replicate core/crash dump files can be rather large, 6 GB or larger. Make sure the disk/partition where the file(s) will be written has enough free space. In general, it is good practice NOT to use the system disk because if it gets filled up, the machine will become unstable.
Capturing
Example
00005408: 2020-03-06T13:55:36 [AT_GLOBAL ]I: Task Server Log - SQL_Test (V6.5.0.423 USREM-LOV.qliktech.com Microsoft Windows 8 Enterprise Edition (build 9200) 64-bit, PID: 6812) started at Fri Mar 06 13:55:36 2020 (at_logger.c:2654)
Reading
Capturing
ulimit -culimit -c unlimitedsysctl kernel.core_patternsysctl -w kernel.core_pattern=/tmp/%e_%p.dmpSince version 2.4, Linux has also provided a more primitive method of controlling the name of the core dump file. If the kernel.core_uses_pid sysctl variable contains the value 0, then a core dump file is simply named core. If this file contains a nonzero value, then the core dump file includes the process ID in a name of the form core.PID.
Since Linux 3.6, if the sysctl fs.suid_dumpable variable is set to 2 ("suid‐safe"), the pattern must be either an absolute pathname (starting with a leading '/' character) or a pipe.
Some Linux VM environments will require the following to enable the core dump:
- Alter “/etc/abrt/abrt-action-save-package-data.conf” to change to OpenGPGCheck = no
- Then in site_arep_login.sh set the following:
# enter site specific settings here
ulimit -c unlimited
export AREP_CRASH_DUMP_TYPE=FULL- Systemctl restart areplicate so the ulimit is changed for the attunity user.
- Cause the crash
- The core dump goes to /var/lib/systemd/coredump
If possible, you will want to have the PID in the core dump file name since that is critical in finding the right Replicate log file. Use the -w option of the sysctl command to change the value of any if the previously mentioned variables.
Reading
To analyze a core file you will need the gdb program. Since Replicate is not compiled and linked with debug enabled the only thing you'll be able to get from gdb is a stack backtrace with the bt command. If you can great. The backtrace contains a list of the function names that were open at the time of the crash. The names may give Customer Support (or R&D) an idea of which logger to set to Verbose and reproduce the problem to get a Replicate log file with more information. If not, that's fine. Just attach the core dump files you have along with the corresponding Replicate log files. (You get the Replicate log files in Linux the same way as in Windows - by matching the PID of the first line in the Replicate log file with the PID in the core dump file name.)
In addition, please make sure that TRACE ON DEMAND is not turned on when collecting VERBOSE logs for crashes. Make sure that the option "Store trace/verbose logging in memory, but if an error occurs write to the logs" is not enabled.