Api ScriptExecute - fails to run

Patrick McAndrew's Avatar

Patrick McAndrew

22 Oct, 2015 02:35 PM

ScriptID: 8404
FarmRoleId: 59274

Api Result:

{
          'Result' => '1',
          'TransactionID' => 'db4b513d-3933-4d2a-8b53-e0a10db81865'
        };

Scalr script has not changed and used to work fine.

Running script via website works.

  1. Support Staff 1 Posted by Vitaliy Demidov on 22 Oct, 2015 03:04 PM

    Vitaliy Demidov's Avatar

    Hi Patrick,
    Could you provide me with the full request you send? Do you set all required parameters for the ScriptExecute API method?

    Cheers,
    Vitaliy

  2. 2 Posted by Patrick McAndre... on 22 Oct, 2015 03:06 PM

    Patrick McAndrew's Avatar

    Nothing has changed on our end for at least a year. Presumably the response should be a failure if it's not going to work.

      my $data = $scalr->api('ScriptExecute',
                { Async => 1,
                 FarmID => $farmId,
                 FarmRoleID => $farmRoleID,
                 ScriptID => $scriptID,
                "ConfigVariables[alert_email]" => $alert_email,
                "ConfigVariables[do_migration]" => $run_migration,
                "ConfigVariables[base_dir]" => $baseDir,
                "ConfigVariables[delete_vendor_folders]"=> $delete_vendor,
                "ConfigVariables[environment]" => $environment,
                "ConfigVariables[ignore_lockfile]" => $ignore_lock,
                "ConfigVariables[git_branch_or_blank_for_master]" => $branch,
                "ConfigVariables[localhost_port_blank_for_80_default]" => $port,
                "ConfigVariables[notify_jenkins]" => $notifyJenkins,
                "ConfigVariables[number_releases_to_keep_default_5]" => $num_releases,
                "ConfigVariables[skip_cache_warmup_non_production_only]"=> 0,
                 Debug => 1,
                 Timeout => $timeout,
                 });

  3. Support Staff 3 Posted by Vitaliy Demidov on 22 Oct, 2015 03:11 PM

    Vitaliy Demidov's Avatar

    Patrick,
    Could you check it now?

    Vitaliy

  4. 4 Posted by Patrick McAndre... on 22 Oct, 2015 03:20 PM

    Patrick McAndrew's Avatar

    That one is working now, thanks Vitality. Just checking another one that might be affected.

  5. 5 Posted by Patrick McAndre... on 22 Oct, 2015 03:47 PM

    Patrick McAndrew's Avatar

    looks ok

  6. Patrick McAndrew closed this discussion on 22 Oct, 2015 03:47 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

02 Jul, 2019 07:54 PM
07 Jun, 2019 07:12 PM
02 May, 2019 04:04 PM
28 Mar, 2019 05:24 PM
22 Feb, 2019 08:11 PM