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

[SOLVED] PHP ERROR: Type: 1, File: /usr/local/pkg/haproxy/haproxy.inc

Scheduled Pinned Locked Moved Cache/Proxy
3 Posts 1 Posters 460 Views
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
    Sergei_Shablovsky
    last edited by Sergei_Shablovsky 28 days ago Mar 8, 2025, 8:13 AM

    Dear pfSense Gurus!

    Is anyone able to explain the source of this repeated error (pfSense CE, latest with all official patches):

    PHP ERROR: Type: 1, File: /usr/local/pkg/haproxy/haproxy.inc, Line: 1542, Message: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in /usr/local/pkg/haproxy/haproxy.inc:1542
    Stack trace:
    #0 /usr/local/pkg/haproxy/haproxy.inc(1542): fwrite()
    #1 /usr/local/pkg/haproxy/haproxy.inc(2516): haproxy_writeconf()
    #2 /usr/local/pkg/haproxy/haproxy.inc(1349): haproxy_check_run()
    #3 Standard input code(5): haproxy_configure()
    #4 {main}
      thrown
    

    After cold reboot this error disappear.

    After 10-30 days this error appear again.

    Disks system and controller are double checked twice: no errors.

    Thank You all!

    —
    CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
    Help Ukraine to resist, save civilians people’s lives !
    (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

    1 Reply Last reply Reply Quote 0
    • S
      Sergei_Shablovsky
      last edited by 29 days ago

      After upgrade to latest pfSense CE - error still exist.

      How to check what is the root of problem ?

      —
      CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
      Help Ukraine to resist, save civilians people’s lives !
      (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

      1 Reply Last reply Reply Quote 0
      • S
        Sergei_Shablovsky
        last edited by 28 days ago

        Got damn, there are one unused backend in HAproxy package configuration! How I miss it?…

        After delete AND cold pfSense-based server restart - error not appear at all.

        —
        CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
        Help Ukraine to resist, save civilians people’s lives !
        (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received