Your IP : 216.73.216.48
root@darkstar:/hdd/hdd21/my5/git/my5-backend# node src/main.js
node: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by node)
node: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by node)
node: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by node)
root@darkstar:/hdd/hdd21/my5/git/my5-backend# nano /scripts/node.sh
(B)0[?1049h[1;54r[m[4l[34h[?25h[?1h=[?1h=[?1h=[39;49m[39;49m[m[H[J[0;7m GNU nano 2.3.2 File: /scripts/node.sh [3;1H[0m[36m#!/bin/sh
[1B[0;1m[34mexport[39m[m LD_LIBRARY_PATH[32m=[0;1m[31m$LD_LIBRARY_PATH[39m[m:/usr/[32mlocal[39m[m/lib64
[1Bsleep 1
[1B/bin/node [0;1m[31m$1[39m[m [32m>[39m[m /hdd/hdd21/1.log [32m&[39m[m /bin/node [0;1m[31m$2[39m[m [32m>[39m[m /hdd/hdd21/2.log [32m&[52;95H[39m[0;7m[ Read 4 lines ]
[1B^G[m Get Help[53;35H[0;7m^O[m WriteOut[53;69H[0;7m^R[m Read File[53;103H[0;7m^Y[m Prev Page[53;137H[0;7m^K[m Cut Text[53;171H[0;7m^C[m Cur Pos
[1B[0;7m^X[m Exit[54;35H[0;7m^J[m Justify[54;69H[0;7m^W[m Where Is[54;103H[0;7m^V[m Next Page[54;137H[0;7m^U[m UnCut Text[54;171H[0;7m^T[m To Spell
[51A[50B[J[54;204H[54;1H[?1049l
[?1l>root@darkstar:/hdd/hdd21/my5/git/my5-backend# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib64
root@darkstar:/hdd/hdd21/my5/git/my5-backend# ls -la]
total 364
drwxr-xr-x 6 my5 my5 4096 Feb 16 23:26 .
drwxr-xr-x 4 my5 my5 4096 Feb 13 23:04 ..
-rw-r--r-- 1 my5 my5 237 Feb 14 01:03 .env
drwxr-xr-x 8 my5 my5 4096 Feb 13 23:04 .git
-rw-r--r-- 1 my5 my5 27 Feb 13 23:04 .gitignore
-rw-r--r-- 1 my5 my5 124 Feb 13 23:04 .prettierrc
-rw-r--r-- 1 my5 my5 254 Feb 13 23:29 database.json
-rw-r--r-- 1 my5 my5 662 Feb 13 23:04 db
-rw-r--r-- 1 my5 my5 1188 Feb 13 23:04 fill_db.js
-rw-r--r-- 1 my5 my5 492 Feb 13 23:04 jwtPrivate.key
-rw-r--r-- 1 my5 my5 181 Feb 13 23:04 jwtPublic.key
drwxr-xr-x 2 my5 my5 4096 Feb 13 23:04 migrations
-rwxr-xr-x 1 my5 my5 66 Feb 13 23:12 node.sh
drwxr-xr-x 639 my5 my5 20480 Feb 13 23:15 node_modules
-rw-r--r-- 1 my5 my5 280611 Feb 13 23:15 package-lock.json
-rw-r--r-- 1 my5 my5 1228 Feb 13 23:04 package.json
-rw-r--r-- 1 root root 1500 Feb 16 23:26 screenlog.0
drwxr-xr-x 6 my5 my5 4096 Feb 14 00:56 src
-rw-r--r-- 1 my5 my5 147 Feb 13 23:04 tmp.js
root@darkstar:/hdd/hdd21/my5/git/my5-backend# node src/main.js
Listening on port 13255
^C
root@darkstar:/hdd/hdd21/my5/git/my5-backend# su my5
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ node ma src/main.js
Listening on port 13255
events.js:173
throw er; // Unhandled 'error' event
^
Error: Connection lost: The server closed the connection.
at Protocol.end (/hdd/hdd21/my5/git/my5-backend/node_modules/mysql/lib/protocol/Protocol.js:112:13)
at Socket.<anonymous> (/hdd/hdd21/my5/git/my5-backend/node_modules/mysql/lib/Connection.js:97:28)
at Socket.<anonymous> (/hdd/hdd21/my5/git/my5-backend/node_modules/mysql/lib/Connection.js:502:10)
at Socket.emit (events.js:193:15)
at endReadableNT (_stream_readable.js:1129:12)
at process.internalTickCallback (internal/process/next_tick.js:72:19)
Emitted 'error' event at:
at Connection._handleProtocolError (/hdd/hdd21/my5/git/my5-backend/node_modules/mysql/lib/Connection.js:425:8)
at Protocol.emit (events.js:188:13)
at Protocol._delegateError (/hdd/hdd21/my5/git/my5-backend/node_modules/mysql/lib/protocol/Protocol.js:390:10)
at Protocol.end (/hdd/hdd21/my5/git/my5-backend/node_modules/mysql/lib/protocol/Protocol.js:116:8)
at Socket.<anonymous> (/hdd/hdd21/my5/git/my5-backend/node_modules/mysql/lib/Connection.js:97:28)
[... lines matching original stack trace ...]
at process.internalTickCallback (internal/process/next_tick.js:72:19)
You have new mail in /var/spool/mail/root
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$
[Kmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$
[Kmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$
[Kmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$
[Kmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$
[Kmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$
[Kmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$
[Kmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$
[Kmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$
[Kmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$
[Kmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$
[Kmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$
[Kmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$
[Kmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$
[Kmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$
[Kmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$
[Kmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$
[Kmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$ git status
# On branch master
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# [31mmodified: .env[m
# [31mmodified: package-lock.json[m
# [31mmodified: src/db.js[m
# [31mmodified: src/main.js[m
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# [31mnode.sh[m
# [31mscreenlog.0[m
no changes added to commit (use "git add" and/or "git commit -a")
You have new mail in /var/spool/mail/root
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ git pull^C
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ git diff
[?1049h[?1h=
[3mESC[23m[1mdiff --git a/.env b/.env[3mESC[23m[m
[3mESC[23m[1mindex d57c849..036425d 100644[3mESC[23m[m
[3mESC[23m[1m--- a/.env[3mESC[23m[m
[3mESC[23m[1m+++ b/.env[3mESC[23m[m
[3mESC[23m[36m@@ -1,13 +1,11 @@[3mESC[23m[m
[3mESC[23m[31m-PORT=3000[3mESC[23m[m
[3mESC[23m[31m-DB_NAME=my5[3mESC[23m[m
[3mESC[23m[31m-DB_USERNAME=root[3mESC[23m[m
[3mESC[23m[32m+[3mESC[23m[m[3mESC[23m[32mPORT=13255[3mESC[23m[m
[3mESC[23m[32m+[3mESC[23m[m[3mESC[23m[32mDB_NAME=my5_my5[3mESC[23m[m
[3mESC[23m[32m+[3mESC[23m[m[3mESC[23m[32mDB_USERNAME=my5[3mESC[23m[m
DB_HOST=localhost[3mESC[23m[m
[3mESC[23m[31m-DB_PASSWORD=[3mESC[23m[m
[3mESC[23m[32m+[3mESC[23m[m[3mESC[23m[32mDB_PASSWORD=12345[3mESC[23m[m
DB_PORT=3306[3mESC[23m[m
[3mESC[23m[31m-[3mESC[23m[m
JWT_ISSUER=My5[3mESC[23m[m
[3mESC[23m[31m-JWT_AUDIENCE=http://localhost:3000[3mESC[23m[m
[3mESC[23m[32m+[3mESC[23m[m[3mESC[23m[32mJWT_AUDIENCE=https://enter.vlevski.eu/[3mESC[23m[m
JWT_EXPIRY=12h[3mESC[23m[m
[3mESC[23m[31m-[3mESC[23m[m
#Upload directory (relative to src/main.js)[3mESC[23m[m
[3mESC[23m[31m-FILE_UPLOAD_DIR=../uploads [3mESC[23m[m
\ No newline at end of file[3mESC[23m[m
[3mESC[23m[32m+[3mESC[23m[m[3mESC[23m[32mFILE_UPLOAD_DIR=../../../uploads[3mESC[23m[m
\ No newline at end of file[3mESC[23m[m
[3mESC[23m[1mdiff --git a/package-lock.json b/package-lock.json[3mESC[23m[m
[3mESC[23m[1mindex 2c09246..dd91bd5 100644[3mESC[23m[m
[3mESC[23m[1m--- a/package-lock.json[3mESC[23m[m
[3mESC[23m[1m+++ b/package-lock.json[3mESC[23m[m
[3mESC[23m[36m@@ -3108,11 +3108,13 @@[3mESC[23m[m
},[3mESC[23m[m
"balanced-match": {[3mESC[23m[m
"version": "1.0.0",[3mESC[23m[m
[3mlines 1-34[23m[K
[K[3mlines 1-34[23m[K
[K[3mlines 1-34[23m[K
[K [K^X^X[Kqq
[K[3mlines 1-34[23m[K
[K [K::[Kqq
[K[?1l>[?1049l
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ git status
# On branch master
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# [31mmodified: .env[m
# [31mmodified: package-lock.json[m
# [31mmodified: src/db.js[m
# [31mmodified: src/main.js[m
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# [31mnode.sh[m
# [31mscreenlog.0[m
no changes added to commit (use "git add" and/or "git commit -a")
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ git nano src/db.js
(B)0[?1049h[1;35r[m[4l[34h[?25h[?1h=[?1h=[?1h=[39;49m[39;49m[m[H[J[0;7m GNU nano 2.3.2 File: src/db.js [3;1H[mconst mysql = require('mysql');
[1Bconst dotenv = require('dotenv');
[1Bdotenv.config();
[2Bconst db = mysql.createConnection({[8;3Hhost: process.env.DB_HOST,[9;3Hdatabase: process.env.DB_NAME,[10;3Huser: process.env.DB_USERNAME,[11;3Hpassword: process.env.DB_PASSWORD,[12;3Hport: process.env.DB_PORT,[13;3HsocketPath: '/var/run/mysql/mysql.sock'
[1B})
[2Bmodule.exports = db;[33;66H[0;7m[ Read 14 lines ]
[1B^G[m Get Help[34;25H[0;7m^O[m WriteOut[34;49H[0;7m^R[m Read File[34;73H[0;7m^Y[m Prev Page[34;97H[0;7m^K[m Cut Text[34;121H[0;7m^C[m Cur Pos
[1B[0;7m^X[m Exit[35;25H[0;7m^J[m Justify[35;49H[0;7m^W[m Where Is[35;73H[0;7m^V[m Next Page[35;97H[0;7m^U[m UnCut Text[35;121H[0;7m^T[m To Spell
[32A[1B[1B[1B[1B[1B[1B[1B[1B[1B[1B[21B[J[35;148H[35;1H[?1049l
[?1l>my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ di git git diff
[?1049h[?1h=
[3mESC[23m[1mdiff --git a/.env b/.env[3mESC[23m[m
[3mESC[23m[1mindex d57c849..036425d 100644[3mESC[23m[m
[3mESC[23m[1m--- a/.env[3mESC[23m[m
[3mESC[23m[1m+++ b/.env[3mESC[23m[m
[3mESC[23m[36m@@ -1,13 +1,11 @@[3mESC[23m[m
[3mESC[23m[31m-PORT=3000[3mESC[23m[m
[3mESC[23m[31m-DB_NAME=my5[3mESC[23m[m
[3mESC[23m[31m-DB_USERNAME=root[3mESC[23m[m
[3mESC[23m[32m+[3mESC[23m[m[3mESC[23m[32mPORT=13255[3mESC[23m[m
[3mESC[23m[32m+[3mESC[23m[m[3mESC[23m[32mDB_NAME=my5_my5[3mESC[23m[m
[3mESC[23m[32m+[3mESC[23m[m[3mESC[23m[32mDB_USERNAME=my5[3mESC[23m[m
DB_HOST=localhost[3mESC[23m[m
[3mESC[23m[31m-DB_PASSWORD=[3mESC[23m[m
[3mESC[23m[32m+[3mESC[23m[m[3mESC[23m[32mDB_PASSWORD=12345[3mESC[23m[m
DB_PORT=3306[3mESC[23m[m
[3mESC[23m[31m-[3mESC[23m[m
JWT_ISSUER=My5[3mESC[23m[m
[3mESC[23m[31m-JWT_AUDIENCE=http://localhost:3000[3mESC[23m[m
[3mESC[23m[32m+[3mESC[23m[m[3mESC[23m[32mJWT_AUDIENCE=https://enter.vlevski.eu/[3mESC[23m[m
JWT_EXPIRY=12h[3mESC[23m[m
[3mESC[23m[31m-[3mESC[23m[m
#Upload directory (relative to src/main.js)[3mESC[23m[m
[3mESC[23m[31m-FILE_UPLOAD_DIR=../uploads [3mESC[23m[m
\ No newline at end of file[3mESC[23m[m
[3mESC[23m[32m+[3mESC[23m[m[3mESC[23m[32mFILE_UPLOAD_DIR=../../../uploads[3mESC[23m[m
\ No newline at end of file[3mESC[23m[m
[3mESC[23m[1mdiff --git a/package-lock.json b/package-lock.json[3mESC[23m[m
[3mESC[23m[1mindex 2c09246..dd91bd5 100644[3mESC[23m[m
[3mESC[23m[1m--- a/package-lock.json[3mESC[23m[m
[3mESC[23m[1m+++ b/package-lock.json[3mESC[23m[m
[3mESC[23m[36m@@ -3108,11 +3108,13 @@[3mESC[23m[m
},[3mESC[23m[m
"balanced-match": {[3mESC[23m[m
"version": "1.0.0",[3mESC[23m[m
[3mlines 1-34[23m[K
[K[?1l>[?1049lmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$ git status
# On branch master
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# [31mmodified: .env[m
# [31mmodified: package-lock.json[m
# [31mmodified: src/db.js[m
# [31mmodified: src/main.js[m
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# [31mnode.sh[m
# [31mscreenlog.0[m
no changes added to commit (use "git add" and/or "git commit -a")
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ git nano src/main.js
(B)0[?1049h[1;35r[m[4l[34h[?25h[?1h=[?1h=[?1h=[39;49m[39;49m[m[H[J[0;7m GNU nano 2.3.2 File: src/main.js [3;1H[mprocess.chdir(__dirname+'/..');
[1Bconst express = require('express');
[1Bconst dotenv = require('dotenv');
[1Bconst graphqlHttp = require('express-graphql');
[1Bconst fs = require('fs');
[1Bconst busboy = require('connect-busboy')
[1Bconst authMiddleware = require('./authMiddleware');
[1Bconst rootQuery = require('./schemas/schema');
[1Bconst login = require('./login');
[1Bconst fileUpload = require('./fileUpload');
[1Bdotenv.config();
[2Bconst app = express();
[1Bconst port = process.env.PORT;
[2Bapp.use(busboy());
[1Bapp.use(express.json());
[1Bapp.use(require('cors')())
[1Bapp.use('/graphql',
[1BauthMiddleware,
[1BgraphqlHttp({[24;3Hschema: rootQuery,[25;3Hgraphiql: true
[1B}))
[2B// app.use();
[2Bapp.get('/', (req, res) => {[31;3Hres.send('Hello world!');
[1B});[33;66H[0;7m[ Read 49 lines ]
[1B^G[m Get Help[34;25H[0;7m^O[m WriteOut[34;49H[0;7m^R[m Read File[34;73H[0;7m^Y[m Prev Page[34;97H[0;7m^K[m Cut Text[34;121H[0;7m^C[m Cur Pos
[1B[0;7m^X[m Exit[35;25H[0;7m^J[m Justify[35;49H[0;7m^W[m Where Is[35;73H[0;7m^V[m Next Page[35;97H[0;7m^U[m UnCut Text[35;121H[0;7m^T[m To Spell
[32A[31B[J[35;148H[35;1H[?1049l
[?1l>my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ git status
# On branch master
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# [31mmodified: .env[m
# [31mmodified: package-lock.json[m
# [31mmodified: src/db.js[m
# [31mmodified: src/main.js[m
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# [31mnode.sh[m
# [31mscreenlog.0[m
no changes added to commit (use "git add" and/or "git commit -a")
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ git pu mv mv .env . en .env.bak
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ git pull
Username for 'https://gitlab.com': mar MartiParti
Password for 'https://MartiParti@gitlab.com':
remote: Enumerating objects: 34, done.[K
remote: Counting objects: 2% (1/34) [K
remote: Counting objects: 5% (2/34) [K
remote: Counting objects: 8% (3/34) [K
remote: Counting objects: 11% (4/34) [K
remote: Counting objects: 14% (5/34) [K
remote: Counting objects: 17% (6/34) [K
remote: Counting objects: 20% (7/34) [K
remote: Counting objects: 23% (8/34) [K
remote: Counting objects: 26% (9/34) [K
remote: Counting objects: 29% (10/34) [K
remote: Counting objects: 32% (11/34) [K
remote: Counting objects: 35% (12/34) [K
remote: Counting objects: 38% (13/34) [K
remote: Counting objects: 41% (14/34) [K
remote: Counting objects: 44% (15/34) [K
remote: Counting objects: 47% (16/34) [K
remote: Counting objects: 50% (17/34) [K
remote: Counting objects: 52% (18/34) [K
remote: Counting objects: 55% (19/34) [K
remote: Counting objects: 58% (20/34) [K
remote: Counting objects: 61% (21/34) [K
remote: Counting objects: 64% (22/34) [K
remote: Counting objects: 67% (23/34) [K
remote: Counting objects: 70% (24/34) [K
remote: Counting objects: 73% (25/34) [K
remote: Counting objects: 76% (26/34) [K
remote: Counting objects: 79% (27/34) [K
remote: Counting objects: 82% (28/34) [K
remote: Counting objects: 85% (29/34) [K
remote: Counting objects: 88% (30/34) [K
remote: Counting objects: 91% (31/34) [K
remote: Counting objects: 94% (32/34) [K
remote: Counting objects: 97% (33/34) [K
remote: Counting objects: 100% (34/34) [K
remote: Counting objects: 100% (34/34), done.[K
remote: Compressing objects: 4% (1/22) [K
remote: Compressing objects: 9% (2/22) [K
remote: Compressing objects: 13% (3/22) [K
remote: Compressing objects: 18% (4/22) [K
remote: Compressing objects: 22% (5/22) [K
remote: Compressing objects: 27% (6/22) [K
remote: Compressing objects: 31% (7/22) [K
remote: Compressing objects: 36% (8/22) [K
remote: Compressing objects: 40% (9/22) [K
remote: Compressing objects: 45% (10/22) [K
remote: Compressing objects: 50% (11/22) [K
remote: Compressing objects: 54% (12/22) [K
remote: Compressing objects: 59% (13/22) [K
remote: Compressing objects: 63% (14/22) [K
remote: Compressing objects: 68% (15/22) [K
remote: Compressing objects: 72% (16/22) [K
remote: Compressing objects: 77% (17/22) [K
remote: Compressing objects: 81% (18/22) [K
remote: Compressing objects: 86% (19/22) [K
remote: Compressing objects: 90% (20/22) [K
remote: Compressing objects: 95% (21/22) [K
remote: Compressing objects: 100% (22/22) [K
remote: Compressing objects: 100% (22/22), done.[K
remote: Total 23 (delta 14), reused 0 (delta 0)[K
Unpacking objects: 4% (1/23)
Unpacking objects: 8% (2/23)
Unpacking objects: 13% (3/23)
Unpacking objects: 17% (4/23)
Unpacking objects: 21% (5/23)
Unpacking objects: 26% (6/23)
Unpacking objects: 30% (7/23)
Unpacking objects: 34% (8/23)
Unpacking objects: 39% (9/23)
Unpacking objects: 43% (10/23)
Unpacking objects: 47% (11/23)
Unpacking objects: 52% (12/23)
Unpacking objects: 56% (13/23)
Unpacking objects: 60% (14/23)
Unpacking objects: 65% (15/23)
Unpacking objects: 69% (16/23)
Unpacking objects: 73% (17/23)
Unpacking objects: 78% (18/23)
Unpacking objects: 82% (19/23)
Unpacking objects: 86% (20/23)
Unpacking objects: 91% (21/23)
Unpacking objects: 95% (22/23)
Unpacking objects: 100% (23/23)
Unpacking objects: 100% (23/23), done.
From https://gitlab.com/MartiParti/my5-backend
a4d6d78..00593fd master -> origin/master
Updating a4d6d78..00593fd
error: Your local changes to the following files would be overwritten by merge:
src/db.js
src/main.js
Please, commit your changes or stash them before you can merge.
Aborting
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ git stash
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: empty ident name (for <my5@darkstar.(none)>) not allowed
Cannot save the current index state
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ git it cn onfig --blobal user.email ( "my5@my5.com"
error: unknown option `blobal'
usage: git config [options]
Config file location
--global use global config file
--system use system config file
--local use repository config file
-f, --file <file> use given config file
--blob <blob-id> read config from given blob object
Action
--get get value: name [value-regex]
--get-all get all values: key [value-regex]
--get-regexp get values for regexp: name-regex [value-regex]
--replace-all replace all matching variables: name value [value_regex]
--add add a new variable: name value
--unset remove a variable: name [value-regex]
--unset-all remove all matches: name [value-regex]
--rename-section rename section: old-name new-name
--remove-section remove a section: name
-l, --list list all
-e, --edit open an editor
--get-color <slot> find the color configured: [default]
--get-colorbool <slot>
find the color setting: [stdout-is-tty]
Type
--bool value is "true" or "false"
--int value is decimal number
--bool-or-int value is --bool or --int
--path value is a path (file or directory name)
Other
-z, --null terminate values with NUL byte
--includes respect include directives on lookup
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ git config --blobal user.email "my5@my5.com"[1P[1@g
error: could not lock config file /home/my5/.gitconfig: No such file or directory
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ git stash
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: empty ident name (for <my5@darkstar.(none)>) not allowed
Cannot save the current index state
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ gt it status
# On branch master
# Your branch is behind 'origin/master' by 5 commits, and can be fast-forwarded.
# (use "git pull" to update your local branch)
#
# Changes not staged for commit:
# (use "git add/rm <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# [31mdeleted: .env[m
# [31mmodified: package-lock.json[m
# [31mmodified: src/db.js[m
# [31mmodified: src/main.js[m
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# [31m.env.bak[m
# [31mnode.sh[m
# [31mscreenlog.0[m
no changes added to commit (use "git add" and/or "git commit -a")
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ rm package-lock.json git checkout -- .
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ git p pull
Username for 'https://gitlab.com': MartiParti
Password for 'https://MartiParti@gitlab.com':
Updating a4d6d78..00593fd
Fast-forward
.env | 13 [31m-------------[m
.gitignore | 3 [32m++[m[31m-[m
database.json | 1 [32m+[m
src/db.js | 43 [32m+++++++++++++++++++++++++++++++++++++++[m[31m----[m
src/fileUpload/cloud.js | 1 [31m-[m
src/main.js | 2 [32m+[m[31m-[m
src/schemas/File.js | 12 [32m+++[m[31m---------[m
7 files changed, 46 insertions(+), 29 deletions(-)
delete mode 100644 .env
You have new mail in /var/spool/mail/root
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ git status
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# [31m.env.bak[m
# [31mnode.sh[m
# [31mscreenlog.0[m
nothing added to commit but untracked files present (use "git add" to track)
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ nano .env.bak
(B)0[?1049h[1;35r[m[4l[34h[?25h[?1h=[?1h=[?1h=[39;49m[39;49m[m[H[J[0;7m GNU nano 2.3.2 File: .env.bak [3;1H[mPORT=13255
[1BDB_NAME=my5_my5
[1BDB_USERNAME=my5
[1BDB_HOST=localhost
[1BDB_PASSWORD=12345
[1BDB_PORT=3306
[1BJWT_ISSUER=My5
[1BJWT_AUDIENCE=https://enter.vlevski.eu/
[1BJWT_EXPIRY=12h
[1B#Upload directory (relative to src/main.js)
[1BFILE_UPLOAD_DIR=../../../uploads[33;66H[0;7m[ Read 11 lines ]
[1B^G[m Get Help[34;25H[0;7m^O[m WriteOut[34;49H[0;7m^R[m Read File[34;73H[0;7m^Y[m Prev Page[34;97H[0;7m^K[m Cut Text[34;121H[0;7m^C[m Cur Pos
[1B[0;7m^X[m Exit[35;25H[0;7m^J[m Justify[35;49H[0;7m^W[m Where Is[35;73H[0;7m^V[m Next Page[35;97H[0;7m^U[m UnCut Text[35;121H[0;7m^T[m To Spell
[32A[31B[J[35;148H[35;1H[?1049l
[?1l>my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ mv .env.bak m .env
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ nano e .env
(B)0[?1049h[1;35r[m[4l[34h[?25h[?1h=[?1h=[?1h=[39;49m[39;49m[m[H[J[0;7m GNU nano 2.3.2 File: .env [3;1H[mPORT=13255
[1BDB_NAME=my5_my5
[1BDB_USERNAME=my5
[1BDB_HOST=localhost
[1BDB_PASSWORD=12345
[1BDB_PORT=3306
[1BJWT_ISSUER=My5
[1BJWT_AUDIENCE=https://enter.vlevski.eu/
[1BJWT_EXPIRY=12h
[1B#Upload directory (relative to src/main.js)
[1BFILE_UPLOAD_DIR=../../../uploads[33;66H[0;7m[ Read 11 lines ]
[1B^G[m Get Help[34;25H[0;7m^O[m WriteOut[34;49H[0;7m^R[m Read File[34;73H[0;7m^Y[m Prev Page[34;97H[0;7m^K[m Cut Text[34;121H[0;7m^C[m Cur Pos
[1B[0;7m^X[m Exit[35;25H[0;7m^J[m Justify[35;49H[0;7m^W[m Where Is[35;73H[0;7m^V[m Next Page[35;97H[0;7m^U[m UnCut Text[35;121H[0;7m^T[m To Spell
[32A[1B[1B[1B[1B[1B[1B[1B[1B[1B[1B[1BMM7[12;32r8M[1;35r[1;139H[0;7mModified
[12B[mM7[12;32r8M[1;35r[13;1HMMMMM[1B7[9;32r8M[1;35r[10;1H[9;32r[9;1HM[1;35r[11;1H[22B[K[23AMDB_SOCKET_PATH='/var/run/mysql/mysql.sock' [1P
[24B[0;7mSave modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ? [34;1H Y[m Yes[K
[1B[0;7m N[m No [35;17H[0;7m^C[m Cancel[K[33;62H
[0;7mFile Name to Write: .env
[1B^G[m Get Help[34;38H[0;7mM-D[m DOS Format[34;75H[0;7mM-A[m Append[34;112H[0;7mM-B[m Backup File
[1B[0;7m^C[m Cancel[7C [35;38H[0;7mM-M[m Mac Format[35;75H[0;7mM-P[m Prepend[33;25H
[1B[39;49m[m[J[1;139H[0;7m [33;65H[m[1K [0;7m[ Wrote 15 lines ][m[K[35;148H[35;1H[?1049l
[?1l>my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ git status
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# [31mnode.sh[m
# [31mscreenlog.0[m
nothing added to commit but untracked files present (use "git add" to track)
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ git ndoe ode src/main.js
Listening on port 13255
^C
You have new mail in /var/spool/mail/root
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ npm start
> my5-backend@1.0.0 start /hdd/hdd21/my5/git/my5-backend
> nodemon src/main.js
[33m[nodemon] 1.18.9[39m
[33m[nodemon] to restart at any time, enter `rs`[39m
[33m[nodemon] watching: *.*[39m
[32m[nodemon] starting `node src/main.js`[39m
internal/modules/cjs/loader.js:605
throw err;
^
Error: Cannot find module 'multer'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:603:15)
at Function.Module._load (internal/modules/cjs/loader.js:529:25)
at Module.require (internal/modules/cjs/loader.js:657:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (/hdd/hdd21/my5/git/my5-backend/src/main.js:12:16)
at Module._compile (internal/modules/cjs/loader.js:721:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
at Function.Module._load (internal/modules/cjs/loader.js:552:3)
[31m[nodemon] app crashed - waiting for file changes before starting...[39m
^C
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ p npm install
[?25l[[90m..................[0m] | rollbackFailedOptional: [34;40mverb[0m [35mnpm-session[0m 96e390589500a464[0m[K
[[7m [27m[90m.................[0m] | preinstall:my5-backend: [32minfo[0m [35mlifecycle[0m my5-backend@1.0.0~preinstall: my5-backend@1.[0m[K
[[7m [27m[90m.................[0m] | preinstall:my5-backend: [32minfo[0m [35mlifecycle[0m my5-backend@1.0.0~preinstall: my5-backend@1.[0m[K
[[7m [27m[90m.................[0m] | preinstall:my5-backend: [32minfo[0m [35mlifecycle[0m my5-backend@1.0.0~preinstall: my5-backend@1.[0m[K
[[7m [27m[90m.................[0m] | preinstall:my5-backend: [32minfo[0m [35mlifecycle[0m my5-backend@1.0.0~preinstall: my5-backend@1.[0m[K
[[7m [27m[90m.................[0m] | preinstall:my5-backend: [32minfo[0m [35mlifecycle[0m my5-backend@1.0.0~preinstall: my5-backend@1.[0m[K
[[7m [27m[90m.................[0m] | preinstall:my5-backend: [32minfo[0m [35mlifecycle[0m my5-backend@1.0.0~preinstall: my5-backend@1.[0m[K
[[7m [27m[90m.................[0m] | preinstall:my5-backend: [32minfo[0m [35mlifecycle[0m my5-backend@1.0.0~preinstall: my5-backend@1.[0m[K
[[7m [27m[90m.................[0m] | preinstall:my5-backend: [32minfo[0m [35mlifecycle[0m my5-backend@1.0.0~preinstall: my5-backend@1.[0m[K
[[7m [27m[90m.................[0m] | preinstall:my5-backend: [32minfo[0m [35mlifecycle[0m my5-backend@1.0.0~preinstall: my5-backend@1.[0m[K
[[7m [27m[90m.................[0m] | preinstall:my5-backend: [32minfo[0m [35mlifecycle[0m my5-backend@1.0.0~preinstall: my5-backend@1.[0m[K
[[7m [27m[90m.................[0m] | preinstall:my5-backend: [32minfo[0m [35mlifecycle[0m my5-backend@1.0.0~preinstall: my5-backend@1.[0m[K
[[7m [27m[90m.................[0m] | preinstall:my5-backend: [32minfo[0m [35mlifecycle[0m my5-backend@1.0.0~preinstall: my5-backend@1.[0m[K
[[7m [27m[90m.................[0m] | preinstall:my5-backend: [32minfo[0m [35mlifecycle[0m my5-backend@1.0.0~preinstall: my5-backend@1.[0m[K
[[7m [27m[90m.................[0m] / loadIdealTree:loadAllDepsIntoIdealTree: [7msill[0m [35minstall[0m loadIdealTree[0m[K
[[7m [27m[90m................[0m] \ loadDep:stream-meter: [7msill[0m [35minstall[0m loadAllDepsIntoIdealTree[0m[K
[[7m [27m[90m................[0m] \ loadDep:tunnel-ssh: [7msill[0m [35minstall[0m loadAllDepsIntoIdealTree[0m[K
[[7m [27m[90m...............[0m] \ loadDep:type-is: [7msill[0m [35minstall[0m loadAllDepsIntoIdealTree[0m[K
[[7m [27m[90m...............[0m] \ loadDep:upath: [7msill[0m [35minstall[0m loadAllDepsIntoIdealTree[0m[K
[[7m [27m[90m...............[0m] \ loadDep:isobject: [7msill[0m [35minstall[0m loadAllDepsIntoIdealTree[0m[K
[[7m [27m[90m...............[0m] \ loadDep:remove-trailing-separator: [7msill[0m [35minstall[0m loadAllDepsIntoIdealTree[0m[K
[[7m [27m[90m..............[0m] \ loadDep:widest-line: [7msill[0m [35minstall[0m loadAllDepsIntoIdealTree[0m[K
[[7m [27m[90m..............[0m] \ loadDep:source-map: [7msill[0m [35minstall[0m loadAllDepsIntoIdealTree[0m[K
[[7m [27m[90m..............[0m] \ loadDep:is-extendable: [7msill[0m [35minstall[0m loadAllDepsIntoIdealTree[0m[K
[[7m [27m[90m..............[0m] \ loadDep:babel-types: [7msill[0m [35minstall[0m loadAllDepsIntoIdealTree[0m[K
[[7m [27m[90m.............[0m] \ loadDep:yargs: [7msill[0m [35minstall[0m loadAllDepsIntoIdealTree[0m[K
[[7m [27m[90m.............[0m] \ loadDep:strip-bom: [7msill[0m [35minstall[0m loadAllDepsIntoIdealTree[0m[K
[[7m [27m[90m.............[0m] \ loadDep:wordwrap: [7msill[0m [35minstall[0m loadAllDepsIntoIdealTree[0m[K
[[7m [27m[90m.............[0m] \ loadDep:async-limiter: [7msill[0m [35minstall[0m loadAllDepsIntoIdealTree[0m[K
[[7m [27m[90m.............[0m] \ loadDep:regex-cache: [7msill[0m [35minstall[0m loadAllDepsIntoIdealTree[0m[K
[[7m [27m[90m.............[0m] \ loadDep:strip-ansi: [7msill[0m [35minstall[0m loadAllDepsIntoIdealTree[0m[K
[[7m [27m[90m...........[0m] | diffTrees: [7msill[0m [35minstall[0m generateActionsToTake[0m[K
[[7m [27m[90m...........[0m] | diffTrees: [7msill[0m [35minstall[0m generateActionsToTake[0m[K
[[7m [27m[90m...........[0m] \ postinstall: [7msill[0m [35minstall[0m executeActions[0m[K
[K[?25h[37;40mnpm[0m [0m[30;43mWARN[0m[35m[0m my5-backend@1.0.0 No description
[0m
[37;40mnpm[0m [0m[31;40mERR![0m [0m[35mpath[0m /home/my5
[0m[37;40mnpm[0m [0m[31;40mERR![0m [0m[35mcode[0m EACCES
[0m[37;40mnpm[0m [0m[31;40mERR![0m [0m[35merrno[0m -13
[0m[37;40mnpm[0m [0m[31;40mERR![0m [0m[35msyscall[0m mkdir
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m Error: EACCES: permission denied, mkdir '/home/my5'
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m { [Error: EACCES: permission denied, mkdir '/home/my5']
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m stack: "Error: EACCES: permission denied, mkdir '/home/my5'",
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m errno: -13,
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m code: 'EACCES',
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m syscall: 'mkdir',
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m path: '/home/my5' }
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m The operation was rejected by your operating system.
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m It is likely you do not have the permissions to access this file as the current user
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m If you believe this might be a permissions issue, please double-check the
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m permissions of the file and its containing directories, or try running
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m the command again as root/Administrator (though this is not recommended).
[0mmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$ ls -la
total 404
drwxr-xr-x 6 my5 my5 4096 Feb 26 00:39 .
drwxr-xr-x 4 my5 my5 4096 Feb 13 23:04 ..
-rw-r--r-- 1 my5 my5 282 Feb 19 22:03 .env
drwxr-xr-x 8 my5 my5 4096 Feb 26 00:39 .git
-rw-r--r-- 1 my5 my5 32 Feb 19 22:02 .gitignore
-rw-r--r-- 1 my5 my5 124 Feb 13 23:04 .prettierrc
-rw-r--r-- 1 my5 my5 299 Feb 19 22:02 database.json
-rw-r--r-- 1 my5 my5 662 Feb 13 23:04 db
-rw-r--r-- 1 my5 my5 1188 Feb 13 23:04 fill_db.js
-rw-r--r-- 1 my5 my5 492 Feb 13 23:04 jwtPrivate.key
-rw-r--r-- 1 my5 my5 181 Feb 13 23:04 jwtPublic.key
drwxr-xr-x 2 my5 my5 4096 Feb 26 00:39 migrations
-rwxr-xr-x 1 my5 my5 66 Feb 13 23:12 node.sh
drwxr-xr-x 639 my5 my5 20480 Feb 13 23:15 node_modules
-rw-r--r-- 1 root root 283181 Feb 26 00:39 package-lock.json
-rw-r--r-- 1 root root 1252 Feb 26 00:39 package.json
-rw-r--r-- 1 root root 34000 Feb 26 00:41 screenlog.0
drwxr-xr-x 7 my5 my5 4096 Feb 26 00:39 src
-rw-r--r-- 1 my5 my5 147 Feb 13 23:04 tmp.js
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$
[Kmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$
[Kmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$
[Kmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$
[Kmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$
[Kmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$
[Kmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$
[Kmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$
[Kmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$
[Kmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$
[Kmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$ ls -lanpm install[2Pstartode src/main.js [8Ppm startinstall[5Pls -la[Kc npm start
> my5-backend@1.0.0 start /hdd/hdd21/my5/git/my5-backend
> nodemon src/main.js
[33m[nodemon] 1.18.9[39m
[33m[nodemon] to restart at any time, enter `rs`[39m
[33m[nodemon] watching: *.*[39m
[32m[nodemon] starting `node src/main.js`[39m
Listening on port 13255
TypeError: Cannot read property 'fileName' of undefined
at app.post (/hdd/hdd21/my5/git/my5-backend/src/main.js:100:108)
at Layer.handle [as handle_request] (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/layer.js:95:5)
at next (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/route.js:137:13)
at multerMiddleware (/hdd/hdd21/my5/git/my5-backend/node_modules/multer/lib/make-middleware.js:18:41)
at Layer.handle [as handle_request] (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/layer.js:95:5)
at next (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/route.js:137:13)
at jwt.verify (/hdd/hdd21/my5/git/my5-backend/src/authMiddleware.js:20:9)
at /hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:206:12
at getSecret (/hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:80:14)
at Object.module.exports [as verify] (/hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:84:10)
^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^C
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ git npm start
> my5-backend@1.0.0 start /hdd/hdd21/my5/git/my5-backend
> nodemon src/main.js
[33m[nodemon] 1.18.9[39m
[33m[nodemon] to restart at any time, enter `rs`[39m
[33m[nodemon] watching: *.*[39m
[32m[nodemon] starting `node src/main.js`[39m
Listening on port 13255
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] starting `node src/main.js`[39m
Listening on port 13255
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] starting `node src/main.js`[39m
Listening on port 13255
^C
You have new mail in /var/spool/mail/root
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ npm start
> my5-backend@1.0.0 start /hdd/hdd21/my5/git/my5-backend
> nodemon src/main.js
[33m[nodemon] 1.18.9[39m
[33m[nodemon] to restart at any time, enter `rs`[39m
[33m[nodemon] watching: *.*[39m
[32m[nodemon] starting `node src/main.js`[39m
Listening on port 13255
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] starting `node src/main.js`[39m
Listening on port 13255
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] starting `node src/main.js`[39m
Listening on port 13255
error { JsonWebTokenError: jwt audience invalid. expected: https://enter.vlevski.eu/
at /hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:160:21
at getSecret (/hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:80:14)
at Object.module.exports [as verify] (/hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:84:10)
at authMiddleware (/hdd/hdd21/my5/git/my5-backend/src/authMiddleware.js:13:9)
at Layer.handle [as handle_request] (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/layer.js:95:5)
at next (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/layer.js:95:5)
at /hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/index.js:335:12)
name: [32m'JsonWebTokenError'[39m,
message: [32m'jwt audience invalid. expected: https://enter.vlevski.eu/'[39m }
error { JsonWebTokenError: jwt audience invalid. expected: https://enter.vlevski.eu/
at /hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:160:21
at getSecret (/hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:80:14)
at Object.module.exports [as verify] (/hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:84:10)
at authMiddleware (/hdd/hdd21/my5/git/my5-backend/src/authMiddleware.js:13:9)
at Layer.handle [as handle_request] (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/layer.js:95:5)
at next (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/layer.js:95:5)
at /hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/index.js:335:12)
name: [32m'JsonWebTokenError'[39m,
message: [32m'jwt audience invalid. expected: https://enter.vlevski.eu/'[39m }
error { JsonWebTokenError: jwt audience invalid. expected: https://enter.vlevski.eu/
at /hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:160:21
at getSecret (/hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:80:14)
at Object.module.exports [as verify] (/hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:84:10)
at authMiddleware (/hdd/hdd21/my5/git/my5-backend/src/authMiddleware.js:13:9)
at Layer.handle [as handle_request] (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/layer.js:95:5)
at next (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/layer.js:95:5)
at /hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/index.js:335:12)
name: [32m'JsonWebTokenError'[39m,
message: [32m'jwt audience invalid. expected: https://enter.vlevski.eu/'[39m }
error { JsonWebTokenError: jwt audience invalid. expected: https://enter.vlevski.eu/
at /hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:160:21
at getSecret (/hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:80:14)
at Object.module.exports [as verify] (/hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:84:10)
at authMiddleware (/hdd/hdd21/my5/git/my5-backend/src/authMiddleware.js:13:9)
at Layer.handle [as handle_request] (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/layer.js:95:5)
at next (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/layer.js:95:5)
at /hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/index.js:335:12)
name: [32m'JsonWebTokenError'[39m,
message: [32m'jwt audience invalid. expected: https://enter.vlevski.eu/'[39m }
error { JsonWebTokenError: jwt audience invalid. expected: https://enter.vlevski.eu/
at /hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:160:21
at getSecret (/hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:80:14)
at Object.module.exports [as verify] (/hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:84:10)
at authMiddleware (/hdd/hdd21/my5/git/my5-backend/src/authMiddleware.js:13:9)
at Layer.handle [as handle_request] (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/layer.js:95:5)
at next (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/layer.js:95:5)
at /hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/index.js:335:12)
name: [32m'JsonWebTokenError'[39m,
message: [32m'jwt audience invalid. expected: https://enter.vlevski.eu/'[39m }
error { JsonWebTokenError: jwt audience invalid. expected: https://enter.vlevski.eu/
at /hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:160:21
at getSecret (/hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:80:14)
at Object.module.exports [as verify] (/hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:84:10)
at authMiddleware (/hdd/hdd21/my5/git/my5-backend/src/authMiddleware.js:13:9)
at Layer.handle [as handle_request] (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/layer.js:95:5)
at next (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/layer.js:95:5)
at /hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/index.js:335:12)
name: [32m'JsonWebTokenError'[39m,
message: [32m'jwt audience invalid. expected: https://enter.vlevski.eu/'[39m }
error { JsonWebTokenError: jwt audience invalid. expected: https://enter.vlevski.eu/
at /hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:160:21
at getSecret (/hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:80:14)
at Object.module.exports [as verify] (/hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:84:10)
at authMiddleware (/hdd/hdd21/my5/git/my5-backend/src/authMiddleware.js:13:9)
at Layer.handle [as handle_request] (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/layer.js:95:5)
at next (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/layer.js:95:5)
at /hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/index.js:335:12)
name: [32m'JsonWebTokenError'[39m,
message: [32m'jwt audience invalid. expected: https://enter.vlevski.eu/'[39m }
^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^C
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ ^C
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ npm start
> my5-backend@1.0.0 start /hdd/hdd21/my5/git/my5-backend
> nodemon src/main.js
[33m[nodemon] 1.18.9[39m
[33m[nodemon] to restart at any time, enter `rs`[39m
[33m[nodemon] watching: *.*[39m
[32m[nodemon] starting `node src/main.js`[39m
Listening on port 13255
1
2
3
1
2
3
error { JsonWebTokenError: jwt audience invalid. expected: https://enter.vlevski.eu/
at /hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:160:21
at getSecret (/hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:80:14)
at Object.module.exports [as verify] (/hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:84:10)
at authMiddleware (/hdd/hdd21/my5/git/my5-backend/src/authMiddleware.js:13:9)
at Layer.handle [as handle_request] (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/layer.js:95:5)
at next (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/layer.js:95:5)
at /hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/index.js:335:12)
name: [32m'JsonWebTokenError'[39m,
message: [32m'jwt audience invalid. expected: https://enter.vlevski.eu/'[39m }
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] starting `node src/main.js`[39m
/hdd/hdd21/my5/git/my5-backend/src/login.js:22
console.log('valid', valid');
^^^^^^^^^^^
SyntaxError: Invalid or unexpected token
at new Script (vm.js:84:7)
at createScript (vm.js:264:10)
at Object.runInThisContext (vm.js:312:10)
at Module._compile (internal/modules/cjs/loader.js:684:28)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
at Function.Module._load (internal/modules/cjs/loader.js:552:3)
at Module.require (internal/modules/cjs/loader.js:657:17)
at require (internal/modules/cjs/helpers.js:22:18)
[31m[nodemon] app crashed - waiting for file changes before starting...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] starting `node src/main.js`[39m
Listening on port 13255
1
2
3
valid false
1
2
3
valid true
error { JsonWebTokenError: jwt audience invalid. expected: https://enter.vlevski.eu/
at /hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:160:21
at getSecret (/hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:80:14)
at Object.module.exports [as verify] (/hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:84:10)
at authMiddleware (/hdd/hdd21/my5/git/my5-backend/src/authMiddleware.js:13:9)
at Layer.handle [as handle_request] (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/layer.js:95:5)
at next (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/layer.js:95:5)
at /hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/index.js:335:12)
name: [32m'JsonWebTokenError'[39m,
message: [32m'jwt audience invalid. expected: https://enter.vlevski.eu/'[39m }
a[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] starting `node src/main.js`[39m
Listening on port 13255
error { JsonWebTokenError: jwt audience invalid. expected: https://enter.vlevski.eu/
at /hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:160:21
at getSecret (/hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:80:14)
at Object.module.exports [as verify] (/hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:84:10)
at authMiddleware (/hdd/hdd21/my5/git/my5-backend/src/authMiddleware.js:13:9)
at Layer.handle [as handle_request] (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/layer.js:95:5)
at next (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/layer.js:95:5)
at /hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/index.js:335:12)
name: [32m'JsonWebTokenError'[39m,
message: [32m'jwt audience invalid. expected: https://enter.vlevski.eu/'[39m }
1
2
3
jwt eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJwaW4iOiIxZjlhMGMyNWY0NDI0ZmVmMTA4ZTM2NzIzZmQ4NTA2NmZhNDYxODI0IiwiaWRlbnRpZmllciI6IjI1NzQ1NzAwMDEiLCJ0eXBlIjoic3R1ZGVudCIsImlhdCI6MTU1MTIxMjg0MiwiZXhwIjoxNTUxMjU2MDQyLCJhdWQiOiJodHRwczovL2VudGVyLnZsZXZza2kuZXUvIiwiaXNzIjoiTXk1In0.sLftwkNhBUU7Wq34lhrlAZc-s68Nsa0GqtNju8hVJ-leeMGi0VFnQhC5cFr_q1-p54HpUSDDjI2PQl9asU2xUg
valid false
1
2
3
jwt eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJwaW4iOiIxZjlhMGMyNWY0NDI0ZmVmMTA4ZTM2NzIzZmQ4NTA2NmZhNDYxODI0IiwiaWRlbnRpZmllciI6IjI1NzQ1NzAwMDEiLCJ0eXBlIjoic3R1ZGVudCIsImlhdCI6MTU1MTIxMjg0NSwiZXhwIjoxNTUxMjU2MDQ1LCJhdWQiOiJodHRwczovL2VudGVyLnZsZXZza2kuZXUvIiwiaXNzIjoiTXk1In0.uyhwn8rLyQ7k3xwWjADytk_fSQFQVW61nQC3rqH7jclcJCDJ61rPBw_DvisOisMPxyaS5E_FR9OZvblNc8pvEA
valid true
error { JsonWebTokenError: jwt audience invalid. expected: https://enter.vlevski.eu/
at /hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:160:21
at getSecret (/hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:80:14)
at Object.module.exports [as verify] (/hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:84:10)
at authMiddleware (/hdd/hdd21/my5/git/my5-backend/src/authMiddleware.js:13:9)
at Layer.handle [as handle_request] (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/layer.js:95:5)
at next (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/layer.js:95:5)
at /hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/index.js:335:12)
name: [32m'JsonWebTokenError'[39m,
message: [32m'jwt audience invalid. expected: https://enter.vlevski.eu/'[39m }
1
2
3
jwt eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJwaW4iOiIxZjlhMGMyNWY0NDI0ZmVmMTA4ZTM2NzIzZmQ4NTA2NmZhNDYxODI0IiwiaWRlbnRpZmllciI6IjI1NzQ1NzAwMDEiLCJ0eXBlIjoic3R1ZGVudCIsImlhdCI6MTU1MTIxMjk5MSwiZXhwIjoxNTUxMjU2MTkxLCJhdWQiOiJodHRwczovL2VudGVyLnZsZXZza2kuZXUvIiwiaXNzIjoiTXk1In0.nrj6sYSXDBzZT-ZHeCaN9vNBTzj47aecbqgurkXboE4D3FP-Y70Y6TAp2CjxtVO8aXNj2qlZvJLNS2V6vgqbcw
valid true
error { JsonWebTokenError: jwt audience invalid. expected: https://enter.vlevski.eu/
at /hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:160:21
at getSecret (/hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:80:14)
at Object.module.exports [as verify] (/hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:84:10)
at authMiddleware (/hdd/hdd21/my5/git/my5-backend/src/authMiddleware.js:13:9)
at Layer.handle [as handle_request] (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/layer.js:95:5)
at next (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/layer.js:95:5)
at /hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/index.js:335:12)
name: [32m'JsonWebTokenError'[39m,
message: [32m'jwt audience invalid. expected: https://enter.vlevski.eu/'[39m }
1
2
3
jwt eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJwaW4iOiIxZjlhMGMyNWY0NDI0ZmVmMTA4ZTM2NzIzZmQ4NTA2NmZhNDYxODI0IiwiaWRlbnRpZmllciI6IjI1NzQ1NzAwMDEiLCJ0eXBlIjoic3R1ZGVudCIsImlhdCI6MTU1MTIxMzAxMiwiZXhwIjoxNTUxMjU2MjEyLCJhdWQiOiJodHRwczovL2VudGVyLnZsZXZza2kuZXUvIiwiaXNzIjoiTXk1In0.xDnpq4EvNM03pyZwKftmuWO0EhAUmMWSDpNvHNRU18rR7WZKhDIlqNoXR7yFcmARxbN5wpd2S1YF9N4LwhnqdQ
valid true
1
2
3
jwt eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJwaW4iOiIxZjlhMGMyNWY0NDI0ZmVmMTA4ZTM2NzIzZmQ4NTA2NmZhNDYxODI0IiwiaWRlbnRpZmllciI6IjI1NzQ1NzAwMDEiLCJ0eXBlIjoic3R1ZGVudCIsImlhdCI6MTU1MTIxMzAzNywiZXhwIjoxNTUxMjU2MjM3LCJhdWQiOiJodHRwczovL2VudGVyLnZsZXZza2kuZXUvIiwiaXNzIjoiTXk1In0.fLLPcJTymMf16qvV-WX1jAWPvtU7bS5WcwPFlOA4Mb2jIcBKbiVMm6kXsFPcAgvz608ku1S4eEQbc71Ofzy06w
valid true
error { JsonWebTokenError: jwt audience invalid. expected: https://enter.vlevski.eu/
at /hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:160:21
at getSecret (/hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:80:14)
at Object.module.exports [as verify] (/hdd/hdd21/my5/git/my5-backend/node_modules/jsonwebtoken/verify.js:84:10)
at authMiddleware (/hdd/hdd21/my5/git/my5-backend/src/authMiddleware.js:13:9)
at Layer.handle [as handle_request] (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/layer.js:95:5)
at next (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/layer.js:95:5)
at /hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/hdd/hdd21/my5/git/my5-backend/node_modules/express/lib/router/index.js:335:12)
name: [32m'JsonWebTokenError'[39m,
message: [32m'jwt audience invalid. expected: https://enter.vlevski.eu/'[39m }
1
2
3
jwt eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJwaW4iOiI5NDE0MjEyZTVmYTg5ZDg4ODNhODQyYmQ4ZjkyNzZmNDQ5NmU0MDJlIiwiaWRlbnRpZmllciI6IjEwNzQ2MDAwMTEiLCJ0eXBlIjoic3R1ZGVudCIsImlhdCI6MTU1MTIxMzA1MCwiZXhwIjoxNTUxMjU2MjUwLCJhdWQiOiJodHRwczovL2VudGVyLnZsZXZza2kuZXUvIiwiaXNzIjoiTXk1In0.Wlajc5UDx18JZ3Ek0vBmkFd94Qyu-y65P2KM80bEkxL8soAKg0y-Jqox-9OMKikyQIv3SXSe7-XrTMRvdtjeCQ
valid true
Error: ENOENT: no such file or directory, open '../../../uploads/9414212e5fa89d8883a842bd8f9276f4496e402e/The.Flash.2014.S05E14.PROPER.720p.HDTV.x264-SHiTSPREAD.HI.srt'
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] starting `node src/main.js`[39m
Listening on port 13255
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] starting `node src/main.js`[39m
Listening on port 13255
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] starting `node src/main.js`[39m
Listening on port 13255
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] starting `node src/main.js`[39m
Listening on port 13255
^[[A^C
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ npm start
> my5-backend@1.0.0 start /hdd/hdd21/my5/git/my5-backend
> nodemon src/main.js
[33m[nodemon] 1.18.9[39m
[33m[nodemon] to restart at any time, enter `rs`[39m
[33m[nodemon] watching: *.*[39m
[32m[nodemon] starting `node src/main.js`[39m
Listening on port 13255
Error: ENOENT: no such file or directory, open '../../../uploads/262b8e0a7b5c974573f01141bb5b093d7d8a0dab/1.png'
Error: ENOENT: no such file or directory, open '../../../uploads/bd7b1c5a8abf105a6d55553c00467008c203bcef/pc.pptx'
Error: ENOENT: no such file or directory, open '../../../uploads/bd7b1c5a8abf105a6d55553c00467008c203bcef/a.xlsx'
Error: ENOENT: no such file or directory, open '../../../uploads/00f7f487c20e93d3307d5693f398d7806987444c/3mart.psd'
Error: ENOENT: no such file or directory, open '../../../uploads/068f2ae8acde54719b5a298c795018b9be456023/10743954528_IMG_4058.jpg'
Error: ENOENT: no such file or directory, open '../../../uploads/068f2ae8acde54719b5a298c795018b9be456023/10743954528_IMG_4058.jpg'
Error: ENOENT: no such file or directory, open '../../../uploads/1f9a0c25f4424fef108e36723fd85066fa461824/The.Flash.2014.S05E14.PROPER.720p.HDTV.x264-SHiTSPREAD[ettv].mkv'
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] starting `node src/main.js`[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] starting `node src/main.js`[39m
Listening on port 13255
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] starting `node src/main.js`[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] starting `node src/main.js`[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] starting `node src/main.js`[39m
Listening on port 13255
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] starting `node src/main.js`[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] starting `node src/main.js`[39m
Listening on port 13255
rs
[32m[nodemon] starting `node src/main.js`[39m
Listening on port 13255
error rejem
Error: ENOENT: no such file or directory, open '../../../uploads/a9f3fab9db19406987bb39a0705078a3bad43476/TodayMix.mp3'
Error: ENOENT: no such file or directory, open '../../../uploads/a9f3fab9db19406987bb39a0705078a3bad43476/TodayMix.mp3'
q /hdd/hdd21/my5/git/my5-backend/src/getFiles/index.js:22
if (err) throw err;
^
Error: EEXIST: file already exists, mkdir '../../../uploads/a9f3fab9db19406987bb39a0705078a3bad43476'
[31m[nodemon] app crashed - waiting for file changes before starting...[39m
rs
[32m[nodemon] starting `node src/main.js`[39m
Listening on port 13255
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] starting `node src/main.js`[39m
[32m[nodemon] restarting due to changes...[39m
[32m[nodemon] starting `node src/main.js`[39m
Listening on port 13255
rs
[32m[nodemon] starting `node src/main.js`[39m
Listening on port 13255
originalName doghacker3.jpg
originalName 6. Tree Traversals.mp4
originalName 1logo mon Slavi Kaloferov - Slavi Kaloferov.ai
originalName putty.exe
/hdd/hdd21/my5/git/my5-backend/node_modules/mysql/lib/protocol/Parser.js:80
throw err; // Rethrow non-MySQL errors
^
TypeError: Cannot read property 'id' of undefined
at pathExists (/hdd/hdd21/my5/git/my5-backend/src/main.js:140:86)
at Query.db.query (/hdd/hdd21/my5/git/my5-backend/src/utils/pathExists.js:28:7)
at Query.<anonymous> (/hdd/hdd21/my5/git/my5-backend/node_modules/mysql/lib/Connection.js:502:10)
at Query._callback (/hdd/hdd21/my5/git/my5-backend/node_modules/mysql/lib/Connection.js:468:16)
at Query.Sequence.end (/hdd/hdd21/my5/git/my5-backend/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24)
at Query._handleFinalResultPacket (/hdd/hdd21/my5/git/my5-backend/node_modules/mysql/lib/protocol/sequences/Query.js:139:8)
at Query.EofPacket (/hdd/hdd21/my5/git/my5-backend/node_modules/mysql/lib/protocol/sequences/Query.js:123:8)
at Protocol._parsePacket (/hdd/hdd21/my5/git/my5-backend/node_modules/mysql/lib/protocol/Protocol.js:278:23)
at Parser.write (/hdd/hdd21/my5/git/my5-backend/node_modules/mysql/lib/protocol/Parser.js:76:12)
at Protocol.write (/hdd/hdd21/my5/git/my5-backend/node_modules/mysql/lib/protocol/Protocol.js:38:16)
[31m[nodemon] app crashed - waiting for file changes before starting...[39m
┌───────────────────────────────────────────────────────┐
│ [33m nodemon update check failed [39m │
│ Try running with [36msudo[39m or get access │
│ to the local update config store via │
│[36m sudo chown -R $USER:$(id -gn $USER) /home/my5/.config [39m│
└───────────────────────────────────────────────────────┘
[37;40mnpm[0m [0m[31;40mERR![0m [0m[35mcode[0m ELIFECYCLE
[0m[37;40mnpm[0m [0m[31;40mERR![0m [0m[35merrno[0m 143
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m my5-backend@1.0.0 start: `nodemon src/main.js`
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m Exit status 143
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m Failed at the my5-backend@1.0.0 start script.
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m This is probably not a problem with npm. There is likely additional logging output above.
[0mYou have new mail in /var/spool/mail/root
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$
[Kmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$ npm start[Knpm start[3Pls -lanpm install[5Pls -la mc
(mc:39481): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
The overwriting error message was: Cannot create /home/my5/.cache/mc directory
(mc:39481): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
The overwriting error message was: Cannot create /home/my5/.local/share/mc directory
Failed to run:
Cannot create /home/my5/.config/mc directory
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ mc
(mc:39482): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
The overwriting error message was: Cannot create /home/my5/.cache/mc directory
(mc:39482): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
The overwriting error message was: Cannot create /home/my5/.local/share/mc directory
Failed to run:
Cannot create /home/my5/.config/mc directory
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ ^C
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ ^C
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ ^C
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ ^C
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ ^C
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ mc
(mc:39483): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
The overwriting error message was: Cannot create /home/my5/.cache/mc directory
(mc:39483): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
The overwriting error message was: Cannot create /home/my5/.local/share/mc directory
Failed to run:
Cannot create /home/my5/.config/mc directory
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ ^C
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ ^C
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ ^C
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ ^C
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ ^C
You have new mail in /var/spool/mail/root
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ ^C
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$
[Kmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$
[Kmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$
[Kmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$
[Kmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$
[Kmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$
[Kmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$
[Kmy5@darkstar:/hdd/hdd21/my5/git/my5-backend$ who
root pts/0 2019-03-07 08:53 (46.35.184.190)
root pts/5 2019-02-16 23:26 (94-155-68-253:S.0)
root pts/6 2019-03-07 09:44 (46.35.184.190)
You have new mail in /var/spool/mail/root
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ gistory whoami
my5
You have new mail in /var/spool/mail/root
my5@darkstar:/hdd/hdd21/my5/git/my5-backend$ npm start
> my5-backend@1.0.0 start /hdd/hdd21/my5/git/my5-backend
> nodemon src/main.js
[33m[nodemon] 1.18.9[39m
[33m[nodemon] to restart at any time, enter `rs`[39m
[33m[nodemon] watching: *.*[39m
[32m[nodemon] starting `node src/main.js`[39m
Listening on port 13255
/hdd/hdd21/my5/git/my5-backend/src/getFiles/index.js:22
if (err) throw err;
^
Error: EEXIST: file already exists, mkdir '../../../uploads/a9f3fab9db19406987bb39a0705078a3bad43476'
[31m[nodemon] app crashed - waiting for file changes before starting...[39m
rs
[32m[nodemon] starting `node src/main.js`[39m
Listening on port 13255
originalName 10743954528_IMG_4058.jpg