Lots of strange php and nginx related problems after upgrade

This forum is for discussion about general software issues.

Lots of strange php and nginx related problems after upgrade

Postby MikaelLarsson » Wed Dec 11, 2019 9:20 pm

Yesterday after upgrading arch on my raspberry pi 3 server I started to have some wierd issues with nginx and php. The most crittical issue is that some php functions in scripts that has been running perfectly for years now suddenly complains that the file system is read only.
...
imagepng() --> failed to open stream: Read-only file system in /var/.....
chmod() --> Read-only file system in /usr/share/webapps.......
...
My first thought was that the directory owner and/or permissions were screwed up after the upgrade, but they seem to be ok and I can create and modify files using the http user in a terminal.
...
[root@raspberrypi01 ~]# sudo -u http test -w <path to dir> && { echo YES; } || { echo NO; }
YES
[root@raspberrypi01 ~]#
...

I can't seem to figure out what's blocking php from writing files. If anyone has any suggestion of what could be wrong or something to test or look for please reply to this post.
MikaelLarsson
 
Posts: 2
Joined: Wed Dec 11, 2019 8:29 pm

Re: Lots of strange php and nginx related problems after upg

Postby MikaelLarsson » Thu Dec 12, 2019 10:41 pm

I'm answering my own post here to get it documented that I just partially got some of my problems resolved temporarily.
I got rid of the "File system read only" message by removing all symlinks from the different server instances root dir to every webapp running on that instance and then copied all the webapp files to every nagix instance root dir. Unfortunately, this means that files uploaded by a user in one instance will not be visible on other nagix instances running the same web app.
MikaelLarsson
 
Posts: 2
Joined: Wed Dec 11, 2019 8:29 pm


Return to General

Who is online

Users browsing this forum: No registered users and 21 guests