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

    The firewall has enountered an error

    Scheduled Pinned Locked Moved Development
    12 Posts 3 Posters 1.5k 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.
    • A
      abdo22
      last edited by

      Crash report begins. Anonymous machine information:

      amd64
      11.2-RELEASE-p4
      FreeBSD 11.2-RELEASE-p4 #55 2a8cfe96146(RELENG_2_4_4): Mon Oct 22 20:42:08 EDT 2018 root@buildbot3:/crossbuild/ce-master/obj/amd64/9kCJYnqE/crossbuild/ce-master/pfSense/tmp/FreeBSD-src/sys/pfSense
      Crash report details:

      PHP Errors:
      [23-Oct-2018 14:06:22 ] PHP Warning: file_put_contents(/usr/local/etc/c-icap/c-icap.conf): failed to open stream: Operation not permitted in /usr/local/pkg/squid_antivirus.inc on line 310

      i am using Version 2.4.5-DEVELOPMENT (amd64)
      i am reporting this problem
      if any one know how to fix this please respond
      i cant use HTTPS/SSL Interception once it is activated
      i cant access any web site i have to deactivate it so i can surf the web

      A 1 Reply Last reply Reply Quote 0
      • A
        abdo22 @abdo22
        last edited by

        a new error occurred and it is
        file_put_contents(/usr/local/etc/c-icap/c-icap.conf): failed to open stream: Operation not permitted in /usr/local/pkg/squid_antivirus.inc on line 653

        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          Something must have messed up that particular file.

          Run this from a shell prompt:

          rm -rf /usr/local/etc/c-icap/
          

          Make extra sure you have that exactly correct, no extra spaces.

          Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          A 1 Reply Last reply Reply Quote 1
          • A
            abdo22 @jimp
            last edited by

            @jimp
            Thank you for your reply
            I did what you have told me but I got an error
            First
            rm: /usr/local/etc/c-icap.config : operation not permitted
            Second
            m: /usr/local/etc/c-icap/ : Directory is not empty

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              If you received that error, you did not copy the command exactly as written in my last post. Try again.

              Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              A 1 Reply Last reply Reply Quote 1
              • A
                abdo22 @jimp
                last edited by

                @jimp
                i have copied the command you gave me
                alt text

                1 Reply Last reply Reply Quote 0
                • GrimsonG
                  Grimson Banned
                  last edited by

                  jimp clearly told you to run it from a shell prompt, so either local console or ssh and not from the WebUI.

                  A 1 Reply Last reply Reply Quote 1
                  • A
                    abdo22 @Grimson
                    last edited by

                    @grimson
                    I did it too but I couldn't screenshot it
                    Same error
                    I think I need to make factory reset or install fresh copy

                    1 Reply Last reply Reply Quote 0
                    • jimpJ
                      jimp Rebel Alliance Developer Netgate
                      last edited by

                      There could be a problem with the disk or filesystem. It might be stuck in read-only mode. You might need to reboot it and force a disk check.

                      From ssh or the console, choose the reboot option and then the option on the next screen to force a disk check. That may hopefully take care of it.

                      Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                      Need help fast? Netgate Global Support!

                      Do not Chat/PM for help!

                      A 1 Reply Last reply Reply Quote 1
                      • A
                        abdo22 @jimp
                        last edited by

                        @jimp
                        when updating to 2.4.4 stable version
                        i have encountered this bug
                        c-icap was not working for some time and i had to modify it manually
                        i followed the instructions in this post
                        https://forum.netgate.com/topic/133774/2-4-x-squid-clamav-fix-for-c-icap-0-5-x-not-starting
                        but i had to use this command
                        chflags schg /usr/local/etc/c-icap/c-icap.conf
                        to keep file intact after i have modified it
                        there is a probability that is command might be what is causing the problem

                        1 Reply Last reply Reply Quote 0
                        • jimpJ
                          jimp Rebel Alliance Developer Netgate
                          last edited by

                          Yes, because that command told it not to let anything change that file. That's why you shouldn't apply hackish fixes to things.

                          You can probably work around it by doing chflags noschg on the file to negate what was done to it before.

                          Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                          Need help fast? Netgate Global Support!

                          Do not Chat/PM for help!

                          A 1 Reply Last reply Reply Quote 1
                          • A
                            abdo22 @jimp
                            last edited by

                            @jimp
                            you are right
                            you command ( chflags noschg ) fixed it
                            now i could run ( rm -rf /usr/local/etc/c-icap/ )
                            thanks alot for your support

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