• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

Image loss issue

Scheduled Pinned Locked Moved Technical Support
12 Posts 6 Posters 3.5k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    linan2332
    wrote on last edited by linan2332
    #1

    Hi guys!
    I am facing a problem that I am not sure where it go wrong. I have created a forum website hosting on Heroku and the db is redistogo. I have upgrade my Heroku to Hobby tier and redistogo to mini($9/m).
    The website works well and everything is good. However whenever the website idle(no incoming traffic) for an unknown hours of time (maybe 5-7 hours). When I open up the webpage, I would loss all my category icon image and website logo. I would then need to manually upload it again. Here is what it look like
    Normal: http://postimg.org/image/590xsrabn/
    Broken: http://postimg.org/image/dvmea3wnx/
    Heroku setting: http://postimg.org/image/r0eh687vb/

    I am not sure what went wrong and I already double check that I am not using the free tier dyno. For now I disallow user to upload profile image and post image fearing that they might lose their image too. If anyone has experience this before or has any suggestion please let me know 🙂

    Thanks

    ? 1 Reply Last reply
    0
  • ? Offline
    ? Offline
    A Former User
    replied to linan2332 on last edited by
    #2

    @linan2332 do you use the Imgur upload?

    1 Reply Last reply
    0
  • L Offline
    L Offline
    linan2332
    wrote on last edited by linan2332
    #3

    Hi AOKP, I believe i am not using Imgur upload. All the category icon and site logo are locally stored in my PC and I just upload the image using the Admin tool.

    1 Reply Last reply
    0
  • KowlinK Offline
    KowlinK Offline
    Robert Translator
    wrote on last edited by
    #4

    Hmm, doesn't Heroku hibernate there packages if I'm correct? Maby it has something to do with this issue,

    1 Reply Last reply
    0
  • L Offline
    L Offline
    linan2332
    wrote on last edited by
    #5

    What do u mean by hibernate the package? I can definitely write an email to heroku support. Where does nodeBB store the image?( it is really weird the background image is not affected by this)

    1 Reply Last reply
    0
  • L Offline
    L Offline
    linan2332
    wrote on last edited by linan2332
    #6

    After trying all sort of things, It turns out after I turn off the traffic management option in admin tool, the image stop dropping. Is there any side effect in turning traffic management off?

    A 1 Reply Last reply
    0
  • A Offline
    A Offline
    a_5mith
    replied to linan2332 on last edited by
    #7

    @linan2332 It won't manage your traffic...

    Don't actually know what that means though. Ask heroku if it's their admin panel you made the change in. 🙂 You're paying enough per month for their support.

    1 Reply Last reply
    0
  • L Offline
    L Offline
    linan2332
    wrote on last edited by
    #8

    @a_5mith I am referring to the traffic management option within nodeBB (admin->settings->advanced->traffic management enable). Do you know any negative impact disabling that option?

    julianJ 1 Reply Last reply
    0
  • julianJ Online
    julianJ Online
    julian GNU/Linux
    replied to linan2332 on last edited by
    #9

    @linan2332 Heroku spins up and down dynos using what is called an "ephemeral file system". This means that the codebase is regenerated every time it is spun up, meaning the public/uploads directory, where you are uploading your assets, is being reset.

    You will need to upload your images to a CDN or some other hoster, and then paste those links in the config instead of uploading directly to your Heroku.

    If you have the imgur plugin, post uploads will be ok as they are sent to Imgur.

    1 Reply Last reply
    2
  • L Offline
    L Offline
    linan2332
    wrote on last edited by
    #10

    Thanks for your reply @julian ! What you said does make sense, I will install the Imgur plugin and try it.

    1 Reply Last reply
    0
  • L Offline
    L Offline
    linan2332
    wrote on last edited by linan2332
    #11

    @julian is there anyway I can use the category icon and site logo with Imgur? The post image is good now but I still lose the category icon and site logo since they only accept locally upload images.

    pichaliteP 1 Reply Last reply
    0
  • pichaliteP Offline
    pichaliteP Offline
    pichalite Plugin & Theme Dev
    replied to linan2332 on last edited by pichalite
    #12

    @linan2332 after you install and activate imgur plugin, site logo and category image upload also uploads to imgur.

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development