question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

500 Error when trying to control magic mirror

See original GitHub issue

Having trouble with the control center. Whenever i try to interact with magic mirror (stop, restart, etc) i get a 500 error. “Start” works but i can’t stop it after and have to reboot. It seems to be an issue with “rootlogger”. I am able to install and configure modules, just not interact with the MM process. Here are the errors/stack trace:

Exception on /api/stop-magicmirror [GET]
Traceback (most recent call last):
  File "/home/pi/.local/lib/python3.7/site-packages/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/.local/lib/python3.7/site-packages/flask/app.py", line 1952, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/.local/lib/python3.7/site-packages/flask_cors/extension.py", line 161, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "/home/pi/.local/lib/python3.7/site-packages/flask/app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/pi/.local/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/home/pi/.local/lib/python3.7/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/.local/lib/python3.7/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/pi/.local/lib/python3.7/site-packages/mmpm/api.py", line 322, in stop_magicmirror
    utils.stop_magicmirror()
  File "/home/pi/.local/lib/python3.7/site-packages/mmpm/utils.py", line 532, in stop_magicmirror
    kill_magicmirror_processes()
  File "/home/pi/.local/lib/python3.7/site-packages/mmpm/utils.py", line 509, in kill_magicmirror_processes
    log.logger('Killing processes associated with MagicMirror: {processes}')
TypeError: 'RootLogger' object is not callable
2020-05-20 20:44:39,704.704 INFO api - after_request: Headers being added after the request
Headers being added after the request
2020-05-20 20:45:26,817.817 INFO api - after_request: Headers being added after the request
Headers being added after the request
2020-05-20 20:45:27,077.077 INFO api - after_request: Headers being added after the request
Headers being added after the request
2020-05-20 20:45:27,097.097 INFO api - after_request: Headers being added after the request
Headers being added after the request
2020-05-20 20:45:27,102.102 INFO api - after_request: Headers being added after the request
Headers being added after the request
2020-05-20 20:45:27,106.106 INFO api - get_magicmirror_config: Retrieving MagicMirror config
Retrieving MagicMirror config
2020-05-20 20:45:27,106.106 INFO api - after_request: Headers being added after the request
Headers being added after the request
2020-05-20 20:45:27,859.859 INFO api - after_request: Headers being added after the request
Headers being added after the request
2020-05-20 20:45:56,348.348 INFO api - update_magicmirror_config: Saving MagicMirror config file
Saving MagicMirror config file
2020-05-20 20:45:56,350.350 INFO api - after_request: Headers being added after the request
Headers being added after the request
2020-05-20 20:54:07,250.250 INFO api - after_request: Headers being added after the request
Headers being added after the request
2020-05-20 20:54:07,528.528 INFO api - after_request: Headers being added after the request
Headers being added after the request
2020-05-20 20:54:07,543.543 INFO api - after_request: Headers being added after the request
Headers being added after the request
2020-05-20 20:54:07,549.549 INFO api - after_request: Headers being added after the request
Headers being added after the request
2020-05-20 20:54:07,557.557 INFO api - get_magicmirror_config: Retrieving MagicMirror config
Retrieving MagicMirror config
2020-05-20 20:54:07,558.558 INFO api - after_request: Headers being added after the request
Headers being added after the request
2020-05-20 20:54:08,296.296 INFO api - after_request: Headers being added after the request
Headers being added after the request
2020-05-20 20:54:20,039.039 ERROR app - log_exception: Exception on /api/stop-magicmirror [GET]
Traceback (most recent call last):
  File "/home/pi/.local/lib/python3.7/site-packages/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/.local/lib/python3.7/site-packages/flask/app.py", line 1952, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/.local/lib/python3.7/site-packages/flask_cors/extension.py", line 161, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "/home/pi/.local/lib/python3.7/site-packages/flask/app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/pi/.local/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/home/pi/.local/lib/python3.7/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/.local/lib/python3.7/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/pi/.local/lib/python3.7/site-packages/mmpm/api.py", line 322, in stop_magicmirror
    utils.stop_magicmirror()
  File "/home/pi/.local/lib/python3.7/site-packages/mmpm/utils.py", line 532, in stop_magicmirror
    kill_magicmirror_processes()
  File "/home/pi/.local/lib/python3.7/site-packages/mmpm/utils.py", line 509, in kill_magicmirror_processes
    log.logger('Killing processes associated with MagicMirror: {processes}')
