ActiveBrainAtlas2 / activebrainatlasadmin

This is the ActiveBrainAtlas database portal. This project provides the admin area to edit data associated with the Active Brain Atlas project. It also provides the REST API.
0 stars 1 forks source link

nginx issue on imageserver #192

Closed eddyod closed 10 months ago

eddyod commented 10 months ago

When requesting this url: https://imageserv.dk.ucsd.edu/data/X/neuroglancer_data/mesh/names/info

I get a 404 error even though I am sure file exists. Looking at the error log it is trying to find: open() "/data/neuroglancer/neuroglancer_data/mesh/names/info" failed (2: No such file or directory) I assume this is some nginx config error.

eddyod commented 10 months ago

Accessing the info files from nginx is problematic. When you access an info file from activebrainatlas, it displays in the browser as it should: https://activebrainatlas.ucsd.edu/data/X/www/neuroglancer_data/mesh/names/info Accessing the same file from imageserv results in a 404 error, so it must be an nginx config problem. https://imageserv.dk.ucsd.edu/data/X/neuroglancer_data/mesh/names/info

drinehart1 commented 10 months ago

I believe error is from the regular expressions configured in Nginx. The current pattern matching works for some brains but not others. That is problematic in that I can't configure a standard regular expression to match all brains if the file structure for brains is not standardized.

For example: DK55: DK55/www/neuroglancer_data/CH1_allen25um (used on brainsharer) DK55: DK55/neuroglancer_data/CH[1-3] (unclear where used)

DK52 (similar to DK55 above)

+++ Until we finalize a better way to store imaging data with better security (which may be swapped out for Minio/S3 at some point), I'm switching back to apache on imageserv.dk.ucsd.edu. Preliminary testing seems to work but please verify before closing.

eddyod commented 10 months ago

I can easily change 'X' to 'DKX1'. But then we have brains called DK122, MD589. Maybe a regex that starts with D or M and ends with a number? But Apache is fine if it there is no performance difference.

drinehart1 commented 10 months ago

No need to change at present due to apache fix.

From: eddyod @.> Sent: Tuesday, August 22, 2023 17:33 To: ActiveBrainAtlas2/activebrainatlasadmin @.> Cc: Duane Rinehart @.>; Assign @.> Subject: Re: [ActiveBrainAtlas2/activebrainatlasadmin] nginx issue on imageserver (Issue #192)

I can easily change 'X' to 'DKX1'. But then we have brains called DK122, MD589. Maybe a regex that starts with D or M and ends with a number? But Apache is fine if it there is no performance difference.

— Reply to this email directly, view it on GitHub https://github.com/ActiveBrainAtlas2/activebrainatlasadmin/issues/192#issuecomment-1689093533 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AGDPO3TMQMLNTZY3NVXET53XWVFS3ANCNFSM6AAAAAA3XVNP5M . You are receiving this because you were assigned. https://github.com/notifications/beacon/AGDPO3WEZAQPFFPLEXKVFZLXWVFS3A5CNFSM6AAAAAA3XVNP5OWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTEVWCZ2.gif Message ID: @. @.> >

eddyod commented 10 months ago

I tested a segmentation with: https://imageserv.dk.ucsd.edu/data/X/www/neuroglancer_data/mesh_2_singleres and it loads fine.

drinehart1 commented 10 months ago

Very good news - thanks

From: eddyod @.> Sent: Tuesday, August 22, 2023 18:21 To: ActiveBrainAtlas2/activebrainatlasadmin @.> Cc: Duane Rinehart @.>; Assign @.> Subject: Re: [ActiveBrainAtlas2/activebrainatlasadmin] nginx issue on imageserver (Issue #192)

I tested a segmentation with: https://imageserv.dk.ucsd.edu/data/X/www/neuroglancer_data/mesh_2_singleres and it loads fine.

— Reply to this email directly, view it on GitHub https://github.com/ActiveBrainAtlas2/activebrainatlasadmin/issues/192#issuecomment-1689123593 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AGDPO3T27FSHYKU55PFOSFLXWVLINANCNFSM6AAAAAA3XVNP5M . You are receiving this because you were assigned. https://github.com/notifications/beacon/AGDPO3T7HNAEUUF6PJURAH3XWVLINA5CNFSM6AAAAAA3XVNP5OWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTEVX5QS.gif Message ID: @. @.> >