Hey @julian thanks for the clarification
eva2000
Posts
-
Latest version of node.js supported ? -
Latest version of node.js supported ?The documentation for CentOS install still shows node.js 0.10 versions ? So what's the latest version of node.js supported by nodebb ? node.js 8.9.4 okay https://nodejs.org/en/ ?
thanks
-
Letsencrypt@xen said:
Someone is already using it?
https://letsencrypt.org/I received a email 'Let's Encrypt Closed Beta Invite'
But I do not understand how to install it.Yup already using it and integrating Letsencrypt into my Centmin Mod Nginx web stack installer so folks can generate free SSL certificates when they create their Nginx vhost domain http://centminmod.com/letsencrypt-freessl.html - still work in progress
-
BUG. Invisibility is not working correctly@drew said:
@XenTerSeO easily the worst avatar on the whole forum.
+1 although it's quite hilarious too
-
NodeBB v0.7.2 + Centmin Mod LEMP Nginx Install Guide@psychobunny @julian been a while since I played with NodeBB. But now that my Centmin Mod LEMP .08 stable release is out, I decided to play with NodeBB v0.7.2 + Centmin Mod Nginx server setup
Posted a full how to install guide at https://community.centminmod.com/threads/centmin-mod-nginx-nodebb-forum-install.4009/
Only issue I have right now is forever restart or ./nodebb restart commands don't seem to work ? Stop and start work fine.
Comments and suggestions are welcome
-
nodebb setup redis database other than 0 ?never mind been a while since i installed nodedbb, that prompt was for database = redis not the redis db number which came later on
./nodebb setup 1/8 09:58 [5915] - info: NodeBB Setup Triggered via Command Line Welcome to NodeBB! This looks like a new installation, so you'll have to answer a few questions about your environment before we can proceed. Press enter to accept the default setting (shown in brackets). URL used to access this NodeBB (http://localhost:4567) Please enter a NodeBB secret (09df113d-0255-48b7-8e21-c2d0eba3be54) Which database to use (redis) 1/8 09:58 [5915] - info: Now configuring redis database: Host IP or address of your Redis instance (127.0.0.1) Host port of your Redis instance (6379) Password of your Redis database Which database to use (0..n) (0) 3 Configuration Saved OK [email protected] node_modules/redis [email protected] node_modules/connect-redis āāā [email protected] ([email protected]) Populating database with default configs, if not already set... Enabling default theme: Persona No categories found, populating instance with default categories 1/8 09:59 [5915] - warn: No administrators have been detected, running initial user setup
-
nodebb setup redis database other than 0 ?If i try to setup nodebb with redis and database = 3 get error. If i accept defaults, it's fine ? v0.7.2 nodebb on CentOS + Centmin Mod LEMP web stack
./nodebb setup 1/8 09:54 [5887] - info: NodeBB Setup Triggered via Command Line Welcome to NodeBB! This looks like a new installation, so you'll have to answer a few questions about your environment before we can proceed. Press enter to accept the default setting (shown in brackets). URL used to access this NodeBB (http://localhost:4567) Please enter a NodeBB secret (b8f9e5ef-711b-4c94-a9a3-debb7ea40947) Which database to use (redis) 3 1/8 09:54 [5887] - info: Now configuring 3 database: 1/8 09:54 [5887] - warn: NodeBB Setup Aborted. Error: unknown database : 3 at success (/home/nginx/domains/newdomain.com/public/nodebb/install/databases.js:67:19) at /home/nginx/domains/newdomain.com/public/nodebb/install/databases.js:93:4 at fn (/home/nginx/domains/newdomain.com/public/nodebb/node_modules/async/lib/async.js:638:34) at Immediate._onImmediate (/home/nginx/domains/newdomain.com/public/nodebb/node_modules/async/lib/async.js:554:34) at processImmediate [as _immediateCallback] (timers.js:367:17)
-
NodeBB v0.7.2@julian @psychobunny congrats guys on 10k commits !
-
Redis useful info@psychobunny said:
Thanks for this somehow managed to miss this topic. If you like, feel free to add what you can to our documentation!
You're welcome
oh we can edit the docs too ? might be best if you added it for now
-
Redis advice on low memory systemah i need to update my script to take into account redis set passwords heh
but no memory/swap issues i see from your output
what's your free disk space like ? and how large is your /tmp directory
df -hT
-
Redis advice on low memory systemoh and only just noticed
vm.overcommit_memory=1
should be placed in/etc/sysctl.conf
and needssysctl -p
command for changes to take effect. Your first post listed the wrong file to place it it. I'd double check you have the settings in the right fileyou can check with command in SSH below
sysctl -a | grep 'vm.overcommit_memory'
should give
vm.overcommit_memory = 1
-
Redis advice on low memory systemUse my script to check real and system reported redis memory usage and not just redis db size itself.
I re-read your first post about jumps in memory usage/size after each time it dies, maybe related to some automated backup policy you have in place or redis' persistence snapshot settings as I mentioned at https://community.nodebb.org/topic/932/redis-useful-info#6668 ? It matches your errors in your log particularly
[23425] 20 May 20:12:46.979 * Saving the final RDB snapshot before exiting. [23425] 20 May 20:12:47.469 * DB saved on disk [23425] 20 May 20:12:47.469 * Removing the pid file. [23425] 20 May 20:12:47.470 # Redis is now ready to exit, bye bye...
there's a 0.727 second gap between that and the maxclients error that follows
-
Redis advice on low memory systemI whipped up a shell script at https://gist.github.com/centminmod/7d3e562fb87fa8ef263a to gather redis and system memory usage info. Might be helpful
-
Redis useful infoThought I'd share a shell script I wrote,
redisinfo.sh
to grab all relevant redis server memory and usage info so I can analyse the stats and check for memory swapping issues etc.I uploaded the script at https://gist.github.com/centminmod/7d3e562fb87fa8ef263a.
The first reply in the comments there also has instructions on installing
redisinfo.sh
including sample output of the info and stats gathered.i.e.
./redisinfo.sh -------------------------------------------------------------------------- redis-cli 2.8.9 -------------------------------------------------------------------------- redis-cli info # Server redis_version:2.8.9 redis_git_sha1:00000000 redis_git_dirty:0 redis_build_id:b548a658a720fb3e redis_mode:standalone os:Linux 2.6.32-431.el6.x86_64 x86_64 arch_bits:64 multiplexing_api:epoll gcc_version:4.4.7 process_id:31142 run_id:a1bde5d043367ae6de1d6ea462ed12801e8cc58c tcp_port:6379 uptime_in_seconds:5960 uptime_in_days:0 hz:10 lru_clock:8155044 config_file:/etc/redis.conf # Clients connected_clients:1 client_longest_output_list:0 client_biggest_input_buf:0 blocked_clients:0 # Memory used_memory:3669672 used_memory_human:3.50M used_memory_rss:18681856 used_memory_peak:225820744 used_memory_peak_human:215.36M used_memory_lua:33792 mem_fragmentation_ratio:5.09 mem_allocator:jemalloc-3.2.0 # Persistence loading:0 rdb_changes_since_last_save:19033236 rdb_bgsave_in_progress:0 rdb_last_save_time:1400663949 rdb_last_bgsave_status:ok rdb_last_bgsave_time_sec:0 rdb_current_bgsave_time_sec:-1 aof_enabled:0 aof_rewrite_in_progress:0 aof_rewrite_scheduled:0 aof_last_rewrite_time_sec:-1 aof_current_rewrite_time_sec:-1 aof_last_bgrewrite_status:ok aof_last_write_status:ok # Stats total_connections_received:2944 total_commands_processed:23709308 instantaneous_ops_per_sec:0 rejected_connections:0 sync_full:0 sync_partial_ok:0 sync_partial_err:0 expired_keys:0 evicted_keys:0 keyspace_hits:5961843 keyspace_misses:539709 pubsub_channels:0 pubsub_patterns:0 latest_fork_usec:586 # Replication role:master connected_slaves:0 master_repl_offset:0 repl_backlog_active:0 repl_backlog_size:1048576 repl_backlog_first_byte_offset:0 repl_backlog_histlen:0 # CPU used_cpu_sys:97.93 used_cpu_user:71.73 used_cpu_sys_children:0.00 used_cpu_user_children:0.02 # Keyspace -------------------------------------------------------------------------- redis-cli --intrinsic-latency 10 Max latency so far: 4 microseconds. Max latency so far: 6 microseconds. Max latency so far: 13 microseconds. Max latency so far: 16 microseconds. Max latency so far: 32 microseconds. 3214753 total runs (avg 3 microseconds per run). Worst run took 10.67x times the avarege. -------------------------------------------------------------------------- vmstat 1 10 procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu----- r b swpd free buff cache si so bi bo in cs us sy id wa st 0 0 0 15453032 140484 407852 0 0 0 0 16 24 4 5 91 0 0 0 0 0 15453032 140484 407852 0 0 0 0 188 150 0 0 100 0 0 0 0 0 15453032 140484 407852 0 0 0 0 126 138 0 0 100 0 0 0 0 0 15453032 140484 407852 0 0 0 2 151 188 0 0 100 0 0 1 0 0 15453032 140484 407852 0 0 0 0 129 146 0 0 100 0 0 0 0 0 15453032 140484 407852 0 0 0 0 132 154 0 0 100 0 0 0 0 0 15453032 140484 407852 0 0 0 0 125 142 0 0 100 0 0 0 0 0 15453032 140484 407852 0 0 0 0 136 150 0 0 100 0 0 0 0 0 15453032 140484 407852 0 0 0 0 124 138 0 0 100 0 0 0 0 0 15453040 140484 407852 0 0 0 0 137 164 0 0 100 0 0 -------------------------------------------------------------------------- smem -kU redis PID User Command Swap USS PSS RSS 31142 redis /usr/sbin/redis-server 127. 0 19.1M 19.2M 19.7M -------------------------------------------------------------------------- -------------------------------------------------------------------------- smem -kmU redis Map PIDs AVGPSS PSS /usr/lib/locale/locale-archive 1 0 0 [vdso] 1 0 0 [vsyscall] 1 0 0 /lib64/libdl-2.12.so 1 8.0K 8.0K /lib64/libm-2.12.so 1 8.0K 8.0K /lib64/ld-2.12.so 1 9.0K 9.0K /lib64/libpthread-2.12.so 1 12.0K 12.0K [stack] 1 16.0K 16.0K /lib64/libc-2.12.so 1 49.0K 49.0K [heap] 1 52.0K 52.0K /usr/sbin/redis-server 1 476.0K 476.0K <anonymous> 1 18.5M 18.5M -------------------------------------------------------------------------- -------------------------------------------------------------------------- smem -tpk PID User Command Swap USS PSS RSS 2628 root /sbin/mingetty /dev/tty4 0 80.0K 99.0K 576.0K 2622 root /sbin/mingetty /dev/tty1 0 84.0K 103.0K 580.0K 2624 root /sbin/mingetty /dev/tty2 0 84.0K 103.0K 580.0K 2626 root /sbin/mingetty /dev/tty3 0 84.0K 103.0K 580.0K 2630 root /sbin/mingetty /dev/tty5 0 84.0K 103.0K 580.0K 2632 root /sbin/mingetty /dev/tty6 0 84.0K 103.0K 580.0K 1295 nsd /usr/local/sbin/nsd -c /etc 0 92.0K 234.0K 960.0K 1341 root mdadm --monitor --scan -f - 0 284.0K 297.0K 628.0K 1298 nsd /usr/local/sbin/nsd -c /etc 0 184.0K 302.0K 708.0K 1244 root auditd 0 352.0K 372.0K 860.0K 608 root /sbin/udevd -d 0 136.0K 374.0K 1.1M 2634 root /sbin/udevd -d 0 116.0K 378.0K 1.1M 2635 root /sbin/udevd -d 0 116.0K 378.0K 1.1M 22942 root nginx: master process /usr/ 0 176.0K 407.0K 1.6M 31771 root /bin/bash /root/tools/redis 0 200.0K 429.0K 1.4M 1361 dbus dbus-daemon --system 0 504.0K 519.0K 868.0K 1427 root /bin/sh /usr/bin/mysqld_saf 0 320.0K 558.0K 1.6M 2609 root crond 0 648.0K 684.0K 1.2M 2498 nobody /usr/local/bin/memcached -d 0 752.0K 771.0K 1.1M 1 root /sbin/init 0 736.0K 779.0K 1.5M 1405 root /usr/sbin/sshd 0 716.0K 807.0K 1.2M 1260 root /sbin/rsyslogd -i /var/run/ 0 1.1M 1.1M 1.7M 1413 ntp ntpd -u ntp:ntp -p /var/run 0 960.0K 1.1M 2.1M 2586 root /usr/libexec/postfix/master 0 1.1M 1.2M 2.1M 22944 nginx nginx: worker process 0 1.5M 1.8M 3.4M 31413 postfix pickup -l -t unix -u 0 1.1M 1.8M 3.8M 22943 nginx nginx: worker process 0 1.5M 1.8M 3.4M 22946 nginx nginx: worker process 0 1.5M 1.8M 3.5M 22945 nginx nginx: worker process 0 1.5M 1.8M 3.5M 2588 postfix qmgr -l -t unix -u 0 1.3M 1.9M 4.0M 29348 root sshd: root@pts/0 0 1.9M 2.4M 4.1M 29351 root -bash 0 2.6M 2.9M 4.0M 2487 root /usr/sbin/haveged -w 3072 - 0 3.1M 3.1M 3.5M 1297 nsd /usr/local/sbin/nsd -c /etc 0 4.2M 4.3M 4.8M 22960 root php-fpm: master process (/u 0 5.3M 5.4M 6.0M 31796 root python /usr/bin/smem -tpk 0 5.9M 6.0M 6.7M 1335 root /sbin/mdmon --takeover md0 0 11.4M 11.5M 12.4M 26528 root lfd - sleepin 0 14.0M 14.0M 14.6M 31142 redis /usr/sbin/redis-server 127. 0 19.1M 19.2M 19.7M 2474 mysql /usr/sbin/mysqld --basedir= 0 38.2M 38.5M 40.1M ------------------------------------------------------------------------------- 40 9 0 122.9M 129.3M 163.6M -------------------------------------------------------------------------- -------------------------------------------------------------------------- free -mlt total used free shared buffers cached Mem: 15941 851 15090 0 137 398 Low: 15941 851 15090 High: 0 0 0 -/+ buffers/cache: 315 15625 Swap: 8039 0 8039 Total: 23981 851 23130 --------------------------------------------------------------------------
-
Redis advice on low memory systemWhat operating system is the redis installed on ? CentOS ? Debian?
you might want to follow http://redis4you.com/articles.php?id=014&name=Redis+too+many+open+files+error+on+high+traffic+sites
ulimit -n 4096
if redis is running as root user I believe but from that message looks like redis wants at least 10032 file descriptors
if it's running as redis user and on CentOS, you might need editing
/etc/security/limits.conf
and specifically raising open file descriptor limit for redis useri.e. usually I set open file limits to at least 65536 to 262144 in
/etc/security/limits.conf
* soft nofile 65536 * hard nofile 65536 redis soft nofile 65536 redis hard nofile 65536 nginx soft nofile 262144 nginx hard nofile 262144
looks like /etc/redis.conf for redis 2.8.9 defaults to following commented out settings
# Set the max number of connected clients at the same time. By default # the max number of allowed clients is set to the current file limit # an error 'max number of clients reached'. # maxclients 10000
Hope that helps
-
There are 55 sites using NodeBB@julian said:
It's a balancing act -- I honestly really want to help, but the more popular NodeBB gets, the more people need help, and that really comes at a time cost.
So we really need people like yourself -- experienced NodeBB admins who can guide others to solutions.
To lessen help/support work you really need great documentation and faq system which is searchable and brings back relevant results when searched. Then get into a habit of answering forum/support questions with answer + a link to the relevant documentation and faq resources each and every time you answer. This serves a purpose to condition users and lurking visitors into getting familiar with documentation and faq availability. Over time, end users will also help out other end users by answering the same questions with direct links to documentation and faq resources and you get end with a snowball effect
I am a firm believer in answering common questions only once so documentation/faq links will capture that answer for all to use and reference.
The hardest part is compiling that documentation and faq system entries as you go - on the fly adding to the system as new unique but commonly repeated questions pop up
Maybe make a nodeBB FAQ plugin to promote forum post/answer/replies to the FAQ plugin/display which can be edited for more appropriate format etc before final submission to an FAQ entry ?
my AUD$0.0.2
-
Julian Lam and NodeBB on Ghost Talk PodcastIndeed interesting podcast and insight into NodeBB. Great that Ghost and NodeBB can learn from each other some stuff
-
Julian Lam and NodeBB on Ghost Talk PodcastSurprised when NodeBB sprung up on my Ghost Info page at http://ghost.centminmod.com/ghostinfo/#gtblog as Ep 6 of Ghost Talk podcast as Julian Lam/NodeBB chat session http://talk.ghost.io/6/ !
Made it in my Ghost Magazine too http://ghost.centminmod.com/ghostmag/
-
[nodebb-plugin-blog-comments] Blog Commenting Engine (Ghost, Wordpress widget)@psychobunny definitely having multiple blogs integrated into one forum would be a huge feature bonus !
-
Migrating to NodeBB - good stuff@medwards said:
@bentael Just a few (business) days late:
https://github.com/MakerStudios/nodebb-plugin-vbexporter
I'll ask about renaming it now that I've looked a little closer and understand your naming convention.
sweet - how exactly does one use the vbexporter ?