-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: Application crash due to update php 7.4.8 #15107
Comments
UPD: Crash occurs in those places where there is work with the database. I created a new project, there is nothing there, except for one model, without a search in the database everything is ok, with the search it crashes |
@sinbadxiii MySql database? |
yes
I'll try now if I succeed) |
@ruudboon It will be useful?
|
Same problem here... |
I have also experienced this issue and in my case it appears to be caused when I run apt update to update php7.4-phalcon with the latest PHP 7.4.8 update. I get a hard "Service Unavailable" 503 page with the text "The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later." I have a PHP 7.4 server that doesn't run Phalcon and it updated to PHP 7.4.8 just fine. Luckily for me I was able to roll back to last night's backup and recover or else I would be down hard right now. |
Can confirm this. Plesk rolled out 7.4.8 last night, and since then, I experience the 503 too. Ubuntu 18.04 here. €dit: Works well with 7.3.20. |
solved by:
and, to prevent upgrade create
|
|
I'm facing the explained issue with php 7.4.8 (Ondrej built) with Phalcon 4.0.5 |
PHP 7.4.8 and Phalcon 4.0.6 I get the same error in the version. $paginator->paginate(); |
You are right, after more tests same problem! |
I've made some tests and I've upgraded my phalcon extension to 4.0.6 (latest) version and I can't reproduce problems I've faced. I've faced two problems:
Now everything works fine but while I've installed phalcon via pecl I've received some errors and "Segmentation fault" in end of the process. Here is my command to update phalcon and it's output
Later today I'll test it on production and I'll give you additional information. UPDATE: After reinstall of phalcon everything works like a charm - tested in production environment |
great! Really, reinstalling the phalcon solves this problem and error 502 and error segmentation disappeared. I just did the installation again
I still have the same version of Phalcon 4.0.6, but now everything works. Magic :) |
In fact I've made some additional checks and size of phalcon.so is different on almost every server I ran on phalcon. Some examples: Server 1: Server 2: Server 3: To get this information I've used following command: du /usr/lib/php/20190902/phalcon.so && sha1sum /usr/lib/php/20190902/phalcon.so Maybe depending of installed software on the server but it's strange for me. Hope this will help :) |
Unfortunately, on another server I have phalcon installation not from the source, but from the package repository.
I had to urgently clone the source of the phalcon and reinstall it from it
and then everything worked |
I can confirm this with both the https://packagecloud.io/phalcon and http://ppa.launchpad.net/ondrej/php builds of Phalcon 4.0.6 Minimal test case to reproduce:
Re-building the extension from source reliably fixes the problem. I suspect there is some incompatibility at the ABI level in PHP 7.4.8. Please could you upload a new package on packagecloud.io for version 4.0.6 built against PHP 7.4.8? |
is the new package online? i tried to reinstall it, but the error still exists. |
I am also seeing the same error on CloudLinux (production environment, downgraded to PHP 7.3 as a workaround) and also installations via PECL on macOS development environments. Upgrades to PHP 7.4.8 appear to have triggered this in all cases for me: I was seeing lots of |
I have asked Remi to rebuild the package in remirepo: https://forum.remirepo.net/viewtopic.php?id=4024 |
new package uploaded to the Remi's repository, checked, working fine! |
Improve code style and scripts Only depends on PHP Tap for build and test Cleanup Abstract classes
Improve code style and scripts Only depends on PHP Tap for build and test Cleanup Abstract classes
Interesting, actually has the same problem but. I build it using latest zephir but still have zend_mm_heap corrupted error. |
I actually had some other problem i think - i had wrong service registered as modelsMetadata which was returning |
I tried re-installing the Phalcon using APT but that did not resolve the loading problem. I used "apt install php7.4-phalcon --reinstall". I and also using your packagecloud.io repo. Any update as to when this problem will be corrected in the repo? |
Im not sure but --reinstall doesnt recompile anything? You need to compile it yourself, as i understand above only in remo repositories it's recompiled. |
Hmm. What is the difference between the php-phalcon4 and php7.4-phalcon apt package? I saw a note above that suggested the php-phalcon4 update fixes the issue. It's clearly not resolved in the php7.4-phalcon package yet. So I'm wondering if I need to remove the php7.4-phalcon package and install php-phalcon4. EDIT: I removed php7.4-phalcon and installed php-phalcon4 and that appears to have fixed my site's loading problem. |
@kgrammer There are (at least) two ways to install the Phalcon 4 package for PHP 7.4 on Ubuntu systems:
To check which version you have installed, you can run I reached out to Ondřej a fortnight ago, and he re-built the package in his repository straight away. So far, the package on the official packagecloud.io repository does not seem to have been re-built. For now, I would recommend disabling the packagecloud.io repo and using Ondřej's package instead. Assuming you already have Ondřej's PPA configured:
Similar advice applies for Debian users (who will likely also be using Ondřej's packages) and RedHat / Centos users (who will likely be using Remi Collet's PHP packages, which also now have a re-built Phalcon package). |
Thanks. That was basically what I uncovered. It's nice to have that spelled out. And as noted in my edit above, I removed php7.4-phalcon and installed php-phalcon4 and everything works as expected now. When you "apt install php-phalcon4" you will be asked to install PSR, and that may prompt a question about using the packet installer's INI file if you already have one installed. I got the same question regarding the Phalcon INI file. So I accepted the packet installer's ini file for PSR, and kept my ini file for Phalcon since I have some php settings that I needed to keep. I need to decide if I will stay with php-phalcon4 or move back to php7.4-phalcon once (if?) they ever rebuild it. |
having the same issue of zend_mm_heap after upgrading from 7.4.7 to 7.4.8, latest php update of 7.4.9 doesnt seem to solve the issue, i cant continue to develop with phalcon due to this issue. I dont feel like i want to revert to laravel because of this. I really hope someone has a solution. The problem actually starts when a query is performed, such as after pressing the login button after entering username and password, the query where it checks the email and password is performed and then crashed with zend_mm_heap corrupted. I have reinstalled php, phalcon, even composer update dev tool and my project, still nothing is working, tested different project eg: laravel, yii it works just fine. But my phalcon is doomed. Somebody please come out with a solution. Still a newbie here |
@akiyamasensei555 I have also been experiencing these issues since PHP 7.4.8 updates. In production, my hosting provider uses CloudLinux who have rebuilt the Phalcon package (in the same way that Remi's repository rebuilt it, mentioned above). This is now working again, but we had to raise a support ticket with CloudLinux to ask them to rebuild the packages for us. Locally on my macOS development server, I used PECL to install Phalcon. This morning, I tried upgrading to PHP 7.4.9 (without rebuilding Phalcon) and it did not work (same To fix this, I ran I really do not know what caused the issue. For a short while, my only work around was to install PHP 7.3 with Phalcon 4.0.6 and develop off that instead, but I can at least report back today that a reinstallation via PECL worked for me on macOS. A build from source would probably also work. I'm not sure if any of this helps you, but fingers crossed. |
@richmilns hm. Okay, i will try it and give you a heads up if everything goes well. Fingers Crossed |
@richmilns currently am using brew to install phalcon FYI. Just in case theres any solution for brew |
@richmilns Solution work. i installed through PECL and uninstall brew version. For anyone with this problem, please uninstall brew version of phalcon, and install phalcon using PECL method. Correct me if im wrong. Thank you very much everyone |
@akiyamasensei555 Glad you got it working! I'm guessing that the HomeBrew package needs to be rebuilt then? |
@richmilns I guess so, because most solution ask to rebuild from source, and therefore basically i reinstall it, to no avail. I guess next time i just update from PECL. Spend like 4 days working on this thing |
Linux Debian-105-buster-64-minimal 4.19.0-10-amd64 #1 SMP Debian 4.19.132-1 (2020-07-24) x86_64 GNU/Linux And I got the same error with read config. Just install |
@GerrSwin mine still working though with php 7.4.10 without installing mbstring. But it could be because i already have mbstring installed |
@GerrSwin yeap confirmed. Mbstring is installed. However, i do not know why that would cause the problem |
After some analysis, seems that problem wasn't from Phalcon's part, all points that there was bug during compilation process of some library. In case some one in future will read this post and write why it happened, would be nice. Closing. |
Since I joined the party too late, and Phalcon 5 Alpha is also released, I had to checkout the branch for 4.1.2 before reinstalling. Just so everyone knows, I had exact same problem with Phalcon 4.1.2 running with PHP 7.4.3, MySQL 8.0.25 on Ubuntu 20.04
|
Today I updated the php from 7.4.7 to 7.4.8 and the application on phalcon4 gives a 502 error.
Details
run
phalcon servo
logsSegmentation fault (core dumped)
nginx logs
[error] 1843#1843: *1636 recv() failed (104: Connection reset by peer) while reading response header from upstream
php-fpm logs
[pool www] child 31495 exited on signal 11 (SIGSEGV - core dumped) after 2.853970 seconds from start
I repeat, on version 7.4.7 everything is ok.
Does anyone have such problems?
The text was updated successfully, but these errors were encountered: