Copy process fails sometimes

Hi all!

Following the topic Programmatically copy a file from server A to server B, I have created a process, which using OttoFMS API, I copy a file from server A to B.

It all works well, apart from the fact that sometimes I get one of those 2 errors:

Error closing files: Local Admin API error: fetch failed; SocketError: other side closed; Path: /fmi/admin/api/v2/databases/39

OR from the API

500 - "{\"response\":{},\"messages\":[{\"code\":18000,\"text\":\"deployment is already in progress\"}]}"

but deployment is not in progress

Any clues?

That error with the Admin API probably means your Admin API is upset. You could try restarting it. If that does not work I have some changes in our next version which will do some retries on the file closing and opening and should catch that error.

For the other one, either you have a deployment running or your server got into a weird state. Either way a restart of OttoFMS should fix it.

-Kyle