Posted  by  admin

No Mta Installed Discarding Output Debian Linux

(No MTA installed, discarding output) 何かよくわかりませんが、”MTA”って確かメーラーのことだよね?. Apr 04, 2015 Ops saat cek log cron ubuntu server ada error ini: No MTA installed, discarding output Bismillah q> tanya sama guru internet (google), ketemu sumber [1]. I'm new on linux user I try to run crontab to backup my database with vagrant. Crontab error with (No MTA installed). (No MTA installed, discarding output).

No Mta Installed Discarding Output

I'm new on linux user I try to run crontab to backup my database with vagrant user. /usr/bin/mysqldump -h localhost -u root -p root mydb gzip /var/backup/all/database`date +%Y-%m-%d`.sql.gz /dev/null 2&1 when the crontab runs there is no backup file in the folder (my backup/all has the permission scheme 755). This is error from /var/log/syslog Aug 16 11:55:01 precise64 CRON2213: (vagrant) CMD (/usr/bin/mysqldump -h localhost -u root -p root mydb gzip /var/backup/all/database`date +%Y-%m-%d`.sql.gz /dev/null 2&1) Aug 16 11:55:01 precise64 CRON2212: (CRON) info (No MTA installed, discarding output) So I think. it's about crontab can't create backup file because of Permission denied. it's about I'm didn't install MTA but I use /dev/null 2&1 to disable crontab to sent it to email why it error? If the user running the crontab command is vagrant, and the directory where the output is written to is owned by root, and has permissions 755, it can not be written to.

Sudo chown vagrant /var/backup/all may fix that. To check whether that's the problem, try writing to a file in /tmp instead. But there is another problem: A command like mysqldump mydb gzip database.sql.gz /dev/null 2&1 writes the database dump to database.sql.gz and to /dev/null. The 2&1 copies the error messages to the standart output, that means it also writes the error messages to database.sql.gz. It writes error message text just some where in between the compressed data, so the compressed file will be broken.

No mta installed discarding output

Note it may work well when testing - as the problem only occurs when something is written to the standard error stream. The output to stderr may be just a warning, while everything else works. I assume you intend to write the compressed database dump to the sql.gz file, and the errors to /dev/null. For this, just keep the output streams separate, by not copying the error stream to the output stream.

And direct them to the files like this: mysqldump mydb gzip /var/backup/all/database`date +%Y-%m-%d`.sql.gz 2/dev/null The error message '(No MTA installed, discarding output)' is cron telling you that it can not send you the error output. That will be no problem in the end as you redirect errors to /dev/null anyway, there will be nothing to send. But I suspect that currently there are error messages to send, that should confirm my findings above.

I'm new on linux user I try to run crontab to backup my database with vagrant user. /usr/bin/mysqldump -h localhost -u root -p root mydb gzip /var/backup/all/database`date +%Y-%m-%d`.sql.gz /dev/null 2&1 when the crontab run there is no backup file in the folder (my backup/all is chmod 755). This is error from /var/log/syslog Aug 16 11:55:01 precise64 CRON2213: (vagrant) CMD (/usr/bin/mysqldump -h localhost -u root -p root mydb gzip /var/backup/all/database`date +%Y-%m-%d`.sql.gz /dev/null 2&1) Aug 16 11:55:01 precise64 CRON2212: (CRON) info (No MTA installed, discarding output) So I think. it's about crontab can't create backup file because of Permission denied.

it's about I'm didn't install MTA but I use /dev/null 2&1 to disable crontab to sent it to email why it error? Thanks for help me. Game help guru.