LearningLocker / learninglocker

Learning Locker - The Open Source Learning Record Store. Started in 2014.
https://learningpool.com/solutions/learning-record-store-learning-locker/learning-locker-community-overview/
GNU General Public License v3.0
553 stars 276 forks source link

Issues in installation using Install Script #1488

Open mateenQureshi opened 4 years ago

mateenQureshi commented 4 years ago

What version were you using?

Ubuntu Version: 18, LL Version: 2, User: root

What steps can we follow to reproduce the behaviour?

Download & execute deployll.sh. It will fail to install the LL successfully.

What is the actual behaviour?

When starting services, it says "pm2 command not found".

What is the expected behavior?

Install script should successfully install LL on Ubuntu 18.

Is there any additional information that will help us replicate/understand the problem?

Error logs:

yarn install v1.19.2
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
[2/4] Fetching packages...
warning Pattern ["colour@latest"] is trying to unpack in the same destination "/usr/local/share/.cache/yarn/v6/npm-colour-0.7.1-9cb169917ec5d12c0736d3e8685746df1cadf778/node_modules/colour" as pattern ["colour@~0.7.1"]. This could result in non-deterministic behavior, skipping.
warning Pattern ["optjs@latest"] is trying to unpack in the same destination "/usr/local/share/.cache/yarn/v6/npm-optjs-3.2.2-69a6ce89c442a44403141ad2f9b370bd5bb6f4ee/node_modules/optjs" as pattern ["optjs@~3.2.2"]. This could result in non-deterministic behavior, skipping.
info fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > express-restify-mongoose@3.2.1" has incorrect peer dependency "mongoose@^4.0.0".
warning " > react-toolbox@2.0.0-beta.13" has unmet peer dependency "react-transition-group@^2.2.0".
warning "react-toolbox > react-css-themr@2.1.2" has incorrect peer dependency "react@^0.14.0 || ^15.0.0-0".
warning " > stats-webpack-plugin@0.4.3" has incorrect peer dependency "webpack@^1.0||^2.1.0-beta||^2.2.0-rc".
warning " > babel-loader@6.4.1" has incorrect peer dependency "webpack@1 || 2 || ^2.1.0-beta || ^2.2.0-rc".
warning " > mocha-webpack@0.7.0" has incorrect peer dependency "webpack@^1.12.13 || ^2.1.0-beta.15".
[4/4] Building fresh packages...
Done in 208.14s.
done!
[LL] adding pm2....
/root/.nvm/versions/node/v8.16.2/bin/pm2 -> /root/.nvm/versions/node/v8.16.2/lib/node_modules/pm2/bin/pm2
/root/.nvm/versions/node/v8.16.2/bin/pm2-dev -> /root/.nvm/versions/node/v8.16.2/lib/node_modules/pm2/bin/pm2-dev
/root/.nvm/versions/node/v8.16.2/bin/pm2-runtime -> /root/.nvm/versions/node/v8.16.2/lib/node_modules/pm2/bin/pm2-runtime
/root/.nvm/versions/node/v8.16.2/bin/pm2-docker -> /root/.nvm/versions/node/v8.16.2/lib/node_modules/pm2/bin/pm2-docker
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules/pm2/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

+ pm2@4.2.1
updated 1 package in 41.339s
done!
[LL] running yarn build-all (this can take a little while - don't worry, it's not broken)....
yarn run v1.19.2
$ babel-node api/build --release && babel-node ui/buildServer --release && babel-node ui/buildClient --release && babel-node cli/build --release && babel-node worker/build --release
[2019-12-11T14:56:58.619Z] Starting 'bundle...
[hard-source:core] HardSourceWebpackPlugin is writing to a new confighash path for the first time: /tmp/learninglocker/webapp/api/src/node_modules/.cache/hard-source/b23fdab6c814df35b0fcfb287a174288f83102bdf574da5bcaaf56eae02eaae1
(node:7973) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.
Hash: d26199b5db455caadc98
Version: webpack 3.12.0
Time: 9665ms
       Asset    Size  Chunks                    Chunk Names
    index.js  813 kB       0  [emitted]  [big]  server
