-
-
Notifications
You must be signed in to change notification settings - Fork 249
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
Download button for output files disappearing #602
Comments
Hi @SergeWielhouwer do you see any errors in the browser log, when it happens? |
Hello @bugy, thank you for your quick reply. For a successful run (Firefox). It looks like this (I've hid the left side on purpose); Server.log (Currently on VPN to internal network where server is located); I am unfortunately not familiar with websockets. If they are easy to set up, please let me know. The button(s)now seems to appear every time I click execute (maybe one time it didnt). The main thing is seeing the download button, does this also have to do with any GET/POST requests? Or does a GET request only happen if I click that button? Thank you in advance. |
Hi, @SergeWielhouwer thanks for reply! |
@SergeWielhouwer thanks a lot! Could you check the websocket messages, please, when there are no download buttons? Also, if you add a sleep, does it always show the buttons? |
Thanks for the feedback @bugy. Yes if I add sleep 5 && exit 0 then it will always show the buttons as expected (me and my colleagues clicked quite often on execute). |
I see, thanks! |
Thank you very much for your help! At least we can still use the download functionality, which is great. Btw Is there somewhere where I can read about the available types for output_files? I am wondering if changing the type to something else (e.g., inline_image?) changes how the output file gets processed. |
@SergeWielhouwer there are only 2 types, default one for download and inline image. They should work in similar way |
Hi @SergeWielhouwer you have to use parameter name, not environment variable name, i.e. |
Hi @bugy . Thanks! It worked :) |
Hello All. First thanks to @SergeWielhouwer for showing that sleep can be used as a workaround. The problem can be reproduced (on linux) with any script that calls a subshell - and fixed with the sleep 1 && exit 0 Script and Conf-File below. I hope this can help to find the cause of the problem. Behaviour: #!/bin/bash
#hello_subshell.sh
if [ -n "$1" ] ; then
echo "$( uptime )"
else
echo "Hello World"
fi {
"name": "Hello_Subshell"
"script_path": "hello_subshell.sh"
"working_directory": "/tmp"
"description": "If no parameter is used, echoes \"Hello World\" else calls \"uptime\" via a subshell",
"group": "",
"parameters": [
{
"name": "Enter value for subshell"
"type": "text"
"description": "Enter value for subshell"
},
],
"output_files": [
"/tmp/helloworld.txt"
]
} |
I think I found the root cause for it, it will be fixed in the next release |
Hi,
I am currently experiencing issues downloading output files. Sometimes the download button appears, but most of the time it is not visible.
My config file looks like this;
Everytime I execute the script, the correct file is placed in temporary directory (resultFiles) on our server running script-server. It seems to detect the correct file(s), but the download button is not shown at the bottom of the script output.
The last ten lines in the server log are as follows;
2022-12-01 15:52:56,907 [script_server.execution_service.INFO] Calling script #498: bash /mnt/shared/tools/script-server/GS/run_ffpe_qc.sh 105285 Human forward 8
2022-12-01 15:52:56,917 [script_server.file_download_feature.INFO] Created download folder for s.wielhouwer: temp/resultFiles/18e344481b61/1669906376917
2022-12-01 15:52:56,919 [tornado.access.INFO] 200 POST /executions/start (10.159.1.224) 33.86ms
2022-12-01 15:52:56,928 [tornado.access.INFO] 101 GET /executions/io/498 (10.159.1.224) 1.25ms
2022-12-01 15:52:56,930 [script_server.audit_utils.WARNING] Could not get hostname for 10.159.1.224
2022-12-01 15:52:56,931 [script_server.audit_utils.WARNING] Could not get hostname for 10.159.1.224
2022-12-01 15:52:57,031 [script_server.audit_utils.WARNING] Could not get hostname for 10.159.1.224
2022-12-01 15:52:57,032 [web_server.INFO] s.wielhouwer disconnected
2022-12-01 15:52:57,036 [script_server.audit_utils.WARNING] Could not get hostname for 10.159.1.224
2022-12-01 15:52:57,037 [tornado.access.INFO] 200 POST /executions/cleanup/498 (10.159.1.224) 2.13ms
Any ideas what could possibly cause this? Is this related to the hostname error?
Best regards,
Serge
The text was updated successfully, but these errors were encountered: