Closes

Issue #23 resolved
Former user created an issue

Every time i try to run the script for the backup-jira-api-token.sh it will close after going through the script lines. I am new to working with scripts my self and could use some insight on how to resolve this issue. At the start of this week it was working but today when I tried to run it does nothing but close the cmd line. I have tried on a linux box and in the .bash terminal i have setup on a windows 10 machine.

Comments (7)

  1. Dario B

    The script did not change in the past months. So if it stopped working it may be the case that you changed it by mistake.

    However, I am not sure what you mean with “it will close after going through the script lines”. Does the script prints anything in output?

  2. Richard Maltese

    No the script does not output anything. Nor have i changed anything in the script. It was working for 2-3 weeks then when i went to run it would close after going through the lines then close the terminal.

  3. Dario B

    Hi @Richard Maltese ,

    As you can see:

    1. The script backup-jira-api-token.sh has not been modified since 2018‑08‑09
    2. When the script starts the first thing it does is to print “starting the script: “ followed by the date (line 27: echo "starting the script: $TODAY")

    Therefore:

    1. If the script worked before and it suddenly stopped something must have been changed on your side
    2. If it does not print anything in output there are chances the script is not even starting

    I have just tested the script locally and it works fine for me:

    $ ./backup-jira-api-token.sh 
    starting the script: 06-06-2019
    {"status":"InProgress","description":"Cloud Export task","message":"Preparing database for export (it may take up to 30 minutes)","progress":0}
    {"status":"InProgress","description":"Cloud Export task","message":"Preparing database for export (it may take up to 30 minutes)","progress":0}
    {"status":"InProgress","description":"Cloud Export task","message":"Exporting avatars","progress":25}
    {"status":"Success","description":"Cloud Export task","message":"Completed export","result":"export/download/?fileId=380717b9-08b6-438d-a671-011a5eacf73e","progress":100}
    File to download: https://xxxxxx.atlassian.net/plugins/servlet/export/download/?fileId=380717b9-08b6-438d-a671-011a5eacf73e
    

    I’d love to be able to help more here but there is not much I can do with the information provided so far.

  4. Log in to comment