#UGS CLI Error Codes

1 messages · Page 1 of 1 (latest)

prisma mortar
#

The CLI should return 0 for success, 1 for failure, and 2 for an unhandled exception, we'll be updating our docs to reflect this

#

So in practice any non-zero return value means you'll likely want to abort

warped marsh
prisma mortar
#

Had to ask someone on the team about that one... here's the response:

it means it didn't find any configuration to deploy...
for example:
ugs deploy <folder-with-economy-files> --services cloud-code-scripts
assuming the folder used above only has economy files it would return "No content deployed" bc it has been filtered to only deploy cloud code scripts
if it found any config to deploy, even if it had no change it would return as "updated" + 0 exit code

warped marsh
#

@prisma mortar omg, after the whole weekend I finally found the reason why I got "No content deployed".

It's not a reason you mentioned above, is it a bug?

I use MongoDB C# Driver in my Cloud Code Module (added via Nuget).
After I build my module, MongoDB produces a file called "libmongocrypt.so".

When I manually deleted this file before archiving the build, deployments started to work again.

What should I do to make MongoDB work with the Cloud Code Module?

prisma mortar
#

Hey @warped marsh, what version of the CLI are you using? Got some folks trying to figure out what's going on

prisma mortar
#

We're having trouble reproducing, would it be possible to get a minimal version of the code that reproduces the behavior?

warped marsh
prisma mortar
#

Thanks!

warped marsh
prisma mortar
#

We've got your code but haven't had a chance to poke around just yet, I'll keep you posted

feral monolith
warped marsh