-
Notifications
You must be signed in to change notification settings - Fork 3
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
Linux deployment #284
Linux deployment #284
Conversation
for more information, see https://pre-commit.ci
Confirmed the app fails to connect to backend on the DANDI Hub To test it for yourself, just download the release from the webpage and run The downside of the |
Would you be able to access and run the executable with the test file? That
should provide some insight into the validity of the Pyinstaller
configuration.
…On Sat, Aug 12, 2023 at 8:59 AM, Cody Baker ***@***.***> wrote:
Confirmed the app fails to connect to backend on the DANDI Hub
To test it for yourself, just download the release from the webpage and
run chmod +x NWB-GUIDE-0.0.3.AppImage from the terminal, then execute it
from the remote desktop
The downside of the .AppImage container is it's harder to introspect the
inner workings; I can't 100% confirm it's the scipy issue we see elsewhere
but the behavior is the same
—
Reply to this email directly, view it on GitHub
<#284 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALDAY5PGQ7WKFIYEQDMLYR3XU6R6ZANCNFSM6AAAAAA3NEYF4A>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
No dice; the test runs fine, spits out this massive log Found file true [spawn]: [1433:0814/162628.299235:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 1480: Permission denied (13) Time to Start: 1709.00ms [spawn]: libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null) [spawn]: [1480:0814/162628.684712:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization [spawn]: [1433:0814/162628.803549:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 1549: Permission denied (13) [spawn]: [1433:0814/162630.023527:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 1567: Permission denied (13) [spawn]: libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null) [spawn]: [1567:0814/162631.005456:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization [spawn]: [1433:0814/162631.020587:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 1628: Permission denied (13) [spawn]: libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null) [spawn]: [1628:0814/162633.622429:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported. [spawn]: [nwb-guide:4242]: Traceback (most recent call last): [spawn]: [nwb-guide:4242]: File "", line 1007, in _find_and_load [spawn]: [nwb-guide:4242]: File "", line 986, in _find_and_load_unlocked [spawn]: [nwb-guide:4242]: File "", line 680, in _load_unlocked [spawn]: [nwb-guide:4242]: File "namespaces/init.py", line 1, in [spawn]: [nwb-guide:4242]: File "", line 1007, in _find_and_load [spawn]: [nwb-guide:4242]: File "", line 986, in _find_and_load_unlocked [spawn]: [nwb-guide:4242]: File "namespaces/configureNamespaces.py", line 1, in [spawn]: [nwb-guide:4242]: File "", line 986, in _find_and_load_unlocked [spawn]: [nwb-guide:4242]: File "", line 1007, in _find_and_load [spawn]: [nwb-guide:4242]: File "PyInstaller/loader/pyimod03_importers.py", line 476, in exec_module [spawn]: [nwb-guide:4242]: File "", line 986, in _find_and_load_unlocked [spawn]: [nwb-guide:4242]: File "", line 986, in _find_and_load_unlocked [spawn]: [nwb-guide:4242]: File "jsonschema/init.py", line 16, in [spawn]: [nwb-guide:4242]: File "", line 1007, in _find_and_load [spawn]: [nwb-guide:4242]: File "", line 680, in _load_unlocked [spawn]: [nwb-guide:4242]: File "jsonschema/validators.py", line 19, in [spawn]: [nwb-guide:4242]: File "", line 986, in _find_and_load_unlocked [spawn]: [nwb-guide:4242]: File "PyInstaller/loader/pyimod03_importers.py", line 476, in exec_module [spawn]: [nwb-guide:4242]: File "jsonschema_specifications/init.py", line 11, in [spawn]: [nwb-guide:4242]: File "referencing/_core.py", line 297, in rmatmul [spawn]: [nwb-guide:4242]: File "jsonschema_specifications/_core.py", line 27, in _schemas [spawn]: [nwb-guide:4242]: File "pathlib.py", line 1160, in iterdir [spawn]: [nwb-guide:4242]: FileNotFoundError: [Errno 2] No such file or directory: '/tmp/.mount_NWB-GUi7YR9M/resources/flask/jsonschema_specifications/schemas' [spawn]: [nwb-guide:flask] exit code 1 [spawn]: Checking for update [spawn]: Error: Error: Cannot find latest-linux.yml in the latest release artifacts (https://github.com/catalystneuro/nwb-guide/releases/download/v0.0.1/latest-linux.yml): HttpError: 404 [spawn]: (node:1433) UnhandledPromiseRejectionWarning: Error: Cannot find latest-linux.yml in the latest release artifacts (https://github.com/catalystneuro/nwb-guide/releases/download/v0.0.1/latest-linux.yml): HttpError: 404 [spawn]: (node:1433) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag but of course that is actually launching and running the entire app itself (just the front-end in this case); it does not capture the errors evidenced in the dev console of the app where it fails to connect to the backend @garrettmflynn What I would recommend for now is that you try building and debugging the stand-alone distributable PyInstaller executable on the DANDI Hub; that's the shared environment we both have access to and the issue seems to be the same over there as on Windows In the meantime I'll keep trying to see if I can enhance the CI deployment to catch this kind of thing quicker What do you think? |
Awesome. Already on it |
Working my way through the Pyinstaller issues. Posting the progress so far: Issue 1: jsonschema_specifications
This was noted and fixed by Ryan earlier (#89) by adding Issue 2: Pydantic Email Validator
I'll attempt to install the version of pydantic with email included and go from there. Edit 1: Related DANDI IssueMay be related to dandi/dandi-archive#405 faced by the DANDI team on Heroku. It looks like the email option simply adds |
I've also seen this one before, not sure why it sometimes occurs and sometimes doesn't, but I always just manually install it and then it's fine |
Still doesn't see the |
Ah my bad. Was prototyping changes on the DANDI Hub and never pushed |
@garrettmflynn I'm OK with merging this in as a fix to the Then a separate PR can continue debugging the remaining issues that might remain after #302, but that should cover the email validator problem Agreed? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet let's do it
Replaces #257
Sister PR to #283
I suggest, since we all work on different devices, and since Mac is more touchy about signing issues than the other platforms, we should focus on debugging this PR first on the DANDI Hub (remote desktop), which is the common linux environment we all have access to
Only problem right now is getting the deployment working, could use some help on it: https://github.com/NeurodataWithoutBorders/nwb-guide/actions/workflows/Build-and-deploy-linux.yml