TypeError: 'RootLogger' object is not callable
Exception on /api/stop-magicmirror [GET]
Traceback (most recent call last):
  File "/home/pi/.local/lib/python3.7/site-packages/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/.local/lib/python3.7/site-packages/flask/app.py", line 1952, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/.local/lib/python3.7/site-packages/flask_cors/extension.py", line 161, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "/home/pi/.local/lib/python3.7/site-packages/flask/app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/pi/.local/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/home/pi/.local/lib/python3.7/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/.local/lib/python3.7/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/pi/.local/lib/python3.7/site-packages/mmpm/api.py", line 322, in stop_magicmirror
    utils.stop_magicmirror()
  File "/home/pi/.local/lib/python3.7/site-packages/mmpm/utils.py", line 532, in stop_magicmirror
    kill_magicmirror_processes()
  File "/home/pi/.local/lib/python3.7/site-packages/mmpm/utils.py", line 509, in kill_magicmirror_processes
    log.logger('Killing processes associated with MagicMirror: {processes}')
TypeError: 'RootLogger' object is not callable
2020-05-20 20:54:20,042.042 INFO api - after_request: Headers being added after the request
Headers being added after the request
2020-05-20 20:54:20,052.052 ERROR app - log_exception: Exception on /api/stop-magicmirror [GET]
Traceback (most recent call last):
  File "/home/pi/.local/lib/python3.7/site-packages/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/.local/lib/python3.7/site-packages/flask/app.py", line 1952, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/.local/lib/python3.7/site-packages/flask_cors/extension.py", line 161, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "/home/pi/.local/lib/python3.7/site-packages/flask/app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/pi/.local/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/home/pi/.local/lib/python3.7/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/.local/lib/python3.7/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/pi/.local/lib/python3.7/site-packages/mmpm/api.py", line 322, in stop_magicmirror
    utils.stop_magicmirror()
  File "/home/pi/.local/lib/python3.7/site-packages/mmpm/utils.py", line 532, in stop_magicmirror
    kill_magicmirror_processes()
  File "/home/pi/.local/lib/python3.7/site-packages/mmpm/utils.py", line 509, in kill_magicmirror_processes
    log.logger('Killing processes associated with MagicMirror: {processes}')
TypeError: 'RootLogger' object is not callable
Exception on /api/stop-magicmirror [GET]
Traceback (most recent call last):
  File "/home/pi/.local/lib/python3.7/site-packages/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/.local/lib/python3.7/site-packages/flask/app.py", line 1952, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/.local/lib/python3.7/site-packages/flask_cors/extension.py", line 161, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "/home/pi/.local/lib/python3.7/site-packages/flask/app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/pi/.local/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/home/pi/.local/lib/python3.7/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/.local/lib/python3.7/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/pi/.local/lib/python3.7/site-packages/mmpm/api.py", line 322, in stop_magicmirror
    utils.stop_magicmirror()
  File "/home/pi/.local/lib/python3.7/site-packages/mmpm/utils.py", line 532, in stop_magicmirror
    kill_magicmirror_processes()
  File "/home/pi/.local/lib/python3.7/site-packages/mmpm/utils.py", line 509, in kill_magicmirror_processes
    log.logger('Killing processes associated with MagicMirror: {processes}')
TypeError: 'RootLogger' object is not callable
2020-05-20 20:54:20,055.055 INFO api - after_request: Headers being added after the request
Headers being added after the request

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Bee-Marcommented, May 22, 2020

@tkg61 well…I just looked at the error message again, and realized the bug fix was significantly more simple than what I first thought. I’ll get it out in a few minutes after the pipelines are run

0reactions
Bee-Marcommented, May 24, 2020

Great! If you come across any other bugs, feel free to make an issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

No connection? Error 500! · Issue #20 · Com-Lum/MMM-RMV
The error 500 is a connection error coming from RMV. It means your url where you ask for the connection data is not...
Read more >
MMM Remote Control Error - MagicMirror Forum
I keep getting this error now: This device is not allowed to access your mirror.
Read more >
Adding projects to smart mirror using different domain results ...
When attempting to add a new project to the list of projects that should be mirrored in Google Chrome, the following error is...
Read more >
Issue with MM 2.15 in docker (#17) - GitLab
Platform: Raspberry Pi 4, MagicMirror OS). Node Version: v12.22.1 MagicMirror Version: 2.15 Description: So I was using Magic Mirror OS on ...
Read more >
Some of the Best Magic Mirror 2 Modules - How to Build
Hello and welcome to another video. In today's video we will be looking at how to build the modules. We will be looking...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found