MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Bugs and Requests => Topic started by: clublol on 2014-09-15, 06:50:17

Title: kloxo-mr 7.0b error log Permission denied
Post by: clublol on 2014-09-15, 06:50:17
2014/09/15 11:49:06 [crit] 30801#0: *76 open() "/home/httpd/agent.clubohobypunim.com/stats/agent.clubohobypunim.com-custom_log" failed (13: Permission denied) while logging request, client: 49.48.160.27, server: agent.clubohobypunim.com, request: "GET /employees/ajax_page.php?page=2&total=127&style=li&limit=100&action=seach_page HTTP/1.1", upstream: "fastcgi://unix:/opt/configs/php-fpm/sock/cluboho.sock", host: "agent.clubohobypunim.com", referrer: "http://agent.clubohobypunim.com/employees/index.php?want=sell"


webserver : nginx
kloxo-mr : 7.0.0.b-2014091403
Title: Re: kloxo-mr 7.0b error log Permission denied
Post by: Spacedust on 2014-09-15, 11:05:01
Alle because of bugs: http://forum.mratwork.com/kloxo-mr-bugs-and-requests/apachenginx-still-dying-after-removingadding-domain/
Title: Re: kloxo-mr 7.0b error log Permission denied
Post by: clublol on 2014-10-08, 16:30:45
not work
Title: Re: kloxo-mr 7.0b error log Permission denied
Post by: MRatWork on 2014-10-08, 19:43:10
Try 'sh /script/fix-chownchmod'.
Title: Re: kloxo-mr 7.0b error log Permission denied
Post by: xamer on 2015-01-16, 17:30:30
I've got the same problem.
2015/01/17 02:24:16 [crit] 6442#0: *1471 open() "/home/httpd/prikolbel.ru/stats/prikolbel.ru-custom_log" failed (13: Permission denied) while logging request, client: 109.60.185.135, server: prikolbel.ru, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/opt/configs/php-fpm/sock/clients.sock", host: "prikolbel.ru", referrer: "http://prikolbel.ru/"

And the same error for alldomains

A. Kloxo-MR: 7.0.0.b-2015011402

B. OS: CentOS release 6.6 (Final) x86_64

C. Apps:
   1. MySQL: mysql55-5.5.41-2.ius.el6.x86_64
   2. PHP: php53u-5.3.29-1.ius.el6.x86_64
   3. Httpd: --uninstalled--
   4. Lighttpd: --uninstalled--
   5. Hiawatha: hiawatha-9.10.1-f.1.mr.el6.x86_64
   6. Nginx: nginx-1.7.9-1.el6.ngx.x86_64
   7. Cache: --uninstalled--
   8. Dns: nsd-4.1.0-3.mr.el6.x86_64
   9. Qmail: qmail-toaster-1.03-1.3.45.mr.el6.x86_64
      - with: courier-imap-toaster-4.1.2-1.3.18.mr.el6.x86_64

D. Php-type (for Httpd/proxy): php-fpm_event

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:          7617       6784        833         82        203       5712
   -/+ buffers/cache:        867       6749
   Swap:            0          0          0


Tried:
sh /script/fix-chownchmod
sh /script/fixweb
Nothing helps.
When i use nginxproxy error dissappears. nut nginx alone error appears.
Title: Re: kloxo-mr 7.0b error log Permission denied
Post by: xamer on 2015-01-18, 12:09:33
To my previous post at this topic.
I found that the bug is in rights in "/home/httpd/prikolbel.ru/stats/".
It is rwxrwx--x by defualt. And changing to rwxrwx-wx fixes the problem with "Permission denied to /home/httpd/prikolbel.ru/stats/prikolbel.ru-custom_log". Log starts to write.

Temporarily I stop writing nginx access_log by commenting the line "access_log /home/httpd/$var_domain/stats/$var_domain-custom_log main;" with "#" in "/opt/configs/nginx/conf/globals/stats.ru.conf" . But if you want to log access you should change the rights to all folders on all domains in "/home/httpd/" to folder "stats".

I don't really know bug  it is or not. Do i do right things? Or there is another way to fix problem.
Title: Re: kloxo-mr 7.0b error log Permission denied
Post by: xamer on 2015-12-16, 21:24:11
The problem is actual till today))
Title: Re: kloxo-mr 7.0b error log Permission denied
Post by: MRatWork on 2015-12-17, 00:23:23
Look like it's related to ownership of files/directory.
Title: Re: kloxo-mr 7.0b error log Permission denied
Post by: Spacedust on 2015-12-18, 13:42:36
nginx must be probably added to apache group