Time for update to 1.4.4!

Technical Support
  • Any issues I should know about before updating 😉

  • @Jenkler Take a look at the docs on how your Nginx (if you are using Nginx) should be configured to handle the change to assets and plugins:

    https://docs.nodebb.org/en/latest/scaling/#use-a-proxy-server-to-serve-static-assets

    Specifically

    location @nodebb {
        proxy_pass http://io_nodes;
    }
    
    location ~ ^/assets/(.*) {
        root /path/to/nodebb/;
        try_files /build/public/$1 /public/$1 @nodebb;
    }
    
    location /plugins/ {
        root /path/to/nodebb/build/public/;
        try_files $uri @nodebb;
    }
    
    location / {
        proxy_pass http://io_nodes;
    }
    
  • @rod Here is my configuration, what would be your approach here?

           server
            {
                    listen 443 ssl;
                    ssl_certificate /server/nginx/ssl/nodebb.se.crt;
                    ssl_certificate_key /server/nginx/ssl/nodebb.se.key;
    
                    location /
                    {
                            proxy_http_version 1.1;
                            proxy_set_header Connection "upgrade";
                            proxy_pass http://www-nodebb-se:4567;
                            proxy_set_header Host $host;
                            proxy_set_header Upgrade $http_upgrade;
                            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                            proxy_set_header X-Forwarded-Proto $scheme;
                            proxy_set_header X-Real-IP $remote_addr;
                    }
                    root /dev/null;
                    server_name nodebb.se www.nodebb.se;
    
                    if ($host != 'www.nodebb.se')
                    {
                            rewrite ^/(.*)$ https://www.nodebb.se/$1 permanent;
                    }
            }
    

    Will this not work in 1.4.4 ? It works fine for 1.4.3... This is more a tweek right so nodebb skipps static content 😉

    BTW, i like clean configuration 🙂

  • @Jenkler My understanding from what I have read is that the designers seem to want to remove serving the static content through the node.js engine. Just let node.js do the NodeBB work but let Nginx (or any web server) serve out the static elements of the forum.

    Although your configuration works today for v1.4.3 and possible would for v1.4.4 it seems that in a future version it may no longer.

  • Yeah that sound smart but in my case the upstream io_nodes { is not necessary. only have one instance

    I guess I can add 2 blocks

    location ~ ^/assets/(.*) {
        root /path/to/nodebb/;
        try_files /build/public/$1 /public/$1 @nodebb;
    }
    
    location /plugins/ {
        root /path/to/nodebb/build/public/;
        try_files $uri @nodebb;
    }
    
    

    to solve this? Right?

    Crap did not see @nodebb;

  • Guess its best to follow this 😛

    server {
        listen 80;
    
        server_name community.nodebb.org;
    
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $http_host;
        proxy_set_header X-NginX-Proxy true;
        proxy_redirect off;
    
        # Socket.io Support
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    
        gzip            on;
        gzip_min_length 1000;
        gzip_proxied    off;
        gzip_types      text/plain application/xml text/javascript application/javascript application/x-javascript text/css application/json;
    
        location @nodebb {
            proxy_pass http://io_nodes;
        }
    
        location ~ ^/assets/(.*) {
            root /path/to/nodebb/;
            try_files /build/public/$1 /public/$1 @nodebb;
        }
    
        location /plugins/ {
            root /path/to/nodebb/build/public/;
            try_files $uri @nodebb;
        }
    
        location / {
            proxy_pass http://io_nodes;
        }
    }
    

    Thanks @rod , will try this out. Any issues with 1.4.4 so far?

  • @Jenkler I am running v1.4.4 and have not found any concerns after upgrading from v1.4.3

  • Sound great 👍

    Time to upgrade then 😉

  • @Jenkler Do you have a "dev" setup that you test in before? I put together a simple outline of how I clone my production environment to a dev/test environment to which I test my updates first. If you care you may find my post here:

    I have not updated my post in a while but it should still be accurate.

  • Thanks, I will take a look at it 🙂 Need to keep busy 😛

  • Here is what I did for my changes when I went up to 1.4.x

    https://community.nodebb.org/post/58320

  • Yeah! Updated to 1.4.4 + static content thru nginx... Cheers mates 🍭

    Works great! Time to relax and play some games 😛

  • @rod said in Time for update to 1.4.4!:

    My understanding from what I have read is that the designers seem to want to remove serving the static content through the node.js engine

    Yes and no... if you are using nginx or another reverse proxy, you may as well have nginx handle it... but NodeBB will always be a usable fallback if you don't wish to configure it. It's a tad slower, but nothing to really worry about unless you want to squeeze every ounce of performance from the machine/code 😄

  • For what its worth I upgraded nodebb to 1.4.4 without changing the nginx config to handle the static content. I will do it in the near future but I need to change my docker setup. So don't be afraid to migrate without changing your reverse proxy settings.

    Standard recommendations about doing backups (and test restores) applies.

  • I am also running docker! Needed to mount both my nodejs and nginx volumes to the nginx container. It works good, as it should. Nginx for static feels good 😉


Suggested Topics


  • 0 Votes
    3 Posts
    86 Views

    @baris

    @baris said in Recent page and Recent Card update doesn't work for one account:

    So this started after you migrated your server?

    2 or 3 days after
    @baris said in Recent page and Recent Card update doesn't work for one account:

    I would login with that user and make a new reply and see if that shows up in recent

    he use his account, he can answer tot topic but nothing in recent

    @baris said in Recent page and Recent Card update doesn't work for one account:

    Other things to check are blocked users, ignored categories

    Where can I check this?
    I put this user in the admin group and same things

    @baris said in Recent page and Recent Card update doesn't work for one account:

    If all else fails you need add some console.logs into src/controllers/recent.js to figure out why no topics are returned for that user.

    So there I am dropped 🙂

  • 0 Votes
    29 Posts
    3k Views

    @baris sorry for the late reply I'm based in Europe.
    Thank you very much, it's working great now.

  • 0 Votes
    2 Posts
    859 Views

    You must run git pull before running ./nodebb upgrade.

  • 0 Votes
    3 Posts
    1k Views

    Thank you!

  • 0 Votes
    1 Posts
    1k Views

    I run my game forum on the current master, well, just because there is not a lot there and it can be broke if I have to.

    I updated git just now and ran ./nodebb upgrade and received the following. Everything is currently working, just wanted to report the warning.

    [root@daermabb nodebb]# ./nodebb upgrade 1. Bringing base dependencies up to date... Error: Command failed: /usr/bin/env npm i --production npm ERR! Linux 3.10.0-229.20.1.el7.x86_64 npm ERR! argv "/root/.nvm/v0.12.9/bin/node" "/root/.nvm/v0.12.9/bin/npm" "i" "--production" npm ERR! node v0.12.9 npm ERR! npm v2.14.9 npm ERR! code EPEERINVALID npm ERR! peerinvalid The package [email protected] does not satisfy its siblings' peerDependencies requirements! npm ERR! peerinvalid Peer [email protected] wants redisearch@^0.0.6 npm ERR! Please include the following file with any support request: npm ERR! /opt/daerma/nodebb/npm-debug.log [root@daermabb nodebb]# ./nodebb start Starting NodeBB "./nodebb stop" to stop the NodeBB server "./nodebb log" to view server output "./nodebb restart" to restart NodeBB [root@daermabb nodebb]# ./nodebb log Type Ctrl-C to exit Clustering enabled: Spinning up 1 process(es). 7/12 09:16 [2915] - info: Time: Mon Dec 07 2015 09:16:57 GMT-0600 (CST) 7/12 09:16 [2915] - info: Initializing NodeBB v0.9.1 7/12 09:16 [2915] - warn: [plugins/load] The following plugins may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing. In the event of an unresponsive NodeBB caused by this plugin, run `./nodebb reset -p PLUGINNAME` to disable it. * nodebb-plugin-dbsearch * nodebb-plugin-assign-newuser-to-group info: Imgbed: regex recalculated: (?<paren>[\(]\s*)?(?<url>https?://[^\s]+\.(jpg|jpeg|gif|gifv|png|svg)) 7/12 09:17 [2915] - info: NodeBB Ready 7/12 09:17 [2915] - info: Enabling 'trust proxy' 7/12 09:17 [2915] - info: NodeBB is now listening on: 0.0.0.0:4567