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

AttributeError: 'MicroVM' object has no attribute 'send_shutdown_message' #652

Open
hoh opened this issue Jul 4, 2024 · 0 comments
Open

Comments

@hoh
Copy link
Member

hoh commented Jul 4, 2024

On staging-ovh, version 0.4.1-53-g4a9eabd.

Jul 04 13:11:02 staging-ovh vm-3176162d9646d0987e656cf6237bff5d2a0612b42ee379b10cd798a57e9ed8b5-stderr[2525280]: thread 'main' panicked at 'Jailer error: Failed to create /dev/userfaultfd via mknod inside the jail: File exists (os error 17)', src/jailer/src/main.rs:377:27
Jul 04 13:11:02 staging-ovh vm-3176162d9646d0987e656cf6237bff5d2a0612b42ee379b10cd798a57e9ed8b5-stderr[2525280]: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Jul 04 13:11:02 staging-ovh systemd[1]: aleph-vm-controller@3176162d9646d0987e656cf6237bff5d2a0612b42ee379b10cd798a57e9ed8b5.service: Main process exited, code=exited, status=1/FAILURE
Jul 04 13:11:02 staging-ovh systemd[1]: aleph-vm-controller@3176162d9646d0987e656cf6237bff5d2a0612b42ee379b10cd798a57e9ed8b5.service: Failed with result 'exit-code'.
Jul 04 13:11:05 staging-ovh systemd[1]: aleph-vm-controller@f6f5bea7e32a44521fe203ea04d47b9afe57cfe1af010e00919b2ba693aaa5e4.service: Scheduled restart job, restart counter is at 2299.
Jul 04 13:11:05 staging-ovh systemd[1]: Stopped aleph-vm-controller@f6f5bea7e32a44521fe203ea04d47b9afe57cfe1af010e00919b2ba693aaa5e4.service - Aleph VM f6f5bea7e32a44521fe203ea04d47b9afe57cfe1af010e00919b2ba693aaa5e4 Controller.
Jul 04 13:11:05 staging-ovh systemd[1]: Started aleph-vm-controller@f6f5bea7e32a44521fe203ea04d47b9afe57cfe1af010e00919b2ba693aaa5e4.service - Aleph VM f6f5bea7e32a44521fe203ea04d47b9afe57cfe1af010e00919b2ba693aaa5e4 Controller.
Jul 04 13:11:06 staging-ovh python3[2525284]: Traceback (most recent call last):
Jul 04 13:11:06 staging-ovh python3[2525284]:   File "<frozen runpy>", line 198, in _run_module_as_main
Jul 04 13:11:06 staging-ovh python3[2525284]:   File "<frozen runpy>", line 88, in _run_code
Jul 04 13:11:06 staging-ovh python3[2525284]:   File "/opt/aleph-vm/aleph/vm/controllers/__main__.py", line 138, in <module>
Jul 04 13:11:06 staging-ovh python3[2525284]:     main()
Jul 04 13:11:06 staging-ovh python3[2525284]:   File "/opt/aleph-vm/aleph/vm/controllers/__main__.py", line 134, in main
Jul 04 13:11:06 staging-ovh python3[2525284]:     asyncio.run(run_persistent_vm(config))
Jul 04 13:11:06 staging-ovh python3[2525284]:   File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run
Jul 04 13:11:06 staging-ovh python3[2525284]:     return runner.run(main)
Jul 04 13:11:06 staging-ovh python3[2525284]:            ^^^^^^^^^^^^^^^^
Jul 04 13:11:06 staging-ovh python3[2525284]:   File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run
Jul 04 13:11:06 staging-ovh python3[2525284]:     return self._loop.run_until_complete(task)
Jul 04 13:11:06 staging-ovh python3[2525284]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jul 04 13:11:06 staging-ovh python3[2525284]:   File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
Jul 04 13:11:06 staging-ovh python3[2525284]:     return future.result()
Jul 04 13:11:06 staging-ovh python3[2525284]:            ^^^^^^^^^^^^^^^
Jul 04 13:11:06 staging-ovh python3[2525284]:   File "/opt/aleph-vm/aleph/vm/controllers/__main__.py", line 93, in run_persistent_vm
Jul 04 13:11:06 staging-ovh python3[2525284]:     await handle_persistent_vm(config=config, execution=execution, process=process)
Jul 04 13:11:06 staging-ovh python3[2525284]:   File "/opt/aleph-vm/aleph/vm/controllers/__main__.py", line 85, in handle_persistent_vm
Jul 04 13:11:06 staging-ovh python3[2525284]:     loop.add_signal_handler(signal.SIGTERM, execution.send_shutdown_message)
Jul 04 13:11:06 staging-ovh python3[2525284]:                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jul 04 13:11:06 staging-ovh python3[2525284]: AttributeError: 'MicroVM' object has no attribute 'send_shutdown_message'
Jul 04 13:11:06 staging-ovh vm-f6f5bea7e32a44521fe203ea04d47b9afe57cfe1af010e00919b2ba693aaa5e4-stderr[2525300]: thread 'main' panicked at 'Jailer error: Failed to create /dev/userfaultfd via mknod inside the jail: File exists (os error 17)', src/jailer/src/main.rs:377:27
hoh added a commit that referenced this issue Jul 4, 2024
hoh added a commit that referenced this issue Jul 4, 2024
olethanh added a commit that referenced this issue Jul 5, 2024
…_message' (#653)

* Fix: AttributeError: 'MicroVM' object has no attribute 'send_shutdown_message'

Error reported on #652


Co-authored-by: Olivier Le Thanh Duong <[email protected]>
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

No branches or pull requests

1 participant