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

Syntax error: redirection unexpected #507

Open
chadidi opened this issue Apr 19, 2021 · 0 comments
Open

Syntax error: redirection unexpected #507

chadidi opened this issue Apr 19, 2021 · 0 comments

Comments

@chadidi
Copy link

chadidi commented Apr 19, 2021

Describe the problem

kitchen converge stuck with this error!
image

RUNNING curl on another computer gives this response.
image


Software Version

  • Windows 10
  • ChefDK
ChefDK version: 4.13.3
Chef Infra Client version: 15.14.0
Chef InSpec version: 4.24.8
Test Kitchen version: 2.11.2
Foodcritic version: 16.3.0
Cookstyle version: 5.23.0

Replication Case

Stacktrace

```

do_download URL FILENAME

do_download() {
PATH=/opt/local/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
export PATH

echo "downloading $1"
echo " to file $2"

we try all of these until we get success.

perl, in particular may be present but LWP::Simple may not be installed

if exists wget; then
do_wget $1 $2 && return 0
fi

if exists curl; then
do_curl $1 $2 && return 0
fi

if exists fetch; then
do_fetch $1 $2 && return 0
fi

if exists perl; then
do_perl $1 $2 && return 0
fi

if exists python; then
do_python $1 $2 && return 0
fi

echo ">>>>>> wget, curl, fetch, perl or python not found on this instance."
return 16
}

      # Fix for https://github.com/test-kitchen/busser/issues/12
      if [ -h /usr/bin/ruby ]; then
          L=$(readlink -f /usr/bin/ruby)
          sudo -E rm /usr/bin/ruby
          sudo -E ln -s $L /usr/bin/ruby
      fi
        # install chef omnibus so that busser works as this is needed to run tests :(
        if [ ! -d "/opt/chef" ]
        then
          echo "-----> Installing Chef Omnibus to install busser to run tests"
          
          do_download https://www.chef.io/chef/install.sh /tmp/install.sh
          sudo -E sh /tmp/install.sh > /dev/null
        fi

]
E, [2021-04-18T23:34:00.520233 #12784] ERROR -- web-ubuntu-1604: ----------------------
E, [2021-04-18T23:34:00.520286 #12784] ERROR -- web-ubuntu-1604: ------Backtrace-------
E, [2021-04-18T23:34:00.520365 #12784] ERROR -- web-ubuntu-1604: C:/opscode/chefdk/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.8.0/lib/kitchen/provisioner/base.rb:95:in rescue in call' E, [2021-04-18T23:34:00.520418 #12784] ERROR -- web-ubuntu-1604: C:/opscode/chefdk/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.8.0/lib/kitchen/provisioner/base.rb:94:in call'
E, [2021-04-18T23:34:00.520470 #12784] ERROR -- web-ubuntu-1604: C:/opscode/chefdk/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.8.0/lib/kitchen/instance.rb:419:in block in converge_action' E, [2021-04-18T23:34:00.520522 #12784] ERROR -- web-ubuntu-1604: C:/opscode/chefdk/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.8.0/lib/kitchen/instance.rb:563:in synchronize_or_call'
E, [2021-04-18T23:34:00.520577 #12784] ERROR -- web-ubuntu-1604: C:/opscode/chefdk/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.8.0/lib/kitchen/instance.rb:524:in block in action' E, [2021-04-18T23:34:00.520630 #12784] ERROR -- web-ubuntu-1604: C:/opscode/chefdk/embedded/lib/ruby/2.6.0/benchmark.rb:293:in measure'
E, [2021-04-18T23:34:00.520682 #12784] ERROR -- web-ubuntu-1604: C:/opscode/chefdk/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.8.0/lib/kitchen/instance.rb:523:in action' E, [2021-04-18T23:34:00.520734 #12784] ERROR -- web-ubuntu-1604: C:/opscode/chefdk/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.8.0/lib/kitchen/instance.rb:414:in converge_action'
E, [2021-04-18T23:34:00.520785 #12784] ERROR -- web-ubuntu-1604: C:/opscode/chefdk/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.8.0/lib/kitchen/instance.rb:392:in block (2 levels) in transition_to' E, [2021-04-18T23:34:00.520837 #12784] ERROR -- web-ubuntu-1604: C:/opscode/chefdk/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.8.0/lib/kitchen/lifecycle_hooks.rb:44:in run_with_hooks'
E, [2021-04-18T23:34:00.520889 #12784] ERROR -- web-ubuntu-1604: C:/opscode/chefdk/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.8.0/lib/kitchen/instance.rb:391:in block in transition_to' E, [2021-04-18T23:34:00.520940 #12784] ERROR -- web-ubuntu-1604: C:/opscode/chefdk/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.8.0/lib/kitchen/instance.rb:390:in each'
E, [2021-04-18T23:34:00.520992 #12784] ERROR -- web-ubuntu-1604: C:/opscode/chefdk/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.8.0/lib/kitchen/instance.rb:390:in transition_to' E, [2021-04-18T23:34:00.521042 #12784] ERROR -- web-ubuntu-1604: C:/opscode/chefdk/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.8.0/lib/kitchen/instance.rb:139:in converge'
E, [2021-04-18T23:34:00.521093 #12784] ERROR -- web-ubuntu-1604: C:/opscode/chefdk/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.8.0/lib/kitchen/command.rb:195:in public_send' E, [2021-04-18T23:34:00.521144 #12784] ERROR -- web-ubuntu-1604: C:/opscode/chefdk/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.8.0/lib/kitchen/command.rb:195:in run_action_in_thread'
E, [2021-04-18T23:34:00.521195 #12784] ERROR -- web-ubuntu-1604: C:/opscode/chefdk/embedded/lib/ruby/gems/2.6.0/gems/test-kitchen-2.8.0/lib/kitchen/command.rb:166:in `block (2 levels) in run_action'
E, [2021-04-18T23:34:00.521247 #12784] ERROR -- web-ubuntu-1604: ----End Backtrace-----

</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant