1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to rebuild thumbnails on CLI mode?

Discussion in 'Media Gallery Support' started by RoldanLT, Apr 17, 2015.

  1. RoldanLT

    RoldanLT Well-Known Member

    With this stats on my Gallery:
    Embedded Media: 9,017, really matters.
    As 90% of that embedded media are from youtube.

    And it takes very long to rebuild my thumbnail :(
    Roughly 6-8 hours for that only.
    and a lot of timeout errors I encounter, PHP max_execution, Nginx 504 bad gateway and Mysql Gone away errors :(

    I even raise up PHP and Nginx limits, but still I encounter some error Mysql Gone Away.
    A CLI mode based rebuild would be great.
  2. Mike

    Mike XenForo Developer Staff Member

    You should probably increase your MySQL wait_timeout - I probably wouldn't suggest anything less than 120. I would note that a CLI script isn't going to resolve that issue; it would just avoid the Nginx timeout.

    Otherwise, a CLI script would need to be custom developed.
  3. RoldanLT

    RoldanLT Well-Known Member

    my.cnf already have: wait_timeout = 120

    Maybe rebuilding thumbnails grab images one by one from youtube?
    That's why it's very slow :(
  4. Chris D

    Chris D XenForo Developer Staff Member

    Yes, video thumbnails will come from the YouTube API when rebuilding.
  5. RoldanLT

    RoldanLT Well-Known Member

    I hope, rebuilding from Embedded Media can be improve.
    Having thousands of data takes almost a day.
  6. Chris D

    Chris D XenForo Developer Staff Member

    There's not really any way it can improve.

    It's obviously going to take a long time.

Share This Page