Same here!I've moved files from S3 to default. and did 2 rebuilds:
Move Attachment Data
Update Attachment Data Storage Options
but the attachements' url still in S3 as before .
- Improved file deletion
- Improved temp file processing
- Fixed conflict with XenForo Media Gallery (download feature)
Problem start Tuesday of this week, and I have no idea why. I haven't made any changes to the forum since before Christmas. Any thoughts? (Mods, please feel free to relocate if this needs to be posted in bdAttachmentStore addon section)
Server Error Log
Error Info
XenForo_Exception:Failed to write the attachment file. -library/XenForo/DataWriter/AttachmentData.php:145
Stack Trace
#0 /var/www/xenforo/library/bdAttachmentStore/XenForo/DataWriter/AttachmentData.php(63): XenForo_DataWriter_AttachmentData->_postSave()
#1 /var/www/xenforo/library/XenForo/DataWriter.php(1409): bdAttachmentStore_XenForo_DataWriter_AttachmentData->_postSave()
#2 /var/www/xenforo/library/XenForo/Model/Attachment.php(524): XenForo_DataWriter->save()
#3 /var/www/xenforo/library/XenForo/ControllerPublic/Attachment.php(201): XenForo_Model_Attachment->insertUploadedAttachmentData(Object(XenForo_Upload), 2)
#4 /var/www/xenforo/library/XenForo/FrontController.php(347): XenForo_ControllerPublic_Attachment->actionDoUpload()
#5 /var/www/xenforo/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#6 /var/www/xenforo/index.php(13): XenForo_FrontController->run()
#7 {main}
Request State
array(3) {
["url"] => string(116) "https://discuss.forumdomain.com/att...f7c00bbfd0b1c0efb56ea0296a8&content_type=post"
["_GET"] => array(2) {
["hash"] => string(32) "3b62ff7c00bbfd0b1c0efb56ea0296a8"
["content_type"] => string(4) "post"
}
["_POST"] => array(7) {
["Filename"] => string(28) "test.jpg"
["_xfResponseType"] => string(4) "json"
["content_data"] => array(1) {
["node_id"] => string(2) "23"
}
["_xfSessionId"] => string(32) "cd99f4ec9b050e5aa3e3012391b02eb5"
["_xfToken"] => string(8) "********"
["_xfNoRedirect"] => string(1) "1"
["Upload"] => string(12) "Submit Query"
}
}
Per the quote thread above, attachments are failing to write.I'm having the following issue, which appears to have started in 2016, and is detailed in the following post.
PS. I'm using addon v1.1.3
https://xenforo.com/community/threads/failed-to-write-the-attachment-file.110773
Additional Note: I'm using the FTP upload configuration.Per the quote thread above, attachments are failing to write.
The issue started in January 2016. When I investigated the target attachments folder (/dataX/xenforo/data/), I saw that folders for 2014 and 2015 had been created, with each having 12 folders inside of them (01, 02.... 12), with each folder representing a different month (/dataX/xenforo/data/yyyy/month_number).
But no folder for 2016 has been automatically created. So, my questions are as follows:
1. Does this add-on automatically make the appropriate directories wihin the target location?
2. What are the file permissions on this target directories supposed to be? (ie 755?)
3. What is the ownership (chown) and group (chgrp) assignments for these target directories suppposed to be?
EDIT: I just manually created the "2016" directory with the "01" directory underneath it (/dataX/xenforo/data/2016/01) using folder permision = 755 for both folder 2016 and folder 01. Uploads to my forum now work.
But shouldn't the system create these folder automatically? It's been so long since I initially seutp this add-on that I've forgotten.
Well, for those interested, here's what I figured out for directory/file permission/ownership using FTP as the upload method.Per the quote thread above, attachments are failing to write.
The issue started in January 2016. When I investigated the target attachments folder (/dataX/xenforo/data/), I saw that folders for 2014 and 2015 had been created, with each having 12 folders inside of them (01, 02.... 12), with each folder representing a different month (/dataX/xenforo/data/yyyy/month_number).
But no folder for 2016 has been automatically created. So, my questions are as follows:
1. Does this add-on automatically make the appropriate directories wihin the target location?
2. What are the file permissions on this target directories supposed to be? (ie 755?)
3. What is the ownership (chown) and group (chgrp) assignments for these target directories suppposed to be?
EDIT: I just manually created the "2016" directory with the "01" directory underneath it (/dataX/xenforo/data/2016/01) using folder permision = 755 for both folder 2016 and folder 01. Uploads to my forum now work.
But shouldn't the system create these folder automatically? It's been so long since I initially seutp this add-on that I've forgotten.
Is dropbox and google drive supported..?
I want this because very good plugin indeed.
Can this add-on use AWS instance roles to provision the S3 permissions so that you don't have to embed AWS keys into the config? If I assigned an instance role to the server I could grant permission to the S3 bucket without the need for secret keys. Does the add-on check for presence of keys before trying to upload to S3?
It doesn't. The credentials used to upload each attachment are stored in the database; this makes it difficult to rotate keys and impossible to use different credentials for each server. At NamePros, we've modified XenForo so that we can override specific options using the config file, but bdAttachmentStore ignores the options when managing existing attachments. I've looked into patching bdAttachmentStore to use the latest credentials if the bucket and region match the config, but it wouldn't be a trivial update.
It's possible to rotate keys with the included rebuild tools if you must do that btw.
No, running the update storage options tool does not upload anything. It only modifies data in the database.Does that result in everything being downloaded and then uploaded again? It shouldn't require any requests to S3.
We use essential cookies to make this site work, and optional cookies to enhance your experience.