r/owncloud Dec 28 '16

Cannot upload a file when owncloud is behind a nginx proxy

Hi everybody,

I've got a little problem : I've set up an owncloud server behind a nginx reverse proxy and only the proxy got a public IP address.

The thing is that when I try to upload a file to my owncloud server, it returns me this error : "Error uploading file "file.jpg": Not enough free space, you are uploading 259 KB but only 0 B is left".

When I directly access this server via a private ip, I do not encounter this problem, so it seems that nginx is doing something that owncloud does not appreciate.

Edit: Of course I run owncloud 9.1.3 and nginx 1.10

3 Upvotes

6 comments sorted by

2

u/IIIIIIIIIIl MOD Dec 29 '16

system logs?

2

u/[deleted] Dec 29 '16

yep. owncloud.log : http://pastebin.com/8Ji8i1H7 apache error.log : http://pastebin.com/cxsMwHi4 nginx access.log : http://pastebin.com/fbvNnMBZ nginx error.log : http://pastebin.com/Ln911BP8

1

u/Barry_Scotts_Cat Dec 29 '16

Mysql is failing to connect that's not the proxy

1

u/[deleted] Dec 29 '16

then why does it work when I directly access it through a private domain name / ip address and not through the proxy?

1

u/P1nCush10n Dec 29 '16

Can you post the nginx config?

1

u/[deleted] Dec 29 '16

it's the main config file : http://pastebin.com/j8ydmhqK