I tried updating the web app from v5.3.75 to v5.3.76 and I get the following error:
Cannot update system because README.md is not writable
Would anyone be able to help me?
I tried updating the web app from v5.3.75 to v5.3.76 and I get the following error:
Cannot update system because README.md is not writable
Would anyone be able to help me?
Hi,
Looks like permissions issue, I suggest checking the project folder is writeable by the web user.
Hey, Iâm kinda new to Linux.
How do I give the web user read and write permissions?
sudo chown -R www-data:www-data /var/www/html/ninja
once I did that. I tried the update again, and got the following error:
Server Error
ps.
This is actually an error I got on another invoiceninja I just set up for my dad. I tried updating his server, itâs brand new, he didnât even log in yet. but when I tried updating that one also I got a flash pop up that said Server Error
There should be details about the error in storage/logs
These are the only logs i found:
âlaravel.logâ
[2022-03-02 03:10:01] production.INFO: account table not found
[2022-03-02 03:15:01] production.INFO: account table not found
[2022-03-02 03:20:01] production.INFO: account table not found
[2022-03-02 03:25:01] production.INFO: account table not found
[2022-03-02 03:30:01] production.INFO: account table not found
[2022-03-02 03:35:01] production.INFO: account table not found
[2022-03-02 03:40:01] production.INFO: account table not found
[2022-03-02 03:45:01] production.INFO: account table not found
[2022-03-02 03:50:01] production.INFO: account table not found
[2022-03-02 03:55:02] production.INFO: account table not found
[2022-03-02 04:00:02] production.INFO: account table not found
[2022-03-02 04:00:02] production.INFO: account table not found
[2022-03-02 04:00:02] production.INFO: account table not found
[2022-03-02 04:05:02] production.INFO: account table not found
[2022-03-02 04:10:02] production.INFO: account table not found
[2022-03-02 04:15:02] production.INFO: account table not found
[2022-03-02 04:20:01] production.INFO: account table not found
[2022-03-02 04:25:01] production.INFO: account table not found
[2022-03-02 05:00:02] production.INFO: account table not found
[2022-03-02 05:00:02] production.INFO: account table not found
[2022-03-02 05:00:02] production.INFO: account table not found
[2022-03-02 05:05:02] production.INFO: account table not found
[2022-03-02 05:08:37] production.INFO: account table not found
[2022-03-02 05:08:42] production.INFO: account table not found
[2022-03-02 05:09:49] production.INFO: account table not found
[2022-03-02 05:09:51] production.INFO: account table not found
[2022-03-02 05:10:02] production.INFO: account table not found
[2022-03-03 00:01:01] production.INFO: updating currencies
[2022-03-03 00:30:01] production.INFO: Performing Autobilling 2022-03-03 12:30:01
[2022-03-04 00:01:01] production.INFO: updating currencies
[2022-03-04 00:30:01] production.INFO: Performing Autobilling 2022-03-04 12:30:01
But I donât think it has to do with me trying to update
I found the log!
[2022-03-27 19:07:57] production.ERROR: Allowed memory size of 134217728 bytes exhausted (tried to allocate 123732000 bytes) {âuserIdâ:1,âexceptionâ:"[object] (Symfony\Component\ErrorHandler\Error\FatalError(code: 0): Allowed memory size of 134217728 bytes exhausted (tried to allocate 123732000 bytes) at /usr/share/nginx/invoiceninja/app/Http/Controllers/SelfUpdateController.php:103)
[stacktrace]
#0 {main}
"}
It should help to increase the PHP memory limit
How would I do that?
I figured out how to increase the limit.
The update went through. Thank you!
I check my dadâs invoiceninja to see if itâs the same issue.
What would you recommend the PHP memory limit to be in general?
ok. that this also fixed my dadâs invoiceninja
however with that one. it shows crons is not enabled.
I followed the directions to setup crons.
but i get this error when i try this command:
command: * * * * * cd usr/share/nginx/invoiceninja && php artisan schedule:run >> /dev/null 2>&1
error:
Command âappâ not found, did you mean:
command âaspâ from deb asp (1.8-8build1)
command âyappâ from deb libparse-yapp-perl (1.21-2)
command âaptâ from deb apt (2.0.6)
command âapgâ from deb apg (2.2.3.dfsg.1-5)
command âgppâ from deb gpp (2.25-1)
command âapfâ from deb apf-firewall (9.7+rev1-5.1)
command âxppâ from deb xpp (1.5-cvs20081009-4)
command âtppâ from deb tpp (1.3.1-7)
command âmppâ from deb makepp (2.0.98.5-2)
command âppâ from deb libpar-packer-perl (1.049-1)
command âcppâ from deb cpp (4:9.3.0-1ubuntu2)
command âarpâ from deb net-tools (1.60+git20180626.aebd88e-1ubuntu1)
Try: sudo apt install
do you have any suggestions
Something is misspelled but not in the line that you provided. Should be the following command and entry to cron. Skip the double quotes around the cron job, website displays * funny.
sudo crontab -u www-data -e
â* * * * * cd /usr/share/nginx/invoiceninja && php7.4 artisan schedule:run >> /dev/null 2>&1â
I got the same output when I tried that.
I found the fix.
i looked at my own invoiceninja server and duplicated what i found there.
see the following.
âsudo crontab -u www-data -eâ
â* * * * * php7.4 /usr/share/nginx/invoiceninja/artisan schedule:run >> /dev/null 2>&1â
then changed the .env to the following:
âQUEUE_CONNECTION=databaseâ
ran the following command:
â* * * * * php7.4 /usr/share/nginx/invoiceninja/artisan schedule:run >> /dev/null 2>&1â
then ran the following command:
âsudo php artisan optimizeâ