Problem with Admin statistics graph

General Discussion
  • What about cloudflare? If it was enabled all ips would come from cloudflare ips unless they are forwarded.

  • Cloudflare status is enabled and running, no change whatsoever from time when stats are working and when they are not working. At least no change that i know of or that i did (im only one who has access to it).

    Today, same story: 0_1517577851135_Screenshot_63.png

    It decided that it doesnt want to work anymore and than it decided that it wont track unique visitors but only page visits few hours after (as it can be seen on this fresh screenshot).
    What makes me wonder is that youc an see numbers under "active users". It's not like it's not getting any info or anything.

    Just one extra info, it's hosted on digitalocean 5$ droplet with 1G swap mem active. It it possible that some kind of lack of resources is causing this? Im guessing that it is not because problem would ocure only on traffic peeks and not on totaly random times: 4AM, 2PM, 8AM....

    Ill restart nodebb (./nodebb restart) now and see if it will help.

  • Yup...restart made it work again, but time without data stayed that way (without of data).
    Is there log file i an monitor or anything i can do to even try to rule out anything? I have no clue even in which direction i should look at.
    I have full access to VPS and all, i know my way around it, it's just that im new to nodejs so i dont know much about debugging.

  • There are other files in the nodebb/logs directory I think. You want to look in output.log

  • last time that file had entry was i have to enable something to make it more active? Some kind of debug level?

  • If you use ./nodebb start it should output to that file.

  • Oh sorry, my bad, im stupid, i was looking at wrong putty window....25.1 is from my local test server. Yes, there is fresh log output, ill check it out to see is there is something interesting at times when stats stopped being recorded.

  • Ok from log:

    2018-02-01T17:00:02.980Z [18959] - ^[[32minfo^[[39m: [user/jobs] Digest (day) scheduling completed. 1 email(s) sent.
    2018-02-02T13:29:28.548Z [18959] - ^[[32minfo^[[39m: [build] Building in parallel mode
    2018-02-02T13:29:28.561Z [18959] - ^[[32minfo^[[39m: [build] plugin static dirs build started
    2018-02-02T13:29:28.581Z [18959] - ^[[32minfo^[[39m: [build] requirejs modules build started
    2018-02-02T13:29:28.585Z [18959] - ^[[32minfo^[[39m: [build] client js bundle build started
    2018-02-02T13:29:28.589Z [18959] - ^[[32minfo^[[39m: [build] admin js bundle build started
    2018-02-02T13:29:28.597Z [18959] - ^[[32minfo^[[39m: [build] client side styles build started
    2018-02-02T13:29:28.599Z [18959] - ^[[32minfo^[[39m: [build] admin control panel styles build started
    2018-02-02T13:29:28.601Z [18959] - ^[[32minfo^[[39m: [build] templates build started

    Not much in there. Normal stuff and my errors , no nothing....

  • It seams that i "solved" my problem by upgrade-ing VPN instance from old 512MB RAM Digitalocean VPS to new 1GB RAM Digitalocean VPS (free upgrade) and by disabling clamav who ate whole lot of RAM.
    So my uneducated guess is that it had something to do with lack of RAM (512Mb + 1Gb swap).

  • That's interesting, thanks for sharing the conclusion!

Suggested Topics

  • Problem with label

    Solved General Discussion
    0 Votes
    2 Posts
  • 0 Votes
    2 Posts

    @Moritz-Friedrich solved it somehow ugly by starting the tests in a "ready" callback. Is there some way to find out whether downloaded code has been fully executed?

  • 0 Votes
    6 Posts

    @AOKP @yariplus

    Thanks a lot! 👍

  • 0 Votes
    4 Posts

    @belstgut said:

    Not really sure what all the hype about mongodb/redis lately is, if you can use well tested sql databases.

    MongoDB is well tested too. But beyond being super stable, it is screaming fast - far faster than any relational database, it has amazing sharding properties, it speaks native JSON, it is getting a massive amount of active development, it is considered the native database for Node.js on which NodeBB is built and it scales like crazy.

    Now the big one.... when using Node... those "well tested sql databases" are not well tested. MongoDB is far more stable and tested than any of them and, in fact, lack of highly reliable drivers is a major issue for relational (what you call SQL) databases.

    So there are very, very good reasons to use NoSQL, especially MongoDB specifically. Speed, stability, battle tested, native, etc. I'm not actually clear on any upside to using a relational database here. Relationships are nice, but would they add any value at all in an online community infrastructure?

    Also, I should note, some online communities that we have dealt with have scaling issues specifically because they eschewed this advice and went with those "well tested" relational databases. Once they grew and got busy they were unable to keep pace and they bogged down and had to throw crazy amounts of money at keeping respectable performance when MongoDB or other similar datastore could have been faster for cheaper.

  • 0 Votes
    18 Posts

    @julian you made a mockup, it's as near as done. 😆