Post deployment script didn't call "done", reverting

OttoFMS reports the following when trying to run a post-deployment script:

Post deployment script didn’t call “done”, reverting

I’m not seeing anything in the docs about how to call “done” from the post-deployment script: Post Deployment Scripts | OttoFMS.

Originally my post-deployment script didn’t exit with any specific result. I tried exiting with 0, but I still get the same error.

How should the post-deployment script be set up to resolve this error?

You are right, Sorry about that. We used to have an example file with a script in it that showed how to do it

Let me dig it up.

Sorry

Todd

Ok I am going to add this to the docs but here is an example file. It has some scripts that You can use as a model for how to tell OttoFMS that your script is done.

PostDeploymentScriptEx.fmp12 (272 KB)

BUT… if you don’t want the Deployment To Revert you can just leave the toggle off for “revert the deployment …” Like this.

Did you have that turned off? If you did then we may have a bug. Let us know.

Thanks

Todd

I rearranged the docs a bit and added the file there as well

Todd

2 Likes

Thanks for the quick response. I added the script from your example file, and it’s working as expected now.

Thank you also for the great tool and for making it available to the community for free.

In case anyone else is reading this and is wondering what happens to the “otto-pms-result.txt” file that the post deployment script creates in the Documents folder, OttoFMS seems to remove it automatically.

Glad that worked for you.

Yup OttoFMS is watching for that file. When it finds it, it reads it and then deletes it.

Thanks

Todd

1 Like

Thanks for asking this… just ran into the same thing, and was able to resolve it with this info.

Minor issue…the Raycast snippet isn’t working for me. I have other Raycast FM snippets that work. This one copies, but won’t paste into my script workspace.

Got it working by just manually adding the script steps outlined in that support doc.

Thanks for the report Shawn, I’ll take a look.

-Kyle

Hey Shawn,

Are you trying to paste it directly into the body of a script or into the sidebar on the left? It works for me if I paste it right into the list of scripts on the left side of the workspace.

-Kyle

Kyle, yes, that worked. I guess I missed that the snippet was example scripts, not script steps. I think the example right above the snippet link threw me.

Agreed, that is a bit confusing. I’ll see if we can get some more clarity in there about where to paste it.

-Kyle

1 Like