djcyry
Posts
-
Xenforo to NodeBB -
Getting errors doing npm install --productionTry this :
apt-get remove --purge nodejs npm
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
apt-get install nodejs -
Fresh install ?@pichalite said:
@djcyry paste the contents of your config.json
{
"url": "https://www.nodebb.es",
"port": "4568",
"secret": "86df865a-c4a2-4060-be42-be1cdbf1b3cd",
"database": "redis",
"redis": {
"host": "127.0.0.1",
"port": "6379",
"password": "pass",
"database": "1"
}
} -
Fresh install ?@Peter-Zoltan-Keresztes said:
@djcyry NodeBB address in use, that mean there is a nodebb server started. You should use netstat -ntlp to find out the pid of the process and then kill it with kill -9 <pid>
Drop db? yes it's recomended if you have an empty database(no data in it). Stop the redis-server delete the dump.rdb and start the redis-server.But if i detele the db , the second forum is ok , its works .
Only i want to make a fresh install for one of them or repair it -
Fresh install ?@Peter-Zoltan-Keresztes said:
@djcyry said:
I have tried 2 options , no results ( i have rebooted the vps , restart forum , restart redis)
Obviously the masterauth is not the one you need since that is used for the cluster. The one is needed is requirepass. After setting that password restart the redis, update your nodebb config with the redis password you set and restart it.
I have tried , no results . Drop db ? i have 2 dbs for 2 forums , is saved on the same file** /var/lib/redis/dump.rdb **
Also i have this on dev mode :
23/12 19:23 [4940] - error: NodeBB address in use, exiting...
[cluster] Child Process (4940) has exited (code: 0, signal: null) -
Fresh install ?@AOKP said:
You set a password for Redis?
If not, add it under /etc/redis.conf.Now try to start the forum again over ./nodebb start. Be sure to have set a different port for each of your forums!
This problem came after update , forums have different ports , everything ok , but one of them ,
have this problem when i acces the topics : https://i.imgur.com/hLiD21J.pngI have tried 2 options , no results ( i have rebooted the vps , restart forum , restart redis)
requirepass mypassword
masterauth mypassword -
Fresh install ?Hello ,
First i have 2 forums with nodeBB .
I have made update to 0.9.3 few days ago and one of them have a problem
with the database or something . Problem is posted here
I dont find any solution for that , so i want t install it
again ,a fresh install .
How can i do it ? -
SSL : yes or not@pichalite said:
@djcyry changing
return 301 https://nodebb.es$request_uri;
toreturn 301 https://www.nodebb.es$request_uri;
should do it I thinkI have change it , not redirect .
-
SSL : yes or notItΒ·s fixed but , its respond with www and without www , i want to
redirect all to www. ..any idea? thanksin my config /etc/nginx/conf.d/.conf i have :
server {
listen 80;
server_name www.hercio.net hercio.net;
return 301 https://hercio.net$request_uri;
}server {
listen 80;
server_name www.nodebb.es nodebb.es;
return 301 https://nodebb.es$request_uri;
}I restarting nginx but still responding from both.
-
SSL : yes or not@a_5mith said:
Here's mine. Compare:
server { client_max_body_size 40M; listen 443 ssl; server_name 35hz.co.uk; ssl on; ssl_certificate /etc/letsencrypt/live/35hz.co.uk/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/35hz.co.uk/privkey.pem; ssl_stapling on; ssl_stapling_verify on; add_header Strict-Transport-Security "max-age=31536000; includeSubdomains"; location / { 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_pass http://188.226.239.27:4567; proxy_redirect off; # Socket.IO Support proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } } server { client_max_body_size 40M; listen 80; server_name 35hz.co.uk; rewrite ^ https://$server_name$request_uri? permanent; }
Thanks @a_5mith .
Look at this :https://hercio.net/ - ssl works without www.
https://www.hercio.net/ - ssl works with wwwhttps://nodebb.es/ - ssl works without www.
https://www.nodebb.es/ - ssl not works with wwwBoth forums are hosted on same server, same configuration , etc ...any idea?
-
Error after update to 0.9.3 -
Some SSO plugins are not working in NodeBB 0.9.2@FDX said:
Those plugins have been updated and are now working as expected!
After update those plugins :
Warning: Redis server does not require a password, but a password was supplied.
22/12 08:14 [3391] - warn: [plugins/nodebb-plugin-sso-google] Hookfilter:user.delete
is deprecated, please use an alternative
22/12 08:14 [3391] - warn: [plugins/nodebb-plugin-sso-twitter] Hookfilter:user.delete
is deprecated, please use an alternative22/12 08:14 [3391] - 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-recent-cards
-
NodeBB App in Google Play Store@ron_jeremy said:
Any reason why it's not available to others? Keep in mind I haven't actually seen what the app is, exactly. Just asking out of curiosity.
Because every owner needs to have/make own app , is my opinion .
Do you mean something like tapatalk right ? -
NodeBB App in Google Play StoreIts only for community.nodebb.org , not for your forum , my forum..etc
-
Error after update to 0.9.3@pichalite said:
@djcyry follow this docs
Under this section... run the second option
https://docs.nodebb.org/en/latest/upgrading/index.html#grab-the-latest-and-greatest-code
Now , another problem , after upgrade and fix this , i have upgrate booth forums , but nodebb.es :
When i enter to a topic my database goes offline i think , beacause i have this in ssh terminal :Look at this : https://i.imgur.com/AVlOT8t.png , also after reboot/reload/restart its starting slowly ,
later than other forum ...
21/12 22:38 [768] - error: TypeError: Converting circular structure to JSON
at Object.stringify (native)
at ServerResponse.json (/root/nodebb_es/node_modules/express/lib/response.js:242:19)
at ServerResponse.res.render (/root/nodebb_es/src/middleware/render.js:42:16)
at /root/nodebb_es/src/controllers/topics.js:287:8
at fireFilterHook (/root/nodebb_es/src/plugins/hooks.js:86:11)
at Object.Plugins.fireHook (/root/nodebb_es/src/plugins/hooks.js:70:5)
at /root/nodebb_es/src/controllers/topics.js:283:11
at /root/nodebb_es/node_modules/async/lib/async.js:52:16
at Object._onImmediate (/root/nodebb_es/node_modules/async/lib/async.js:1201:34)
at processImmediate [as _immediateCallback] (timers.js:354:15)
TypeError: Converting circular structure to JSON
at Object.stringify (native)
at ServerResponse.json (/root/nodebb_es/node_modules/express/lib/response.js:242:19)
at ServerResponse.res.render (/root/nodebb_es/src/middleware/render.js:42:16)
at /root/nodebb_es/src/controllers/topics.js:287:8
at fireFilterHook (/root/nodebb_es/src/plugins/hooks.js:86:11)
at Object.Plugins.fireHook (/root/nodebb_es/src/plugins/hooks.js:70:5)
at /root/nodebb_es/src/controllers/topics.js:283:11
at /root/nodebb_es/node_modules/async/lib/async.js:52:16
at Object._onImmediate (/root/nodebb_es/node_modules/async/lib/async.js:1201:34)
at processImmediate [as _immediateCallback] (timers.js:354:15)
21/12 22:38 [768] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
21/12 22:38 [768] - info: [app] Database connection closed.
21/12 22:38 [768] - info: [app] Web server closed to connections.
21/12 22:38 [768] - info: [app] Shutdown complete.
[cluster] Child Process (768) has exited (code: 1, signal: null)
[cluster] Spinning up another process...
21/12 22:38 [782] - info: Time: Mon Dec 21 2015 22:38:13 GMT+0000 (UTC)
21/12 22:38 [782] - info: Initializing NodeBB v0.9.3
Warning: Redis server does not require a password, but a password was supplied.
Warning: Redis server does not require a password, but a password was supplied.
Warning: Redis server does not require a password, but a password was supplied.
Warning: Redis server does not require a password, but a password was supplied.
Warning: Redis server does not require a password, but a password was supplied.
21/12 22:38 [782] - warn: [plugins/nodebb-plugin-sso-twitter] Hookfilter:user.delete
is deprecated, please use an alternative
21/12 22:38 [782] - warn: [plugins/nodebb-plugin-sso-google] Hookfilter:user.delete
is deprecated, please use an alternative
21/12 22:38 [782] - warn: [plugins/nodebb-plugin-ns-awards] Hookfilter:user.delete
is deprecated, please use an alternative21/12 22:38 [782] - 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-recent-cards
- nodebb-plugin-sso-twitter
- nodebb-plugin-sso-google
- nodebb-plugin-sso-facebook
- nodebb-plugin-custom-pages
21/12 22:38 [782] - info: [plugins/spam-be-gone] Settings loaded
21/12 22:38 [782] - info: NodeBB Ready
21/12 22:38 [782] - info: Enabling 'trust proxy'
21/12 22:38 [782] - info: NodeBB is now listening on: 0.0.0.0:4568
And in the dev mode , same errors :
22/12 08:13 [3358] - error: Error: listen EADDRINUSE
at errnoException (net.js:905:11)
at Server._listen2 (net.js:1043:14)
at listen (net.js:1065:10)
at Server.listen (net.js:1139:5)
at listen (/root/nodebb_es/src/webserver.js:180:17)
at /root/nodebb_es/src/webserver.js:57:3
at EventEmitter.<anonymous> (/root/nodebb_es/src/emitter.js:17:5)
at EventEmitter.emit (events.js:92:17)
at /root/nodebb_es/src/meta/css.js14
at /root/nodebb_es/node_modules/async/lib/async.js:721:13
22/12 08:13 [3358] - error: NodeBB address in use, exiting...
[cluster] Child Process (3358) has exited (code: 0, signal: null)
root@euve102658:~/nodebb_es#
-
Error after update to 0.9.3@pichalite said:
@djcyry not sure what steps you took to upgrade..... I had two installations of NodeBB running on the same machine with different ports and never had this issue with upgrades (had other issues but not this one).
In this case , i need to upgrade the second forum .
What is the best way - commands to update it ? from 0.9.2 to 0.9.3 ? thanks -
Error after update to 0.9.3@pichalite said:
@djcyry you are missing a comma after "port": "4568"
OMFG...thanks , its works.
But why this problem , after update to latest version ? -
Error after update to 0.9.3@pichalite said:
@djcyry what does your new config.json look like?
{
"url": "http://www.nodebb.es",
"port": "4568"
"secret": "86df865a-c4a2-4060-be42-be1cdbf1b3cd",
"database": "redis",
"redis": {
"host": "127.0.0.1",
"port": "6379",
"password": "pass",
"database": "1"
}}
-
Error after update to 0.9.3@pichalite said:
@djcyry well that's the problem... you don't have a port specified in your config.json
You already have hercio.net running on port 4567. Running NodeBB without a port setting in config.json will try to run it on 4567 and it's already being used in your case.
Add this to your config.json
"port": "4568"
/root/nodebb_es/node_modules/nconf/lib/nconf/stores/file.js:153
throw new Error("Error parsing your configuration file: [" + this.file + '
^
Error: Error parsing your configuration file: [/root/nodebb_es/config.json]: Unexpected string
at File.loadSync (/root/nodebb_es/node_modules/nconf/lib/nconf/stores/file.js:153:11)
at Provider.add (/root/nodebb_es/node_modules/nconf/lib/nconf/provider.js:137:23)
at Provider.file (/root/nodebb_es/node_modules/nconf/lib/nconf/provider.js:63:15)
at Object.<anonymous> (/root/nodebb_es/loader.js:14:20)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16) -
Error after update to 0.9.3@pichalite said:
@djcyry can you paste the contents of your config.json?
{
"url": "http://www.nodebb.es",
"secret": "86df865a-c4a2-4060-be42-be1cdbfddddddddd",
"database": "redis",
"redis": {
"host": "127.0.0.1",
"port": "6379",
"password": "pass",
"database": "1"
}
}