I'm having a bizarre problem... I am unable to create users or login with certain users. I was able to trigger a 503 error with this code. It is caused by php-fpm process being killed, and thus apache timing out.
which is quite strange. After some analysis it shows that when that user tries to log-in (or the above code is executed, or the API call for getting the user data is made by the frontend) the script will suddenly eat up all available ram.
Also, I am able to login without problems with my administrator account, and some other account. It may be a database problem but when I duplicated the user row and changed their id the problem would persist...
I'm not sure it depends on Espo yet, but I would like to know what you think about this yuri
I am also working with cpanel support team to troubleshooting. Do you know any condition that could result in this wild memory allocation?
I had a look at the toArray function and seems quite normal to me. Maybe there is some underhanded bug I am not seeing.
Code:
$a = $this->getEntityManager()->getEntity('User','5ec4fc7cb73e789df'); // this is ok, the internal values array is populated correctly $b = $a->toArray(); // when this line is executed ram is swallowed
Also, I am able to login without problems with my administrator account, and some other account. It may be a database problem but when I duplicated the user row and changed their id the problem would persist...
I'm not sure it depends on Espo yet, but I would like to know what you think about this yuri
I am also working with cpanel support team to troubleshooting. Do you know any condition that could result in this wild memory allocation?
I had a look at the toArray function and seems quite normal to me. Maybe there is some underhanded bug I am not seeing.
Comment