i am getting this issue
Hi!
Error codes 502, 504 do not come from the Clover backend. You have a proxy issue or the backend is down.
What are you running between your frontend and the Clover backend? Is it nginx?
yes running nginx.
i have create fresh sever and using Automated installation.
root@vmi1198138:~# pm2 logs --lines 100
[TAILING] Tailing last 100 lines for [all] processes (change the value with --lines option)
/root/.pm2/pm2.log last 100 lines:
PM2 | 2023-07-27T09:56:38: PM2 log: ===============================================================================
PM2 | 2023-07-27T09:56:38: PM2 log: — New PM2 Daemon started ----------------------------------------------------
PM2 | 2023-07-27T09:56:38: PM2 log: Time : Thu Jul 27 2023 09:56:38 GMT+0200 (Central European Summer Time)
PM2 | 2023-07-27T09:56:38: PM2 log: PM2 version : 5.3.0
PM2 | 2023-07-27T09:56:38: PM2 log: Node.js version : 18.17.0
PM2 | 2023-07-27T09:56:38: PM2 log: Current arch : x64
PM2 | 2023-07-27T09:56:38: PM2 log: PM2 home : /root/.pm2
PM2 | 2023-07-27T09:56:38: PM2 log: PM2 PID file : /root/.pm2/pm2.pid
PM2 | 2023-07-27T09:56:38: PM2 log: RPC socket file : /root/.pm2/rpc.sock
PM2 | 2023-07-27T09:56:38: PM2 log: BUS socket file : /root/.pm2/pub.sock
PM2 | 2023-07-27T09:56:38: PM2 log: Application log path : /root/.pm2/logs
PM2 | 2023-07-27T09:56:38: PM2 log: Worker Interval : 30000
PM2 | 2023-07-27T09:56:38: PM2 log: Process dump file : /root/.pm2/dump.pm2
PM2 | 2023-07-27T09:56:38: PM2 log: Concurrent actions : 2
PM2 | 2023-07-27T09:56:38: PM2 log: SIGTERM timeout : 1600
PM2 | 2023-07-27T09:56:38: PM2 log: ===============================================================================
PM2 | 2023-07-27T09:56:38: PM2 log: App [Clover:0] starting in -fork mode-
PM2 | 2023-07-27T09:56:38: PM2 log: App [Clover:0] online
PM2 | 2023-07-27T10:02:20: PM2 log: App [Clover:0] exited with code [1] via signal [SIGINT]
PM2 | 2023-07-27T10:02:20: PM2 log: App [Clover:0] starting in -fork mode-
PM2 | 2023-07-27T10:02:20: PM2 log: App [Clover:0] online
PM2 | 2023-07-27T10:18:41: PM2 log: App [Clover:0] exited with code [1] via signal [SIGINT]
PM2 | 2023-07-27T10:18:41: PM2 log: App [Clover:0] starting in -fork mode-
PM2 | 2023-07-27T10:18:41: PM2 log: App [Clover:0] online
PM2 | 2023-07-27T10:24:25: PM2 log: Stopping app:Clover id:0
PM2 | 2023-07-27T10:24:25: PM2 log: App [Clover:0] exited with code [0] via signal [SIGINT]
PM2 | 2023-07-27T10:24:25: PM2 log: pid=7106 msg=process killed
PM2 | 2023-07-27T10:24:25: PM2 log: App [Clover:0] starting in -fork mode-
PM2 | 2023-07-27T10:24:25: PM2 log: App [Clover:0] online
PM2 | 2023-07-27T10:25:32: PM2 log: App [Clover:0] exited with code [1] via signal [SIGINT]
PM2 | 2023-07-27T10:25:32: PM2 log: App [Clover:0] starting in -fork mode-
PM2 | 2023-07-27T10:25:32: PM2 log: App [Clover:0] online
PM2 | 2023-07-27T10:28:36: PM2 log: App [Clover:0] exited with code [1] via signal [SIGINT]
PM2 | 2023-07-27T10:28:36: PM2 log: App [Clover:0] starting in -fork mode-
PM2 | 2023-07-27T10:28:36: PM2 log: App [Clover:0] online
PM2 | 2023-07-27T10:29:44: PM2 log: App [Clover:0] exited with code [1] via signal [SIGINT]
PM2 | 2023-07-27T10:29:44: PM2 log: App [Clover:0] starting in -fork mode-
PM2 | 2023-07-27T10:29:44: PM2 log: App [Clover:0] online
PM2 | 2023-07-27T11:30:54: PM2 log: App [Clover:0] exited with code [1] via signal [SIGINT]
PM2 | 2023-07-27T11:30:54: PM2 log: App [Clover:0] starting in -fork mode-
PM2 | 2023-07-27T11:30:54: PM2 log: App [Clover:0] online
PM2 | 2023-07-27T11:40:14: PM2 log: App [Clover:0] exited with code [1] via signal [SIGINT]
PM2 | 2023-07-27T11:40:14: PM2 log: App [Clover:0] starting in -fork mode-
PM2 | 2023-07-27T11:40:14: PM2 log: App [Clover:0] online
PM2 | 2023-07-27T11:49:15: PM2 log: Stopping app:Clover id:0
PM2 | 2023-07-27T11:49:15: PM2 log: App [Clover:0] exited with code [0] via signal [SIGINT]
PM2 | 2023-07-27T11:49:15: PM2 log: pid=7770 msg=process killed
PM2 | 2023-07-27T11:49:16: PM2 log: App [Clover:0] starting in -fork mode-
PM2 | 2023-07-27T11:49:16: PM2 log: App [Clover:0] online
PM2 | 2023-07-27T11:51:24: PM2 log: App [Clover:0] exited with code [1] via signal [SIGINT]
PM2 | 2023-07-27T11:51:24: PM2 log: App [Clover:0] starting in -fork mode-
PM2 | 2023-07-27T11:51:24: PM2 log: App [Clover:0] online
PM2 | 2023-07-27T12:15:59: PM2 log: App [Clover:0] exited with code [1] via signal [SIGINT]
PM2 | 2023-07-27T12:15:59: PM2 log: App [Clover:0] starting in -fork mode-
PM2 | 2023-07-27T12:15:59: PM2 log: App [Clover:0] online
PM2 | 2023-07-27T13:28:54: PM2 log: App [Clover:0] exited with code [1] via signal [SIGINT]
PM2 | 2023-07-27T13:28:54: PM2 log: App [Clover:0] starting in -fork mode-
PM2 | 2023-07-27T13:28:54: PM2 log: App [Clover:0] online
/root/.pm2/logs/Clover-error.log last 100 lines:
0|Clover | at verified (/root/clover/backend/node_modules/passport-jwt/lib/strategy.js:115:41)
0|Clover | at /root/clover/backend/src/init.js:107:30
0|Clover | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
0|Clover | TypeError: Meeting.update is not a function
0|Clover | at Socket. (/root/clover/backend/src/init.js:79:17)
0|Clover | at Socket.emit (node:events:514:28)
0|Clover | at Socket.emit (/root/clover/backend/node_modules/socket.io/lib/socket.js:142:10)
0|Clover | at Socket.onclose (/root/clover/backend/node_modules/socket.io/lib/socket.js:456:8)
0|Clover | at Client.onclose (/root/clover/backend/node_modules/socket.io/lib/client.js:253:24)
0|Clover | at Socket.emit (node:events:526:35)
0|Clover | at Socket.onClose (/root/clover/backend/node_modules/engine.io/lib/socket.js:317:10)
0|Clover | at Timeout. (/root/clover/backend/node_modules/engine.io/lib/socket.js:140:10)
0|Clover | at listOnTimeout (node:internal/timers:569:17)
0|Clover | at process.processTimers (node:internal/timers:512:7)
0|Clover | MongooseError: Aggregate.prototype.exec() no longer accepts a callback
0|Clover | at Aggregate.exec (/root/clover/backend/node_modules/mongoose/lib/aggregate.js:1017:11)
0|Clover | at module.exports (/root/clover/backend/src/routes/search.js:37:6)
0|Clover | at Layer.handle [as handle_request] (/root/clover/backend/node_modules/express/lib/router/layer.js:95:5)
0|Clover | at next (/root/clover/backend/node_modules/express/lib/router/route.js:144:13)
0|Clover | at complete (/root/clover/backend/node_modules/passport/lib/middleware/authenticate.js:271:13)
0|Clover | at /root/clover/backend/node_modules/passport/lib/middleware/authenticate.js:278:15
0|Clover | at pass (/root/clover/backend/node_modules/passport/lib/authenticator.js:428:14)
0|Clover | at Authenticator.transformAuthInfo (/root/clover/backend/node_modules/passport/lib/authenticator.js:450:5)
0|Clover | at /root/clover/backend/node_modules/passport/lib/middleware/authenticate.js:275:22
0|Clover | at req.login.req.logIn (/root/clover/backend/node_modules/passport/lib/http/request.js:44:13)
0|Clover | at strategy.success (/root/clover/backend/node_modules/passport/lib/middleware/authenticate.js:256:13)
0|Clover | at verified (/root/clover/backend/node_modules/passport-jwt/lib/strategy.js:115:41)
0|Clover | at /root/clover/backend/src/init.js:107:30
0|Clover | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
0|Clover | MongooseError: Query.prototype.exec() no longer accepts a callback
0|Clover | at model.Query.exec (/root/clover/backend/node_modules/mongoose/lib/query.js:4369:11)
0|Clover | at module.exports (/root/clover/backend/src/routes/list-rooms.js:30:6)
0|Clover | at Layer.handle [as handle_request] (/root/clover/backend/node_modules/express/lib/router/layer.js:95:5)
0|Clover | at next (/root/clover/backend/node_modules/express/lib/router/route.js:144:13)
0|Clover | at complete (/root/clover/backend/node_modules/passport/lib/middleware/authenticate.js:271:13)
0|Clover | at /root/clover/backend/node_modules/passport/lib/middleware/authenticate.js:278:15
0|Clover | at pass (/root/clover/backend/node_modules/passport/lib/authenticator.js:428:14)
0|Clover | at Authenticator.transformAuthInfo (/root/clover/backend/node_modules/passport/lib/authenticator.js:450:5)
0|Clover | at /root/clover/backend/node_modules/passport/lib/middleware/authenticate.js:275:22
0|Clover | at req.login.req.logIn (/root/clover/backend/node_modules/passport/lib/http/request.js:44:13)
0|Clover | at strategy.success (/root/clover/backend/node_modules/passport/lib/middleware/authenticate.js:256:13)
0|Clover | at verified (/root/clover/backend/node_modules/passport-jwt/lib/strategy.js:115:41)
0|Clover | at /root/clover/backend/src/init.js:107:30
0|Clover | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
0|Clover | MongooseError: Query.prototype.exec() no longer accepts a callback
0|Clover | at model.Query.exec (/root/clover/backend/node_modules/mongoose/lib/query.js:4369:11)
0|Clover | at module.exports (/root/clover/backend/src/routes/list-favorites.js:23:6)
0|Clover | at Layer.handle [as handle_request] (/root/clover/backend/node_modules/express/lib/router/layer.js:95:5)
0|Clover | at next (/root/clover/backend/node_modules/express/lib/router/route.js:144:13)
0|Clover | at complete (/root/clover/backend/node_modules/passport/lib/middleware/authenticate.js:271:13)
0|Clover | at /root/clover/backend/node_modules/passport/lib/middleware/authenticate.js:278:15
0|Clover | at pass (/root/clover/backend/node_modules/passport/lib/authenticator.js:428:14)
0|Clover | at Authenticator.transformAuthInfo (/root/clover/backend/node_modules/passport/lib/authenticator.js:450:5)
0|Clover | at /root/clover/backend/node_modules/passport/lib/middleware/authenticate.js:275:22
0|Clover | at req.login.req.logIn (/root/clover/backend/node_modules/passport/lib/http/request.js:44:13)
0|Clover | at strategy.success (/root/clover/backend/node_modules/passport/lib/middleware/authenticate.js:256:13)
0|Clover | at verified (/root/clover/backend/node_modules/passport-jwt/lib/strategy.js:115:41)
0|Clover | at /root/clover/backend/src/init.js:107:30
0|Clover | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
0|Clover | MongooseError: Query.prototype.exec() no longer accepts a callback
0|Clover | at model.Query.exec (/root/clover/backend/node_modules/mongoose/lib/query.js:4369:11)
0|Clover | at module.exports (/root/clover/backend/src/routes/meeting/list.js:23:6)
0|Clover | at Layer.handle [as handle_request] (/root/clover/backend/node_modules/express/lib/router/layer.js:95:5)
0|Clover | at next (/root/clover/backend/node_modules/express/lib/router/route.js:144:13)
0|Clover | at complete (/root/clover/backend/node_modules/passport/lib/middleware/authenticate.js:271:13)
0|Clover | at /root/clover/backend/node_modules/passport/lib/middleware/authenticate.js:278:15
0|Clover | at pass (/root/clover/backend/node_modules/passport/lib/authenticator.js:428:14)
0|Clover | at Authenticator.transformAuthInfo (/root/clover/backend/node_modules/passport/lib/authenticator.js:450:5)
0|Clover | at /root/clover/backend/node_modules/passport/lib/middleware/authenticate.js:275:22
0|Clover | at req.login.req.logIn (/root/clover/backend/node_modules/passport/lib/http/request.js:44:13)
0|Clover | at strategy.success (/root/clover/backend/node_modules/passport/lib/middleware/authenticate.js:256:13)
0|Clover | at verified (/root/clover/backend/node_modules/passport-jwt/lib/strategy.js:115:41)
0|Clover | at /root/clover/backend/src/init.js:107:30
0|Clover | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
0|Clover | MongooseError: Query.prototype.exec() no longer accepts a callback
0|Clover | at model.Query.exec (/root/clover/backend/node_modules/mongoose/lib/query.js:4369:11)
0|Clover | at module.exports (/root/clover/backend/src/routes/meeting/list.js:23:6)
0|Clover | at Layer.handle [as handle_request] (/root/clover/backend/node_modules/express/lib/router/layer.js:95:5)
0|Clover | at next (/root/clover/backend/node_modules/express/lib/router/route.js:144:13)
0|Clover | at complete (/root/clover/backend/node_modules/passport/lib/middleware/authenticate.js:271:13)
0|Clover | at /root/clover/backend/node_modules/passport/lib/middleware/authenticate.js:278:15
0|Clover | at pass (/root/clover/backend/node_modules/passport/lib/authenticator.js:428:14)
0|Clover | at Authenticator.transformAuthInfo (/root/clover/backend/node_modules/passport/lib/authenticator.js:450:5)
0|Clover | at /root/clover/backend/node_modules/passport/lib/middleware/authenticate.js:275:22
0|Clover | at req.login.req.logIn (/root/clover/backend/node_modules/passport/lib/http/request.js:44:13)
0|Clover | at strategy.success (/root/clover/backend/node_modules/passport/lib/middleware/authenticate.js:256:13)
0|Clover | at verified (/root/clover/backend/node_modules/passport-jwt/lib/strategy.js:115:41)
0|Clover | at /root/clover/backend/src/init.js:107:30
0|Clover | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
0|Clover | TypeError: Meeting.update is not a function
0|Clover | at Socket. (/root/clover/backend/src/init.js:79:17)
0|Clover | at Socket.emit (node:events:514:28)
0|Clover | at Socket.emit (/root/clover/backend/node_modules/socket.io/lib/socket.js:142:10)
0|Clover | at Socket.onclose (/root/clover/backend/node_modules/socket.io/lib/socket.js:456:8)
0|Clover | at Client.onclose (/root/clover/backend/node_modules/socket.io/lib/client.js:253:24)
0|Clover | at Socket.emit (node:events:526:35)
0|Clover | at Socket.onClose (/root/clover/backend/node_modules/engine.io/lib/socket.js:317:10)
0|Clover | at Timeout. (/root/clover/backend/node_modules/engine.io/lib/socket.js:140:10)
0|Clover | at listOnTimeout (node:internal/timers:569:17)
0|Clover | at process.processTimers (node:internal/timers:512:7)
/root/.pm2/logs/Clover-out.log last 100 lines:
0|Clover | Honeyside © 2022
0|Clover | Welcome to Clover
0|Clover | Server listening on port 4002
0|Clover | Connected to DB
0|Clover | mediasoup worker running
0|Clover | mediasoup ip is 89.116.28.80
0|Clover | Socket connected: shoaib.maujgroup@gmail.com
0|Clover | TypeError: Cannot read properties of null (reading ‘users’)
0|Clover | at /root/clover/backend/src/mediasoup/index.js:257:18
0|Clover | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
0|Clover | at async Socket. (/root/clover/backend/src/mediasoup/index.js:255:5)
0|Clover | Honeyside © 2022
0|Clover | Welcome to Clover
0|Clover | Server listening on port 4002
0|Clover | Connected to DB
0|Clover | mediasoup worker running
0|Clover | mediasoup ip is 89.116.28.80
0|Clover | Honeyside © 2022
0|Clover | Welcome to Clover
0|Clover | Server listening on port 4002
0|Clover | Connected to DB
0|Clover | mediasoup worker running
0|Clover | mediasoup ip is 89.116.28.80
0|Clover | Socket connected: shoaib.maujgroup@gmail.com
0|Clover | Honeyside © 2022
0|Clover | Welcome to Clover
0|Clover | Server listening on port 4002
0|Clover | Connected to DB
0|Clover | mediasoup worker running
0|Clover | mediasoup ip is 89.116.28.80
0|Clover | Socket connected: shoaib.maujgroup@gmail.com
0|Clover | TypeError: Cannot read properties of null (reading ‘users’)
0|Clover | at /root/clover/backend/src/mediasoup/index.js:257:18
0|Clover | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
0|Clover | at async Socket. (/root/clover/backend/src/mediasoup/index.js:255:5)
0|Clover | Honeyside © 2022
0|Clover | Welcome to Clover
0|Clover | Server listening on port 4002
0|Clover | Connected to DB
0|Clover | mediasoup worker running
0|Clover | mediasoup ip is 89.116.28.80
0|Clover | Socket connected: shoaib.maujgroup@gmail.com
0|Clover | Honeyside © 2022
0|Clover | Welcome to Clover
0|Clover | Server listening on port 4002
0|Clover | mediasoup worker running
0|Clover | mediasoup ip is 89.116.28.80
0|Clover | Connected to DB
0|Clover | Socket connected: shoaib.maujgroup@gmail.com
0|Clover | TypeError: Cannot read properties of null (reading ‘users’)
0|Clover | at /root/clover/backend/src/mediasoup/index.js:257:18
0|Clover | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
0|Clover | at async Socket. (/root/clover/backend/src/mediasoup/index.js:255:5)
0|Clover | Socket connected: shoaib.maujgroup@gmail.com
0|Clover | Honeyside © 2022
0|Clover | Welcome to Clover
0|Clover | Server listening on port 4002
0|Clover | mediasoup worker running
0|Clover | mediasoup ip is 89.116.28.80
0|Clover | Connected to DB
0|Clover | Socket connected: shoaib.maujgroup@gmail.com
0|Clover | Honeyside © 2022
0|Clover | Welcome to Clover
0|Clover | Server listening on port 4002
0|Clover | mediasoup worker running
0|Clover | mediasoup ip is 89.116.28.80
0|Clover | Connected to DB
0|Clover | Socket connected: shoaib.maujgroup@gmail.com
0|Clover | Honeyside © 2022
0|Clover | Welcome to Clover
0|Clover | Server listening on port 4002
0|Clover | mediasoup worker running
0|Clover | mediasoup ip is 89.116.28.80
0|Clover | Connected to DB
0|Clover | Socket connected: shoaib.maujgroup@gmail.com
0|Clover | TypeError: Cannot read properties of null (reading ‘users’)
0|Clover | at /root/clover/backend/src/mediasoup/index.js:257:18
0|Clover | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
0|Clover | at async Socket. (/root/clover/backend/src/mediasoup/index.js:255:5)
0|Clover | Honeyside © 2022
0|Clover | Welcome to Clover
0|Clover | Server listening on port 4002
0|Clover | mediasoup worker running
0|Clover | mediasoup ip is 89.116.28.80
0|Clover | Connected to DB
0|Clover | Socket connected: shoaib.maujgroup@gmail.com
0|Clover | Honeyside © 2022
0|Clover | Welcome to Clover
0|Clover | Server listening on port 4002
0|Clover | mediasoup worker running
0|Clover | mediasoup ip is 89.116.28.80
0|Clover | Connected to DB
0|Clover | Socket connected: shoaib.maujgroup@gmail.com
0|Clover | Honeyside © 2022
0|Clover | Welcome to Clover
0|Clover | Server listening on port 4002
0|Clover | mediasoup worker running
0|Clover | mediasoup ip is 89.116.28.80
0|Clover | Connected to DB
0|Clover | Socket connected: shoaib.maujgroup@gmail.com
Hi! You need to upgrade to v2.8.3 (or higher, for future readers).