Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Haraka mailserver crashing after sending or receiving email

Haraka mailserver crashing after sending or receiving email

Scheduled Pinned Locked Moved Solved Support
mail
8 Posts 5 Posters 772 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    ccfu
    wrote on last edited by girish
    #1

    I have noticed that the mailserver is crashing and immediately restarting regularly after successfully sending or receiving email. Anyone any idea why this is happening and / or what I can do to rectify it? This is what I get in the logs:

    Feb 28 14:53:44 [INFO] [-] [core] [outbound] Socket [outbound::2424:127.0.0.1:undefined:300] in pool got FIN
    Feb 28 14:53:44 [CRIT] [-] [core] Error: Resource not currently part of this pool
    Feb 28 14:53:44 [CRIT] [-] [core] at Pool.destroy (/app/code/haraka/node_modules/generic-pool/lib/Pool.js:548:9)
    Feb 28 14:53:44 [CRIT] [-] [core] at sockend (/app/code/haraka/outbound/client_pool.js:172:37)
    Feb 28 14:53:44 [CRIT] [-] [core] at pluggableStream.<anonymous> (/app/code/haraka/outbound/client_pool.js:164:9)
    Feb 28 14:53:44 [CRIT] [-] [core] at Object.onceWrapper (node:events:509:28)
    Feb 28 14:53:44 [CRIT] [-] [core] at pluggableStream.emit (node:events:390:28)
    Feb 28 14:53:44 [CRIT] [-] [core] at TLSSocket.<anonymous> (/app/code/haraka/tls_socket.js:79:18)
    Feb 28 14:53:44 [CRIT] [-] [core] at TLSSocket.emit (node:events:402:35)
    Feb 28 14:53:44 [CRIT] [-] [core] at endReadableNT (node:internal/streams/readable:1343:12)
    Feb 28 14:53:44 [CRIT] [-] [core] at processTicksAndRejections (node:internal/process/task_queues:83:21)
    Feb 28 14:53:44 [NOTICE] [-] [core] Shutting down
    Feb 28 14:53:44 2023-02-28 13:53:44,398 INFO exited: haraka (exit status 1; not expected)
    Feb 28 14:53:45 2023-02-28 13:53:45,407 INFO spawned: 'haraka' with pid 215445
    Feb 28 14:53:45 loaded TLD files:
    Feb 28 14:53:45 1=1487
    Feb 28 14:53:45 2=8571
    Feb 28 14:53:45 3=2448
    Feb 28 14:53:45 loaded 9459 Public Suffixes
    Feb 28 14:53:46 loglevel: INFO
    Feb 28 14:53:46 log format: DEFAULT
    Feb 28 14:53:46 Starting up Haraka version 2.8.28
    Feb 28 14:53:46 [INFO] [-] [core] Loading plugins
    Feb 28 14:53:46 [INFO] [-] [core] Loading plugin: delay_deny
    Feb 28 14:53:46 [INFO] [-] [core] Loading plugin: dnsbl
    Feb 28 14:53:46 [INFO] [-] [core] Loading plugin: helo.checks
    Feb 28 14:53:46 [INFO] [-] [core] Loading plugin: headers
    Feb 28 14:53:46 [INFO] [-] [core] Loading plugin: tls
    Feb 28 14:53:46 [INFO] [-] [core] loading tls.ini
    Feb 28 14:53:46 [INFO] [-] [core] Loading plugin: spf
    Feb 28 14:53:46 [INFO] [-] [core] Loading plugin: cloudron
    Feb 28 14:53:46 [INFO] [-] [core] Loading plugin: rcpt_to.in_host_list
    Feb 28 14:53:46 [INFO] [-] [core] Loading plugin: dkim_sign
    Feb 28 14:53:46 [INFO] [-] [core] Loading plugin: spamassassin
    Feb 28 14:53:46 [INFO] [-] [core] Loading plugin: queue/smtp_forward
    Feb 28 14:53:46 [INFO] [-] [core] Loading plugin: limit
    Feb 28 14:53:46 [INFO] [-] [core] getting SocketOpts for SMTPS server
    Feb 28 14:53:46 [NOTICE] [-] [core] Listening on [::0]:2525
    Feb 28 14:53:46 [INFO] [-] [core] Creating TLS server on [::0]:2465
    Feb 28 14:53:46 [NOTICE] [-] [core] Listening on [::0]:2465
    Feb 28 14:53:46 [NOTICE] [-] [core] Listening on [::0]:2587
    Feb 28 14:53:46 [INFO] [-] [cloudron] Initializing queue server on port 6000
    Feb 28 14:53:46 [INFO] [-] [limit] connected to redis://127.0.0.1:6379/4
    Feb 28 14:53:46 [INFO] [-] [core] [outbound] Loading outbound queue from /app/data/haraka-queue
    Feb 28 14:53:46 [INFO] [-] [core] [outbound] Loading the queue...
    Feb 28 14:53:46 [INFO] [-] [core] [outbound] [pid: undefined] 0 files in my delivery queue
    Feb 28 14:53:46 [INFO] [-] [core] [outbound] [pid: undefined] 0 files in my load queue
    Feb 28 14:53:46 [INFO] [-] [core] [outbound] [pid: undefined] 0 files in my temp fail queue
    Feb 28 14:53:47 2023-02-28 13:53:47,261 INFO success: haraka entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
    
    KubernetesK 1 Reply Last reply
    1
    • nebulonN nebulon marked this topic as a question on
    • KubernetesK Offline
      KubernetesK Offline
      Kubernetes App Dev
      replied to ccfu on last edited by
      #2

      I have also such crashes in my logs, but not after every e-mail sent or received, but sometimes.

      1 Reply Last reply
      0
      • nebulonN Offline
        nebulonN Offline
        nebulon Staff
        wrote on last edited by
        #3

        This might be related to https://github.com/haraka/Haraka/issues/3118

        C 1 Reply Last reply
        0
        • C Offline
          C Offline
          ccfu
          replied to nebulon on last edited by
          #4

          @nebulon

          Looks like it might be related, yes. Are there any plans to update the mailserver version in Cloudron soon? I don't think it is having a negative effect on mail operations but it is annoying. The error seems to be linked to pooling, which has been changed in version 3.

          1 Reply Last reply
          1
          • girishG Offline
            girishG Offline
            girish Staff
            wrote on last edited by
            #5

            The current stable version of Cloudron uses Haraka 83a952b009cda .

            We already updated Haraka to 3.0.1 which maybe fixes this issue. The pooling code is now gone - https://github.com/haraka/Haraka/pull/3115 .

            @ccfu @Kubernetes maybe we can try to update the mail container in your servers to see if things work better now? Otherwise, we have to debug this further. Can you write to us at support@cloudron.io ?

            1 Reply Last reply
            2
            • girishG Offline
              girishG Offline
              girish Staff
              wrote on last edited by
              #6

              Following up from support: server was patched manually to latest version of Haraka.

              O 1 Reply Last reply
              1
              • girishG girish has marked this topic as solved on
              • O Offline
                O Offline
                opensourced
                replied to girish on last edited by
                #7

                @girish I also see this error on one of my cloudrons.. Will your patch soon be released in an update?

                girishG 1 Reply Last reply
                1
                • girishG Offline
                  girishG Offline
                  girish Staff
                  replied to opensourced on last edited by
                  #8

                  @opensourced yes, should be out next week along with 7.4

                  1 Reply Last reply
                  0

                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Bookmarks
                  • Search