Skip to content
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

EEG Browser file_reader 500 error #9194

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

laemtl
Copy link
Contributor

@laemtl laemtl commented Apr 4, 2024

Fix the following error:

[Thu Apr 04 11:06:58.004034 2024] [php:notice] [pid 4117] [client 192.168.122.1:59978] [ERROR] Download directory /data-raisinbread/bids_imports/PIDCC0821_V03_BIDSVersion_1.6.0_chunks/sub-PIDCC0821_ses-V03_task-FACE_acq-eeg_eeg.chunks is not a directory#0 /var/www/Loris/modules/electrophysiology_browser/php/file_reader.class.inc(42): LORIS\\FilesDownloadHandler->__construct()\n#1 /var/www/Loris/src/Middleware/UserPageDecorationMiddleware.php(247): LORIS\\electrophysiology_browser\\File_Reader->handle()\n#2 /var/www/Loris/src/Middleware/PageDecorationMiddleware.php(58): LORIS\\Middleware\\UserPageDecorationMiddleware->process()\n#3 /var/www/Loris/php/libraries/NDB_Page.class.inc(725): LORIS\\Middleware\\PageDecorationMiddleware->process()\n#4 /var/www/Loris/php/libraries/Module.class.inc(321): NDB_Page->process()\n#5 /var/www/Loris/src/Middleware/ResponseGenerator.php(50): Module->handle()\n#6 /var/www/Loris/src/Middleware/AuthMiddleware.php(63): LORIS\\Middleware\\ResponseGenerator->process()\n#7 /var/www/Loris/src/Router/ModuleRouter.php(74): LORIS\\Middleware\\AuthMiddleware->process()\n#8 /var/www/Loris/src/Middleware/ExceptionHandlingMiddleware.php(54): LORIS\\Router\\ModuleRouter->handle()\n#9 /var/www/Loris/src/Router/BaseRouter.php(132): LORIS\\Middleware\\ExceptionHandlingMiddleware->process()\n#10 /var/www/Loris/src/Middleware/ResponseGenerator.php(50): LORIS\\Router\\BaseRouter->handle()\n#11 /var/www/Loris/src/Middleware/ContentLength.php(52): LORIS\\Middleware\\ResponseGenerator->process()\n#12 /var/www/Loris/htdocs/index.php(73): LORIS\\Middleware\\ContentLength->process()\n#13 {main}, referer: https://test-dev-260.loris.ca/electrophysiology_browser/sessions/2161?outputType=raw

To test:

Copy link
Contributor

@kongtiaowang kongtiaowang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@driusan
Copy link
Collaborator

driusan commented Apr 16, 2024

How is this happening?

If the database is referencing a file that doesn't exist that sounds like it is an internal server error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants