Logs not found

parddhillon's Avatar

parddhillon

13 Feb, 2018 07:48 PM

Hi,

I have setup the software as per instructions but it keeps showing the message shown in the image.

ls -al /
ls -al /var
ls -al /var/log
ls -al /var/log/nginx

for all is as follows:

ls -al /
total 116
drwxr-xr-x 23 root root 4096 Feb 13 18:08 .
drwxr-xr-x 23 root root 4096 Feb 13 18:08 ..
drwxr-xr-x 2 root root 4096 Feb 11 18:20 bin
drwxr-xr-x 3 root root 4096 Feb 12 01:45 boot
drwxr-xr-x 16 root root 2920 Feb 13 18:08 dev
drwxr-xr-x 128 root root 12288 Feb 13 18:08 etc
drwxr-xr-x 3 root root 4096 Feb 2 18:58 home
lrwxrwxrwx 1 root root 29 Jan 30 02:13 initrd.img -> boot/initrd.img-4.9.0-5-amd64
lrwxrwxrwx 1 root root 29 Jan 30 02:13 initrd.img.old -> boot/initrd.img-4.9.0-5-amd64
drwxr-xr-x 12 root root 4096 Feb 2 20:36 lib
drwxr-xr-x 2 root root 4096 Jan 30 02:11 lib64
drwx------ 2 root root 16384 Jan 30 02:10 lost+found
drwxr-xr-x 2 root root 4096 Jan 30 02:11 media
drwxr-xr-x 3 root root 4096 Feb 2 16:51 mnt
drwxr-xr-x 3 root root 4096 Feb 2 18:57 opt
dr-xr-xr-x 164 root root 0 Feb 13 18:08 proc
-rw------- 1 root root 10240 Feb 4 11:59 quota.group
-rw------- 1 root root 8192 Feb 4 11:59 quota.user
drwx------ 21 root root 4096 Feb 13 14:52 root
drwxr-xr-x 29 root root 1000 Feb 13 18:46 run
drwxr-xr-x 2 root root 4096 Feb 11 18:20 sbin
drwxr-xr-x 2 root root 4096 Jan 30 02:11 srv
dr-xr-xr-x 13 root root 0 Feb 13 19:02 sys
drwxrwxrwt 10 root root 4096 Feb 13 19:42 tmp
drwxr-xr-x 10 root root 4096 Feb 2 20:45 usr
drwxr-xr-x 15 root root 4096 Feb 4 11:59 var
drwxr-xr-x 11 root root 4096 Jan 30 02:11 var.old
lrwxrwxrwx 1 root root 26 Jan 30 02:13 vmlinuz -> boot/vmlinuz-4.9.0-5-amd64
lrwxrwxrwx 1 root root 26 Jan 30 02:13 vmlinuz.old -> boot/vmlinuz-4.9.0-5-amd64

ls -al /var
total 96
drwxr-xr-x 15 root root 4096 Feb 4 11:59 .
drwxr-xr-x 23 root root 4096 Feb 13 18:08 ..
drwxr-x--- 2 root root 4096 Feb 3 00:00 backup
drwxr-xr-x 2 root root 4096 Feb 13 06:25 backups
drwxr-xr-x 15 root root 4096 Feb 12 01:48 cache
drwxr-xr-x 59 root root 4096 Feb 12 14:49 lib
drwxrwsr-x 2 root staff 4096 Nov 19 15:25 local
lrwxrwxrwx 1 root root 9 Jan 30 02:11 lock -> /run/lock
drwxr-xr-x 16 root root 4096 Feb 13 06:25 log
drwx------ 2 root root 16384 Feb 2 16:52 lost+found
drwxrwsr-x 2 root mail 4096 Feb 13 18:03 mail
drwxr-xr-x 2 root root 4096 Jan 30 02:11 opt
-rw------- 1 root root 10240 Feb 4 11:59 quota.group
-rw------- 1 root root 10240 Feb 4 11:59 quota.user
lrwxrwxrwx 1 root root 4 Jan 30 02:11 run -> /run
drwxr-xr-x 6 root root 4096 Feb 10 02:09 spool
drwxrwxrwt 30 root root 4096 Feb 13 19:39 tmp
drwxr-xr-x 5 vmail vmail 4096 Feb 11 01:04 vmail
drwxr-xr-x 6 root root 4096 Feb 10 01:49 www