index.js.map  884 kB       0  [emitted]         server
   [7] ./lib/logger.js 2.41 kB {0} [built]
   [9] external "immutable" 42 bytes {0} [not cacheable]
  [14] ./lib/services/auth/authInfoSelectors/getOrgFromAuthInfo.js 1.09 kB {0} [built]
  [41] ./api/src/auth/passport.js 12 kB {0} [built]
  [48] external "express" 42 bytes {0} [not cacheable]
 [147] ./api/src/server.js 1.95 kB {0} [built]
 [148] external "body-parser" 42 bytes {0} [not cacheable]
 [149] external "cookie-parser" 42 bytes {0} [not cacheable]
 [150] external "cors" 42 bytes {0} [not cacheable]
 [210] ./api/src/routes/HttpRoutes.js 20.2 kB {0} [built]
 [324] ./lib/models/personasImportTemplate.js 1.84 kB {0} [built]
 [325] ./lib/models/siteSettings.js 1.03 kB {0} [built]
 [326] ./api/src/routes/personas/personaRESTHandler.js 2.96 kB {0} [built]
 [329] ./api/src/routes/personas/personaIdentifierRESTHandler.js 3.17 kB {0} [built]
 [343] external "source-map-support" 42 bytes {0} [not cacheable]
    + 329 hidden modules
[2019-12-11T14:57:08.412Z] Finished 'bundle after 9793 ms
[2019-12-11T14:57:09.827Z] Starting 'bundle...
[hard-source:core] HardSourceWebpackPlugin is writing to a new confighash path for the first time: /tmp/learninglocker/webapp/ui/src/node_modules/.cache/hard-source/9d9a0f0252dcabb9c01ada16e618bc83fd6b1eee3fb9cfb93a3253a041525621
(node:8159) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.
(node:8159) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.
Hash: 7d2aacf27ee86d145ca1
Version: webpack 3.12.0
Time: 9692ms
       Asset       Size  Chunks                    Chunk Names
b50f6fa0.svg    3.95 kB          [emitted]         
59eaa5d1.svg  904 bytes          [emitted]         
d1a12a2a.svg  823 bytes          [emitted]         
1750e1f0.svg  979 bytes          [emitted]         
44b75ea7.svg    2.16 kB          [emitted]         
517b0b32.svg  970 bytes          [emitted]         
3b957f8d.svg    1.15 kB          [emitted]         
c1ebd950.svg  748 bytes          [emitted]         
bf7e0569.svg  854 bytes          [emitted]         
406ed8bc.svg    2.87 kB          [emitted]         
3c918298.svg    1.14 kB          [emitted]         
4df8de9f.svg    1.24 kB          [emitted]         
f257c83c.svg    1.69 kB          [emitted]         
c0ceb171.svg  793 bytes          [emitted]         
acc424cc.svg  967 bytes          [emitted]         
16659925.svg    2.51 kB          [emitted]         
ddf05959.svg    1.49 kB          [emitted]         
f6748d22.svg    1.73 kB          [emitted]         
    index.js     816 kB       0  [emitted]  [big]  server
index.js.map     946 kB       0  [emitted]         server
  [19] ./lib/logger.js 2.41 kB {0} [built]
  [25] external "babel-runtime/core-js/json/stringify" 42 bytes {0} [not cacheable]
  [67] ./ui/src/config.js 1.84 kB {0} [built]
 [138] ./ui/src/server.js 4.41 kB {0} [built]
 [143] external "helmet" 42 bytes {0} [not cacheable]
 [144] external "compression" 42 bytes {0} [not cacheable]
 [145] external "cookie-parser" 42 bytes {0} [not cacheable]
 [146] external "http-proxy" 42 bytes {0} [not cacheable]
 [147] external "path" 42 bytes {0} [not cacheable]
 [148] external "http" 42 bytes {0} [not cacheable]
 [149] external "morgan" 42 bytes {0} [not cacheable]
 [150] external "mkdirp" 42 bytes {0} [not cacheable]
 [151] external "file-stream-rotator" 42 bytes {0} [not cacheable]
 [152] ./ui/src/controllers/renderApp.js 2.91 kB {0} [built]
 [158] ./ui/src/controllers/renderDashboard.js 4.96 kB {0} [built]
    + 345 hidden modules
[2019-12-11T14:57:19.597Z] Finished 'bundle after 9770 ms
[2019-12-11T14:57:21.039Z] Starting 'bundle...
[hard-source:core] HardSourceWebpackPlugin is writing to a new confighash path for the first time: /tmp/learninglocker/webapp/ui/src/node_modules/.cache/hard-source/3b87c36544be6685b12b503c10bb1a3a1157348c29265bc5ae6db236b66ba0f2
(node:8289) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.
(node:8289) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.
(node:8289) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.
Hash: 4f43ab0c8690f9c57fa5
Version: webpack 3.12.0
Time: 98384ms
                                          Asset       Size  Chunks                    Chunk Names
                                   fe2a3e00.png    31.9 kB          [emitted]         
                                   59eaa5d1.svg  904 bytes          [emitted]         
                                   d1a12a2a.svg  823 bytes          [emitted]         
                                   1750e1f0.svg  979 bytes          [emitted]         
                                   44b75ea7.svg    2.16 kB          [emitted]         
                                   517b0b32.svg  970 bytes          [emitted]         
                                   3b957f8d.svg    1.15 kB          [emitted]         
                                   c1ebd950.svg  748 bytes          [emitted]         
                                   bf7e0569.svg  854 bytes          [emitted]         
                                   406ed8bc.svg    2.87 kB          [emitted]         
                                   b50f6fa0.svg    3.95 kB          [emitted]         
                                   4df8de9f.svg    1.24 kB          [emitted]         
                                   f257c83c.svg    1.69 kB          [emitted]         
                                   c0ceb171.svg  793 bytes          [emitted]         
                                   acc424cc.svg  967 bytes          [emitted]         
                                   16659925.svg    2.51 kB          [emitted]         
                                   ddf05959.svg    1.49 kB          [emitted]         
                                   f6748d22.svg    1.73 kB          [emitted]         
                                   b6998d80.png    7.97 kB          [emitted]         
                                   43cf88da.png     454 kB          [emitted]  [big]  
                                   73c47a88.svg  563 bytes          [emitted]         
                                   913d0640.svg  563 bytes          [emitted]         
                                   b9df680d.gif    1.57 kB          [emitted]         
                                   9b646d0c.png    2.36 kB          [emitted]         
                                   23de3de6.png    6.23 kB          [emitted]         
                                   b8e5fab7.png       3 kB          [emitted]         
                                   46affa78.png    2.75 kB          [emitted]         
                                   6c665aba.png    4.29 kB          [emitted]         
                                   eb4815ae.png    4.21 kB          [emitted]         
                                   c1e87320.png    3.96 kB          [emitted]         
                                   aad56972.png    6.84 kB          [emitted]         
                                   fa24198f.png    3.96 kB          [emitted]         
                                   1854cd8b.png      10 kB          [emitted]         
                                   33c9f5ce.png    21.1 kB          [emitted]         
                                   84aa5c51.png    6.16 kB          [emitted]         
                                   0183b297.png    2.66 kB          [emitted]         
                                   10cadaf1.png    6.21 kB          [emitted]         
                                   5e148e34.png    3.31 kB          [emitted]         
                                   8b6768d2.png     3.6 kB          [emitted]         
                                   891a4312.png    12.7 kB          [emitted]         
                                   f62189ce.png    27.4 kB          [emitted]         
                                   fd36d2f5.png    2.67 kB          [emitted]         
                                   99ef6f89.png    3.58 kB          [emitted]         
                                   8df8dfbb.png    14.8 kB          [emitted]         
                                   3c918298.svg    1.14 kB          [emitted]         
                                   32e9c28b.png    3.17 kB          [emitted]         
                                   7ca88e69.png     3.2 kB          [emitted]         
                                   38f6aabe.png    3.55 kB          [emitted]         
                            0.c2a1949a.chunk.js     886 kB       0  [emitted]  [big]  
                            1.f45303ff.chunk.js     291 kB       1  [emitted]  [big]  
                            2.132b7061.chunk.js     131 kB       2  [emitted]         
                            3.609026ce.chunk.js    34.6 kB       3  [emitted]         
                            4.00bef238.chunk.js      34 kB       4  [emitted]         
                            5.73622e3a.chunk.js    33.8 kB       5  [emitted]         
                            6.b7babe37.chunk.js    32.6 kB       6  [emitted]         
                             client.e9ed0f49.js     235 kB       7  [emitted]         client
                            8.95986f8d.chunk.js     1.4 MB       8  [emitted]  [big]  
                            9.434a42b8.chunk.js    1.19 MB       9  [emitted]  [big]  
                           10.74f297f5.chunk.js     462 kB      10  [emitted]  [big]  
                           11.467bae34.chunk.js     484 kB      11  [emitted]  [big]  
                           12.b6bf52da.chunk.js     424 kB      12  [emitted]  [big]  
                           13.5d0bcf3a.chunk.js     358 kB      13  [emitted]  [big]  
                           14.3294bd80.chunk.js     133 kB      14  [emitted]         
                           15.2a2247a3.chunk.js     203 kB      15  [emitted]         
                           16.3e825b85.chunk.js     175 kB      16  [emitted]         
                           17.f2971020.chunk.js     106 kB      17  [emitted]         
                           18.2cd43281.chunk.js     105 kB      18  [emitted]         
                           19.573c87d8.chunk.js     123 kB      19  [emitted]         
                           20.ede71221.chunk.js    6.84 kB      20  [emitted]         
                           21.5dfa5c04.chunk.js    25.2 kB      21  [emitted]         
                             vendor.50301df5.js    1.12 MB      22  [emitted]  [big]  vendor
                                static/logo.png    7.97 kB          [emitted]         
               static/logos/default/default.gif    1.57 kB          [emitted]         
                       static/register-logo.png       3 kB          [emitted]         
                           static/smallLogo.png    6.23 kB          [emitted]         
                           static/whiteLogo.png    2.36 kB          [emitted]         
                             static/favicon.png    3.07 kB          [emitted]         
  static/fonts/glyphicons-halflings-regular.svg     109 kB          [emitted]         
  static/fonts/glyphicons-halflings-regular.eot    20.1 kB          [emitted]         
                             static/favicon.ico     3.4 kB          [emitted]         
                                static/core.css     281 kB          [emitted]  [big]  
  static/fonts/glyphicons-halflings-regular.ttf    45.4 kB          [emitted]         
                      static/fonts/ionicons.eot     121 kB          [emitted]         
 static/fonts/glyphicons-halflings-regular.woff    23.4 kB          [emitted]         
