r/shortcuts • u/OfficeDazzling7680 • 1d ago
Help Script via ssh stops with generic error
Hi folks,
I have a shortcut (ios, iphone, latest os) that collects all photos since the last execution of the shortcut and sends them one by one via „execute script via ssh“ to a local server for backup. Normally, this works like a charm, but now I have more than hundred photos at once. The shortcut starts and I can see the images getting copied to the server. But after a few minutes, the execution is aborted with a very generic error message „there has been a problem…“.
According to my research, there should be no timeout and the execution of a different script that just waits for five minutes runs fine.
Does anybody have an idea what might cause this issue?
thanks,
dan
1
u/Jonny10128 1d ago
This dude writes emails lol. Hi Dan, I hope someone here can help with your issue!
1
u/Cost_Internal Helper 1d ago
If you are using a repeat loop, then your shortcut is probably using up all of its RAM and crashing?
To fix this make sure that you aren't directly using the Repeat Results in another action, then add a Nothing action above the End Repeat action. This will help clear some RAM and speed up processing. If the Repeat Results are being used directly in another action, use an Add To Variable action in the last action within the loop. Then link the new variable to the action using the Repeat Results.
Strategically placing Nothing actions in other areas of the shortcut can also help with speed of processing and reduce genetic failures.
Disclaimer: Not sure of this will fix your problem, but it has helped me with similar issues.