ls -al /var/log
total 102528
drwxr-xr-x 16 root root 4096 Feb 13 06:25 .
drwxr-xr-x 15 root root 4096 Feb 4 11:59 ..
-rw-r--r-- 1 root root 65000 Feb 12 15:10 alternatives.log
drwxr-xr-x 2 root root 4096 Feb 12 18:31 apt
-rw-r----- 1 root adm 1526014 Feb 13 19:45 auth.log
-rw-r----- 1 root adm 5867530 Feb 12 06:25 auth.log.1
-rw-r----- 1 root adm 66615 Feb 4 06:25 auth.log.2.gz
-rw------- 1 root utmp 122880 Feb 13 19:22 btmp
drwxr-xr-x 2 clamav clamav 4096 Feb 12 06:25 clamav
-rw-r----- 1 root adm 886347 Feb 13 19:39 daemon.log
-rw-r----- 1 root adm 4649106 Feb 12 06:25 daemon.log.1
-rw-r----- 1 root adm 109631 Feb 4 06:25 daemon.log.2.gz
drwxr-xr-x 2 root root 4096 Feb 2 19:51 dbconfig-common
-rw-r----- 1 root adm 81940 Feb 13 18:09 debug
-rw-r----- 1 root adm 452183 Feb 12 04:15 debug.1
-rw-r----- 1 root adm 19220 Feb 4 02:22 debug.2.gz
-rw-r--r-- 1 root root 1605176 Feb 12 18:31 dpkg.log
-rw-r----- 1 root adm 841860 Feb 13 19:45 fail2ban.log
-rw-r----- 1 root adm 1509595 Feb 12 06:24 fail2ban.log.1
-rw-r----- 1 root adm 4325 Feb 4 04:43 fail2ban.log.2.gz
-rw-r--r-- 1 root root 160288 Feb 12 01:44 faillog
-rw-r--r-- 1 root root 2670 Feb 12 15:08 fontconfig.log
drwxr-xr-x 3 root root 4096 Feb 4 01:16 ispconfig
-rw-r--r-- 1 root root 18863 Feb 2 20:48 ispconfig_install.log
-rw-r----- 1 root adm 418854 Feb 13 18:09 kern.log
-rw-r----- 1 root adm 6508362 Feb 12 04:15 kern.log.1
-rw-r----- 1 root adm 235951 Feb 4 06:22 kern.log.2.gz
-rw-rw-r-- 1 root utmp 1462628 Feb 13 18:29 lastlog
drwx------ 2 root root 4096 Feb 13 12:18 letsencrypt
drwx--x--x 2 root root 4096 Feb 12 01:49 lightdm
-rw-r----- 1 root adm 1127 Feb 13 18:46 mail.err
-rw-r----- 1 root adm 18785 Feb 12 02:51 mail.err.1
-rw-r----- 1 root adm 273 Feb 4 00:40 mail.err.2.gz
-rw-r----- 1 root adm 7438741 Feb 13 19:45 mail.info
-rw-r----- 1 root adm 15371493 Feb 12 06:25 mail.info.1
-rw-r----- 1 root adm 57308 Feb 4 06:25 mail.info.2.gz
-rw-r--r-- 1 root adm 7438741 Feb 13 19:45 mail.log
-rw-r--r-- 1 root adm 15371493 Feb 12 06:25 mail.log.1
-rw-r--r-- 1 root adm 57308 Feb 4 06:25 mail.log.2.gz
drwxrws--- 2 root list 4096 Feb 13 06:25 mailman
-rw-r--r-- 1 root adm 1642960 Feb 13 19:45 mail.warn
-rw-r--r-- 1 root adm 2362842 Feb 12 06:24 mail.warn.1
-rw-r--r-- 1 root adm 1754 Feb 4 03:00 mail.warn.2.gz
-rw-r--r-- 1 root adm 529765 Feb 13 19:30 messages
-rw-r--r-- 1 root adm 14751205 Feb 12 06:25 messages.1
-rw-r--r-- 1 root adm 128679 Feb 4 06:25 messages.2.gz
drwxr-xr-x 2 metronome root 4096 Feb 2 20:46 metronome
-rw-r----- 1 root adm 441870 Feb 13 19:44 monit.log
drwxr-xr-x 2 munin adm 4096 Feb 13 06:25 munin
drwxr-s--- 2 mysql adm 4096 Feb 13 06:25 mysql
drwxr-xr-x 2 root adm 4096 Feb 13 06:25 nginx
drwxr-xr-x 2 ntp ntp 4096 Aug 8 2017 ntpstats
-rw------- 1 root root 5702 Feb 13 18:46 php7.0-fpm.log
-rw------- 1 root root 180916 Feb 12 04:14 php7.0-fpm.log.1
-rw------- 1 root root 1088 Feb 4 02:22 php7.0-fpm.log.2.gz
-rw------- 1 root root 10181 Feb 13 18:08 php7.2-fpm.log
drwxr-xr-x 2 root root 4096 Feb 11 06:25 pure-ftpd
-rw-r----- 1 root adm 3232115 Feb 13 19:45 syslog
-rw-r----- 1 root adm 6726200 Feb 13 06:25 syslog.1
-rw-r----- 1 root adm 848515 Feb 12 06:25 syslog.2.gz
-rw-r----- 1 root adm 439745 Feb 11 06:25 syslog.3.gz
-rw-r----- 1 root adm 228739 Feb 10 06:25 syslog.4.gz
-rw-r----- 1 root adm 929633 Feb 9 06:25 syslog.5.gz
-rw-r----- 1 root adm 151968 Feb 8 06:25 syslog.6.gz
-rw-r----- 1 root adm 131125 Feb 7 06:25 syslog.7.gz
-rw-r----- 1 root adm 0 Feb 12 06:25 ufw.log
-rw-r----- 1 root adm 362889 Feb 5 00:20 ufw.log.1
-rw-r----- 1 root adm 30785 Feb 4 06:22 ufw.log.2.gz
drwxr-x--- 2 root adm 4096 Feb 5 06:17 unattended-upgrades
-rw-r----- 1 root adm 12970 Feb 12 19:56 user.log
-rw-r----- 1 root adm 79 Feb 10 16:43 user.log.1
-rw-rw-r-- 1 root utmp 734592 Feb 13 18:29 wtmp
-rw-r--r-- 1 root root 5493 Feb 12 01:49 Xorg.0.log
-rw-r--r-- 1 root root 5493 Feb 12 01:49 Xorg.0.log.old