static/fonts/glyphicons-halflings-regular.woff2      18 kB          [emitted]         
                      static/fonts/ionicons.ttf     189 kB          [emitted]         
                      static/fonts/ionicons.svg     334 kB          [emitted]  [big]  
                    static/fonts/material.woff2    47.6 kB          [emitted]         
                     static/fonts/ionicons.woff    67.9 kB          [emitted]         
  [26] ./node_modules/react/index.js 190 bytes {22} [built]
  [95] ./node_modules/babel-runtime/helpers/classCallCheck.js 208 bytes {22} [built]
 [104] ./node_modules/popsicle/dist/common.js 1.53 kB {22} [built]
 [105] ./node_modules/babel-runtime/helpers/jsx.js 1.46 kB {22} [built]
 [107] ./node_modules/babel-runtime/core-js/json/stringify.js 95 bytes {22} [built]
 [122] ./node_modules/redux/es/index.js + 15 modules 26.8 kB {22} [built]
 [250] ./node_modules/react-dom/index.js 1.36 kB {22} [built]
 [643] ./ui/src/utils/LLApiClient.js 9.67 kB {7} [built]
 [644] ./ui/src/client.js 2.29 kB {7} [built]
 [653] ./node_modules/babel-polyfill/lib/index.js 833 bytes {22} [built]
 [829] ./ui/src/components/Root/index.js 1.06 kB {7} [built]
 [840] ./ui/src/containers/App/index.js 3.11 kB {7} [built]
[1075] ./ui/src/redux/create.js 2.03 kB {7} [built]
[1086] ./lib/routes/index.js 3.48 kB {7} [built]
[1101] ./node_modules/router5/plugins/browser/index.js 6.31 kB {22} [built]
    + 2298 hidden modules
[2019-12-11T14:58:59.718Z] Finished 'bundle after 98679 ms
[2019-12-11T14:59:01.645Z] Starting 'bundle...
[hard-source:core] HardSourceWebpackPlugin is writing to a new confighash path for the first time: /tmp/learninglocker/webapp/cli/src/node_modules/.cache/hard-source/3cc6c9820342632590257dab1cad5fadbee1c41f4d41d0abc6a637833c40a14e
[2019-12-11T14:59:01.722Z] Starting 'bundle...
[hard-source:core] HardSourceWebpackPlugin is writing to a new confighash path for the first time: /tmp/learninglocker/webapp/cli/src/node_modules/.cache/hard-source/e8eb611110df5dc0e45ea00172e7a8475809693f036327b027a759d2f040e73b
(node:9361) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.
Hash: c97fdca86376a4cd6a00
Version: webpack 3.12.0
Time: 11100ms
       Asset    Size  Chunks                    Chunk Names
    index.js  273 kB       0  [emitted]  [big]  scheduler
index.js.map  282 kB       0  [emitted]         scheduler
   [0] external "babel-runtime/regenerator" 42 bytes {0} [not cacheable]
   [1] external "babel-runtime/helpers/asyncToGenerator" 42 bytes {0} [not cacheable]
   [3] external "mongoose" 42 bytes {0} [not cacheable]
   [6] ./lib/logger.js 2.41 kB {0} [built]
  [11] external "bluebird" 42 bytes {0} [not cacheable]
  [12] external "babel-runtime/helpers/toConsumableArray" 42 bytes {0} [not cacheable]
  [34] ./lib/connections/redis.js 2.55 kB {0} [built]
  [46] ./lib/helpers/cachePrefix.js 350 bytes {0} [built]
  [47] ./cli/src/scheduler.js 4.92 kB {0} [built]
  [48] ./cli/src/commands/expirationNotificationEmails.js 6 kB {0} [built]
 [103] external "ioredis" 42 bytes {0} [not cacheable]
 [115] ./lib/constants/expirationNotifications.js 392 bytes {0} [built]
 [116] ./cli/src/commands/orgUsageTracker.js 1.59 kB {0} [built]
 [117] ./lib/constants/orgUsageTracker.js 180 bytes {0} [built]
 [118] ./cli/src/scheduler/batchDelete.js 6.48 kB {0} [built]
    + 108 hidden modules
[2019-12-11T14:59:12.829Z] Finished 'bundle after 11107 ms
Hash: 5c9321d9c9f0c9798dcc
Version: webpack 3.12.0
Time: 11115ms
       Asset    Size  Chunks                    Chunk Names
    index.js  727 kB       0  [emitted]  [big]  server
index.js.map  771 kB       0  [emitted]         server
 [108] ./cli/src/server.js 11.2 kB {0} [built]
 [187] ./cli/src/commands/v1-migrations/migrateClientId.js 1.83 kB {0} [built]
 [202] ./cli/src/commands/migrateExportsToCSV.js 1.87 kB {0} [built]
 [203] ./cli/src/commands/migrateScopesToRoles.js 6.75 kB {0} [built]
 [205] ./cli/src/commands/v1-migrations/migrateTimestamps.js 1.95 kB {0} [built]
 [206] ./cli/src/commands/v1-migrations/migrateXAPIReadScope.js 1.18 kB {0} [built]
 [207] ./cli/src/commands/migrateDownloadPaths.js 1.33 kB {0} [built]
 [208] ./cli/src/commands/clearAggregationCache.js 1.66 kB {0} [built]
 [209] ./cli/src/commands/migrateVisualiseAxes.js 2.58 kB {0} [built]
 [212] ./cli/src/commands/migrateQueryBuilderCachesPath.js 3.05 kB {0} [built]
 [217] ./cli/src/commands/testStatementForwarding.js 2.82 kB {0} [built]
 [218] ./cli/src/commands/testQueryBuilderCache.js 2.79 kB {0} [built]
 [219] ./cli/src/commands/disableRegister.js 1.43 kB {0} [built]
 [247] ./cli/src/seed/index.js 6.16 kB {0} [built]
 [274] ./cli/src/commands/expirationNotificationEmails.js 6 kB {0} [built]
    + 263 hidden modules
