Cannot update system because README.md is not writable

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

@david do you have any suggestions?

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”

1 Like

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”

2 Likes