Closes
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)
-
-
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.
-
Hi @Richard Maltese ,
As you can see:
- The script backup-jira-api-token.sh has not been modified since 2018‑08‑09
- 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:
- If the script worked before and it suddenly stopped something must have been changed on your side
- 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.
-
- changed status to on hold
-
- changed status to open
-
- changed status to on hold
Waiting for more details. Putting on hold for the time being.
-
- changed status to resolved
- Log in to comment
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?