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

Receiving "Fatal error zend opcache cannot allocate buffer for interned strings" After increasing RAM allocated to VM from 256MB to 512 or 1024 MB.

Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
9 Posts 4 Posters 2.0k 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.
  • W
    Whytefang
    last edited by Mar 21, 2019, 1:58 AM

    I'm seeing enough RAM usage on my pfsense install after starting it up today (it worked first try, too, woohoo) - with everything connected and running, it's sitting idle at about 60% of 209MiB - that I wanted to increase the amount of RAM the VM is allocated to 1 or 2 GB. Unfortunately upon doing so, pfsense completely fails to do anything after booting up and spits out this error:

    "Fatal error zend opcache cannot allocate buffer for interned strings"

    upon attempting to use most of the console commands (though I did not try all of them). It does not even list either my LAN or WAN interfaces.

    Some googling seems to imply this is an issue with PHP's maximum RAM settings, but I have no idea how to go about modifying those nor whether that is actually the issue.

    I assume it would be possible to export the settings to my host system, reinstall pfsense with the new amount of RAM and then import my settings from the host but I would like to avoid if possible.

    I'm not quite sure what information on my setup would be helpful here, so please don't hesitate to ask if you need anything.

    1 Reply Last reply Reply Quote 0
    • S
      stephenw10 Netgate Administrator
      last edited by Mar 24, 2019, 7:06 PM

      Hmm, hard to see how just increasing the RAM available could do that.

      This is just a default install or are you running packages there? Which ones?

      Steve

      W 1 Reply Last reply Mar 25, 2019, 12:34 AM Reply Quote 0
      • W
        Whytefang @stephenw10
        last edited by Mar 25, 2019, 12:34 AM

        @stephenw10 said in Receiving "Fatal error zend opcache cannot allocate buffer for interned strings" After increasing RAM allocated to VM from 256MB to 512 or 1024 MB.:

        Hmm, hard to see how just increasing the RAM available could do that.

        This is just a default install or are you running packages there? Which ones?

        Steve

        It was just the default install, I believe; I moved my install from VMWare to VirtualBox and increased the RAM while doing the reinstall and it's functioning just fine with 2GBs now, but I don't have the old install running anymore. I can scrub the personal data out of it and send in the disk image of the old install somewhere, if that would be helpful.

        1 Reply Last reply Reply Quote 0
        • S
          stephenw10 Netgate Administrator
          last edited by Mar 25, 2019, 3:07 AM

          If it's easily replicable the devs may want to look at it. I can't test that easily myself.
          Opening a bug report for it is probably best if it is: https://redmine.pfsense.org/

          Steve

          1 Reply Last reply Reply Quote 0
          • O
            oli
            last edited by May 28, 2020, 8:53 AM

            If someone else struggles with this:

            We faced the same issue on Red Hat Virtualization 4.1.

            No change in compatibility mode or operating system worked.

            compatibility mode:

            • 4.3 NOK
            • 4.2 NOK
            • 4.1 NOK

            operating system:

            • freebsd 9.2 x64 NOK
            • freebsd 9.2 NOK
            • linux NOK
            • debian 7 NOK
            • other linux (kernel 4.x) NOK
            • other os NOK

            What resolved the issue however, was to do a fresh reinstall the pfSense on a new VM with the required amount of memory. Restoring the configuration from the smaller VM into the bigger one worked flawlessly.

            Conclusion: It seems that the amount of memory can not be scaled up after installation.

            G 1 Reply Last reply May 28, 2020, 9:24 AM Reply Quote 0
            • G
              Gertjan @oli
              last edited by May 28, 2020, 9:24 AM

              @oli said in Receiving "Fatal error zend opcache cannot allocate buffer for interned strings" After increasing RAM allocated to VM from 256MB to 512 or 1024 MB.:

              Conclusion: It seems that the amount of memory can not be scaled up after installation.

              I'm using an of the shelves Hyper-V, the one build in Windows, @home.
              Pretty sure I can raise the memory allocated for a VM. As I could add a RAM bank in a slot on the mother board, or remove one.
              I'll give it a shot this evening.

              No "help me" PM's please. Use the forum, the community will thank you.
              Edit : and where are the logs ??

              1 Reply Last reply Reply Quote 0
              • O
                oli
                last edited by May 28, 2020, 10:57 AM

                Alright. Just to clarify, I am strictly talking about a pfSense VM, we don't face that issue with any other guest host.

                1 Reply Last reply Reply Quote 0
                • G
                  Gertjan
                  last edited by May 28, 2020, 11:08 AM

                  Understood.
                  A pfSense, locked up in a VM. Mine is going to move from 1 to 2 Gbytes during a reboot.

                  No "help me" PM's please. Use the forum, the community will thank you.
                  Edit : and where are the logs ??

                  1 Reply Last reply Reply Quote 0
                  • S
                    stephenw10 Netgate Administrator
                    last edited by May 31, 2020, 3:47 PM

                    That's not the same though. Changing from <512MB to 512MB or mode causes more significant changes. You would need to test that specifically.

                    Steve

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                      [[user:consent.lead]]
                      [[user:consent.not_received]]