CLI ---- Configuration Issue: Bad Interpreter: No Such File Or Directory ("bin/bash" not found)

------------------------------------------------------------------------------------------------------------------------

  1. CLI version === atlassian-cli-3.0.0
  2. Environment
    • JIRA === v5.1.7
    • Unix via putty
    • Java === v1.6.0.12
  3. Command line causing problem
    • ./atlassian.sh
    • ./jira.sh
  4. Output of command using --version or -v option === N/A
  5. Stack trace from server logs if applicable === N/A

------------------------------------------------------------------------------------------------------------------------

>>> What I've done:

  • CLI client === installed
  • automation user account in JIRA === done with all rights
  • atlassian.sh file === configured
  • jira.sh file === configured

>>> Error message I'm receiving when running ./atlassian.sh

    • interpreter "bin/bash" not found
    • file link resolves to "/usr/bin/bash"
    • bash: ./atlassian.sh: bin/bash: bad interpreter: no such file or directory

------------------------------------------------------------------------------------------------------------------------

Can you recommend any guidance or help?

Thank you so much

1 answer

1 accepted

This widget could not be displayed.
Peter Koczan Atlassian Team Nov 20, 2012

Could you try changing the first line of the .sh

from: #!/bin/bash

to: #!/usr/bin/bash

and see if that helps?

or, as root:

ln -s /usr/bin/bash /bin/bash

Dear Peter --- thank you so much ---- it worked! I ran the simple command: ./atlassian.sh jira --action getSystemInfo ... and it returned the version perfectly.

THANK YOU!!!!!!!!!!!!!!!!

Wondering about a couple of other items:

  • I created the automation account using internal directory.
  • When attempting to add a comment via CLI, or even just get the issue details via CLI, I get the following errors:
    • com.atlassian.jira.rpc.exception.RemotePermissionException: No Permission To Perform Operation

I've given the automation account permission to do everything in every project.

Do you have any insights into this permission exception?

Thank you again!!!

Hi Peter --- quick addendum... I am able to use the --action getIssueList --project XXX

without any problems. When I attempt to use the --action getIssue --issue XXX-123

I receive the permission error...

Please let me know if it would be more appropriate to create a new Answers thread abou this. Thanks for your guidance and patience.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

124 views 2 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you