Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running install-deadline-worker with a previous farm and fleet configured fails #308

Open
jusiskin opened this issue Apr 26, 2024 · 2 comments · May be fixed by #512
Open

Running install-deadline-worker with a previous farm and fleet configured fails #308

jusiskin opened this issue Apr 26, 2024 · 2 comments · May be fixed by #512
Labels
bug Something isn't working

Comments

@jusiskin
Copy link
Contributor

Problem

The install-deadline-worker command fails when specifying a --fleet-id and/or --farm-id that differ from the values in a pre-existing agent configuration file (e.g. /etc/amazon/deadline/worker.toml)

Reproduction steps

  1. Run the agent installer for one fleet:

    install-deadline-worker --farm-id farm-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa --fleet-id fleet-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    
  2. Re-run the agent installer for another fleet or farm:

    install-deadline-worker --farm-id farm-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa --fleet-id fleet-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
    

Expected behavior

The agent modifies the farm and fleet IDs in the configuration file

Actual behavior

The agent errors with:

farm_id = "farm-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
ERROR: Failed to configure fleet ID in /etc/amazon/deadline/worker.toml.
@jusiskin jusiskin added the bug Something isn't working label Apr 26, 2024
@jusiskin
Copy link
Contributor Author

You can work-around this issue by backing up and deleting/renaming the agent configuration file and re-running the install-deadline-worker command.

For example, on Linux:

# Rename old config file
mv /etc/amazon/deadline/worker.toml /etc/amazon/deadline/worker.toml.old

# Re-run installer
install-deadline-worker --farm-id farm-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa --fleet-id fleet-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb

On Windows:

REM Rename old config file
move %PROGRAMDATA%\Amazon\Deadline\Config\worker.toml %PROGRAMDATA%\Amazon\Deadline\Config\worker.toml.old

REM Re-run installer
install-deadline-worker --farm-id farm-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa --fleet-id fleet-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb

@jusiskin
Copy link
Contributor Author

PR #512 is up for review. Once merged and released it fixes this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant