Issues in mobile version of NodeBB
-
@pichalite I am getting the following warnings.
warn: [socket.io] Clustering detected, you are advised to configure Redis as a websocket store.
warn: [plugins/nodebb-plugin-sso-google] Hook
filter:user.delete
is deprecated, please use an alternativevalidator deprecated you tried to validate a undefined but this library (validator.js) validates strings only. Please update your code as this will be an error soon. src/user/data.js:97:30
validator deprecated you tried to validate a undefined but this library (validator.js) validates strings only. Please update your code as this will be an error soon. src/categories/data.js:45:29
-
@Gaurav-Grv-Robinson you can ignore those warnings... if you don't see any errors during startup then try disabling all plugins and see if it works properly.
You can disable all plugins using
./nodebb reset
-
@pichalite Disabled all plugins and restarted nodebb, still does not work.
-
@Gaurav-Grv-Robinson the JS errors are gone now but your websockets are not working. Do you have cloudflare enabled for your site?
-
@Gaurav-Grv-Robinson by the way... you disabled all the plugins so posting and replying won't work now... don't worry about that.
make sure your websockets issue is fixed
-
This post is deleted!
-
if you are using a proxy... make sure it's properly setup.
-
@pichalite No idea on how to fix websockets issue. Using nginx.
-
@Gaurav-Grv-Robinson post your nginx config. we can see if there is any error.
-
user www-data;
worker_processes 1;
pid /run/nginx.pid;events {
worker_connections 768;}
http {
sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; include /etc/nginx/mime.types; default_type application/octet-stream; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; gzip on; gzip_disable "msie6"; gzip_vary on; gzip_proxied any; gzip_comp_level 6; gzip_buffers 16 8k; gzip_http_version 1.1; gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*;
}
-
@nhl.pl
/etc/nginx/sites-enabled/default
server { listen 80; server_name diskuz.com; 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://127.0.0.1:4567/; proxy_redirect off; # Socket.IO Support proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } }
-
@Gaurav-Grv-Robinson looks good to me.
anyway try enabling plugins one by one, restart nodebb and make sure there are no JS errors. start with the default plugins.