MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    how to revert to HTTP

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    6 Posts 2 Posters 58 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T Offline
      travishardiman
      last edited by

      I had enabled HTTPS in the config.js but then the mmpm.ui stopped working and started throwing all kinds of errors:

      4|mmpm.ui  | OSError: [Errno 98] Address already in use
      4|mmpm.ui  | Traceback (most recent call last):
      4|mmpm.ui  |   File "<frozen runpy>", line 198, in _run_module_as_main
      4|mmpm.ui  |   File "<frozen runpy>", line 88, in _run_code
      4|mmpm.ui  |   File "/usr/lib/python3.11/http/server.py", line 1309, in <module>
      4|mmpm.ui  |     test(
      4|mmpm.ui  |   File "/usr/lib/python3.11/http/server.py", line 1256, in test
      4|mmpm.ui  |     with ServerClass(addr, HandlerClass) as httpd:
      4|mmpm.ui  |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      4|mmpm.ui  |   File "/usr/lib/python3.11/socketserver.py", line 456, in __init__
      4|mmpm.ui  |     self.server_bind()
      4|mmpm.ui  |   File "/usr/lib/python3.11/http/server.py", line 1303, in server_bind
      4|mmpm.ui  |     return super().server_bind()
      4|mmpm.ui  |            ^^^^^^^^^^^^^^^^^^^^^
      4|mmpm.ui  |   File "/usr/lib/python3.11/http/server.py", line 136, in server_bind
      4|mmpm.ui  |     socketserver.TCPServer.server_bind(self)
      4|mmpm.ui  |   File "/usr/lib/python3.11/socketserver.py", line 472, in server_bind
      4|mmpm.ui  |     self.socket.bind(self.server_address)
      4|mmpm.ui  | OSError: [Errno 98] Address already in use
      

      I tried setting useHttps: false but that didn’t appear to revert anything. Is there something special that I have to do to disable HTTPS?

      These errors seem to be repeating constantly, unsure if they’re related:

      3|mmpm.repeater    | [2025-11-09 23:48:25 -0500] [20125] [ERROR] Connection in use: ('0.0.0.0', 8907)
      2|mmpm.log-server  | [2025-11-09 23:48:25 -0500] [20124] [ERROR] Connection in use: ('0.0.0.0', 6789)
      2|mmpm.log-server  | [2025-11-09 23:48:25 -0500] [20124] [ERROR] connection to ('0.0.0.0', 6789) failed: [Errno 98] Address already in use
      3|mmpm.repeater    | [2025-11-09 23:48:25 -0500] [20125] [ERROR] connection to ('0.0.0.0', 8907) failed: [Errno 98] Address already in use
      
      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @travishardiman
        last edited by

        @travishardiman address already in use means you have another instance of MagicMirror running already

        Do you use pm2 to auto launch MagicMirror at boot

        Do

        pm2 status

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        T 1 Reply Last reply Reply Quote 0
        • T Offline
          travishardiman @sdetweil
          last edited by

          @sdetweil I manually stopped the bottom three because they were logging so many errors:

          pi@smartmirror2024:~ $ pm2 status
          ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
          │ id │ name               │ mode     │ ↺    │ status    │ cpu      │ memory   │
          ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
          │ 0  │ MagicMirror        │ fork     │ 3    │ online    │ 0%       │ 2.9mb    │
          │ 1  │ mmpm.api           │ fork     │ 2    │ online    │ 0%       │ 27.2mb   │
          │ 2  │ mmpm.log-server    │ fork     │ 818  │ stopped   │ 0%       │ 0b       │
          │ 3  │ mmpm.repeater      │ fork     │ 818  │ stopped   │ 0%       │ 0b       │
          │ 4  │ mmpm.ui            │ fork     │ 150  │ stopped   │ 0%       │ 0b       │
          └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
          
          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @travishardiman
            last edited by

            @travishardiman the column in the status output between
            Mode and status is the restart count column

            So 800+ is a bad thing

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            T 1 Reply Last reply Reply Quote 0
            • T Offline
              travishardiman @sdetweil
              last edited by

              @sdetweil after restarting the whole pi, all the processes in pm2 seem to be running ok, and I can connect over http again.

              However there’s still some weird stuff in the logs: 😆

              3|mmpm.repeater  | [+] Connection to namespace /MMM-mmpm was rejected
              3|mmpm.repeater  | [+] Connection to namespace /MMM-mmpm was rejected
              3|mmpm.repeater  | [+] Connection failed, new attempt in 4.80 seconds
              3|mmpm.repeater  | [+] Connection failed, new attempt in 4.55 seconds
              3|mmpm.repeater  | [+] Engine.IO connection dropped
              3|mmpm.repeater  | [+] Engine.IO connection dropped
              3|mmpm.repeater  | [+] Engine.IO connection dropped
              3|mmpm.repeater  | [+] Engine.IO connection dropped
              3|mmpm.repeater  | [+] Engine.IO connection dropped
              3|mmpm.repeater  | [+] Engine.IO connection established
              3|mmpm.repeater  | [+] Engine.IO connection dropped
              3|mmpm.repeater  | [+] Engine.IO connection dropped
              3|mmpm.repeater  | [+] Engine.IO connection dropped
              3|mmpm.repeater  | [+] Engine.IO connection dropped
              3|mmpm.repeater  | [+] Engine.IO connection dropped
              3|mmpm.repeater  | [+] Engine.IO connection dropped
              3|mmpm.repeater  | [+] Connection failed, new attempt in 5.47 seconds
              3|mmpm.repeater  | [+] Engine.IO connection established
              3|mmpm.repeater  | [+] Engine.IO connection established
              3|mmpm.repeater  | [+] Engine.IO connection established
              3|mmpm.repeater  | [+] Engine.IO connection established
              3|mmpm.repeater  | [+] Engine.IO connection established
              3|mmpm.repeater  | [+] Engine.IO connection established
              

              Are these anything that I should worry about?

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @travishardiman
                last edited by

                @travishardiman sorry I do not know

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy