-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Labels
Description
Error
After uploading a dataset the dataset display
function ("eye icon") in the history column throws the error
404 Not Found
The resource could not be found.
No route for /_x_accel_redirect/data/datasets/1/3/e/dataset_xyz.dat
Solution
Add the following block to templates/nginx/galaxy.j2
and rerun the playbook:
location /_x_accel_redirect/ {
internal;
alias /;
# Add upstream response headers that would otherwise be omitted
add_header Access-Control-Allow-Origin $upstream_http_access_control_allow_origin;
add_header Access-Control-Allow-Methods $upstream_http_access_control_allow_methods;
}
Sources
https://help.galaxyproject.org/t/404-not-found-error-no-route-for-x-accel-redirect/7507
https://docs.galaxyproject.org/en/master/admin/nginx.html#sending-files-with-nginx
Tutorial
https://github.com/galaxyproject/training-material/edit/main/topics/admin/tutorials/ansible-galaxy/tutorial.md
https://training.galaxyproject.org/training-material/topics/admin/tutorials/ansible-galaxy/tutorial.html#nginx