https://www.activepieces.com logo
@Mo ๐Ÿ‡ต๐Ÿ‡ธ @Abdul (Viva Palestina)โฃ
# ๐Ÿถ๏ฝœgeneral
m
@Mo @Abdul (Viva-Palestina)๐Ÿ’” Hi, I encountered some issues I am self hosting activepieces on version 0.66.6. Then one of my flows keeps failing at the get storage piece step, but the log doesn't show any useful information. The error type is Internal Error. I did find this error in the logs: {"statusCode":500,"error":"Internal Server Error","message":"Missing lock for job K8XFs9gtYLoxMsQ1BTqrX. moveToDelayed"} The flow processing is also very slow โ€” many of my executions are getting blocked. Also, the number of workers is incorrect โ€” it's clearly fewer than the maximum number I configured. https://cdn.discordapp.com/attachments/1053778461275201576/1400456011432722522/image.png?ex=688cb3cc&is=688b624c&hm=d1fd8ab1b9a8d0c0d505c2b161e3ce571cc662438de117e8e276ae1e941b986f&
Did you release any changes around five to seven hours ago? The issue started appearing suddenly around that time.
a
Not really no.
can you check your redis queues for anything suspicious: https://www.activepieces.com/docs/handbook/engineering/playbooks/bullboard
m
so many delayed jobs. caused by failures in retrieving values via get piece or failures in returning results from subflows. Is there anything I can try to fix this? This is very urgent๏ผ https://cdn.discordapp.com/attachments/1400456011675861014/1400531132684173574/image.png?ex=688cf9c2&is=688ba842&hm=c5032808268fd7cfc5a997d04f6354fea6af4783d85ab56cd12d754af38eb558&
@Abdul (Viva-Palestina)๐Ÿ’” @Mo
a
We are investigating the issue currently and figuring it out, this will be fixed with the next release
For the time being, I would recommend you copy the subflow and paste it in the main flow
Then publish the flow again
And retry the run on the latest version of the flow
m
ok i will have a try. I'm extremely anxious right now โ€” my service is currently almost unusable.
a
Apologies for that
m
@Abdul (Viva-Palestina)๐Ÿ’” what about get piece? how to fix?
a
What get piece ?
You mean when installing it ?
m
Some flows do not use subflows, yet they still fail when retrieving values from a get piece, with the error being "Internal Error". How can I fix this?
a
Can you show me the step ?
With the error ?
a
Nor quite sure could be because your queues are full.
Not *
m
Is there no other way, like rolling back to a previous version?
I need to get the service back to normal as soon as possible.
a
If you duplicate your flows and delete the originals this will delete all the runs for your current flows
However you won't be able to retry your runs
Because they will be deleted
I am trying to think of a way to help you out
m
Can you expand the error
a
The last error is suspicious
m
I deleted ip
a
It shouldn't be directly https://api/v1
Oh
Okay
m
Do you have ap frontend url defined?
In the environment variable
m
yes
m
And is that ip same value?
Or was it 127.0.0.1?
Do you have AP EXECUTION MODE defined?
It says failed to fetch from store entries it seems worker cannot reach that url which is in the app
๐Ÿค”
m
not same I have one app instance and two worker instances. The AP_FRONTEND_URL for the worker instances is configured with the internal IP of the app instance. The app instance is configured with the public IP.
m
And the url in the logs is the public one?
m
internal one
m
And is it reachable from worker? Can you curl it from inside worker container?
Or pod
m
Not all executions failed โ€” some of them succeeded.
yes. It worked for a long time.
m
Anything special about failed flows? Storage/ subflow pieces?
m
nothing special. All caused by failures in retrieving values via get piece or failures in returning results from subflows.
m
So storage and subflow piece?
m
yes
The issue suddenly started about ten hours ago, with a large number of delays. The queue kept growing over time. After the problem appeared, I tried upgrading the version from 0.62.0 to 0.66.0, but the issue still persists.
m
So it appears in 0.62.0? So it not recent issue
Can you give us some minimal flow to reproduce?
Can you reproduce on cloud or itโ€™s only in self hosting?
I canโ€™t see delayed flows in our side
๐Ÿค”๐Ÿค”
m
I am self hosting
So there's really no solution at all?
m
I canโ€™t reproduce
If you can help us with that would be great
I am not sure if itโ€™s infra issue
An alternative try to chnage worker to app and worker and check if it works
We can debug from there
m
Can the app be deployed with multiple instances?
m
Yes
m
use same database?
how to deploy?
m
Yes just change environment variables
To same as app and deploy it with app and worker
m
ok, I will have a try
I add an app instance. It seems work. I will keep an eye on it.
Thank you guys!!!!!
oh no, it not work. Many executions are stuck in the Queued, Running, and Paused states. They seem to be frozen and are not progressing even after a long time.
@Mo any idea about this?
called subflow but no response
subflow succeeded but parent flow didn't get response so the execution was stucked
m
Did you try to upgrade to 0.66.6?
I just noticed you said 0.66.0
Also is there any delayed jobs?
m
yes
i am self host 0.66.6, the latest version
no delayed jobs but Queued, Running, and Paused jobs
After the issue occurred yesterday, I reduced the load โ€” it's much lower than before. Just now, I slightly increased the load (still lower than it was before), but the delay issue still persists. If I increase it further, the delays will definitely get worse. I believe there is still something wrong somewhere.
There's one more issue โ€” after upgrading to 0.66.6, the Subflow is still stuck at version 0.1.4. Do I need to manually recreate all the Call Subflow pieces, Subflow Response pieces, and Subflow Triggers to use the latest version? I have a lot of these pieces โ€” is there an easier way?
Does the latest version fix the issue where a subflow executes successfully but fails to return a callback?
Hi is there any update about the issue?
@Mo
a
The team is currently restructuring how subflows work to get rid of all the bugs related to it
we will keep you updated once the new version is released with the fixes
m
@Abdul (Viva-Palestina)๐Ÿ’” I found a bug: In a newly created flow, I used a subflow (version 0.3.0). When the flow runs and reaches the subflow step, it triggers the wrong subflow โ€” not the one I selected, but the most recently published subflow instead.
a
@hazemadel can you please check this on your branch just so we make sure that this is also fixed ?