[2019-12-11T14:59:12.832Z] Finished 'bundle after 11187 ms
[2019-12-11T14:59:14.032Z] Starting 'bundle...
[hard-source:core] HardSourceWebpackPlugin is writing to a new confighash path for the first time: /tmp/learninglocker/webapp/worker/src/node_modules/.cache/hard-source/677c06b4f2f5ae6a63a06d4b74008824690dbd872ecfba66a96ca202635b5c71
(node:9513) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.
Hash: 312176a0c480efef210b
Version: webpack 3.12.0
Time: 7099ms
       Asset    Size  Chunks                    Chunk Names
    index.js  594 kB       0  [emitted]  [big]  server
index.js.map  639 kB       0  [emitted]         server
   [4] ./lib/logger.js 2.41 kB {0} [built]
  [14] external "babel-runtime/helpers/toConsumableArray" 42 bytes {0} [not cacheable]
  [21] external "lodash/defaultTo" 42 bytes {0} [not cacheable]
  [31] ./lib/constants/statements.js 2.65 kB {0} [built]
  [87] ./lib/constants/expirationNotifications.js 392 bytes {0} [built]
  [93] ./worker/src/server.js 1.17 kB {0} [built]
  [94] ./worker/src/handlers/statement/index.js 4.8 kB {0} [built]
 [177] ./worker/src/handlers/statement/statementForwarding/statementForwardingDeadLetterHandler.js 840 bytes {0} [built]
 [178] ./worker/src/handlers/importPersonas/index.js 1.49 kB {0} [built]
 [216] ./worker/src/handlers/expirationNotification/index.js 1.28 kB {0} [built]
 [217] ./worker/src/handlers/expirationNotification/expirationNotification.js 4.3 kB {0} [built]
 [226] ./worker/src/handlers/orgUsageTracker/index.js 1.23 kB {0} [built]
 [227] ./lib/constants/orgUsageTracker.js 180 bytes {0} [built]
 [248] ./worker/src/handlers/batchStatementDeletion/index.js 1.27 kB {0} [built]
 [249] ./worker/src/handlers/batchStatementDeletion/batchStatementDeletion.js 9.54 kB {0} [built]
    + 239 hidden modules
[2019-12-11T14:59:21.208Z] Finished 'bundle after 7176 ms
Done in 149.95s.
done!
[LL] installing pm2 logrotate....
[PM2][Module] Installing NPM pm2-logrotate module
[PM2][Module] Module already installed. Updating.
[PM2] Applying action deleteProcessId on app [0](ids: 0)
[PM2] [pm2-logrotate](0) ✓
In memory process deleted
[PM2][Module] Calling [NPM] to install pm2-logrotate ...
+ pm2-logrotate@2.7.0
added 227 packages from 247 contributors and audited 488 packages in 18.962s
found 0 vulnerabilities

[PM2][Module] Module downloaded
[PM2][WARN] Applications pm2-logrotate not running, starting...
[PM2] App [pm2-logrotate] launched (1 instances)
Module: pm2-logrotate
$ pm2 set pm2-logrotate:max_size 10M
$ pm2 set pm2-logrotate:retain 30
$ pm2 set pm2-logrotate:compress true
$ pm2 set pm2-logrotate:dateFormat YYYY-MM-DD_HH-mm-ss
$ pm2 set pm2-logrotate:workerInterval 30
$ pm2 set pm2-logrotate:rotateInterval 0 0 * * *
$ pm2 set pm2-logrotate:rotateModule true
Modules configuration. Copy/Paste line to edit values.
[PM2][Module] Module successfully installed and launched
[PM2][Module] Checkout module options: `$ pm2 conf`
┌─────┬──────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
│ id  │ name             │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │
└─────┴──────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
Module
┌────┬───────────────────────────────────────┬────────────────────┬───────┬──────────┬──────┬──────────┬──────────┬──────────┐
│ id │ module                                │ version            │ pid   │ status   │ ↺    │ cpu      │ mem      │ user     │
├────┼───────────────────────────────────────┼────────────────────┼───────┼──────────┼──────┼──────────┼──────────┼──────────┤
│ 0  │ pm2-logrotate                         │ 2.7.0              │ 10247 │ online   │ 0    │ 0%       │ 19.1mb   │ root     │
└────┴───────────────────────────────────────┴────────────────────┴───────┴──────────┴──────┴──────────┴──────────┴──────────┘
done!
[LL] setting up pm2 logrotate....
[PM2] Module pm2-logrotate restarted
[PM2] Setting changed
Module: pm2-logrotate
$ pm2 set pm2-logrotate:max_size 10M
$ pm2 set pm2-logrotate:retain 30
$ pm2 set pm2-logrotate:compress true
$ pm2 set pm2-logrotate:dateFormat YYYY-MM-DD_HH-mm-ss
$ pm2 set pm2-logrotate:workerInterval 30
$ pm2 set pm2-logrotate:rotateInterval 0 0 * * *
$ pm2 set pm2-logrotate:rotateModule true
done!
[LL] Will now try and clone the git repo for XAPI. May take some time....
attempting git clone for xapi, branch: master
git clone succeeded
[LL] Copied example env to .env - This will need editing by hand
[LL] running yarn install....
yarn install v1.19.2
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
Done in 87.79s.
done!
[LL] running yarn build....
yarn run v1.19.2
$ tsc
Done in 16.15s.
done!
[LL] creating /tmp/.tmpdist
[LL] copying modules....
done!
[LL] Copying pm2 configs
copying nginx.conf.example to /tmp/.tmpdist
copying /tmp/learninglocker/webapp/.git to /tmp/.tmpdist
copying /tmp/learninglocker/webapp/.env to /tmp/.tmpdist
copying /tmp/learninglocker/xapi/.env to /tmp/.tmpdist/xapi/
[LL] copying files (may take some time)....
done!
[LL] Local install to /usr/local/learninglocker/releases/ll-20191211-07504d032c70bb9af8ee01322681202f882c04d0
reprocessing /tmp/.tmpdist/webapp/all.json
pm2 - setting pid dir to /var/run
pm2 - setting install path to /usr/local/learninglocker/current/webapp
pm2 - setting log dir to /var/log/learninglocker
reprocessing /tmp/.tmpdist/xapi/xapi.json
pm2 - setting pid dir to /var/run
pm2 - setting install path to /usr/local/learninglocker/current/xapi
pm2 - setting log dir to /var/log/learninglocker
creating symlink : /usr/local/learninglocker/releases/ll-20191211-07504d032c70bb9af8ee01322681202f882c04d0 /usr/local/learninglocker/current
setting up init script. Path: /usr/local/learninglocker/releases/ll-20191211-07504d032c70bb9af8ee01322681202f882c04d0 user: learninglocker
[LL] starting base processes....
done
[LL] starting xapi process....
done
[LL] setting up PM2 startup
[LL] do you want to set up the organisation now to complete the installation? [y|n] (press enter for the default of 'y')
user entered ''
[LL] please enter the organisation name
user entered 'troon technologies'
[LL] please enter the email address for the administrator account
user entered 'mateen@troontechnologies.com'
[LL] please enter the password for the administrator account
[LL] please confirm the password for the administrator account
user entered passwords that matched - not writing them to the log for obvious reasons
[LL] Is the following information correct?
[LL] Organisation : troon technologies
[LL] Email address : mateen@troontechnologies.com
[LL] [y|n]
[LL] Attempting to create your site admin. If this step fails, then it is possible Mongo has not started.
[LL] Attempt to manually start the Mongo service and then run this command:
[LL] cd /usr/local/learninglocker/releases/ll-20191211-07504d032c70bb9af8ee01322681202f882c04d0; node cli/dist/server createSiteAdmin YOUR.EMAIL@ADDRESS.COM ORGANISATION_NAME YOUR_PASSWORD
setting up symlink commands
[LL] Everything done. Please check the install log in '/var/log/learninglocker/install.log' for errors.
davidpesce commented 4 years ago

@mateenQureshi - It looks like the install script went correctly. One thing to note is that the script creates a new linux user (learninglocker) and that is where you will need to run the pm2 commands from. You can switch to this user by executing the following command:

sudo su - learninglocker

Hopefully that helps you to get a bit further on your journey.