Sure, just wanted Sim to know the FAQ is outdated.
Any thoughts on why this error is now being generated? Thanks
Server error log
- Swift_IoException: Email to *******@gmail.com from admin@jeep-cj.com failed: Unable to open file for reading [/home/jeepcj/public_html/community/internal_data/temp/knownbots-20240520013734.txt]
- src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/ByteStream/FileByteStream.php:131
- Generated by: Unknown account
- May 25, 2024 at 4:54 PM
Stack trace
#0 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/ByteStream/FileByteStream.php(77): Swift_ByteStream_FileByteStream->getReadHandle()
#1 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/ContentEncoder/Base64ContentEncoder.php(40): Swift_ByteStream_FileByteStream->read(8192)
#2 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/SimpleMimeEntity.php(555): Swift_Mime_ContentEncoder_Base64ContentEncoder->encodeByteStream(Object(Swift_ByteStream_FileByteStream), Object(Swift_Transport_StreamBuffer), 0, 76)
#3 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/SimpleMimeEntity.php(532): Swift_Mime_SimpleMimeEntity->bodyToByteStream(Object(Swift_Transport_StreamBuffer))
#4 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/SimpleMimeEntity.php(570): Swift_Mime_SimpleMimeEntity->toByteStream(Object(Swift_Transport_StreamBuffer))
#5 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/SimpleMimeEntity.php(532): Swift_Mime_SimpleMimeEntity->bodyToByteStream(Object(Swift_Transport_StreamBuffer))
#6 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/SimpleMessage.php(604): Swift_Mime_SimpleMimeEntity->toByteStream(Object(Swift_Transport_StreamBuffer))
#7 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Message.php(161): Swift_Mime_SimpleMessage->toByteStream(Object(Swift_Transport_StreamBuffer))
#8 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/SendmailTransport.php(129): Swift_Message->toByteStream(Object(Swift_Transport_StreamBuffer))
#9 src/XF/Mail/Mailer.php(315): Swift_Transport_SendmailTransport->send(Object(Swift_Message), Array)
#10 src/XF/Mail/Queue.php(148): XF\Mail\Mailer->send(Object(Swift_Message), Object(Swift_SendmailTransport), Array)
#11 src/XF/Job/MailQueue.php(12): XF\Mail\Queue->run(7.92511)
#12 src/XF/Job/Manager.php(260): XF\Job\MailQueue->run(7.92511)
#13 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 7.92511)
#14 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 7.92511)
#15 src/XF/Cli/Command/RunJobs.php(59): XF\Job\Manager->runQueue(false, 8)
#16 src/vendor/symfony/console/Command/Command.php(255): XF\Cli\Command\RunJobs->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#17 src/vendor/symfony/console/Application.php(992): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 src/vendor/symfony/console/Application.php(255): Symfony\Component\Console\Application->doRunCommand(Object(XF\Cli\Command\RunJobs), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 src/vendor/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#20 src/XF/Cli/Runner.php(111): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#21 cmd.php(15): XF\Cli\Runner->run()
#22 {main}
Request state
array(1) {
["cli"] => string(54) "/home/jeepcj/public_html/community/cmd.php xf:run-jobs"
}
Was there any earlier errors in the logs?
@Sim ?None, it happens every day @ 2 hour intervals for 5 times. The file does not exist.
Fetch new bots = No updates available
Any thoughts on why this error is now being generated? Thanks
Server error log
- Swift_IoException: Email to *******@gmail.com from admin@jeep-cj.com failed: Unable to open file for reading [/home/jeepcj/public_html/community/internal_data/temp/knownbots-20240520013734.txt]
/home/jeepcj/public_html/community/internal_data/temp/
exist on your server and is it both readable and writable by the web server user?oh, one i think i can answer on my own!
update your xf token in the plug in since you seem to have the send user agents via api enabled.
The directory was 755, I'll try 777.Hi @philmckrackon does the path/home/jeepcj/public_html/community/internal_data/temp/
exist on your server and is it both readable and writable by the web server user?
Basically, the user agent mailer cron task will dump all new bots to a text file in the temporary directory and then attach it to an email.
Either the file isn't being written, or it can't be read, or else something is happening to the file between it being created and it being sent by the mail handler.
Directory chown as 777 did not affect the error. The file knownbots-20240520013734.txt does not exist.
Thoughts?
xf_mail_queue
table and delete this email.@Sim thank you for releasing this addon. Will it need an update for 2.3?
If not specifically, could you consider updating the compatible versions to include 2.3?
Thanks
Many thanks - much appreciated.I haven't got that far in my testing yet - I will be posting an update either way once I've had time to go through the code.
Before I go down the rabbit hole trying to figure this one out, when trying to fetch new bots I'm getting aServer error fetching bots: 526
error. Any thoughts on where to start looking?
Improved XF 2.3 compatibility
We use essential cookies to make this site work, and optional cookies to enhance your experience.