question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

An error was encountered while executing action link

See original GitHub issue

Here is my current install.conf.yaml file:

#!/usr/bin/env bash

- clean: ['~']

set -e

- link:
  ~/.tmux.conf: tmux.conf
  ~/.vim: vim/
  ~/.vimrc: vimrc
  ~/.zsh: zsh/
  ~/.zshrc: zshrc

- shell:
  - [git submodule update --init --recursive, Installing/updating submodules]

Here is my install script:

#!/usr/bin/env bash

CONFIG="install.conf.yaml"
DOTBOT_DIR="dotbot"

DOTBOT_BIN="bin/dotbot"
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

cd "${BASEDIR}"
git submodule update --init --recursive "${DOTBOT_DIR}"

"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "${@}"

Here is my output:

All targets have been cleaned
An error was encountered while executing action link
Action link not handled
Action ~/.zsh not handled
Action ~/.vimrc not handled
Action ~/.vim not handled
Action ~/.zshrc not handled
Action ~/.tmux.conf not handled
Installing/updating submodules [git submodule update --init --recursive]
All commands have been executed

==> Some tasks were not executed successfully

This happens no matter what. I have created and destroyed multiple vimrc, zshrc, etc. files, I have completely removed Dotbot and re-downloaded it, I have tried using JSON formatting. Nothing I seem to try will let me create the links. I’m not sure what the problem is at this point; any suggestions will be appreciated.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:21 (8 by maintainers)

github_iconTop GitHub Comments

5reactions
anishathalyecommented, Dec 24, 2014

I’m glad it’s working now. The issue is that the file represents an array, and the second element of that array is an object with the single mapping, link to an array of links. Written this way:

- link:
  ~/.vimrc: vim

It is interpreted as the following structure:

[
  {
    "link": null,
    "~/.vimrc": "vim"
  }
]

But what you want is this (4 spaces before the vimrc entry):

- link:
    ~/.vimrc: vim

Which is equivalent to:

[
  {
    "link": {
      "~/.vimrc": "vim"
    }
  }
]

Whitespace as part of syntax is kinda annoying, but YAML looks a lot nicer. It’s a tradeoff… And yeah, the JSON, with the right structure, should work.

And by the way, the .yaml file is not a bash script, so I’m not sure why there is a #!/usr/bin/env bash and set -e. The shebang should be treated as a YAML comment, so it’ll still work, but the set -e would cause problems…

2reactions
shawntoffelcommented, Sep 14, 2017

Encountered the same error message running on a windows 10 machine with python 2.7.13 and git shell (MINGW64).

$ ./install
All targets have been cleaned
An error was encountered while executing action link
Action link not handled

Upon further investigation the root cause of my issue was that git shell didn’t have sufficient permissions to create a symlink. Running git shell as admin resolved the issue. I also updated python to 3.x

Read more comments on GitHub >

github_iconTop Results From Across the Web

BUG: Html.ActionLink only works with "Home" controller as ...
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more ...
Read more >
An error occurred while executing action ... - Mendix Forum
Hi Arne,. Its seems that you Local database are different from your project Metadata. “ALTER TABLE "bag$gemeenten_taak" DROP CONSTRAINT ...
Read more >
Attempting to install homebrew through dotfile install config
I got it working by creating a new .zsh file, making it an executable, and running the homebrew install command from within the...
Read more >
Internal Engine Error (when VM is configured with cloud-init)
I was trying to make a clone of a VM but I got the following message "Error while executing action CloneVm: Internal Engine...
Read more >
5 Known Issues - Oracle Help Center
Bug: 29494264. Unable to Set up a Connection to an OpenLDAP Directory. When you ... Error while executing action: Cannot switch Host to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found