• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Magic Mirror crashes on email module

Scheduled Pinned Locked Moved Troubleshooting
3 Posts 2 Posters 368 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.
  • F Offline
    FritsdeGroot
    last edited by Apr 22, 2020, 10:57 AM

    Hi,

    I have an issue with my MagicMirror. I am new at this but I could not find a solution in the forum. Normally I would do a fresh install but the Magic Mirror is used by my 82 year old father and visiting him during the Coronacrisis is not advised. So I hope you can help me solve this form a distance.

    Platform: Rasperry Pi 3
    Node Version: v10.15.2
    Magic Mirror version: v2.11.0
    Description:
    After the upgrade of Magic Mirror via the script everything looked fine but since a couple of days the mm-error.log and mm-out.log get stashed with error messages. Eventually the system crashes as the filesystems get overloaded.

    The mm-out.log gives:

    [2020-04-22 12:25:55.646] [LOG]    Whoops! There was an uncaught exception...
    [2020-04-22 12:25:55.655] [LOG]    MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
    [2020-04-22 12:25:55.657] [LOG]    If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
    [2020-04-22 12:25:57.057] [LOG]    Email notifier error:  Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
        at doWrite (_stream_writable.js:413:19)
        at clearBuffer (_stream_writable.js:543:7)
        at Socket.Writable.uncork (_stream_writable.js:321:7)
        at JSStreamSocket.doWrite (internal/js_stream_socket.js:162:17)
        at JSStream.onwrite (internal/js_stream_socket.js:20:57)
        at Socket.ondata (internal/js_stream_socket.js:64:22)
        at Socket.emit (events.js:200:13)
        at addChunk (_stream_readable.js:294:12)
        at readableAddChunk (_stream_readable.js:275:11)
        at Socket.Readable.push (_stream_readable.js:210:10) {
      source: 'socket'
    }
    

    The mm-error.log gives:

    [2020-04-22 12:25:59.348] [ERROR]  Error: self signed certificate
        at TLSSocket.onConnectSecure (_tls_wrap.js:1317:34)
        at TLSSocket.emit (events.js:200:13)
        at TLSSocket._finishInit (_tls_wrap.js:792:8)
        at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:606:12)
        at Socket.ondata (internal/js_stream_socket.js:64:22)
        at Socket.emit (events.js:200:13)
        at addChunk (_stream_readable.js:294:12)
        at readableAddChunk (_stream_readable.js:275:11)
        at Socket.Readable.push (_stream_readable.js:210:10)
        at TCP.onStreamRead (internal/stream_base_commons.js:166:17) {
      code: 'DEPTH_ZERO_SELF_SIGNED_CERT',
      source: 'socket'
    } 
    

    After I deactivated the email module the errors did not occur anymore. This is the section I used within the config.js

    {
                            module: "email",
                            position: "top_left",
                            header: "Email",
                            config: {
                                    accounts: [
                                            {
                                                    user: "g**********@gmail.com",
                                                    password: "**********",
                                                    host: "imap.gmail.com",
                                                    port: 993,
                                                    tls: true,
                                                    authTimeout: 10000,
                                                    numberOfEmails: 5,
                                            }
                                    ],
                                    fade: false,
                                    maxCharacters: 50
                            }
                    },
    

    Thnx
    Frits

    S 2 Replies Last reply Apr 22, 2020, 11:47 AM Reply Quote 0
    • S Away
      sdetweil @FritsdeGroot
      last edited by Apr 22, 2020, 11:47 AM

      @FritsdeGroot are u trying to run in https mode?

      [2020-04-22 12:25:59.348] [ERROR] Error: self signed certificate

      Email notifier error:

      can u send me the upgrade log?
      ~/MagicMirror/installers/upgrade.log

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • S Away
        sdetweil @FritsdeGroot
        last edited by Apr 22, 2020, 12:01 PM

        @FritsdeGroot if you used this module https://github.com/ronny3050/email-mirror

        the upgrade script should have refreshed its dependencies (the upgrade log will show that)

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        1 / 1
        • First post
          3/3
          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