[bd] Attachment Store for XenForo 1 [Paid] 1.3.7

Store attachment differently and more effectively.

  1. eva2000

    eva2000 New Member

    #280 eva2000, May 18, 2015
    Last edited: May 18, 2015
    similar problem with this addon and showcase addon https://xenforo.com/community/resou...gement-system-guides-garage-reviews-etc.1208/, thumbnails get broken and saved to /data/showcase which = 404 not found

    Showcase (Reviews, Guides, Garage, Directory etc)

    What is Showcase? Showcase is an "Content Management System" designed for forum owners to provide an interface for their users to "showcase" items visually through the use of uploaded images &...
    xenforo.com


    fyi, not uploading to s3 just saving to /data via this addon

    seems frontend is looking for /data/showcase/2/2983-807b86971bd2f8cf762302450c583c42.jpg

    while on disk with bd attachments in place i see

    /data/attachment-files/2015/05/2983_cm_index_180515.png
    /data/attachment-files/2015/05/thumb/2983_cm_index_180515.png
     
  2. andreamarucci

    andreamarucci New Member

    Hello. Since I'm planning to use a cdn I'd need to keep back all my attachments on the server running xenforo so that the cdn can pull them out. Problem is that I've not checked to keep a copy of the files on the server so if I set the addon to use external data directory, I'll miss all the attachments.

    This is what I've written on Xenforo.com

    I've setup this mod so that all the attachments are uploaded via FTP to another server (not the CDN).

    Now I'd like to use CDN77 and I've setup everything but my pull zone is my server (where XF run) and not the other one where the attachments are uploaded.

    So the problem is that since I've not selected Keep local copy, my fear is that as I switch to Store file in External Data directory, CDN77 cannot pull all my attachments from my server since there isn't anything here...

    I don't want to loose all my attachments obviously :)

    Can you help me?
     
  3. Fred.

    Fred. New Member

    I'm using version 1.1.4 on XF 1.4.9 and still have the problem that a lot of files are left in the temp directory.
    They all have a "bdasd_" prefix.

    I'm using PHP 5.6 (php-fpm) and Nginx 1.8

    Is there anything that I can check to find a solution for this?

    Thanks :)
     
    1. kontrabass

      kontrabass New Member

      kontrabass @Fred. What's the path to that temp directory? I'm curious, using the add-on as well.
       
    2. Fred.

      Fred. New Member

      Fred. @kontrabass
      Code:
      /home/user/domains/domain/private_html/internal_data/temp
      Do you have the same problem?
       
    3. kontrabass

      kontrabass New Member

      kontrabass @Fred. Oddly, no. I have thousands of files in that directory, but nothing with a bdasd prefix. (just xf and xmg). I'm using the add-on to store files in the external data directory.
       
    4. Fred.

      Fred. New Member

      Fred. @kontrabass The older files that I have in that directory (From when I was using an 1.1.3) have an xf prefix. But since I updated to 1.1.4 only bdasd prefixes.
      I'm using this to store data in Amazon S3 / Cloudfront.
       
  4. thienbui

    thienbui Member

    Screen Shot 2015-10-17 at 10.50.16 PM.png

    Đang Rebuilding nửa đường bị lỗi mình có cần chạy lại không bạn hay cư để từ từ các file tự chuyển qua.

    Thanks you.
     
  5. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    Just run the rebuilder again, it will continue running from the last time it ran.

    Are you still having this issue?
     
  6. thienbui

    thienbui Member

    Cư mỗi lần lỗi như trên là lại không vô web được
    40GB đính kèm không rebuil khi nào mới song :)
    Screen Shot 2015-10-18 at 12.01.42 AM.png
     
    1. xfrocks

      xfrocks XenForo rocks!
      Staff Member

      xfrocks @thienbui Cái này bạn mở conversation với mình nhé, gửi bạn cái chạy command line cho nhanh :)
      Nhưng 40GB thì chắc vẫn mất thời gian đấy.
       
  7. yavuz

    yavuz Member

    Hi @xfrocks, I have a problem with my attachments. I had decited not to use the addon anymore. Reverted back to default mode, ran the builder and then unistalled the addon, and then deleted the attachment-files directory. Unfortunately the attachments are not showing up anymore.

    I installed the addon again and ran the process again but the attachments are still broke. The "attachment" directory is still in my filesystem though.

    What did I do wrong or is there anything that I can do to recover my images?

    Thank You.
     
    1. xfrocks

      xfrocks XenForo rocks!
      Staff Member

      xfrocks @yavuz After running the rebuilder, have you performed any tests with the attachment? If the rebuilder runs completely, the attachment-files directory should be empty at the time you delete it. Is it the case? Also, how did you configure the add-on before you switched back to default?

      Since you uninstalled the add-on, it's likely that the storage information has been removed completely. You may need to restore to the earliest database backup to be able to do anything at this point. Feel free to start a conversation with me to resolve this issue.
       
  8. thienbui

    thienbui Member

    How to fix a thumbnail of Xen Media ?
    Screen Shot 2015-10-20 at 7.21.38 PM.png
    :(
     
  9. 423

    423 New Member

    Sorry if this is mentioned in this thread somewhere, I don't have time to read 15 pages...

    I've installed both add-ons and this one isn't working correctly at the moment. I moved all of the attachment files manually and they are accessible, but the forums are still trying to look in the local directory instead of Amazon S3. I've run the tools and they don't seem to do anything. Have I done something in the wrong order?
     
  10. 423

    423 New Member

    Also, new attachments are uploading OK and displaying properly from S3. It's only preexisting attachments that I'm having problems with.
     
  11. thienbui

    thienbui Member

  12. 423

    423 New Member

    Yeah, I had tried that already, but I'm in the process of doing it again. You think that's all it is?
     
    1. thienbui

      thienbui Member

      thienbui @423 Yes
       
  13. 423

    423 New Member

    Nope, process finished and the links still point to my local directories. However, new attachments are working the way they should be.
     
    1. thienbui

      thienbui Member

      thienbui @423 You install the Add On how ?
       
  14. 423

    423 New Member

    Followed the directions. The only thing I did differently moved both directories over to S3 manually.
     
  15. 423

    423 New Member

    I got it to work. I had to put the original files back and then run the move process again.
     
  16. rafass

    rafass New Member

    I have a very dumb question.
    I have already everything working perfect. but I'm serving the attachments like:
    Code:
    https://blablablablablablabla.cloudfront.net/2015/10/2542_e4250deb55fb6cf6845895b89886cc.jpeg
    And I want to have something like:
    Code:
    https://attachments.mysite.xxx/2015/10/2542_e4250deb55fb6cf6845895b89886cc.jpeg
    How can I do that?
    Thanks!
     
  17. maxicep

    maxicep New Member

    When i delete an attachment from system (via deleting post) original file still stay on the amazon s3 bucket. Deleted files must be deleted from bucket on amazon s3 too ? @xfrocks
     
    1. xfrocks

      xfrocks XenForo rocks!
      Staff Member

      xfrocks @maxicep Just replied to your other message. "Attachment files are cleaned up in a cron job. During clean up, the S3 files will be deleted too."
       
  18. maxicep

    maxicep New Member

    Yes i saw your cronjob and it runs in every 5 min i think and i folowed that cronjob and i run it manually too but i still shows attachments in s3 bucket which deleted the posts. @xfrocks

    I deleted the attachment at 01.23AM but it still in my bucket on amazon s3. 11 Hours passed. So cronjob may have a problem.
     
    1. xfrocks

      xfrocks XenForo rocks!
      Staff Member

      xfrocks @maxicep The cronjob runs hourly so there is definitely some issues with it. The add-on logs into server error log if it cannot delete a file, have you checked?
       
    2. maxicep

      maxicep New Member

      maxicep @xfrocks Is it may related with "disabled delayed processing" ? Because, i was disabled it on attachment settings. Now, i enabled and i will see what happen.

      Because, your cron name is "[bd] Attachment Store: Delayed Processing" so your cron doing everything if delayed process enabled only i think.
       
    3. xfrocks

      xfrocks XenForo rocks!
      Staff Member

      xfrocks @maxicep If you have run the cronjob manually and both remote and local files are still there, not deleted, that means there is something stuck in the cronjob so it never runs to completion. Please start a conversation with me to debug this issue on your server. Sorry for the complication.
       
    4. maxicep

      maxicep New Member

      maxicep @xfrocks Of course, thank you.
      I write a conversation you.

      Thank you for your help as usual.
       
  19. maxicep

    maxicep New Member

    Still i have same problem, amazon s3 bucket keeps the files. your delayed processing cron just uploading temporary attached files to bucket i think. It doesn't clear the deleted attachments from bucket. So you must use one cron more for deleting process, right ?

    I see, just "[bd] Attachment Store: Delayed Processing" cron in cronlist and it does make that.
     
Loading...