跳到主要内容
WARNING You're browsing the documentation for an old version of Deskpro. Consider updating to Deskpro Horizon.

Troubleshooting Email

在 Troubleshooting 中
作者列表
已发布: 2017年3月21日|最后更新: 2018年8月9日

Sometimes you may want to manually run incoming email processing, for example, to debug connection problems.

To do this on Linux/Unix:

cd /path/to/deskpro php bin/cron -vfj process_email_gateways
copy

To do this on Windows:

cd C:\path\to\Deskpro C:\path\to\php.exe bin\cron -vfj process_email_gateways
copy

The -v flag enables verbose output; the -f flag forces the task to run (otherwise it might be throttled); the -j flag specifies that you only want to run process_email_gateways (otherwies all scheduled tasks would run).

Running one specific accountCopy link to Running one specific account to clipboard

Sometimes it's useful to only run one specific email account in verbose mode. This can be helpful in cases where you have a bunch of accounts, and only one of them is having an issue.

cd /path/to/deskpro php bin/cron -vfj process_email_gateways -o '{"run_account_id": 123}'
copy

The 123 is the email account ID. You can get this from the admin interface in the email accounts section by showing IDs.

Saving the log to a fileCopy link to Saving the log to a file to clipboard

You can redirect the output of the command to a file. This is useful if you need ot send the output to a support agent.

On Linux:

php bin/cron -vfj process_email_gateways | tee dbg.txt
copy

And on Windows:

C:\path\to\php.exe bin\cron -vfj process_email_gateways > dbg.txt & type dbg.txt
copy

In both cases, this will save the log output to a dbg.txt file in your current working directory.

有帮助没有帮助

1 人中 0 人认为这个页面有帮助

下一个页面Migration Overview
上一个页面Manually run cron task

请登录或注册以提交评论。