ls -al /var/log/nginx
total 3936
drwxr-xr-x 2 root adm 4096 Feb 13 06:25 .
drwxr-xr-x 16 root root 4096 Feb 13 06:25 ..
-rw-r----- 1 www-data adm 2198949 Feb 13 19:47 access.log
-rw-r----- 1 www-data adm 1342325 Feb 13 06:25 access.log.1
-rw-r----- 1 www-data adm 35850 Feb 4 06:25 access.log.10.gz
-rw-r----- 1 www-data adm 70314 Feb 12 06:25 access.log.2.gz
-rw-r----- 1 www-data adm 84892 Feb 11 06:25 access.log.3.gz
-rw-r----- 1 www-data adm 45406 Feb 10 06:25 access.log.4.gz
-rw-r----- 1 www-data adm 20999 Feb 9 06:25 access.log.5.gz
-rw-r----- 1 www-data adm 44890 Feb 8 06:25 access.log.6.gz
-rw-r----- 1 www-data adm 40388 Feb 7 06:25 access.log.7.gz
-rw-r----- 1 www-data adm 13820 Feb 6 06:25 access.log.8.gz
-rw-r----- 1 www-data adm 47290 Feb 5 06:25 access.log.9.gz
-rw-r----- 1 www-data adm 1160 Feb 13 12:33 error.log
-rw-r----- 1 www-data adm 170 Feb 13 03:29 error.log.1
-rw-r----- 1 www-data adm 683 Feb 4 00:49 error.log.10.gz
-rw-r----- 1 www-data adm 1161 Feb 12 01:37 error.log.2.gz
-rw-r----- 1 www-data adm 575 Feb 10 19:22 error.log.3.gz
-rw-r----- 1 www-data adm 533 Feb 10 03:29 error.log.4.gz
-rw-r----- 1 www-data adm 221 Feb 9 03:25 error.log.5.gz
-rw-r----- 1 www-data adm 2239 Feb 8 03:10 error.log.6.gz
-rw-r----- 1 www-data adm 3207 Feb 6 20:26 error.log.7.gz
-rw-r----- 1 www-data adm 4226 Feb 6 04:10 error.log.8.gz
-rw-r----- 1 www-data adm 2270 Feb 5 03:02 error.log.9.gz

Looking forward to your reply.

Kind Regards,
Pard

  1. Support Staff 1 Posted by potsky on 13 Feb, 2018 08:03 PM

    potsky's Avatar

    Can you upload the screenshot of the error screen please ?

  2. 2 Posted by parddhillon on 15 Feb, 2018 03:17 AM

    parddhillon's Avatar

    Please find screenshot attached

  3. Support Staff 3 Posted by potsky on 15 Feb, 2018 06:26 AM

    potsky's Avatar

    User running your web server is web10. Your access.log and error.log files are owned by www-data and by group adm. Read permissions are not granted for rest of the world so web10 cannot read them....

    • Run your web server as www-data and it will be ok
    • Or add user web10 in group adm and it will be ok
    • Or Chmod 644 your nginx logs and it will be ok
  4. 4 Posted by parddhillon on 15 Feb, 2018 11:43 AM

    parddhillon's Avatar

    Chmod 644 did the trick.

    Now I’m trying to add a custom log and am getting the same read error. I have checked file and directory permissions as follows:

    namei -l /var/www/clients/client0/web10/log/error.log
    f: /var/www/clients/client0/web10/log/error.log
    drwxr-xr-x root root /
    drwxr-xr-x root root var
    drwxr-xr-x root root www
    drwxr-xr-x root root clients
    drwxr-xr-x root root client0
    drwxr-xr-x root root web10
    drwxr-xr-x root root log
    -rw-r--r-- www-data root error.log

  5. 5 Posted by parddhillon on 15 Feb, 2018 12:08 PM

    parddhillon's Avatar

    Sorry it was an open base dir issue

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac