No log files generated in /log/

Discussion in 'General' started by orasis, Oct 13, 2014.

  1. orasis

    orasis Member

    I just noticed something weird on some dev sites I have created.
    No log files exist in the /log/ directory of that site, example full path:
    /var/www/clients/client3/web38/log/

    What those sites that have no log files have in common is that they are set to listen to a different lan IP and not the asterisk *. All the ones that use the asterisk do have logs.

    I cannot think of anything right now, any hint what I should check ?
    This is a debian wheezy x64 setup.
    Thanks
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Do the log files exist in /var/log/ispcofig/httpd/domain.tld/ ?
     
  3. orasis

    orasis Member

    Till thanks for the help,
    Yes they exist there.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    try to run:

    mount -a

    and check again if they are visible in the sites folders now.
     
  5. orasis

    orasis Member

    yes they appeared right away.
    Why did that happen ?
    thanks so much !
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    I dont know. ispconfig writes the mounts to /etc/fstab and also runs the mount command to set the mount when it gets created.
     
  7. orasis

    orasis Member

    Unexpected, once I haven't changed anything.
    Worst thing is that I just rebooted the server now and they disappeared again !
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Thats strange, as a reboot should trigger everythung in /etc/fstab.
     
  9. orasis

    orasis Member

    /etc/fstab has all entries though.
    Any ideas ?
     
  10. orasis

    orasis Member

    Any help on this appreciated, I still have to do "mount -a" after each reboot until I fix it. First I don't understand why it happened, second, where to apply the fix.

    Thanks !
    George
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    I did not had that problem yet n any server, so I cant tell you why it happens on yours.

    What you can try is that you add:

    maount -a

    in /etc/rc.local
     
  12. orasis

    orasis Member

    till,
    in /etc/rc.local do I add it before "exit 0" ?

    another question, in /etc/fstab shall I comment out this line ?
    /dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0

    Thanks.
     
  13. till

    till Super Moderator Staff Member ISPConfig Developer

    yes

    Most likely it does not matter and you comment it out.
     
  14. orasis

    orasis Member

    This is what it looks like:

    Code:
    # /etc/fstab: static file system information.
    #
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    /dev/mapper/xxxxxx--xxxxxx-root /               ext4    errors=remount-ro,usrjquota=quota.user,grpjquota=quota.group,jqfmt=vfsv0 0       1
    # /boot was on /dev/sda1 during installation
    UUID=f90916ba-adac-4619-9b75-fcef9ec0db23 /boot           ext2    defaults        0       2
    /dev/mapper/xxxxx--xxxxxx-swap_1 none            swap    sw              0       0
    /dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
    /var/log/ispconfig/httpd/xxxxxxx.xxx /var/www/xxxxxxx/xxxxxxx/xxxx/log    none    bind,nobootwait    0 0
    /var/log/ispconfig/httpd/xxxxxxx.xxx /var/www/xxxxxxx/xxxxxxx/xxxx/log    none    bind,nobootwait    0 0
    /var/log/ispconfig/httpd/xxxxxxxxxxxxxxxxx.xxx /var/www/xxxxxxx/xxxxxxx/xxxx/log    none    bind,nobootwait    0 0
    /var/log/ispconfig/httpd/xxxxx.xxxxxxxxxxxxxxxxx.xxx /var/www/xxxxxxx/xxxxxxx/xxxx/log    none    bind,nobootwait    0 0
    /var/log/ispconfig/httpd/xxxxxxxxxxxxxxx.xxx /var/www/xxxxxxx/xxxxxxx/xxxx/log    none    bind,nobootwait    0 0
    /var/log/ispconfig/httpd/xxxxxxxxxxxxxxxxx.xxx /var/www/xxxxxxx/xxxxxxx/xxxx/log    none    bind,nobootwait    0 0
    /var/log/ispconfig/httpd/xxxxxxxxxxxx.xxx /var/www/xxxxxxx/xxxxxxx/xxxx/log    none    bind,nobootwait    0 0
    /var/log/ispconfig/httpd/xxxxxxxxxxxx.xxx /var/www/xxxxxxx/xxxxxxx/xxxx/log    none    bind,nobootwait    0 0
    /var/log/ispconfig/httpd/xxxxxxxx.xxx /var/www/xxxxxxx/xxxxxxx/xxxx/log    none    bind,nobootwait    0 0
    /var/log/ispconfig/httpd/xxxxx.xxxxxxxxxxxxxxx.xxx /var/www/xxxxxxx/xxxxxxx/xxxx/log    none    bind,nobootwait    0 0
    /var/log/ispconfig/httpd/xxxxx.xxxxxxx.xxx /var/www/xxxxxxx/xxxxxxx/xxxx/log    none    bind,nobootwait    0 0
    /var/log/ispconfig/httpd/xxxxxxxx.xxxxxxx.xxx /var/www/xxxxxxx/xxxxxxx/xxxx/log    none    bind,nobootwait    0 0
    /var/log/ispconfig/httpd/xxxxxxx.xxx /var/www/xxxxxxx/xxxxxxx/xxxx/log    none    bind,nobootwait,_netdev    0 0
    /var/log/ispconfig/httpd/xxxxxxxx.xxxxxxx.xxx /var/www/xxxxxxx/xxxxxxx/xxxx/log    none    bind,nobootwait,_netdev    0 0
    /var/log/ispconfig/httpd/xxxxx.xxxxxxx.xxx /var/www/xxxxxxx/xxxxxxx/xxxx/log    none    bind,nobootwait,_netdev    0 0
    /var/log/ispconfig/httpd/xxxxxxxx.xxx /var/www/xxxxxxx/xxxxxxx/xxxx/log    none    bind,nobootwait,_netdev    0 0
    /var/log/ispconfig/httpd/xxxxxxxx.xxxxxxx.xxx /var/www/xxxxxxx/xxxxxxx/xxxx/log    none    bind,nobootwait,_netdev    0 0
    /var/log/ispconfig/httpd/xxxxxxxxxxxx.xxxxxxx.xxx /var/www/xxxxxxx/xxxxxxx/xxxx/log    none    bind,nobootwait,_netdev    0 0
    /var/log/ispconfig/httpd/xxxx.xxx /var/www/xxxxxxx/xxxxxxx/xxxx/log    none    bind,nobootwait,_netdev    0 0
    /var/log/ispconfig/httpd/xxxxxxxxxxxxxxxxx.xxx /var/www/xxxxxxx/xxxxxxx/xxxx/log    none    bind,nobootwait,_netdev    0 0
    /var/log/ispconfig/httpd/xxxxxxxxxxxx.xxx /var/www/xxxxxxx/xxxxxxx/xxxx/log    none    bind,nobootwait,_netdev    0 0
    
    the ones to the asterisk (*) IP get mounted, the ones to the other additional IP don't. This is very weird.
     
  15. orasis

    orasis Member

    do you notice those "_netdev" on some lines ?
    Those are fake domains line example.dev
    Could that be it ?
     
  16. till

    till Super Moderator Staff Member ISPConfig Developer

    The option _netdev is added to any new or changed domain as thats the new default in curret ispconfig versions. _netdev just means that the mount is created as soon as the network interface is up.
     
  17. orasis

    orasis Member

    In practice the opposite happens, the ones that don't have "_netdev" get mounted, and all those with it don't. Is it some bug ?
     

Share This Page