Nodebb: Redis? error: [build] admin control panel styles build failed. error: resource 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700' gave this Error:

Created on 30 May 2020  Â·  5Comments  Â·  Source: NodeBB/NodeBB

  • NodeBB version:
    1.13.4-5 (FRESHLY cloned from the documentation/guide)
  • NodeBB git hash:
    f879c4a84e137413f0bdd099e020ec0658124658
  • Installed NodeBB Plugins:
    I assume there are no weird bugged/plugins if I download/clone a clean empty repository.

My plugins (it's just default I think):

[benchpressjs] Unable to build or find a suitable native module, falling back to JS version.
[benchpressjs] This will result in much longer template build times.
[benchpressjs] prebuilt module failed to load: linux_64
[benchpressjs] If the above module is not available at `node_modules/benchpressjs/rust/benchpress-rs/pre-built/`,
[benchpressjs] you can manually build benchpress-rs following the instructions here:
[benchpressjs] `https://github.com/benchpressjs/benchpressjs/blob/master/README.md#manually-building-native-module`
Active plugins:
        * nodebb-plugin-composer-default (installed, enabled)
        * nodebb-plugin-dbsearch (installed, disabled)
        * nodebb-plugin-emoji (installed, enabled)
        * nodebb-plugin-emoji-android (installed, enabled)
        * nodebb-plugin-markdown (installed, enabled)
        * nodebb-plugin-mentions (installed, enabled)
        * nodebb-plugin-soundpack-default (installed, enabled)
        * nodebb-plugin-spam-be-gone (installed, disabled)
        * nodebb-rewards-essentials (installed, enabled)
        * nodebb-theme-lavender (installed, disabled)
        * nodebb-theme-persona (installed, enabled)
        * nodebb-theme-slick (installed, disabled)
        * nodebb-theme-vanilla (installed, disabled)
        * nodebb-widget-essentials (installed, enabled)

  • Database type: mongo, redis, or postgres
    I used MongoDB's setup for NodeBB, but MongoDB 4+ isn't available for ARM32 bit computers (yes, a Raspberry Pi), so I choose to use Redis, but that's when I get the error message.

I'm going to try Postgres soon, if that's not working, then I guess I'll look into another forum solution...

  • Database version:
    Redis server v=5.0.3 sha=00000000:0 malloc=jemalloc-5.1.0 bits=32 build=afa0decbb6de285f

  • Exact steps to cause this issue:

    • What you expected:

      I expected forum to work... I'm just trying NodeBB out by following the documentation, I have no plugins or using some sort of custom NodeBB.
    • What happened instead:
      I get this error:
    2020-05-30T14:05:05.137Z [27866] - error: [build] admin control panel styles  build failed
    2020-05-30T14:05:05.176Z [27866] - error: resource 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700' gave this Error:
      Error: Client network socket disconnected before secure TLS connection was established
     {"type":"File","filename":"/home/pi/nodebb/public/less/admin/paper/bootswatch.less","index":87,"line":5,"column":0,"callLine":null,"extract":["","@import url(\"https://fonts.googleapis.com/css?family=Roboto:300,400,500,700\");",""]}
    
         =============================================================================================================================================================================
    
    2020-05-30T14:05:05.210Z [27866] - error: resource 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700' gave this Error:
      Error: Client network socket disconnected before secure TLS connection was established
     {"type":"File","filename":"/home/pi/nodebb/public/less/admin/paper/bootswatch.less","index":87,"line":5,"column":0,"callLine":null,"extract":["","@import url(\"https://fonts.googleapis.com/css?family=Roboto:300,400,500,700\");",""]}
    (node:27866) UnhandledPromiseRejectionWarning
    (node:27866) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
    (node:27866) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
    

Most helpful comment

@psychobunny I think it would be a good idea to remove roboto like we did with persona here: https://github.com/NodeBB/nodebb-theme-persona/commit/8589b5326be3de2db7dfb8855ef58a390e0d23c9

All 5 comments

  • Exact steps to cause this issue:
1. Follow the documentation step by step.
2. I used default values for installing Redis NodeBB.
2020-05-30T13:36:31.080Z [27866] - info: [build] Building in series mode
2020-05-30T13:36:31.175Z [27866] - info: [build]         plugin static dirs  build started
2020-05-30T13:36:31.705Z [27866] - info: [build]         plugin static dirs  build completed in 0.531sec
2020-05-30T13:36:31.712Z [27866] - info: [build]          requirejs modules  build started
2020-05-30T13:43:40.562Z [27866] - info: [build]          requirejs modules  build completed in 428.848sec
2020-05-30T13:43:40.587Z [27866] - info: [build]           client js bundle  build started
2020-05-30T13:47:47.307Z [27866] - info: [build]           client js bundle  build completed in 246.719sec
2020-05-30T13:47:47.397Z [27866] - info: [build]            admin js bundle  build started
2020-05-30T13:51:33.901Z [27866] - info: [build]            admin js bundle  build completed in 226.397sec
2020-05-30T13:51:34.085Z [27866] - info: [build]         client side styles  build started
2020-05-30T14:03:07.246Z [27866] - info: [build]         client side styles  build completed in 693.154sec
2020-05-30T14:03:07.391Z [27866] - info: [build] admin control panel styles  build started
2020-05-30T14:05:05.137Z [27866] - error: [build] admin control panel styles  build failed
2020-05-30T14:05:05.176Z [27866] - error: resource 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700' gave this Error

It worked fine till it entered the "admin control panel styles", blaming Google fonts.

Maybe it's because of Raspberry Pi? NodeBB Redis works on desktop, jut not on my Raspberry Pi.

For some reason the forum build process can't reach Google fonts to download that file. This is usually due to some issue in your internet connection, for instance, a firewall that blocks access.

@psychobunny I think it would be a good idea to remove roboto like we did with persona here: https://github.com/NodeBB/nodebb-theme-persona/commit/8589b5326be3de2db7dfb8855ef58a390e0d23c9

If it's removed from persona what is including it? I agree it should be removed since it also prevents building locally when you have no internet connection.

@barisusakli one of the ACP style files:

 {"type":"File","filename":"/home/pi/nodebb/public/less/admin/paper/bootswatch.less","index":87,"line":5,"column":0,"callLine":null,"extract":["","@import url(\"https://fonts.googleapis.com/css?family=Roboto:300,400,500,700\");",""]}
Was this page helpful?
0 / 5 - 0 ratings

Related issues

phit picture phit  Â·  4Comments

djensen47 picture djensen47  Â·  5Comments

FaizanZahid picture FaizanZahid  Â·  5Comments

darKnight0037 picture darKnight0037  Â·  3Comments

aStonedPenguin picture aStonedPenguin  Â·  4Comments