@gotwf said in Error on image uploads:
sudo chmod 666 /tmp/1794af5df77491a5f0fe7ce133adbd36.png
In this case I'm getting: "It seems you have lost the connection to **** - Forum, please wait while we try to reestablish it."(translated) in a yellow warning box on uploading.
And the nginx error.log then shows:
2020/04/17 17:46:35 [error] 5722#0: *905833 connect() failed (111: Connection refused) while connecting to upstream,
client: ****:****:****:****:****:****:****:****, server: ****, request: "GET /socket.io/?EIO=3&transport=polling&t=N68qULU HTTP/1.1", upstream: "http://127.0.0.1:4567/socket.io/?EIO=3&transport=polling&t=N68qULU", host: "****", referrer: "https://****/user/****/edit"
I also tried it running nodebb as a systemd service. In this case I don't get the permission error with any tmp file, but still the same nginx error.
As for the users I'm not sure. I defined myself as the user in the nodebb systemd service file. nginx runs itself afaik.
Edit: The suggestion worked well, the tmp file name was identical when I uploaded the same file.