Solved just marked out ProtectHome:yes to #ProtectHome:yes
Mroczny
Posts
-
How can I change Redis configuration directory? -
How can I change Redis configuration directory?Hi, I want change Redis configuration directory to
/home/redis
.
So I make a fresh reinstall a Debian 11 and used this commands:add-apt-repository ppa:chris-lea/redis-server -y apt-get update apt-get install -y redis-server mkdir -p /home/redis /home/redis/sock/ /home/redis/log/ /home/redis/db/ /home/redis/lib/ cp /etc/redis/redis.conf /home/redis/lib chown -hR redis:redis /home/redis chmod 2770 /home/redis chmod 2770 /home/redis/* chmod 640 /home/redis/lib/redis.conf # ---------------------------------------------------# vim /etc/init.d/redis-server # Change: DAEMON_ARGS=/etc/redis/redis.conf # To: DAEMON_ARGS=/home/redis/lib/redis.conf CTRL+C :wq vim /etc/systemd/system/redis.service # Change: ExecStart=/usr/bin/redis-server /etc/redis/redis.conf --supervised systemd --daemonize no # To: ExecStart=/usr/bin/redis-server /home/redis/lib/redis.conf --supervised systemd --daemonize no # Change: ReadWriteDirectories=-/etc/redis # To: ReadWriteDirectories=-/home/redis CTRL+C :wq # ---------------------------------------------------# sudo systemctl daemon-reload sudo service redis-server restart
Why 2270 permission? This is default permission for Redis user in
/etc/redis
directory so I thinked this maybe help but same (Permission Denied)User permissions from WinSCP group:user:
output from syslog:
redis-server[639]: 639:C 07 Sep 2021 11:33:19.214 # Fatal error, can't open config file '/home/redis/lib/redis.conf': Permission denied
Only working this command from root:
/usr/bin/redis-server /home/redis/lib/redis.conf
I searched solutions in google in websites like stackoverflow but no one helped me
I know this is not a redis.io forum but I think someone maybe can help.
Thanks for help in advance. -
Moving Nodebb@the-cat-gaming-099 In your NodeBB directory called
config.json
-
Can't start after update nodejs/npm@antosik Thanks now working properly!
In last update configuration file has been changed or update replaced this line?
Im asking because I didn't editconfig.json
-
Can't start after update nodejs/npmHi, I have problem with Nodebb after nodejs and npm update.
I did stupid thing after update - used commandnpm audit fix --force
.System info:
OS: Debian 9
Nodebb: 1.17.1./nodebb start
logs:NodeBB v1.17.1 Copyright (C) 2013-2014 NodeBB Inc. This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. For the full license, please visit: http://www.gnu.org/copyleft/gpl.html Clustering enabled: Spinning up 3 process(es). 2021-06-09T19:46:31.228Z [8000/13807] - [32minfo[39m: Initializing NodeBB v1.17.1 https://umod.pl 2021-06-09T19:46:31.944Z [8000/13807] - [31merror[39m: RangeError [ERR_SOCKET_BAD_PORT]: Port should be >= 0 and < 65536. Received NaN. at validatePort (internal/validators.js:211:11) at lookupAndConnect (net.js:1000:5) at Socket.connect (net.js:976:5) at Object.connect (net.js:188:17) at /var/www/node_modules/ioredis/built/connectors/StandaloneConnector.js:58:45 at processTicksAndRejections (internal/process/task_queues.js:77:11) 2021-06-09T19:46:31.954Z [8000/13807] - [31merror[39m: RangeError [ERR_SOCKET_BAD_PORT]: Port should be >= 0 and < 65536. Received NaN. at validatePort (internal/validators.js:211:11) at lookupAndConnect (net.js:1000:5) at Socket.connect (net.js:976:5) at Object.connect (net.js:188:17) at /var/www/node_modules/ioredis/built/connectors/StandaloneConnector.js:58:45 at processTicksAndRejections (internal/process/task_queues.js:77:11) 2021-06-09T19:46:31.957Z [8000/13807] - [31merror[39m: RangeError [ERR_SOCKET_BAD_PORT]: Port should be >= 0 and < 65536. Received NaN. at validatePort (internal/validators.js:211:11) at lookupAndConnect (net.js:1000:5) at Socket.connect (net.js:976:5) at Object.connect (net.js:188:17) at /var/www/node_modules/ioredis/built/connectors/StandaloneConnector.js:58:45 at processTicksAndRejections (internal/process/task_queues.js:77:11) 2021-06-09T19:46:31.961Z [8000/13807] - [31merror[39m: RangeError [ERR_SOCKET_BAD_PORT]: Port should be >= 0 and < 65536. Received NaN. at validatePort (internal/validators.js:211:11) at lookupAndConnect (net.js:1000:5) at Socket.connect (net.js:976:5) at Object.connect (net.js:188:17) [cluster] Child Process (13807) has exited (code: 0, signal: null) at /var/www/node_modules/ioredis/built/connectors/StandaloneConnector.js:58:45 at processTicksAndRejections (internal/process/task_queues.js:77:11) 2021-06-09T19:46:31.988Z [8002/13814] - [31merror[39m: RangeError [ERR_SOCKET_BAD_PORT]: Port should be >= 0 and < 65536. Received NaN. 2021-06-09T19:46:31.991Z [8001/13813] - [31merror[39m: RangeError [ERR_SOCKET_BAD_PORT]: Port should be >= 0 and < 65536. Received NaN. at validatePort (internal/validators.js:211:11) at validatePort (internal/validators.js:211:11) [cluster] Child Process (13814) has exited (code: 0, signal: null) at lookupAndConnect (net.js:1000:5) at lookupAndConnect (net.js:1000:5) [cluster] Child Process (13813) has exited (code: 0, signal: null) at Socket.connect (net.js:976:5) at Socket.connect (net.js:976:5) at Object.connect (net.js:188:17) at Object.connect (net.js:188:17) at /var/www/node_modules/ioredis/built/connectors/StandaloneConnector.js:58:45 at /var/www/node_modules/ioredis/built/connectors/StandaloneConnector.js:58:45 at processTicksAndRejections (internal/process/task_queues.js:77:11) at processTicksAndRejections (internal/process/task_queues.js:77:11) 2021-06-09T19:46:31.999Z [8002/13814] - [31merror[39m: RangeError [ERR_SOCKET_BAD_PORT]: Port should be >= 0 and < 65536. Received NaN. 2021-06-09T19:46:32.003Z [8001/13813] - [31merror[39m: RangeError [ERR_SOCKET_BAD_PORT]: Port should be >= 0 and < 65536. Received NaN. at validatePort (internal/validators.js:211:11) at validatePort (internal/validators.js:211:11) at lookupAndConnect (net.js:1000:5) at lookupAndConnect (net.js:1000:5) at Socket.connect (net.js:976:5) at Socket.connect (net.js:976:5) at Object.connect (net.js:188:17) at Object.connect (net.js:188:17) at /var/www/node_modules/ioredis/built/connectors/StandaloneConnector.js:58:45 at /var/www/node_modules/ioredis/built/connectors/StandaloneConnector.js:58:45 at processTicksAndRejections (internal/process/task_queues.js:77:11) at processTicksAndRejections (internal/process/task_queues.js:77:11) 2021-06-09T19:46:31.999Z [8002/13814] - [31merror[39m: RangeError [ERR_SOCKET_BAD_PORT]: Port should be >= 0 and < 65536. Received NaN. 2021-06-09T19:46:32.003Z [8001/13813] - [31merror[39m: RangeError [ERR_SOCKET_BAD_PORT]: Port should be >= 0 and < 65536. Received NaN. at validatePort (internal/validators.js:211:11) at validatePort (internal/validators.js:211:11) at lookupAndConnect (net.js:1000:5) at lookupAndConnect (net.js:1000:5) at Socket.connect (net.js:976:5) at Socket.connect (net.js:976:5) at Object.connect (net.js:188:17) at Object.connect (net.js:188:17) at /var/www/node_modules/ioredis/built/connectors/StandaloneConnector.js:58:45 at /var/www/node_modules/ioredis/built/connectors/StandaloneConnector.js:58:45 at processTicksAndRejections (internal/process/task_queues.js:77:11) at processTicksAndRejections (internal/process/task_queues.js:77:11) 2021-06-09T19:46:32.000Z [8002/13814] - [31merror[39m: RangeError [ERR_SOCKET_BAD_PORT]: Port should be >= 0 and < 65536. Received NaN. 2021-06-09T19:46:32.004Z [8001/13813] - [31merror[39m: RangeError [ERR_SOCKET_BAD_PORT]: Port should be >= 0 and < 65536. Received NaN. at validatePort (internal/validators.js:211:11) at validatePort (internal/validators.js:211:11) at lookupAndConnect (net.js:1000:5) at lookupAndConnect (net.js:1000:5) at Socket.connect (net.js:976:5) at Socket.connect (net.js:976:5) at Object.connect (net.js:188:17) at Object.connect (net.js:188:17) at /var/www/node_modules/ioredis/built/connectors/StandaloneConnector.js:58:45 at /var/www/node_modules/ioredis/built/connectors/StandaloneConnector.js:58:45 at processTicksAndRejections (internal/process/task_queues.js:77:11) at processTicksAndRejections (internal/process/task_queues.js:77:11)
Configuration:
{ "url": "https://umod.pl", "secret": "x", "database": "redis", "redis": { "host": "", "port": "/home/redis/sock/redis.sock", "password": "x", "database": "0" }, "port": ["8000", "8001", "8002"], "socket.io": { "transports": ["websocket", "polling"], "address": "https://umod.pl" } }
I tried downgrade nodejs and npm using this commands:
npm install -g n n 14.16.1 npm install -g [email protected]
But still sewms not working.
./nodebb upgrade
logs:
Thanks for help in advance.