Hi Dan,
process killed by SQL, without clearing all jobs, this worked.
The problem still remains with atom-worker, but different.
Now, after changing the SQL Mode, the import process overtakes the "... data truncated..." point and imports again a lot of archival nodes.
But, at a certain point, the job status goes to "Error".
The job "Full report" shows nothing usefull, only:
[info] [2022-10-26 09:19:51] Job 2777151 "arFileImportJob": Job started.
[info] [2022-10-26 09:19:51] Job 2777151 "arFileImportJob": Importing XML file: <omissis>.xml.
[info] [2022-10-26 09:19:51] Job 2777151 "arFileImportJob": Indexing imported records.
[info] [2022-10-26 09:19:51] Job 2777151 "arFileImportJob": Update type: import-as-new
[info] [2022-10-26 09:26:26] Job 2777151 "arFileImportJob": Exception:
At this point atom-worker is still up but, after about 9 minuts it fails apparently loosing the DB connection:
# systemctl status atom-worker
● atom-worker.service - AtoM worker
Loaded: loaded (/usr/lib/systemd/system/atom-worker.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2022-10-26 18:35:29 CEST; 28min ago
Process: 95758 ExecStop=/bin/kill -s TERM $MAINPID (code=exited, status=1/FAILURE)
Process: 97325 ExecStart=/opt/rh/rh-php72/root/bin/php -d memory_limit=-1 -d error_reporting="E_ALL" symfony jobs:worker (code=exited, status=1/FAILURE)
Main PID: 97325 (code=exited, status=1/FAILURE)
Oct 26 18:26:25 <omissis> php[97325]: Dictionary stack:
Oct 26 18:26:25 <omissis> php[97325]: --dict:958/1684(ro)(G)-- --dict:0/20(G)-- --dict:77/200(L)--
Oct 26 18:26:25 <omissis> php[97325]: Current allocation mode is local
Oct 26 18:26:25 <omissis> php[97325]: GPL Ghostscript 9.25: Unrecoverable error, exit code 1
Oct 26 18:26:25 <omissis> php[97325]: @ error/ghostscript-private.h/InvokeGhostscriptDelegate/171.
Oct 26 18:26:26 <omissis> php[97325]: 2022-10-26 09:26:26 > Exception:
Oct 26 18:35:28 <omissis> php[97325]: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
Oct 26 18:35:29 <omissis> systemd[1]: atom-worker.service: main process exited, code=exited, status=1/FAILURE
Oct 26 18:35:29 <omissis> systemd[1]: Unit atom-worker.service entered failed state.
Oct 26 18:35:29 <omissis> systemd[1]: atom-worker.service failed.
I noted lot of errors regarding "GPL Ghostscript" and this can be (I suppose) because the imported EAD mentions PDF files that are not really available to AtoM. Despite this, all archival nodes processed until this point are regularly visible in the AtoM interface (without PDFs, obvious).
Then you can see the declaration of "Exception", the EAD imports stops, the atom-worker service still resists for nine-ten minutes and in the end it definitely fails with the DB "gone away".
The DB is still up and running, available for all queries, and AtoM seems to be running without other problems (just to say that the DB is online).
What can I investigate?
Perhaps an excess of those Ghostscript-related errors can cause a similar problem (consider we are talking about an EAD file of more than 2MB)?
Thx, cheers