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

"Perform Time Analysis" fails with [mmu_server] (Happy Hare) component enabled #964

Closed
FeatureExpert opened this issue Feb 19, 2025 · 2 comments
Labels
not moonraker reported issue with other software

Comments

@FeatureExpert
Copy link

What happened

I'm getting following error messages in moonraker.log. This occurs after sending STL from slicer or after clicking "Perform Time Analysis" in Jobs tab.

2025-02-19 01:02:53,546 [shell_command.py:_check_proc_success()] - Command (/u01/printer/environment/moonraker-app/tools/klipper_estimator/klipper_estimator_rpi --config_file /u01/printer/environment/moonraker-app/tools/klipper_estimator/default_estimator_cfg.json post-process /u01/printer/gcodes/Tray_ABS_8m20s.gcode) successfully finished
2025-02-19 01:02:54,063 [shell_command.py:pipe_data_received()] - INFO:metadata:mmu_server: Running MMU enhanced version of metadata

2025-02-19 01:02:54,079 [shell_command.py:pipe_data_received()] - usage: mmu_server.py [-h] [-f <filename>] [-p <path>] [-u <ufp file>] [-o]
                     [-m] [-n]

2025-02-19 01:02:54,080 [shell_command.py:pipe_data_received()] - mmu_server.py: error: unrecognized arguments: -c /tmp/metacfg-mtybin1q.json

2025-02-19 01:02:54,201 [shell_command.py:_check_proc_success()] - Command (/u01/printer/environment/moonraker-env/bin/python /u01/printer/repository/moonraker/moonraker/components/mmu_server.py -m -n -c /tmp/metacfg-mtybin1q.json) exited with return code 2
2025-02-19 01:02:54,204 [file_manager.py:_process_metadata_update()] - Error running extract_metadata.py
Traceback (most recent call last):
  File "/u01/printer/repository/moonraker/moonraker/components/file_manager/file_manager.py", line 2566, in _process_metadata_update
    await self._run_extract_metadata(fname, ufp_path)
  File "/u01/printer/repository/moonraker/moonraker/components/file_manager/file_manager.py", line 2621, in _run_extract_metadata
    raise self.server.error("Extract Metadata returned with error")
moonraker.utils.exceptions.ServerError: Extract Metadata returned with error
2025-02-19 01:02:54,697 [shell_command.py:pipe_data_received()] - INFO:metadata:mmu_server: Running MMU enhanced version of metadata

2025-02-19 01:02:54,713 [shell_command.py:pipe_data_received()] - usage: mmu_server.py [-h] [-f <filename>] [-p <path>] [-u <ufp file>] [-o]
                     [-m] [-n]

2025-02-19 01:02:54,714 [shell_command.py:pipe_data_received()] - mmu_server.py: error: unrecognized arguments: -c /tmp/metacfg-tlivo8js.json

2025-02-19 01:02:54,831 [shell_command.py:_check_proc_success()] - Command (/u01/printer/environment/moonraker-env/bin/python /u01/printer/repository/moonraker/moonraker/components/mmu_server.py -m -n -c /tmp/metacfg-tlivo8js.json) exited with return code 2
2025-02-19 01:02:54,834 [file_manager.py:_process_metadata_update()] - Error running extract_metadata.py
Traceback (most recent call last):
  File "/u01/printer/repository/moonraker/moonraker/components/file_manager/file_manager.py", line 2566, in _process_metadata_update
    await self._run_extract_metadata(fname, ufp_path)
  File "/u01/printer/repository/moonraker/moonraker/components/file_manager/file_manager.py", line 2621, in _run_extract_metadata
    raise self.server.error("Extract Metadata returned with error")
moonraker.utils.exceptions.ServerError: Extract Metadata returned with error
2025-02-19 01:02:55,354 [shell_command.py:pipe_data_received()] - INFO:metadata:mmu_server: Running MMU enhanced version of metadata

2025-02-19 01:02:55,371 [shell_command.py:pipe_data_received()] - usage: mmu_server.py [-h] [-f <filename>] [-p <path>] [-u <ufp file>] [-o]
                     [-m] [-n]

2025-02-19 01:02:55,372 [shell_command.py:pipe_data_received()] - mmu_server.py: error: unrecognized arguments: -c /tmp/metacfg-_k56kcuh.json

2025-02-19 01:02:55,494 [shell_command.py:_check_proc_success()] - Command (/u01/printer/environment/moonraker-env/bin/python /u01/printer/repository/moonraker/moonraker/components/mmu_server.py -m -n -c /tmp/metacfg-_k56kcuh.json) exited with return code 2
2025-02-19 01:02:55,497 [file_manager.py:_process_metadata_update()] - Error running extract_metadata.py
Traceback (most recent call last):
  File "/u01/printer/repository/moonraker/moonraker/components/file_manager/file_manager.py", line 2566, in _process_metadata_update
    await self._run_extract_metadata(fname, ufp_path)
  File "/u01/printer/repository/moonraker/moonraker/components/file_manager/file_manager.py", line 2621, in _run_extract_metadata
    raise self.server.error("Extract Metadata returned with error")
moonraker.utils.exceptions.ServerError: Extract Metadata returned with error
2025-02-19 01:02:55,498 [file_manager.py:_process_metadata_update()] - Unable to extract medatadata from file: Tray_ABS_8m20s.gcode

Client

Fluidd

Browser

Microsoft Edge

How to reproduce

Create link to mmu_server.py in moonraker/components directory, add [analysis] and [mmu_server] to moonraker.conf, send STL from slicer or perform time analysis

Additional information

moonraker.log

@FeatureExpert FeatureExpert added the bug Something isn't working label Feb 19, 2025
@Arksine Arksine added not moonraker reported issue with other software and removed bug Something isn't working labels Feb 19, 2025
@Arksine
Copy link
Owner

Arksine commented Feb 19, 2025

Happy Hare is a 3rd party modification that has apparently changed Moonraker's code. You will need to check with its maintainers to resolve this.

@FeatureExpert
Copy link
Author

Thanks. Reported by someone else here. Closing this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not moonraker reported issue with other software
Projects
None yet
Development

No branches or pull requests

2 participants