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
  • Brite
  • 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

Offical apps | Community apps | Demo | Docs | Install
N

nilp

@nilp
Unfollow Follow
About
Posts
11
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Cloudron 10.0.4: nightly Bayes learning crashes mail-service (EPIPE) on messages > 500 KB
    N nilp
    Support mail spam

    Thanks @girish! I've applied the commit (mail 4.5.0) and restarted box: only the mail container
    was recreated, everything else stayed up.

    I replayed the exact message that crashed last night's run (5.6 MB). It is no longer picked by
    findMailFiles(), and even when fed directly with the new spamcLearn() arguments, spamc exits with 98,
    it's handled as "skipped" and the process stays up. Over the last 3 days, 242 messages above 500 KB
    are now excluded.

    The sieve bin_path and default_vsz_limit = 2G changes are working too. I'll confirm "learning done"
    after tonight's run.


  • Cloudron 10.0.4: nightly Bayes learning crashes mail-service (EPIPE) on messages > 500 KB
    N nilp
    Support mail spam

    Thanks @girish! Confirmed again last night on 10.1.5: the run stopped at a 5.6 MB message.

    One small suggestion alongside the size filter: an 'error' listener on child.stdin in
    execFileWithInput() would also stop any other early spamc exit from taking mail-service down.

    Happy to test the fix when it's out.


  • Cloudron 10.0.4: nightly Bayes learning crashes mail-service (EPIPE) on messages > 500 KB
    N nilp
    Support mail spam

    @girish can you fix it ?


  • Cloudron 10.0.4: nightly Bayes learning crashes mail-service (EPIPE) on messages > 500 KB
    N nilp
    Support mail spam

    I've now updated to 10.1.5, and unfortunately it doesn't fix it.

    The running mail container is now cloudron/mail:4.4.4 (Node.js v24.21.0). I ran the same reproduction
    inside it, using its own /app/code/shell.js, against a closed port so nothing was learned: spamc exits
    with 98 on a 2 MB message, and the process dies with the same "Unhandled 'error' event / write EPIPE".

    So the nightly learnFromUserMail() run on 10.1.5 will still crash mail-service at the first candidate
    message larger than spamc's 500 KB default, and the mailboxes after it are never trained.


  • Mail: Dovecot `default_vsz_limit` stuck at 256M, large mailboxes fail to mmap their index cache
    N nilp
    Support mail dovecot

    Mail: Dovecot default_vsz_limit stuck at 256M, large mailboxes fail to mmap their index cache

    On mailboxes with a large index cache, Dovecot logs this when they are opened or indexed (Cloudron 10.1.5, mail 4.4.4, Dovecot 2.4.2; it already happened with 10.0.5 and Dovecot 2.3):

    indexer-worker(user1@example.com): Error: Mailbox INBOX: mmap(size=200498572) failed with file /app/data/vmail/user1@example.com/mail/dovecot.index.cache: Cannot allocate memory
    imap(user2@example.com): Error: Mailbox Archive: mmap(size=111789528) failed with file /app/data/vmail/user2@example.com/mail/.Archive/dovecot.index.cache: Cannot allocate memory
    

    A third mailbox (about 170,000 mails, 48 GB) has a 313 MB dovecot.index.cache and fails the same way. Dovecot then works without the cache, and these mailboxes are slow to open.

    The cause is Dovecot's per-process limit, which stays at its default:

    # doveconf -h default_vsz_limit
    256 M
    

    dovecot.conf.template does not set it. Raising the mail service memory limit in the dashboard does not help: the container now has about 25 GB, and every Dovecot process is still capped at 256M. Dovecot's own sample config says so: "Most of the memory goes to mmap()ing files. You may need to increase this limit if you have huge mailboxes."

    Could the mail container raise this limit, either default_vsz_limit or vsz_limit for service imap and service indexer-worker (1G for example)? It could also follow the memory limit set in the dashboard. A supported way to add a custom Dovecot setting would solve it as well.


  • Mail 4.4.4 (Cloudron 10.1.5): "Read-only file system" error for the spam-move sieve binary on every delivery
    N nilp
    Support mail spam dovecot

    Mail 4.4.4 (Cloudron 10.1.5): "Read-only file system" error for the spam-move sieve binary on every delivery

    Since the update to Cloudron 10.1.5 (mail 4.4.4, Dovecot 2.4.2), every incoming mail logs this in the mail service log (about two lines per delivery):

    lmtp(user@example.com): Error: sieve: binary /app/code/dovecot-config/sieve_before/spam-move.svbin: save: failed to create temporary file: open(/app/code/dovecot-config/sieve_before/spam-move.svbin.<random>) failed: Read-only file system
    

    Filtering still works: Dovecot compiles spam-move.sieve in memory each time, and mails with X-Spam-Flag: YES still go to Spam. So it is only log noise, plus a recompilation on every delivery.

    As far as I can tell, /app/code/dovecot-config/sieve_before/ only ships spam-move.sieve (no precompiled .svbin), and /app/code is read-only. Dovecot therefore tries to save the compiled binary next to the script and fails. From dovecot.conf.template:

    sieve_script before {
        type = before
        path = /app/code/dovecot-config/sieve_before
    }
    

    Possible fixes: precompile the script when building the image (sievec /app/code/dovecot-config/sieve_before/spam-move.sieve, with the same Dovecot 2.4), or store the compiled binary in a writable directory such as /run/dovecot/sieve-bin (sieve_script_bin_path in Pigeonhole 2.4).


  • Cloudron 10.0.4: nightly Bayes learning crashes mail-service (EPIPE) on messages > 500 KB
    N nilp
    Support mail spam

    I also checked the 10.1.5 mail image (cloudron/mail:4.4.4) before updating:
    shell.js and spamcLearn() are unchanged, so the issue is still there in 10.1.5.


  • Cloudron 10.0.4: nightly Bayes learning crashes mail-service (EPIPE) on messages > 500 KB
    N nilp
    Support mail spam

    Thanks for the suggestion! I've updated to 10.0.5. The dashboard now says there is no further update
    available, so 10.1.5 isn't offered to me yet.

    Unfortunately the issue is still there. The mail container is now cloudron/mail:4.3.9, but
    execFileWithInput() in shell.js and spamcLearn() in spamd.js are unchanged: there is still no 'error'
    listener on child.stdin, and no size filter on the candidate files.

    I re-ran the reproduction inside the new container, this time using its own /app/code/shell.js: spamc
    exits with 98 on a 2 MB message, and the process dies with the same "Unhandled 'error' event / write
    EPIPE". So the nightly learning run should still stop at the first message larger than 500 KB.


  • Cloudron 10.0.4: nightly Bayes learning crashes mail-service (EPIPE) on messages > 500 KB
    N nilp
    Support mail spam

    Since updating to Cloudron 10.0.4 (mail container cloudron/mail:4.3.5, Ubuntu 24.04), the nightly
    Bayes training never completes. It stops after a few mailboxes, every night.

    Mail logs at midnight:

    learnFromUserMail: learning start
    learnFromUserMail: learning from mailbox ...            (6 mailboxes)
    learnFromUserMail: learning as ham: /app/data/vmail/<user>/mail/cur/...,S=21845327,...
    node:events:487
          throw er; // Unhandled 'error' event
    Error: write EPIPE
        at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:87:19)
    Node.js v24.19.0
    WARN exited: mail-service (exit status 1; not expected)
    INFO reaped unknown pid 11009 (exit status 98)
    INFO spawned: 'mail-service' with pid 11010
    

    "learning done" is never logged, all mailboxes after that one are never trained, and no summary
    event is written.

    Cause, as far as I can tell:

    • spamcLearn() in /app/code/spamd.js pipes the whole file to spamc through
      shell.execFileWithInput().
    • spamc's default --max-size is 500 KB. For a bigger message it exits immediately with 98
      (EX_TOOBIG), before even connecting to spamd.
    • The rest of the write to child.stdin then fails with EPIPE. execFileWithInput() in
      /app/code/shell.js has no 'error' listener on child.stdin, so this becomes an uncaught
      exception that kills mail-service.
    • Candidates are the last 3 days of mail (LEARN_DAYS), so any message with an attachment

      500 KB is enough to trigger it, which in practice means every night.

    Reproduction inside the mail container, against a closed port so nothing is actually learned:

    spamc -p 1 -u test@invalid --learntype ham < small.eml ; echo $?   # 69 (tries to connect)
    spamc -p 1 -u test@invalid --learntype ham < 2MB.eml   ; echo $?   # 98 (too big, exits at once)
    

    A small Node script doing execFile('spamc', ) followed by child.stdin.end(<2 MB buffer>)
    dies with the same "Unhandled 'error' event / write EPIPE".

    Possible fixes, either would do:

    • in execFileWithInput(), add child.stdin.on('error', () => {}) so the failure is reported by
      the execFile callback instead of crashing the process;
    • in findMailFiles(), skip files above spamc's max size (e.g. find -size -500k), or treat
      exit code 98 as "skipped" rather than as a failure.

    Thanks!


  • Vaultwarden fails to start after update – DB migration error (SSO)
    N nilp
    Vaultwarden

    thank you James !


  • Vaultwarden fails to start after update – DB migration error (SSO)
    N nilp
    Vaultwarden

    I've got an error during upgrade of Vaultwarden from 1.22.2 to 1.23.0 or more 1.24.0 etc... : 

     Please generate a secure Argon2 PHC string by using `vaultwarden hash` or `argon2`.
    Jan 17 19:10:33 See: https://github.com/dani-garcia/vaultwarden/wiki/Enabling-admin-page#secure-the-admin_token
    Jan 17 19:10:33 2026-01-17T19:10:33+01:00
    Jan 17 19:10:34 [2026-01-17 18:10:34.083][panic][ERROR] thread 'main' panicked at 'Error running migrations: QueryError(DieselMigrationName { name: "2024-03-06-170000_add_sso_users", version: MigrationVersion("20240306170000") }, DatabaseError(Unknown, "Referencing column 'user_uuid' and referenced column 'uuid' in foreign key constraint 'sso_users_ibfk_1' are incompatible."))': src/db/mod.rs:505
    Jan 17 19:10:34 0: vaultwarden::init_logging::{{closure}}
    Jan 17 19:10:34 1: std::panicking::panic_with_hook
    Jan 17 19:10:34 2: std::panicking::panic_handler::{{closure}}
    Jan 17 19:10:34 3: std::sys::backtrace::__rust_end_short_backtrace
    Jan 17 19:10:34 4: __rustc::rust_begin_unwind
    Jan 17 19:10:34 5: core::panicking::panic_fmt
    Jan 17 19:10:34 6: core::result::unwrap_failed
    Jan 17 19:10:34 7: vaultwarden::db::DbPool::from_config
    Jan 17 19:10:34 8: vaultwarden::main::{{closure}}
    Jan 17 19:10:34 9: vaultwarden::main
    Jan 17 19:10:34 10: std::sys::backtrace::__rust_begin_short_backtrace
    Jan 17 19:10:34 11: main
    Jan 17 19:10:34 12: <unknown>
    Jan 17 19:10:34 13: __libc_start_main
    Jan 17 19:10:34 14: _start
    Jan 17 19:10:34 2026-01-17T19:10:34+01:00
    

    Can you help me ?

    Regards

  • Login

  • Don't have an account? Register

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