Receiving "Fatal error zend opcache cannot allocate buffer for interned strings" After increasing RAM allocated to VM from 256MB to 512 or 1024 MB.
-
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.
-
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
-
@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.
-
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
-
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.
-
@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. -
Alright. Just to clarify, I am strictly talking about a pfSense VM, we don't face that issue with any other guest host.
-
Understood.
A pfSense, locked up in a VM. Mine is going to move from 1 to 2 Gbytes during a reboot. -
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