Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
zeynepcicekli
Contributor
Contributor

Max retries reached (0) Error

Hi everyone, 

I had previously created an app that was working fine. However, my client mentioned receiving a 'failed' notification, and when I checked the system, I also saw that it was marked as 'failed.' I tried the suggestions mentioned in forums (regarding engine, schedule, etc.), but I couldn't find a solution. Additionally, the 'download script log' button appears to be unavailable. Can you please help me?

4 Replies
marcus_sommer

I think there was no load executed else the task was finished before because there were not all requirements fulfilled to run the load, like too much workload of CPU and/or RAM on the machine or too many tasks running in parallel or something similar. In such cases the tasks will be queued but not endless else in for n attempts in n times. There are various settings within the different configurations. 

zeynepcicekli
Contributor
Contributor
Author

Thank you for reply. Do you have any suggestions?How can I fix it? 

marcus_sommer

If it happens just occasionally you may do nothing. If it happens more often you should take a closer look on monitoring the environment - when does it happens? And which other tasks and/or user-interactions were running in parallel? If you detect the reason you may adjust the time-frames and/or the order in which tasks-chains are performed and/or optimizing the loads and/or enabling more resources and rather the last consideration should go to adjust the various default-settings of the services because they are quite well balanced for stability and performance.

Anil_Babu_Samineni

There are different ways that i have experience before.

1. Make sure during this time if any repository service from central node is down?

2. Change in Engine with scheduler service from Log to Debug

And once again run the task and go to : C:\ProgramData\Qlik\Sense\Log\Engine\Trace\ServerName_System_Engine.txt
 
If you find this error,
Your service running account ExtendedException: Type '1013' thrown in file 'C:\Jws\engine-common-ws\src\AppObject\src\AppSerializer.cpp' in function '`anonymous-namespace'::AddScriptObject' on line '256'. Message: 'Unknown error' and additional debug info: 'Reload failed! AppScript is not yet available'
 
First part, Go to PGADMIN and run this from QSR
select * From public."AppObjects"

where "App_ID"='Your AppID' and
"ObjectType" in ('app_appscript', 'LoadModel')

 
If ObjectType not finding for "app_appscript" it means, There is somehow an object missed with this object type during publishing and replace
 
Please just run these two queries
1) SELECT * FROM "Apps" WHERE "ID" NOT IN
(SELECT DISTINCT "App_ID" FROM "AppObjects" WHERE "ObjectType" = 'app_appscript');
 
2) SELECT x."App_ID", x."EngineObjectId", x."Owner_ID", '{"qOperation": 2, "qItemID": "' || x."ID"::"varchar" || '"}'
FROM "AppObjects" x , (SELECT ao."App_ID", "EngineObjectId", Max(ao."CreatedDate") maxDate FROM "Apps" app,"AppObjects" ao WHERE 1 = 1 AND ao."App_ID" = app."ID" GROUP BY ao."App_ID", "EngineObjectId" HAVING count(*) > 1) as tmp WHERE x."App_ID" = tmp."App_ID" AND x."EngineObjectId" = tmp."EngineObjectId" AND x."EngineObjectId" != 'LoadModel' AND x."EngineObjectId" != 'qvapp_appscript' AND x."EngineObjectId" != 'app_appscript' ORDER BY x."App_ID", x."EngineObjectId" ;
 
As a workaround, We can implement this
CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; INSERT INTO "AppObjects" ("ID", "EngineObjectType", "Attributes", "ObjectType", "PublishTime", "Published", "Approved", "SourceObject", "Name", "EngineObjectId", "ContentHash", "Size", "CreatedDate", "ModifiedDate", "ModifiedByUserName", "App_ID", "File_ID", "Owner_ID", "DraftObject", "Description", "AppObjectBlobId") VALUES (uuid_generate_v4(), '', '', 'app_appscript', timezone('utc', now()), true, true, '', '', 'qvapp_appscript', '', -1, timezone('utc', now()), timezone('utc', now()), ' Your service running account ', '5486ce52-96a9-4df0-8b77-8c24d9a34f17', null, '61f0798d-fc8f-4cce-b7d1-169c7769a7fb', '', '', '')
 
// Here, First ID is app and second ID is user ID
Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful