HTTP Logs from owncloud:8.2.2-fpm

Ask all your questions regarding OC 8.2 Please read the Support Forum Rules
Forum rules
The forums were migrated over to https://central.owncloud.org which is based on the forum software Discourse. The forums here is put into read-only mode starting from today.

More background information about this move and the reasoning behind it is available in this blogpost:

https://daniel.molkentin.net/2016/07/20 ... d-central/
otbe0
Newbie
Posts: 3
Joined: Mon Feb 29, 2016 8:54 pm

HTTP Logs from owncloud:8.2.2-fpm

Postby otbe0 » Mon Feb 29, 2016 9:06 pm

Hi everybody,

I wonder why I get HTTP traffic logs from my brand new owncloud 8.2.2-fpm docker container. Im using docker compose to spin up instances from owncloud (fpm), mysql, redis and nginx as reverse proxy and Im very happy how it works together. But for no reason (to me) Im getting HTTP logs from owncloud as well.

What I mean is docker-compose logs outputs the following (app=owncloud;web=nginx):

Code: Select all

app_1 myIp - user 29/Feb/2016:19:05:20 +0000 \"PROPFIND /remote.php\" 207
web_1 myIp - user [29/Feb/2016:19:05:20 +0000] \"PROPFIND /remote.php/webdav/ HTTP/1.1\" 207 {...}


Im not an php or php-fpm expert, so this could be disabled somewhere but googling around didn't helped me a lot :(

Any advices?

Thank you.

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: HTTP Logs from owncloud:8.2.2-fpm

Postby RealRancor » Mon Feb 29, 2016 9:11 pm

Hi,

probably due to stuff like datadirectory security and webdav checks which are done if you're browse to the admin backend of your oC instance.
*gone*

otbe0
Newbie
Posts: 3
Joined: Mon Feb 29, 2016 8:54 pm

Re: HTTP Logs from owncloud:8.2.2-fpm

Postby otbe0 » Mon Feb 29, 2016 9:15 pm

Sorry for my misleading example. This redundant logging behavior applies to all requests:

Code: Select all

app_1 myIp -  29/Feb/2016:19:20:22 +0000 \"GET /index.php\"
web_1 myIp - - [29/Feb/2016:19:20:22 +0000] \"GET /index.php/core/ajax/share.php?fetch=getItemsSharedStatuses&itemType=file HTTP/1.1\" 200  {...}

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: HTTP Logs from owncloud:8.2.2-fpm

Postby RealRancor » Mon Feb 29, 2016 9:42 pm

Mhhh, no idea then. Maybe ask at a community dedicated to such webserver setups. They probably have more knowledge about that. Especially as ownCloud itself is not doing any logging.
*gone*

otbe0
Newbie
Posts: 3
Joined: Mon Feb 29, 2016 8:54 pm

Re: HTTP Logs from owncloud:8.2.2-fpm

Postby otbe0 » Mon Feb 29, 2016 10:22 pm

Okay, I got it.

The problem is the way how the php docker image is configured and owncloud relies on this image. It redirects error logs to stderr and the access log for www applications to stdout. There is a config file at /usr/local/etc/php-fpm.d/docker.conf within the docker image.

Code: Select all

[www]
; disable this because we have nginx :)
; if we send this to /proc/self/fd/1, it never appears
access.log = /proc/self/fd/2


If you comment out access.log the redundant logging stops.

Thank you.


  • Similar Topics
    Replies
    Views
    Last post

Return to “ownCloud Server 8.2”

Who is online

Users browsing this forum: No registered users and 1 guest