Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

Memory exhausted during upgrade.

Power Quest   ( User )

Commented 4 years ago

Go this error while attempting to upgrade:
(allowed memory size of 33554432 bytes exhausted (tried to allocate 39107088 bytes))

So i raised the memory in the server to 1024M instead. Also made a test info php file to double check and it also now confirms that the web application now has (the web rootetc) has 1024M available to be used by Akaunting..

After that attempted to run again and the same error appears:
Downloading core update... In Stream.php line 97: Allowed memory size of 33554432 bytes exhausted (tried to allocate 39107088 bytes)

Power Quest   ( User )

Commented 4 years ago

I forgot to mention that I've also talked to our host today and they confirm that Akaunting has access to 1024M of memory.

Zeeshan Javed   ( User )

Commented 4 years ago

i am having exact same error , i have even set the memory_limit to 1024M but still same error

Zeeshan Javed   ( User )

Commented 4 years ago

i found a solution to this issue finally :) . if you have WHM access for your hosting , i can fix it for you.

Power Quest   ( User )

Commented 4 years ago

Could you maybe be kind and share the solution here and tell what you did please?
Not only for me, but for others in the Akaunting community that might experience the same issue..

Thanks!

Zeeshan Javed   ( User )

Commented 4 years ago

its simple. as i said you need to have WHM access to fix this issue by yourself. just login to your WHM, go to MultiPHP INI Editor , select the version of php you are using for the akaunting installation and change the memory_limit = 128M and save changes . after that restart the PHP-FPM service for Apache.

note you need to make sure you are using php-cgi or php-fpm as you need to do changes in relevant configuration file.

Zeeshan Javed   ( User )

Commented 4 years ago

hope this helps and if you are still no able to fix it yourself , i can do it as a paid job. let me know if interested. my email is : [email protected]

Power Quest   ( User )

Commented 4 years ago

So basically you are changing the global memory_limit setting for the whole server, right?
Interesting.
Thank you for sharing I will check this.

Zeeshan Javed   ( User )

Commented 4 years ago

yes it will impact globally , i was doing it before from cpanel for individual php instance and changing same parameter won't make a difference.

Power Quest   ( User )

Commented 4 years ago

Well that actually worked fine. Weird.
But now we have another problem as the login doesn't work. It just hangs after you press on the login button. After enabling debug I get this exception message, (I removed/renames sensitive data):
SQLSTATE[HY000] [1045] Access denied for user 'something678_dbexampleuser'@'localhost' (using password: YES) (SQL: select * from `kyi_users` where `email` = [email protected] and `kyi_users`.`deleted_at` is null limit 1)

Please login or register to leave a response.

Showing 1 to 10 of 15 discussions