Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    curl backup fails sometimes with unexpected eof while reading

    Scheduled Pinned Locked Moved General pfSense Questions
    1 Posts 1 Posters 172 Views 1 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.
    • S Offline
      slu
      last edited by slu

      Hi,

      we use the curl [1] backup method since years without issue, but actual with Debian 13 and pfSense 2.8.1 we got sometimes this error during download the backup:

      curl: (56) OpenSSL SSL_read: OpenSSL/3.5.1: error:0A000126:SSL routines::unexpected eof while reading, errno 0
      

      Error in the pfSense logs:

      2025/09/16 14:51:42 [crit] XX#XX: *XX SSL_write() failed (13: Permission denied) while processing HTTP/2 connection, client: 192.168.14.23, server: 0.0.0.0:443
      

      The backup abort in this moment and is not complete, here are the options:

      curl -L -k --cookie cookies.txt --cookie-jar cookies.txt \
           --data-urlencode "download=download" \
           --data-urlencode "backupdata=yes" \
           --data-urlencode "backupssh=yes" \
           --data-urlencode "__csrf_magic=$(head -n 1 csrf.txt)" \
      [...]
      

      We try now to disable the RRD files, maybe this help.

      Any idea whats wrong here?

      curl 8.14.1
      OpenSSL 3.5.1 1 Jul 2025

      [1] https://docs.netgate.com/pfsense/en/latest/backup/remote-backup.html#using-curl

      pfSense Gold subscription

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.