Known Bots

Known Bots 6.0.5

No permission to download
Sure, just wanted Sim to know the FAQ is outdated.

The FAQ has become a bit pointless since v4 of the addon anyway - the list of bots provided in the repository (now available here: https://github.com/hampel/knownbots-xenforo/blob/master/BOTS.md) is only updated when a new version of the addon is built.

Unless you explicitly disable fetching new bots, the list will be automatically updated with the latest bot list fetched from the KnownBots API and is viewable in your AdminCP.

As such, I've removed that FAQ entry.
 
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"
}
 
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?
 
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]

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.

If it's the same file name in every error message - then it's possible that the job is just failing time after time while trying to send that same email - perhaps the attachment got cleaned up out of the temp directory before the mailer could send? You may want to just delete that mail send job from the queue?
 
For the past week, I have been getting these server errors. Please Advise.



View attachment 303754
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.

@Opus X is correct - your customer token is invalid (or no longer valid)

Get a new validation token from your XF customer area and update your settings in the KnownBots options.
 
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.
The directory was 755, I'll try 777.

Old:
chown755.webp

New:
chown777.webp
 
  • Like
Reactions: Sim
Directory chown as 777 did not affect the error. The file knownbots-20240520013734.txt does not exist.
Thoughts?

bots1.webp

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
  • Jun 6, 2024 at 9:13 AM

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(8)
#12 src/XF/Job/Manager.php(260): XF\Job\MailQueue->run(8)
#13 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#14 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 8)
#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"
}
*ttps://jeep-cj.com/community/admin.php?logs/server-errors/6/delete
 
Directory chown as 777 did not affect the error. The file knownbots-20240520013734.txt does not exist.
Thoughts?

Yes, this is the same failed email being retried over and over - you can tell by the timestamp in the file name of the missing file. It is failing because the file doesn't exist, but it's not giving up like it should. I think this is a bug in the XF mail handling - I'll investigate further and report that separately if I find the source of the issue.

You should look in the xf_mail_queue table and delete this email.
 
Before I go down the rabbit hole trying to figure this one out, when trying to fetch new bots I'm getting a Server error fetching bots: 526 error. Any thoughts on where to start looking?
 
Before I go down the rabbit hole trying to figure this one out, when trying to fetch new bots I'm getting a Server error fetching bots: 526 error. Any thoughts on where to start looking?

526 is a Cloudflare error - which means a problem at my end.

I've fixed this now, so you shouldn't receive any further errors at this point.
 
Back
Top Bottom