training-material icon indicating copy to clipboard operation
training-material copied to clipboard

"404 Not Found" error when displaying datasets

Open rhiniodontypus opened this issue 5 months ago • 0 comments

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

rhiniodontypus avatar Jun 30 '25 12:06 rhiniodontypus