serokell / deploy-rs

A simple multi-profile Nix-flake deploy tool.
Other
1.22k stars 100 forks source link

Found argument '--profile-user' which wasn't expected, or isn't valid in this context #238

Open NoneTirex opened 9 months ago

NoneTirex commented 9 months ago

Hello, I didn't update server configuration recently. And today I got error while trying to deploy new configuration:

🚀 ℹ️ [deploy] [INFO] Creating activation waiter
error: Found argument '--profile-user' which wasn't expected, or isn't valid in this context

If you tried to supply `--profile-user` as a PATTERN use `-- --profile-user`

USAGE:
    activate activate [FLAGS] <closure> <profile-path> --confirm-timeout <confirm-timeout> --temp-path <temp-path>

For more information try --help

What actions do you recommend to prevent these types of situations from happening now and in the future?

carlossless commented 9 months ago

I had a similar issue occur recently. It turned out that I was using a different version of deploy-rs on the machine I was deploying from and the version of deploy-rs I was deploying to the machines (particularly the activate binary).

Making sure the versions were in sync fixed my problem.

Perhaps that's relevant to your issue also :v:

cpu commented 9 months ago

See also https://github.com/serokell/deploy-rs/issues/232