From 2a755a10159006f636ad3cc29e4b448aaa2a3625 Mon Sep 17 00:00:00 2001 From: jamiebones Date: Wed, 17 Mar 2021 22:32:34 +0100 Subject: [PATCH] added transaction support from mongoose --- client/src/components/createNewSession.js | 21 ++++++- client/src/components/login.js | 2 +- .../src/components/studentAccountCreation.js | 21 ++++--- client/src/components/updateSessionNew.js | 28 ++++++--- client/src/graphql/mutation.js | 2 +- client/src/graphql/queries.js | 2 + server/logs/app.log | 57 +++++++++++++++++++ server/package-lock.json | 46 +++++++++------ server/package.json | 3 +- .../src/methods/bedspace/allocateBedSpace.js | 5 +- .../methods/bedspace/dashStudentFreeBed.js | 5 +- .../bedspace/getStudentPhoneNumbers.js | 2 +- .../bedspace/placeStudentInBedSpace.js | 5 +- .../confirmPhoneTable/confirmPhoneNumber.js | 2 +- server/src/methods/message/index.js | 4 +- .../studentBio/createStudentAccount.js | 49 ++++++++-------- .../methods/studentBio/updateStudentLevel.js | 57 +++++++++++-------- .../transaction/confirmRemitaTransaction.js | 5 +- .../methods/transaction/generateRemitaRRR.js | 15 +++-- .../methods/transaction/makeTransaction.js | 5 +- .../transaction/simulateRemitaTransaction.js | 5 +- server/src/models/sessionTable.js | 1 + server/src/resolvers/bedSpace.js | 2 +- server/src/resolvers/sessionTable.js | 41 +++++++------ server/src/resolvers/studentBio.js | 34 ++++------- server/src/schema/message.js | 6 +- server/src/schema/sessionTable.js | 2 + 27 files changed, 274 insertions(+), 153 deletions(-) diff --git a/client/src/components/createNewSession.js b/client/src/components/createNewSession.js index e9f81b04..a9f15b44 100644 --- a/client/src/components/createNewSession.js +++ b/client/src/components/createNewSession.js @@ -15,7 +15,7 @@ import NumberFormat from "react-number-format"; import styled from "styled-components"; const SessionStyles = styled.div` - /* input[type="range"]::-webkik-slider-runnable-track{ + /* input[type="range"]::-webkik-slider-runnable-track{ width: 100%; height: 8.4px; cursor: pointer; @@ -98,6 +98,7 @@ export default (props) => { const [loadingState, setLoadingState] = useState(false); const [bedspaceStats, setBedSpaceStats] = useState(null); const [sessionText, setSessionText] = useState(""); + const [sessionShouldUpdate, setSessionShouldUpdate] = useState(false); const subtractTwoNumbers = (a, b) => { const answer = +a - +b; @@ -351,7 +352,7 @@ export default (props) => { levelArray.push(obj); }); let confirmDetails = window.confirm( - `session: ${session} \n ${facultyConfirmation} \n ${levelConfirmation}` + `session: ${session} \n ${facultyConfirmation} \n ${levelConfirmation} \n should update level: ${sessionShouldUpdate}` ); if (!confirmDetails) { @@ -365,6 +366,7 @@ export default (props) => { facultyAllocation: facultyArray, levelAllocation: levelArray, active: false, + shouldUpdateLevel: sessionShouldUpdate, }; await sessionMutation({ variables: { @@ -482,6 +484,21 @@ export default (props) => { +
+ + setSessionShouldUpdate((prevValue) => !prevValue) + } + /> + +
+
{facComponents.length > 0 && facComponents.map(({ faculty, facultyId }) => { diff --git a/client/src/components/login.js b/client/src/components/login.js index 7f49e408..699fe608 100644 --- a/client/src/components/login.js +++ b/client/src/components/login.js @@ -63,7 +63,7 @@ const Login = (props) => { setSubmitted(!submitted); if (accessLevel === "super-admin") { history.push("/admin/dashboard"); - } else if (accessLevel === "student") { + } else if (accessLevel === "normal") { history.push("/dashboard"); } } diff --git a/client/src/components/studentAccountCreation.js b/client/src/components/studentAccountCreation.js index d1dd0d79..3ea10dde 100644 --- a/client/src/components/studentAccountCreation.js +++ b/client/src/components/studentAccountCreation.js @@ -33,7 +33,7 @@ const StudentAccountCreation = (props) => { const [password, setPassword] = useState(""); const [confirmPassword, setconfirmPassword] = useState(""); - const [errors, setErrors] = useState([]); + const [errors, setErrors] = useState(null); const [submitted, setSubmitted] = useState(false); const [loading, setLoading] = useState(false); //const [file, setFile] = useState(""); @@ -50,10 +50,8 @@ const StudentAccountCreation = (props) => { useEffect(() => { if (createNewAccountResult.error) { - let errorArray = []; setSubmitted(!submitted); - errorArray = ExtractError(createNewAccountResult.error); - setErrors(errorArray); + setErrors(createNewAccountResult.error); setLoading(!loading); } @@ -92,11 +90,9 @@ const StudentAccountCreation = (props) => { window.alert("password does not match"); return; } - const studentObject = { ...student }; studentObject.password = password; setSubmitted(!submitted); - student.password = password; setLoading(!loading); await createNewAccount({ variables: { @@ -110,7 +106,10 @@ const StudentAccountCreation = (props) => { return ( - +
+ {errors &&

{errors.message}

} +
+
{
{ readOnly type="text" className="form-control" - value={student.currentLevel && student.currentLevel.toUpperCase()} + value={ + student.currentLevel && student.currentLevel.toUpperCase() + } />
diff --git a/client/src/components/updateSessionNew.js b/client/src/components/updateSessionNew.js index 457683d8..0bed0f80 100644 --- a/client/src/components/updateSessionNew.js +++ b/client/src/components/updateSessionNew.js @@ -42,6 +42,7 @@ export default ({ history, match }) => { const [levelComponents, setLevelComponents] = useState([]); const [submitted, setSubmitted] = useState(false); const [sessionId, setSessionId] = useState(""); + const [sessionShouldUpdate, setSessionShouldUpdate] = useState(false); const [sessionMutation, sessionResult] = useMutation(UpdateSessionMutation); @@ -61,7 +62,7 @@ export default ({ history, match }) => { const sessionData = getSessionResult.data.getSessionById; const { id, - + shouldUpdateLevel, facultyAllocation, levelAllocation, } = sessionData; @@ -85,6 +86,7 @@ export default ({ history, match }) => { setFacComponents(facultyAllocationComponentsArray); setLevelComponents(levelAllocationComponentsArray); setSessionId(id); + setSessionShouldUpdate(shouldUpdateLevel); setFacValue(() => filterArrayForTotal(facultyAllocationComponentsArray, null, "faculty") ); @@ -245,7 +247,7 @@ export default ({ history, match }) => { levelArray.push(obj); }); let confirmDetails = window.confirm( - ` ${facultyConfirmation} \n ${levelConfirmation}` + ` ${facultyConfirmation} \n ${levelConfirmation} \n should update level: ${sessionShouldUpdate}` ); if (!confirmDetails) { @@ -254,13 +256,14 @@ export default ({ history, match }) => { } try { - let varableToSend = { + let variableToSend = { facultyAllocation: facultyArray, levelAllocation: levelArray, + shouldUpdateLevel: sessionShouldUpdate, }; await sessionMutation({ variables: { - input: varableToSend, + input: variableToSend, sessionId: sessionId, }, }); @@ -299,9 +302,7 @@ export default ({ history, match }) => {
-

- updating academic session -

+

updating academic session

+ +
+ + setSessionShouldUpdate((prevValue) => !prevValue) + } + /> + +
diff --git a/client/src/graphql/mutation.js b/client/src/graphql/mutation.js index df1fe44c..aa8ce6d6 100644 --- a/client/src/graphql/mutation.js +++ b/client/src/graphql/mutation.js @@ -317,7 +317,7 @@ const DashStudentFreeRoom = gql` //SendSMSToStudents const SendSMSToStudents = gql` - mutation SendSMSToStudents($roomIds: RoomIDS!, $sms: String!) { + mutation SendSMSToStudents($roomIds: RoomIDInput!, $sms: String!) { sendMessage(roomIds: $roomIds, sms: $sms) { status totalMessage diff --git a/client/src/graphql/queries.js b/client/src/graphql/queries.js index ca536ec4..a938c318 100644 --- a/client/src/graphql/queries.js +++ b/client/src/graphql/queries.js @@ -219,6 +219,7 @@ const AllSessions = gql` } session active + shouldUpdateLevel } } `; @@ -284,6 +285,7 @@ const GetSessionById = gql` percentAllocation } active + shouldUpdateLevel } } `; diff --git a/server/logs/app.log b/server/logs/app.log index 9ad77849..74a134b1 100644 --- a/server/logs/app.log +++ b/server/logs/app.log @@ -383,3 +383,60 @@ {"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Tue Mar 16 2021 11:31:11 GMT+0000 (Coordinated Universal Time)","process":{"pid":18802,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":438005760,"heapTotal":342409216,"heapUsed":289082800,"external":20573425,"arrayBuffers":18506206}},"os":{"loadavg":[3.88,3.71,3.82],"uptime":360044},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} {"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Tue Mar 16 2021 11:31:35 GMT+0000 (Coordinated Universal Time)","process":{"pid":20389,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":368193536,"heapTotal":340574208,"heapUsed":288977512,"external":20573691,"arrayBuffers":18506472}},"os":{"loadavg":[4.4,3.83,3.86],"uptime":360068},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} {"error":{"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"192.168.160.5","port":6379},"level":"error","message":"uncaughtException: Redis connection to redis_cache:6379 failed - connect ECONNREFUSED 192.168.160.5:6379\nError: Redis connection to redis_cache:6379 failed - connect ECONNREFUSED 192.168.160.5:6379\n at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1144:16)","stack":"Error: Redis connection to redis_cache:6379 failed - connect ECONNREFUSED 192.168.160.5:6379\n at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1144:16)","exception":true,"date":"Wed Mar 17 2021 04:04:21 GMT+0000 (Coordinated Universal Time)","process":{"pid":10007,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":104472576,"heapTotal":185122816,"heapUsed":180604672,"external":21684739,"arrayBuffers":19618808}},"os":{"loadavg":[6.03,5.44,5.06],"uptime":419632},"trace":[{"column":16,"file":"net.js","function":"TCPConnectWrap.afterConnect [as oncomplete]","line":1144,"method":"afterConnect [as oncomplete]","native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 11:08:46 GMT+0000 (Coordinated Universal Time)","process":{"pid":646,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":677482496,"heapTotal":578785280,"heapUsed":515876704,"external":20571372,"arrayBuffers":18504153}},"os":{"loadavg":[14.92,7.96,5.73],"uptime":445096},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 11:09:38 GMT+0000 (Coordinated Universal Time)","process":{"pid":731,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":691015680,"heapTotal":579334144,"heapUsed":516084360,"external":20573691,"arrayBuffers":18506472}},"os":{"loadavg":[8.18,7.19,5.58],"uptime":445148},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"message":"500 - E11000 duplicate key error collection: hostelDBProduction.users index: default.email_1 dup key: { default.email: null } - /graphql - POST - ::ffff:172.22.0.1","level":"error"} +{"message":"500 - E11000 duplicate key error collection: hostelDBProduction.users index: default.email_1 dup key: { default.email: null } - /graphql - POST - undefined","level":"error"} +{"message":"500 - E11000 duplicate key error collection: hostelDBProduction.users index: default.email_1 dup key: { default.email: null } - /graphql - POST - ::ffff:172.23.0.1","level":"error"} +{"message":"500 - E11000 duplicate key error collection: hostelDBProduction.users index: default.email_1 dup key: { default.email: null } - /graphql - POST - ::ffff:172.23.0.1","level":"error"} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 17:03:47 GMT+0000 (Coordinated Universal Time)","process":{"pid":388,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":674983936,"heapTotal":577495040,"heapUsed":515749864,"external":20575066,"arrayBuffers":18507847}},"os":{"loadavg":[7.03,3.27,2.66],"uptime":17976},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 17:05:05 GMT+0000 (Coordinated Universal Time)","process":{"pid":685,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":676323328,"heapTotal":564416512,"heapUsed":515731192,"external":20573191,"arrayBuffers":18505972}},"os":{"loadavg":[4.21,3.19,2.67],"uptime":18054},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 17:05:59 GMT+0000 (Coordinated Universal Time)","process":{"pid":959,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":675753984,"heapTotal":563675136,"heapUsed":515924296,"external":20573691,"arrayBuffers":18506472}},"os":{"loadavg":[4.63,3.4,2.77],"uptime":18108},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 17:06:28 GMT+0000 (Coordinated Universal Time)","process":{"pid":1374,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":677146624,"heapTotal":565313536,"heapUsed":515973264,"external":20573191,"arrayBuffers":18505972}},"os":{"loadavg":[4.29,3.44,2.8],"uptime":18138},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 17:07:09 GMT+0000 (Coordinated Universal Time)","process":{"pid":2388,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":689840128,"heapTotal":576675840,"heapUsed":516407928,"external":20573691,"arrayBuffers":18506472}},"os":{"loadavg":[4.08,3.5,2.85],"uptime":18179},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 17:07:39 GMT+0000 (Coordinated Universal Time)","process":{"pid":2814,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":676343808,"heapTotal":564387840,"heapUsed":516148520,"external":20573191,"arrayBuffers":18505972}},"os":{"loadavg":[3.57,3.42,2.84],"uptime":18208},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 17:08:09 GMT+0000 (Coordinated Universal Time)","process":{"pid":2953,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":691511296,"heapTotal":578822144,"heapUsed":516487776,"external":20573691,"arrayBuffers":18506472}},"os":{"loadavg":[3.1,3.32,2.83],"uptime":18238},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 17:08:29 GMT+0000 (Coordinated Universal Time)","process":{"pid":3280,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":676446208,"heapTotal":564686848,"heapUsed":517887536,"external":20574074,"arrayBuffers":18506855}},"os":{"loadavg":[2.81,3.23,2.81],"uptime":18258},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 17:08:53 GMT+0000 (Coordinated Universal Time)","process":{"pid":3474,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":691187712,"heapTotal":578609152,"heapUsed":516437400,"external":20573200,"arrayBuffers":18505981}},"os":{"loadavg":[3.25,3.31,2.85],"uptime":18282},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 17:09:02 GMT+0000 (Coordinated Universal Time)","process":{"pid":3631,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":690102272,"heapTotal":577327104,"heapUsed":516578752,"external":20573675,"arrayBuffers":18506456}},"os":{"loadavg":[3.21,3.3,2.85],"uptime":18291},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 17:09:18 GMT+0000 (Coordinated Universal Time)","process":{"pid":4185,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":677728256,"heapTotal":564506624,"heapUsed":516316488,"external":20572925,"arrayBuffers":18505706}},"os":{"loadavg":[3.22,3.3,2.85],"uptime":18308},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 17:23:11 GMT+0000 (Coordinated Universal Time)","process":{"pid":164,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":680693760,"heapTotal":568332288,"heapUsed":518208904,"external":20573425,"arrayBuffers":18506206}},"os":{"loadavg":[2.94,3.03,2.94],"uptime":19140},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 17:24:12 GMT+0000 (Coordinated Universal Time)","process":{"pid":229,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":988934144,"heapTotal":904318976,"heapUsed":851664568,"external":20591265,"arrayBuffers":18522856}},"os":{"loadavg":[4.41,3.35,3.05],"uptime":19201},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 17:24:40 GMT+0000 (Coordinated Universal Time)","process":{"pid":299,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":694468608,"heapTotal":581890048,"heapUsed":518665664,"external":20573425,"arrayBuffers":18506206}},"os":{"loadavg":[3.77,3.29,3.04],"uptime":19230},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 17:29:41 GMT+0000 (Coordinated Universal Time)","process":{"pid":390,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":677842944,"heapTotal":579035136,"heapUsed":518324400,"external":20573691,"arrayBuffers":18506472}},"os":{"loadavg":[4.17,2.89,2.87],"uptime":19530},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 17:29:41 GMT+0000 (Coordinated Universal Time)","process":{"pid":438,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":638144512,"heapTotal":541675520,"heapUsed":517817712,"external":20571816,"arrayBuffers":18504597}},"os":{"loadavg":[4.17,2.89,2.87],"uptime":19530},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 17:37:44 GMT+0000 (Coordinated Universal Time)","process":{"pid":167,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":691625984,"heapTotal":582864896,"heapUsed":518321560,"external":20573191,"arrayBuffers":18505972}},"os":{"loadavg":[3.44,3.41,3.16],"uptime":20013},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 17:50:06 GMT+0000 (Coordinated Universal Time)","process":{"pid":432,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":680300544,"heapTotal":568836096,"heapUsed":518060096,"external":20572925,"arrayBuffers":18505706}},"os":{"loadavg":[4.47,3.25,3.28],"uptime":20755},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 17:50:40 GMT+0000 (Coordinated Universal Time)","process":{"pid":739,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":680071168,"heapTotal":568078336,"heapUsed":518017408,"external":20573191,"arrayBuffers":18505972}},"os":{"loadavg":[4.74,3.44,3.34],"uptime":20789},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 17:51:02 GMT+0000 (Coordinated Universal Time)","process":{"pid":831,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":694763520,"heapTotal":582131712,"heapUsed":518434032,"external":20573191,"arrayBuffers":18505972}},"os":{"loadavg":[4.24,3.41,3.33],"uptime":20811},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 17:59:13 GMT+0000 (Coordinated Universal Time)","process":{"pid":228,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":610750464,"heapTotal":563286016,"heapUsed":515591904,"external":20573191,"arrayBuffers":18505972}},"os":{"loadavg":[3.11,2.96,3.14],"uptime":21302},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 18:04:23 GMT+0000 (Coordinated Universal Time)","process":{"pid":365,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":688418816,"heapTotal":576163840,"heapUsed":515923912,"external":20572826,"arrayBuffers":18505607}},"os":{"loadavg":[3.44,2.69,2.94],"uptime":21613},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 18:04:33 GMT+0000 (Coordinated Universal Time)","process":{"pid":517,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":690958336,"heapTotal":578547712,"heapUsed":515806480,"external":20572304,"arrayBuffers":18505085}},"os":{"loadavg":[4.1,2.85,2.99],"uptime":21623},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 18:04:48 GMT+0000 (Coordinated Universal Time)","process":{"pid":685,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":675876864,"heapTotal":564416512,"heapUsed":515710336,"external":20573191,"arrayBuffers":18505972}},"os":{"loadavg":[3.7,2.82,2.98],"uptime":21637},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 18:05:26 GMT+0000 (Coordinated Universal Time)","process":{"pid":778,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":691994624,"heapTotal":579641344,"heapUsed":516053504,"external":20573191,"arrayBuffers":18505972}},"os":{"loadavg":[3.71,2.88,2.99],"uptime":21675},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 18:05:32 GMT+0000 (Coordinated Universal Time)","process":{"pid":875,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":675889152,"heapTotal":563941376,"heapUsed":515865656,"external":20573191,"arrayBuffers":18505972}},"os":{"loadavg":[3.57,2.87,2.99],"uptime":21682},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 18:39:09 GMT+0000 (Coordinated Universal Time)","process":{"pid":161,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":673566720,"heapTotal":564051968,"heapUsed":515528288,"external":20571875,"arrayBuffers":18504656}},"os":{"loadavg":[3.03,2.66,2.81],"uptime":23698},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 18:40:24 GMT+0000 (Coordinated Universal Time)","process":{"pid":296,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":690761728,"heapTotal":579047424,"heapUsed":515927280,"external":20573191,"arrayBuffers":18505972}},"os":{"loadavg":[2.57,2.58,2.77],"uptime":23773},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 18:41:24 GMT+0000 (Coordinated Universal Time)","process":{"pid":516,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":675586048,"heapTotal":563343360,"heapUsed":515619376,"external":20572925,"arrayBuffers":18505706}},"os":{"loadavg":[2.52,2.51,2.73],"uptime":23833},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 18:46:38 GMT+0000 (Coordinated Universal Time)","process":{"pid":106,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":986042368,"heapTotal":900460544,"heapUsed":847594048,"external":20583073,"arrayBuffers":18514664}},"os":{"loadavg":[4.65,3.99,3.35],"uptime":24147},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 19:12:23 GMT+0000 (Coordinated Universal Time)","process":{"pid":1124,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":676745216,"heapTotal":563892224,"heapUsed":515673184,"external":20573191,"arrayBuffers":18505972}},"os":{"loadavg":[4.53,2.82,2.82],"uptime":25692},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 19:12:44 GMT+0000 (Coordinated Universal Time)","process":{"pid":1689,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":689414144,"heapTotal":577282048,"heapUsed":515989032,"external":20573675,"arrayBuffers":18506456}},"os":{"loadavg":[4.02,2.82,2.81],"uptime":25713},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 19:13:27 GMT+0000 (Coordinated Universal Time)","process":{"pid":1876,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":677597184,"heapTotal":564789248,"heapUsed":515820248,"external":20573110,"arrayBuffers":18505891}},"os":{"loadavg":[4.22,3.02,2.88],"uptime":25756},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 19:13:42 GMT+0000 (Coordinated Universal Time)","process":{"pid":2405,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":677097472,"heapTotal":564809728,"heapUsed":515897320,"external":20573191,"arrayBuffers":18505972}},"os":{"loadavg":[3.95,3.02,2.88],"uptime":25771},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 19:14:04 GMT+0000 (Coordinated Universal Time)","process":{"pid":2707,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":677031936,"heapTotal":564305920,"heapUsed":515911672,"external":20573191,"arrayBuffers":18505972}},"os":{"loadavg":[4.14,3.12,2.92],"uptime":25793},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 19:15:45 GMT+0000 (Coordinated Universal Time)","process":{"pid":4578,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":569413632,"heapTotal":410234880,"heapUsed":305956168,"external":20573558,"arrayBuffers":18506339}},"os":{"loadavg":[4.22,3.5,3.08],"uptime":25894},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 19:26:34 GMT+0000 (Coordinated Universal Time)","process":{"pid":428,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":675069952,"heapTotal":562761728,"heapUsed":515509424,"external":20572590,"arrayBuffers":18505371}},"os":{"loadavg":[3.7,3.48,3.35],"uptime":26544},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 19:41:31 GMT+0000 (Coordinated Universal Time)","process":{"pid":369,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":688869376,"heapTotal":576131072,"heapUsed":515694752,"external":20572876,"arrayBuffers":18505657}},"os":{"loadavg":[3.21,3.03,3.25],"uptime":27440},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 20:55:54 GMT+0000 (Coordinated Universal Time)","process":{"pid":287,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":691957760,"heapTotal":579801088,"heapUsed":515836592,"external":20563244,"arrayBuffers":18496025}},"os":{"loadavg":[2.79,3.17,3.48],"uptime":31903},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 20:58:07 GMT+0000 (Coordinated Universal Time)","process":{"pid":591,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":529940480,"heapTotal":385789952,"heapUsed":340398480,"external":20484004,"arrayBuffers":18416153}},"os":{"loadavg":[3.82,3.56,3.59],"uptime":32036},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 21:04:36 GMT+0000 (Coordinated Universal Time)","process":{"pid":220,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":677343232,"heapTotal":565362688,"heapUsed":515738952,"external":20573038,"arrayBuffers":18505819}},"os":{"loadavg":[3.9,3.92,3.76],"uptime":32425},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 21:04:47 GMT+0000 (Coordinated Universal Time)","process":{"pid":292,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":688418816,"heapTotal":577703936,"heapUsed":515907568,"external":20572772,"arrayBuffers":18505553}},"os":{"loadavg":[3.85,3.91,3.75],"uptime":32437},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 21:05:06 GMT+0000 (Coordinated Universal Time)","process":{"pid":438,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":624861184,"heapTotal":578256896,"heapUsed":516030688,"external":20573671,"arrayBuffers":18506452}},"os":{"loadavg":[4.7,4.08,3.81],"uptime":32456},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 21:15:09 GMT+0000 (Coordinated Universal Time)","process":{"pid":599,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":675745792,"heapTotal":563601408,"heapUsed":515619560,"external":20572984,"arrayBuffers":18505765}},"os":{"loadavg":[4.69,3.61,3.64],"uptime":33058},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 21:15:20 GMT+0000 (Coordinated Universal Time)","process":{"pid":686,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":677650432,"heapTotal":564416512,"heapUsed":515665848,"external":20572936,"arrayBuffers":18505717}},"os":{"loadavg":[4.2,3.54,3.62],"uptime":33069},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 21:20:22 GMT+0000 (Coordinated Universal Time)","process":{"pid":290,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":669814784,"heapTotal":556732416,"heapUsed":515095424,"external":20573152,"arrayBuffers":18505933}},"os":{"loadavg":[3.58,3.56,3.57],"uptime":33371},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 21:24:19 GMT+0000 (Coordinated Universal Time)","process":{"pid":363,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":692363264,"heapTotal":580354048,"heapUsed":515824392,"external":20572936,"arrayBuffers":18505717}},"os":{"loadavg":[2.38,2.85,3.27],"uptime":33609},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 21:24:41 GMT+0000 (Coordinated Universal Time)","process":{"pid":519,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":677810176,"heapTotal":564154368,"heapUsed":515621624,"external":20573202,"arrayBuffers":18505983}},"os":{"loadavg":[2.41,2.83,3.25],"uptime":33630},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 21:24:58 GMT+0000 (Coordinated Universal Time)","process":{"pid":625,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":693170176,"heapTotal":580976640,"heapUsed":516009440,"external":20573202,"arrayBuffers":18505983}},"os":{"loadavg":[2.87,2.91,3.27],"uptime":33647},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 21:25:31 GMT+0000 (Coordinated Universal Time)","process":{"pid":712,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":692416512,"heapTotal":580210688,"heapUsed":516032624,"external":20573202,"arrayBuffers":18505983}},"os":{"loadavg":[2.73,2.87,3.25],"uptime":33680},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} +{"error":{"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"::","port":8000},"level":"error","message":"uncaughtException: listen EADDRINUSE: address already in use :::8000\nError: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","stack":"Error: listen EADDRINUSE: address already in use :::8000\n at Server.setupListenHandle [as _listen2] (net.js:1316:16)\n at listenInCluster (net.js:1364:12)\n at Server.listen (net.js:1450:7)\n at StartUp (/usr/app/src/index.js:109:14)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","exception":true,"date":"Wed Mar 17 2021 21:25:41 GMT+0000 (Coordinated Universal Time)","process":{"pid":804,"uid":0,"gid":0,"cwd":"/usr/app","execPath":"/usr/local/bin/node","version":"v12.20.1","argv":["node","/usr/app/src/index.js"],"memoryUsage":{"rss":676704256,"heapTotal":563449856,"heapUsed":515816616,"external":20572936,"arrayBuffers":18505717}},"os":{"loadavg":[3.36,3,3.29],"uptime":33690},"trace":[{"column":16,"file":"net.js","function":"Server.setupListenHandle [as _listen2]","line":1316,"method":"setupListenHandle [as _listen2]","native":false},{"column":12,"file":"net.js","function":"listenInCluster","line":1364,"method":null,"native":false},{"column":7,"file":"net.js","function":"Server.listen","line":1450,"method":"listen","native":false},{"column":14,"file":"/usr/app/src/index.js","function":"StartUp","line":109,"method":null,"native":false},{"column":5,"file":"internal/process/task_queues.js","function":"processTicksAndRejections","line":97,"method":null,"native":false}]} diff --git a/server/package-lock.json b/server/package-lock.json index 1750ce1a..8c261b7e 100644 --- a/server/package-lock.json +++ b/server/package-lock.json @@ -3595,9 +3595,9 @@ } }, "kareem": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/kareem/-/kareem-2.3.2.tgz", - "integrity": "sha512-STHz9P7X2L4Kwn72fA4rGyqyXdmrMSdxqHx9IXon/FXluXieaFA6KJ2upcHAHxQPQ0LeM/OjLrhFxifHewOALQ==" + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/kareem/-/kareem-2.3.1.tgz", + "integrity": "sha512-l3hLhffs9zqoDe8zjmb/mAN4B8VT3L56EUvKNqLFVs9YlFA+zx7ke1DO8STAdDyYNkeSo1nKmjuvQeI12So8Xw==" }, "keyv": { "version": "3.1.0", @@ -3844,17 +3844,16 @@ } }, "mongoose": { - "version": "5.11.19", - "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-5.11.19.tgz", - "integrity": "sha512-+oMf4XVg+j7ygnALi7K5vWZfKvC9gs9jdN/6Y1GV5OUAc7KQWoa6hzFO7nSj5jMJlhHNvC6tcS2uU7BV5aH8Lg==", + "version": "5.10.0", + "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-5.10.0.tgz", + "integrity": "sha512-5itAvBMVDG4+zTDtuLg/IyoTxEMgvpOSHnigQ9Cyh8LR4BEgMAChJj7JSaGkg+tr1AjCSY9DgSdU8bHqCOoxXg==", "requires": { - "@types/mongodb": "^3.5.27", "bson": "^1.1.4", - "kareem": "2.3.2", - "mongodb": "3.6.4", + "kareem": "2.3.1", + "mongodb": "3.6.0", "mongoose-legacy-pluralize": "1.0.2", - "mpath": "0.8.3", - "mquery": "3.2.4", + "mpath": "0.7.0", + "mquery": "3.2.2", "ms": "2.1.2", "regexp-clone": "1.0.0", "safe-buffer": "5.2.1", @@ -3862,6 +3861,19 @@ "sliced": "1.0.1" }, "dependencies": { + "mongodb": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-3.6.0.tgz", + "integrity": "sha512-/XWWub1mHZVoqEsUppE0GV7u9kanLvHxho6EvBxQbShXTKYF9trhZC2NzbulRGeG7xMJHD8IOWRcdKx5LPjAjQ==", + "requires": { + "bl": "^2.2.0", + "bson": "^1.1.4", + "denque": "^1.4.1", + "require_optional": "^1.0.1", + "safe-buffer": "^5.1.2", + "saslprep": "^1.0.0" + } + }, "safe-buffer": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", @@ -3916,14 +3928,14 @@ } }, "mpath": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/mpath/-/mpath-0.8.3.tgz", - "integrity": "sha512-eb9rRvhDltXVNL6Fxd2zM9D4vKBxjVVQNLNijlj7uoXUy19zNDsIif5zR+pWmPCWNKwAtqyo4JveQm4nfD5+eA==" + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/mpath/-/mpath-0.7.0.tgz", + "integrity": "sha512-Aiq04hILxhz1L+f7sjGyn7IxYzWm1zLNNXcfhDtx04kZ2Gk7uvFdgZ8ts1cWa/6d0TQmag2yR8zSGZUmp0tFNg==" }, "mquery": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/mquery/-/mquery-3.2.4.tgz", - "integrity": "sha512-uOLpp7iRX0BV1Uu6YpsqJ5b42LwYnmu0WeF/f8qgD/On3g0XDaQM6pfn0m6UxO6SM8DioZ9Bk6xxbWIGHm2zHg==", + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/mquery/-/mquery-3.2.2.tgz", + "integrity": "sha512-XB52992COp0KP230I3qloVUbkLUxJIu328HBP2t2EsxSFtf4W1HPSOBWOXf1bqxK4Xbb66lfMJ+Bpfd9/yZE1Q==", "requires": { "bluebird": "3.5.1", "debug": "3.1.0", diff --git a/server/package.json b/server/package.json index 10e55564..08aeea7b 100644 --- a/server/package.json +++ b/server/package.json @@ -33,8 +33,7 @@ "jusibe": "^1.0.3", "lodash": "^4.17.20", "mongodb": "^3.6.4", - "mongoose": "^5.9.25", - "mongoose-transact-utils": "^0.1.2", + "mongoose": "^5.12.0", "morgan": "^1.10.0", "node-cron": "^2.0.3", "node-fetch": "^2.6.1", diff --git a/server/src/methods/bedspace/allocateBedSpace.js b/server/src/methods/bedspace/allocateBedSpace.js index 769f6060..dbe3fb2f 100644 --- a/server/src/methods/bedspace/allocateBedSpace.js +++ b/server/src/methods/bedspace/allocateBedSpace.js @@ -8,11 +8,12 @@ import { findSpaceByLevel, saveBedSpaceOnHold, } from "./commonAllocationUtil"; -const { runInTransaction } = require("mongoose-transact-utils"); + import studentBioMethod from "../studentBio"; export default async function allocateHostelSpaceToStudent(regNumber, conn) { - return await runInTransaction(async (session) => { + const session = conn.startSession(); + return await conn.transaction(async () => { try { //confirm if the person is a valid student const student = await studentBioMethod.confirmStudentShip(regNumber, conn); diff --git a/server/src/methods/bedspace/dashStudentFreeBed.js b/server/src/methods/bedspace/dashStudentFreeBed.js index dc28cf46..f80b7918 100644 --- a/server/src/methods/bedspace/dashStudentFreeBed.js +++ b/server/src/methods/bedspace/dashStudentFreeBed.js @@ -2,7 +2,7 @@ import { checkIfSpaceAlreadyAllocatedToStudentThatSession, checkIfSpaceIsOnHold, } from "./commonAllocationUtil"; -const { runInTransaction } = require("mongoose-transact-utils"); + import studentBioMethod from "../studentBio"; export default async function placeStudentInBedSpace( @@ -11,7 +11,8 @@ export default async function placeStudentInBedSpace( user, conn ) { - return await runInTransaction(async (session) => { + const session = conn.startSession(); + return await conn.transaction(async () => { try { //confirm if the person is a valid student const student = await studentBioMethod.confirmStudentShip( diff --git a/server/src/methods/bedspace/getStudentPhoneNumbers.js b/server/src/methods/bedspace/getStudentPhoneNumbers.js index 0a6a5ce9..61ee60cd 100644 --- a/server/src/methods/bedspace/getStudentPhoneNumbers.js +++ b/server/src/methods/bedspace/getStudentPhoneNumbers.js @@ -1,4 +1,4 @@ -export default GetPhoneNumbers = async (roomIds, conn) => { +export default async (roomIds, conn) => { //get the active session first const activeSession = await conn.models.SessionTable.findOne({ active: true, diff --git a/server/src/methods/bedspace/placeStudentInBedSpace.js b/server/src/methods/bedspace/placeStudentInBedSpace.js index 76b8dfd2..bd28883e 100644 --- a/server/src/methods/bedspace/placeStudentInBedSpace.js +++ b/server/src/methods/bedspace/placeStudentInBedSpace.js @@ -3,11 +3,12 @@ import { checkIfSpaceIsOnHold, saveBedSpaceOnHold, } from "./commonAllocationUtil"; -const { runInTransaction } = require("mongoose-transact-utils"); + import studentBioMethod from "../studentBio"; export default async function placeStudentInBedSpace(regNumber, bedId, conn) { - return await runInTransaction(async (session) => { + const session = conn.startSession(); + return await conn.transaction(async () => { try { //confirm if the person is a valid student const student = await studentBioMethod.confirmStudentShip( diff --git a/server/src/methods/confirmPhoneTable/confirmPhoneNumber.js b/server/src/methods/confirmPhoneTable/confirmPhoneNumber.js index 44c44da0..5262b826 100644 --- a/server/src/methods/confirmPhoneTable/confirmPhoneNumber.js +++ b/server/src/methods/confirmPhoneTable/confirmPhoneNumber.js @@ -22,7 +22,7 @@ export default async ({ number, regNumber, conn }) => { const removeZeroFromNumber = number && number.substr(1, number.length); await message.CheapGlobalSMS.sendMessage({ receipents: `234${removeZeroFromNumber}`, - sender: "UU Hostel", + sender: "UUHostel", message: msg, }); diff --git a/server/src/methods/message/index.js b/server/src/methods/message/index.js index 4f4d1322..3e9fe3fb 100644 --- a/server/src/methods/message/index.js +++ b/server/src/methods/message/index.js @@ -3,7 +3,7 @@ import EBulkSms from "./ebulkSms"; import CheapGlobalSMS from "./cheapGlobalSMS"; export default { - JusibeModule, - EBulkSms, + //JusibeModule, + //EBulkSms, CheapGlobalSMS, }; diff --git a/server/src/methods/studentBio/createStudentAccount.js b/server/src/methods/studentBio/createStudentAccount.js index da3fb4c1..c659558a 100644 --- a/server/src/methods/studentBio/createStudentAccount.js +++ b/server/src/methods/studentBio/createStudentAccount.js @@ -1,32 +1,35 @@ import bcrypt from "bcrypt"; const saltRounds = 10; -const CreateNewStudentAccount = async (accountDetails, conn, session) => { - const { regNumber, email, name, password } = accountDetails; - //lets check if the student is already registered on the hostel platform - const findStudentAccount = await conn.models.User.findOne({ - regNumber: regNumber.toLowerCase(), - }).session(session); +const CreateNewStudentAccount = async (accountDetails, conn) => { + const session = await conn.startSession(); + return await conn.transaction(async () => { + const { regNumber, email, name, password } = accountDetails; + //lets check if the student is already registered on the hostel platform + const findStudentAccount = await conn.models.User.findOne({ + regNumber: regNumber.toLowerCase(), + }).session(session); - if (findStudentAccount) { - throw new Error( - "student already has an account on the portal. Please proceed to login." - ); - } + if (findStudentAccount) { + throw new Error( + "student already has an account on the portal. Please proceed to login." + ); + } + //create user account for the student + const hash = await bcrypt.hash(password, saltRounds); + await conn.models.User.create({ + email: (email && email.toLowerCase()) || "", + password: hash, + regNumber, + userType: "student", + accessLevel: "normal", + name: name, + }); - //create user account for the student - const hash = await bcrypt.hash(password, saltRounds); - const newUser = new conn.models.User({ - email: (email && email.toLowerCase()) || "", - password: hash, - regNumber, - userType: "student", - name: name, + return { + regNumber, + }; }); - await newUser.save({ session }); - return { - regNumber, - }; }; export default CreateNewStudentAccount; diff --git a/server/src/methods/studentBio/updateStudentLevel.js b/server/src/methods/studentBio/updateStudentLevel.js index 2f7e8168..16ad0123 100644 --- a/server/src/methods/studentBio/updateStudentLevel.js +++ b/server/src/methods/studentBio/updateStudentLevel.js @@ -13,36 +13,45 @@ export default async (student, session, conn) => { entryMode, } = student; - - const faculties = await _getFaculties(); - let activeSession = await _getActiveSession(); + const faculties = await _getFaculties(conn); + let activeSession = await _getActiveSession(conn); //else we need to update the student level - let studentLevel = currentLevel.split(" ")[0].split("")[0]; let newLevel; - if (programDuration == studentLevel) { - throw new Error(`${regNumber} should have graduated`); - } - - //check the last level the student was using the current session - //before the student level is updated + let studentLevel = currentLevel.split(" ")[0].split("")[0]; - const studentSessionSplit = currentSession.trim().split("/")[1]; - const activeSessionSplit = activeSession.session.trim().split("/")[1]; + if (!activeSession) { + throw new Error( + "No session is currently active. Please contact the Administrator" + ); + } - if (+activeSessionSplit > +studentSessionSplit) { - //we need to update the student level based on the active session - if (programDuration > studentLevel) { - const levelDifference = activeSessionSplit - studentSessionSplit; - newLevel = `${+studentLevel + levelDifference}00 level`; + if (activeSession.shouldUpdateLevel) { + if (programDuration == studentLevel) { + throw new Error(`${regNumber} should have graduated`); } - } else if (+activeSessionSplit === +studentSessionSplit) { - //we do not need to update anything here - //the student is in the normal session so no increment in session + //check the last level the student was using the current session + //before the student level is updated + const studentSessionSplit = currentSession.trim().split("/")[1]; + const activeSessionSplit = activeSession.session.trim().split("/")[1]; + if (+activeSessionSplit > +studentSessionSplit) { + //we need to update the student level based on the active session + if (programDuration > studentLevel) { + const levelDifference = activeSessionSplit - studentSessionSplit; + newLevel = `${+studentLevel + levelDifference}00 level`; + } + } else if (+activeSessionSplit === +studentSessionSplit) { + //we do not need to update anything here + //the student is in the normal session so no increment in session - if (programDuration > studentLevel) { - newLevel = `${+studentLevel}00 level`; + if (programDuration > studentLevel) { + newLevel = `${+studentLevel}00 level`; + } } + } else { + //we probably had a strike no need to increment student level here + newLevel = `${studentLevel}00 level`; } + //save the student data and insert it into the cache here const levelType = getLevelExplanation({ studentLevel: newLevel, @@ -84,12 +93,12 @@ export default async (student, session, conn) => { return newStudentObj; }; -const _getActiveSession = async () => { +const _getActiveSession = async (conn) => { const session = await conn.models.SessionTable.findOne({ active: true }); return session; }; -const _getFaculties = async () => { +const _getFaculties = async (conn) => { const fac = await conn.models.Faculty.find(); return fac; }; diff --git a/server/src/methods/transaction/confirmRemitaTransaction.js b/server/src/methods/transaction/confirmRemitaTransaction.js index a3c7afaa..b88e1083 100644 --- a/server/src/methods/transaction/confirmRemitaTransaction.js +++ b/server/src/methods/transaction/confirmRemitaTransaction.js @@ -1,5 +1,5 @@ import axios from "axios"; -const { runInTransaction } = require("mongoose-transact-utils"); + import { findTransaction, markRoomAsOccupied, @@ -16,7 +16,8 @@ const { } = bedSpaceMethod.common; export default async function confirmTransaction(orderId, RRR, conn ) { - return await runInTransaction(async (transactionSession) => { + const transactionSession = conn.startSession(); + return await conn.transaction(async () => { try { const { MerchantId, Api_Key, CheckStatusUrl } = process.env; diff --git a/server/src/methods/transaction/generateRemitaRRR.js b/server/src/methods/transaction/generateRemitaRRR.js index a0c604d0..892a79bb 100644 --- a/server/src/methods/transaction/generateRemitaRRR.js +++ b/server/src/methods/transaction/generateRemitaRRR.js @@ -3,9 +3,7 @@ import sessionTableMethod from "../sessionTable"; import bedSpaceMethod from "../bedspace"; import CryptoJS from "crypto-js"; import axios from "axios"; -var _ = require('lodash'); - -const { runInTransaction } = require("mongoose-transact-utils"); +var _ = require("lodash"); const { getStudentData } = studentBioMethod.common; const { getActiveSession } = sessionTableMethod.common; @@ -17,13 +15,18 @@ import { } from "./transactionsUtil.js"; export default async function generateRemitaRRR(regNumber, conn) { - return await runInTransaction(async (transactionSession) => { + const transactionSession = conn.startSession(); + return await conn.transaction(async () => { try { const activeSession = await getActiveSession(conn); const student = await getStudentData(regNumber, conn); if (!student) throw new Error("Student data not found"); - const bed = await getReservedBedSpace(regNumber, activeSession.session, conn); + const bed = await getReservedBedSpace( + regNumber, + activeSession.session, + conn + ); if (bed) { //save new transaction here @@ -37,7 +40,7 @@ export default async function generateRemitaRRR(regNumber, conn) { if (!_.isEmpty(transaction)) { const { amount, rrr } = transaction; - console.log('old transaction be called') + console.log("old transaction be called"); let splitArray = amount.split("."); let splitAmount = splitArray[0].replace(",", ""); return { diff --git a/server/src/methods/transaction/makeTransaction.js b/server/src/methods/transaction/makeTransaction.js index d492a4aa..fa2a8782 100644 --- a/server/src/methods/transaction/makeTransaction.js +++ b/server/src/methods/transaction/makeTransaction.js @@ -1,7 +1,7 @@ import studentBioMethod from "../studentBio"; import sessionTableMethod from "../sessionTable"; import bedSpaceMethod from "../bedspace"; -const { runInTransaction } = require("mongoose-transact-utils"); + const { getStudentData } = studentBioMethod.common; const { getActiveSession } = sessionTableMethod.common; @@ -15,7 +15,8 @@ var _ = require('lodash'); export default async function makeTransaction(regNumber, conn) { - return await runInTransaction(async (transactionSession) => { + const transactionSession = conn.startSession(); + return await conn.transaction(async () => { try { const activeSession = await getActiveSession(conn); const student = await getStudentData(regNumber, conn); diff --git a/server/src/methods/transaction/simulateRemitaTransaction.js b/server/src/methods/transaction/simulateRemitaTransaction.js index 0695a74e..0412c389 100644 --- a/server/src/methods/transaction/simulateRemitaTransaction.js +++ b/server/src/methods/transaction/simulateRemitaTransaction.js @@ -1,4 +1,4 @@ -const { runInTransaction } = require("mongoose-transact-utils"); + import { markRoomAsOccupied, addUserToAllocatedBedSpace, @@ -18,7 +18,8 @@ const { } = bedSpaceMethod.common; export default async function simulateRemitaTransaction(regNumber, conn) { - return await runInTransaction(async (transactionSession) => { + const transactionSession = conn.startSession(); + return await conn.transaction(async () => { try { const activeSession = await getActiveSession(conn); const student = await getStudentData(regNumber, conn); diff --git a/server/src/models/sessionTable.js b/server/src/models/sessionTable.js index f9b58e0b..ba1af115 100644 --- a/server/src/models/sessionTable.js +++ b/server/src/models/sessionTable.js @@ -21,6 +21,7 @@ const SessionTableSchema = new Schema({ facultyAllocation: [facultyAllocationSchema], levelAllocation: [levelAllocationSchema], active: Boolean, + shouldUpdateLevel: Boolean }); SessionTableSchema.index({ session: -1 }); diff --git a/server/src/resolvers/bedSpace.js b/server/src/resolvers/bedSpace.js index f92ff3b1..88e0b2cf 100644 --- a/server/src/resolvers/bedSpace.js +++ b/server/src/resolvers/bedSpace.js @@ -1,6 +1,6 @@ import util from "../utils"; import methods from "../methods"; -const { runInTransaction } = require("mongoose-transact-utils"); + import pubsub, { EVENTS } from "../subscription"; export default { diff --git a/server/src/resolvers/sessionTable.js b/server/src/resolvers/sessionTable.js index 576eb71b..3d654094 100644 --- a/server/src/resolvers/sessionTable.js +++ b/server/src/resolvers/sessionTable.js @@ -1,5 +1,3 @@ -const { runInTransaction } = require("mongoose-transact-utils"); - export default { Query: { getSessionById: async (parent, { sessionId }, { fastConn, slowConn }) => { @@ -18,12 +16,19 @@ export default { Mutation: { createSession: async (_, { input }, { fastConn, slowConn }) => { - const { session, facultyAllocation, levelAllocation, active } = input; + const { + session, + facultyAllocation, + levelAllocation, + active, + shouldUpdateLevel, + } = input; const newSession = new fastConn.models.SessionTable({ session, facultyAllocation, levelAllocation, active, + shouldUpdateLevel, }); try { //loop through the faculty allocation array @@ -62,12 +67,8 @@ export default { throw error; } }, - updateSession: async ( - _, - { input, sessionId }, - { fastConn, slowConn, config } - ) => { - const { facultyAllocation, levelAllocation } = input; + updateSession: async (_, { input, sessionId }, { fastConn, slowConn }) => { + const { facultyAllocation, levelAllocation, shouldUpdateLevel } = input; try { //loop through the faculty allocation array @@ -141,6 +142,7 @@ export default { }); sessionToUpdate.facultyAllocation = facultyArray; sessionToUpdate.levelAllocation = levelArray; + sessionToUpdate.shouldUpdateLevel = shouldUpdateLevel; await sessionToUpdate.save(); //save active session here in redis @@ -150,18 +152,15 @@ export default { throw error; } }, - activateSession: async ( - _, - { sessionId }, - { fastConn, slowConn, config } - ) => { + activateSession: async (_, { sessionId }, { fastConn }) => { //loop through the faculty allocation array //check if any session is active first. only one session can be active at a time - return await runInTransaction(async (session) => { + + try { const findActiveSession = await fastConn.models.SessionTable.findOne({ active: true, - }).session(session); + }); if (findActiveSession) { throw new Error( `${findActiveSession.session} is already active. Only one session can be active at a time` @@ -169,7 +168,7 @@ export default { } const sessionTable = await fastConn.models.SessionTable.findOne({ _id: sessionId, - }).session(session); + }); const pipeline = [ { $match: { @@ -180,9 +179,9 @@ export default { $count: "total", }, ]; - const vacantBedsArray = await slowConn.models.BedSpace.aggregate( + const vacantBedsArray = await fastConn.models.BedSpace.aggregate( pipeline - ).session(session); + ); const total = vacantBedsArray[0].total; //lets make all allocate spaces based on the shared criteria in the session object @@ -209,13 +208,13 @@ export default { sessionTable.facultyAllocation = facultyArray; sessionTable.levelAllocation = levelArray; sessionTable.active = true; - await sessionTable.save({ session: session }); + await sessionTable.save(); return true; } catch (err) { console.log(err); throw err; } - }); + }, deactivateSession: async (_, { sessionId }, { fastConn }) => { try { diff --git a/server/src/resolvers/studentBio.js b/server/src/resolvers/studentBio.js index ac0c331a..269114a3 100644 --- a/server/src/resolvers/studentBio.js +++ b/server/src/resolvers/studentBio.js @@ -1,6 +1,4 @@ import methods from "../methods"; -import utils from "../utils"; -const { runInTransaction } = require("mongoose-transact-utils"); export default { Query: { @@ -34,7 +32,7 @@ export default { }, Mutation: { - createStudentAccount: async (parents, args, { req, fastConn, slowConn, config }) => { + createStudentAccount: async (parents, args, { req, fastConn, config }) => { const { input: { regNumber, @@ -66,26 +64,18 @@ export default { currentSession, sex, }; + debugger; - return await runInTransaction(async (session) => { - try { - const studentData = await methods.studentBioMethod.createStudentAccount( - { ...newStudent, password }, - fastConn, - session, - - ); - return studentData; - } catch (err) { - console.log(err); - config.winston.error( - `${err.status || 500} - ${err.message} - ${req.originalUrl} - ${ - req.method - } - ${req.ip}` - ); - throw err; - } - }); + try { + const data = await methods.studentBioMethod.createStudentAccount( + { ...newStudent, password }, + fastConn + ); + console.log("data is data: ", data) + return data; + } catch (error) { + console.log(error); + } }, }, }; diff --git a/server/src/schema/message.js b/server/src/schema/message.js index 2d712200..58acd0db 100644 --- a/server/src/schema/message.js +++ b/server/src/schema/message.js @@ -8,7 +8,7 @@ export default gql` } extend type Mutation { - sendMessage(roomIds: RoomIDS!, sms: String!): Message! + sendMessage(roomIds: RoomIDInput!, sms: String!): Message! } extend type Subscription { @@ -19,6 +19,10 @@ export default gql` ids: [ID!] } + input RoomIDInput { + ids: [ID!] + } + type SMSCredit { sms_credits: String } diff --git a/server/src/schema/sessionTable.js b/server/src/schema/sessionTable.js index 48d107ad..ce989693 100644 --- a/server/src/schema/sessionTable.js +++ b/server/src/schema/sessionTable.js @@ -20,6 +20,7 @@ input SessionInput { facultyAllocation: [ FacultyAllocationInput ] levelAllocation: [ LevelAllocationInput ] active: Boolean + shouldUpdateLevel: Boolean } input FacultyAllocationInput { @@ -43,6 +44,7 @@ type SessionTable { facultyAllocation: [FacultyAllocation!], levelAllocation: [LevelAllocation!], active: Boolean!, + shouldUpdateLevel: Boolean } type FacultyAllocation {