Weekly Error E-mail - mesg: ttyname failed: Inappropriate ioctl for device

  • Every Saturday since December 30, 2017 (yes, I have all of them saved because I never delete anything), I've been receiving an e-mail that reads:

    Code
    /etc/cron.weekly/openmediavault-update-smart-drivedb:
    mesg: ttyname failed: Inappropriate ioctl for device


    After ignoring it for months, I've decided that perhaps I should look in to fixing it. Would anyone have any idea what's wrong or what could be done about it? The first time I saw it, I got nervous because I thought it was an e-mail about a failing disk, but I am reasonably sure that's not what's going on here.


    It should be noted that my older e-mails have a slightly different error message:

    Code
    /etc/cron.weekly/openmediavault-update-smart-drivedb:
    stdin: is not a tty
  • As root, edit /root/.profile


    Remove this line:


    Code
    mesg n || true


    Add this line:



    Code
    test -t 0 && mesg n || true

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

  • I don't know of anyone who made this change and continued to get that same email.

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

  • I guess you could run the cron job manually and see what happens.

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

  • Change it back the way it was and run it again. Got mail?

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!