NodeBB Assets - Object Storage

Unsolved Technical Support
  • @baris Any ideas to to how I can remove the entries for this plugin or at least remove the tick that enables the redirect? I've uninstalled and reinstalled it, but the forum crashes and I can't make any changes.

  • @phenomlab try clearing your cache. You can deactivate the plugin with ./nodebb reset -p @nodebb/nodebb-plugin-cdn

  • @PitaJ thanks. I've used that command on the cli to disable which seems to work fine but removing and reinstalling seems to retain the existing values.

  • @PitaJ clearing the cache doesn't work - neither does an incognito tab. Looks like the value has to be removed from the database, or perhaps a way of leaving the plugin active but disabling the redirect

  • You can delete this key from the database 'plugin_cdn:settings'

  • @baris is there a specific command in MongoDB to remove this?

  • db.objects.remove({_key: "plugin_cdn:settings"});

  • @baris thanks

  • @baris @PitaJ even stripping my Dev config back to just NodeBB with no nginx, it still doesn't work. All that happens is that the plugin crashes the admin console. Can't see any real reason for this in the logs either

  • @phenomlab what does crashing the admin console look like? And if you had any CDN stuff in your nginx config you'll need to clear you're cache again. Try a different browser if you haven't already.

    The CDN plugin doesn't store anything in the database except for the settings key you've already deleted. You will need to restart NodeBB after deleting the key in order for that to take effect.

  • @PitaJ It looks like this

    6Fetch finished loading: GET "<URL>".
    admin:46          GET https://sudonix.dev/assets/plugins/nodebb-plugin-markdown/styles/obsidian.css net::ERR_ABORTED 404
    18Fetch failed loading: GET "<URL>".
    admin:45          GET https://sudonix.dev/assets/plugins/nodebb-plugin-emoji/emoji/styles.css?v=kccgr37fq3g net::ERR_ABORTED 404
    admin:49          GET https://sudonix.dev/assets/admin.css?v=kccgr37fq3g net::ERR_ABORTED 404
    admin:61          GET https://sudonix.dev/assets/admin.min.js?v=kccgr37fq3g net::ERR_ABORTED 404
    admin:987 Uncaught ReferenceError: $ is not defined
        at HTMLDocument.prepareFooter (admin:987:4)
    prepareFooter @ admin:987
    13The FetchEvent for "<URL>" resulted in a network error response: the promise was rejected.
    service-worker.js:14          Uncaught (in promise) TypeError: Failed to fetch
        at service-worker.js:14:11
    (anonymous) @ service-worker.js:14
    service-worker.js:14          Uncaught (in promise) TypeError: Failed to fetch
        at service-worker.js:14:11
    (anonymous) @ service-worker.js:14
    service-worker.js:14          Uncaught (in promise) TypeError: Failed to fetch
        at service-worker.js:14:11
    (anonymous) @ service-worker.js:14
    service-worker.js:14          Uncaught (in promise) TypeError: Failed to fetch
        at service-worker.js:14:11
    (anonymous) @ service-worker.js:14
    service-worker.js:14          Uncaught (in promise) TypeError: Failed to fetch
        at service-worker.js:14:11
    (anonymous) @ service-worker.js:14
    service-worker.js:14          Uncaught (in promise) TypeError: Failed to fetch
        at service-worker.js:14:11
    (anonymous) @ service-worker.js:14
    service-worker.js:14          Uncaught (in promise) TypeError: Failed to fetch
        at service-worker.js:14:11
    (anonymous) @ service-worker.js:14
    service-worker.js:14          Uncaught (in promise) TypeError: Failed to fetch
        at service-worker.js:14:11
    (anonymous) @ service-worker.js:14
    service-worker.js:14          Uncaught (in promise) TypeError: Failed to fetch
        at service-worker.js:14:11
    (anonymous) @ service-worker.js:14
    service-worker.js:14          Uncaught (in promise) TypeError: Failed to fetch
        at service-worker.js:14:11
    (anonymous) @ service-worker.js:14
    service-worker.js:14          Uncaught (in promise) TypeError: Failed to fetch
        at service-worker.js:14:11
    (anonymous) @ service-worker.js:14
    service-worker.js:14          Uncaught (in promise) TypeError: Failed to fetch
        at service-worker.js:14:11
    (anonymous) @ service-worker.js:14
    service-worker.js:14          Uncaught (in promise) TypeError: Failed to fetch
        at service-worker.js:14:11
    (anonymous) @ service-worker.js:14
    admin:34          GET https://sudonix.dev/assets/src/modules/composer.js?v=kccgr37fq3g net::ERR_FAILED
    admin:35          GET https://sudonix.dev/assets/src/modules/composer/uploads.js?v=kccgr37fq3g net::ERR_FAILED
    admin:36          GET https://sudonix.dev/assets/src/modules/composer/drafts.js?v=kccgr37fq3g net::ERR_FAILED
    admin:37          GET https://sudonix.dev/assets/src/modules/composer/tags.js?v=kccgr37fq3g net::ERR_FAILED
    admin:38          GET https://sudonix.dev/assets/src/modules/composer/categoryList.js?v=kccgr37fq3g net::ERR_FAILED
    admin:39          GET https://sudonix.dev/assets/src/modules/composer/resize.js?v=kccgr37fq3g net::ERR_FAILED
    admin:40          GET https://sudonix.dev/assets/src/modules/composer/autocomplete.js?v=kccgr37fq3g net::ERR_FAILED
    admin:41          GET https://sudonix.dev/assets/templates/composer.tpl?v=kccgr37fq3g net::ERR_FAILED
    admin:42          GET https://sudonix.dev/assets/language/en-GB/topic.json?v=kccgr37fq3g net::ERR_FAILED
    admin:46          GET https://sudonix.dev/assets/plugins/nodebb-plugin-markdown/styles/obsidian.css net::ERR_FAILED
    admin:44          GET https://sudonix.dev/assets/language/en-GB/tags.json?v=kccgr37fq3g net::ERR_FAILED
    admin:43          GET https://sudonix.dev/assets/language/en-GB/modules.json?v=kccgr37fq3g net::ERR_FAILED
    admin:47          GET https://sudonix.dev/assets/language/en-GB/markdown.json?v=kccgr37fq3g net::ERR_FAILED
    touchicon-144.png:1          GET https://sudonix.dev/assets/uploads/system/touchicon-144.png 404
    admin:1 Error while trying to use the following icon from the Manifest: https://sudonix.dev/assets/uploads/system/touchicon-144.png (Download error or resource isn't a valid image)
    

    The site can no longer be loaded. I see traffic building on the CDN, but even with removing NGINX and just using NodeJS to serve the site, it's the same. The site is not rendered correctly, and I see a stack of errors in the console

    One of particular interest is this

    (blocked:NotSameOrigin)
    

    The odd thing is that I'm pretty sure I enabled this in terms of CORS settings.

    fa8ac5e5-9cd7-4665-83e2-2cfd0190718c-image.png

    I've tried 5 different browsers and they all do the same thing.

  • What's more odd here is that the critical js files NodeBB needs are not being redirected to the CDN - see

    image.png

    Whereas others are

    image.png

    More concerning is that the assets still pointing to the origin server are now serving a 404

    image.png

    I think there is an issue with this plugin which prevents it from working correctly.

  • Yeah looks like I'll need to take another look at it in action. Maybe the upgrade Baris did changed something it wasn't supposed to. Unfortunately I'm away on vacation at the moment.

  • @PitaJ no problem at all. Thanks

  • @baris @PitaJ any plans to look into why this plugin does not work ?


Suggested Topics



  • 0 Votes
    1 Posts
    690 Views

  • 0 Votes
    1 Posts
    644 Views

  • Technical Support
    0 Votes
    17 Posts
    4427 Views

  • 0 Votes
    9 Posts
    4023 Views

| | | |