Picture of Chat Noir
Problem installing authoring tool
by Chat Noir - Wednesday, 23 January 2019, 7:15 PM
 

Hi all,

I recently followed the online guide to install and set up the authoring tool for my Ubuntu VPS, which I access through secure shell from a laptop. Please see below for what I'm getting when I try to connect node with mongodb. If anyone could point something out or suggest where I'm going wrong, I'd really appreciate it. I just can't seem to successfully finish the set up. As you'll notice below, I've run node server command in one tab, and mongod in another. Many thanks.

 

    TERMINAL TAB #1


root@ssdvps-11658:~/adapt_authoring# node server
info: [19 Jan 2019 17:15:40 +00:00] configuration loaded from /root/adapt_authoring/conf/config.json
info: [19 Jan 2019 17:15:40 +00:00] Supporting the following authentication types:
info: [19 Jan 2019 17:15:40 +00:00] - local
info: [19 Jan 2019 17:15:40 +00:00] Connection established: adapt-tenant-master
warn: [19 Jan 2019 17:15:41 +00:00] - Authenticated User doesn't exist, cannot update
warn: [19 Jan 2019 17:15:41 +00:00] - Course Creator doesn't exist, cannot update
warn: [19 Jan 2019 17:15:41 +00:00] - Product Manager doesn't exist, cannot update
warn: [19 Jan 2019 17:15:41 +00:00] - Super Admin doesn't exist, cannot update
warn: [19 Jan 2019 17:15:41 +00:00] - Tenant Admin doesn't exist, cannot update
warn: [19 Jan 2019 17:15:41 +00:00] Cannot determine framework version
Error: ENOENT: no such file or directory, open '/root/adapt_authoring/temp/adapt_framework/package.json'
events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: listen EADDRINUSE :::27017
    at Server.setupListenHandle [as _listen2] (net.js:1360:14)
    at listenInCluster (net.js:1401:12)
    at Server.listen (net.js:1485:7)
    at /root/adapt_authoring/lib/application.js:359:36
    at /root/adapt_authoring/lib/application.js:325:12
    at _handleMasterDB (/root/adapt_authoring/lib/database.js:438:14)
    at Object.getDatabase (/root/adapt_authoring/lib/database.js:427:12)
    at Origin.createServer (/root/adapt_authoring/lib/application.js:265:25)
    at /root/adapt_authoring/lib/application.js:348:9
    at /root/adapt_authoring/node_modules/async/dist/async.js:3888:9
    at /root/adapt_authoring/node_modules/async/dist/async.js:473:16
    at replenish (/root/adapt_authoring/node_modules/async/dist/async.js:1006:25)
    at iterateeCallback (/root/adapt_authoring/node_modules/async/dist/async.js:995:17)
    at /root/adapt_authoring/node_modules/async/dist/async.js:969:16
    at /root/adapt_authoring/node_modules/async/dist/async.js:3885:13
    at error (/root/adapt_authoring/lib/application.js:527:32)
    at /root/adapt_authoring/lib/application.js:537:16
    at /root/adapt_authoring/lib/installHelpers.js:283:14
    at /root/adapt_authoring/node_modules/async/dist/async.js:3888:9
    at /root/adapt_authoring/node_modules/async/dist/async.js:473:16
    at iteratorCallback (/root/adapt_authoring/node_modules/async/dist/async.js:1062:13)
    at /root/adapt_authoring/node_modules/async/dist/async.js:969:16
    at /root/adapt_authoring/node_modules/async/dist/async.js:3885:13
    at /root/adapt_authoring/lib/installHelpers.js:258:5
    at /root/adapt_authoring/node_modules/async/dist/async.js:3888:9
    at /root/adapt_authoring/node_modules/async/dist/async.js:473:16
    at iteratorCallback (/root/adapt_authoring/node_modules/async/dist/async.js:1062:13)
    at /root/adapt_authoring/node_modules/async/dist/async.js:969:16
root@ssdvps-11658:~/adapt_authoring#



    TERMINAL TAB #2



root@ssdvps-11658:~# mongod
2019-01-19T17:15:23.570+0000 I CONTROL  [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
2019-01-19T17:15:23.574+0000 I CONTROL  [initandlisten] MongoDB starting : pid=17751 port=27017 dbpath=/data/db 64-bit host=ssdvps-11658
2019-01-19T17:15:23.574+0000 I CONTROL  [initandlisten] db version v4.0.5
2019-01-19T17:15:23.574+0000 I CONTROL  [initandlisten] git version: 3739429dd92b92d1b0ab120911a23d50bf03c412
2019-01-19T17:15:23.574+0000 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.2g  1 Mar 2016
2019-01-19T17:15:23.574+0000 I CONTROL  [initandlisten] allocator: tcmalloc
2019-01-19T17:15:23.574+0000 I CONTROL  [initandlisten] modules: none
2019-01-19T17:15:23.574+0000 I CONTROL  [initandlisten] build environment:
2019-01-19T17:15:23.574+0000 I CONTROL  [initandlisten]     distmod: ubuntu1604
2019-01-19T17:15:23.574+0000 I CONTROL  [initandlisten]     distarch: x86_64
2019-01-19T17:15:23.574+0000 I CONTROL  [initandlisten]     target_arch: x86_64
2019-01-19T17:15:23.574+0000 I CONTROL  [initandlisten] options: {}
2019-01-19T17:15:23.574+0000 I STORAGE  [initandlisten] Detected data files in /data/db created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
2019-01-19T17:15:23.575+0000 I STORAGE  [initandlisten]
2019-01-19T17:15:23.575+0000 I STORAGE  [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
2019-01-19T17:15:23.575+0000 I STORAGE  [initandlisten] **          See http://dochub.mongodb.org/core/prodnotes-filesystem
2019-01-19T17:15:23.575+0000 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=256M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),statistics_log=(wait=0),verbose=(recovery_progress),
2019-01-19T17:15:31.985+0000 I STORAGE  [initandlisten] WiredTiger message [1547918131:985350][17751:0x7fe7ba7dea40], txn-recover: Main recovery loop: starting at 8/10624 to 9/256
2019-01-19T17:15:32.107+0000 I STORAGE  [initandlisten] WiredTiger message [1547918132:107928][17751:0x7fe7ba7dea40], txn-recover: Recovering log 8 through 9
2019-01-19T17:15:32.182+0000 I STORAGE  [initandlisten] WiredTiger message [1547918132:182514][17751:0x7fe7ba7dea40], txn-recover: Recovering log 9 through 9
2019-01-19T17:15:32.239+0000 I STORAGE  [initandlisten] WiredTiger message [1547918132:239127][17751:0x7fe7ba7dea40], txn-recover: Set global recovery timestamp: 0
2019-01-19T17:15:32.290+0000 I RECOVERY [initandlisten] WiredTiger recoveryTimestamp. Ts: Timestamp(0, 0)
2019-01-19T17:15:32.316+0000 I CONTROL  [initandlisten]
2019-01-19T17:15:32.317+0000 I CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.
2019-01-19T17:15:32.317+0000 I CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted.
2019-01-19T17:15:32.317+0000 I CONTROL  [initandlisten] ** WARNING: You are running this process as the root user, which is not recommended.
2019-01-19T17:15:32.317+0000 I CONTROL  [initandlisten]
2019-01-19T17:15:32.317+0000 I CONTROL  [initandlisten] ** WARNING: This server is bound to localhost.
2019-01-19T17:15:32.317+0000 I CONTROL  [initandlisten] **          Remote systems will be unable to connect to this server.
2019-01-19T17:15:32.317+0000 I CONTROL  [initandlisten] **          Start the server with --bind_ip <address> to specify which IP
2019-01-19T17:15:32.317+0000 I CONTROL  [initandlisten] **          addresses it should serve responses from, or with --bind_ip_all to
2019-01-19T17:15:32.317+0000 I CONTROL  [initandlisten] **          bind to all interfaces. If this behavior is desired, start the
2019-01-19T17:15:32.317+0000 I CONTROL  [initandlisten] **          server with --bind_ip 127.0.0.1 to disable this warning.
2019-01-19T17:15:32.317+0000 I CONTROL  [initandlisten]
2019-01-19T17:15:32.348+0000 I FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data'
2019-01-19T17:15:32.349+0000 I NETWORK  [initandlisten] waiting for connections on port 27017
2019-01-19T17:15:40.932+0000 I NETWORK  [listener] connection accepted from 127.0.0.1:42866 #1 (1 connection now open)
2019-01-19T17:15:40.954+0000 I NETWORK  [conn1] received client metadata from 127.0.0.1:42866 conn1: { driver: { name: "nodejs", version: "3.1.10" }, os: { type: "Linux", name: "linux", architecture: "x64", version: "3.13.0-45-generic" }, platform: "Node.js v8.15.0, LE, mongodb-core: 3.1.9" }
2019-01-19T17:15:41.421+0000 I NETWORK  [listener] connection accepted from 127.0.0.1:42868 #2 (2 connections now open)
2019-01-19T17:15:41.456+0000 I NETWORK  [listener] connection accepted from 127.0.0.1:42869 #3 (3 connections now open)
2019-01-19T17:15:41.869+0000 I NETWORK  [conn1] end connection 127.0.0.1:42866 (2 connections now open)
2019-01-19T17:15:41.869+0000 I NETWORK  [conn2] end connection 127.0.0.1:42868 (1 connection now open)
2019-01-19T17:15:41.869+0000 I NETWORK  [conn3] end connection 127.0.0.1:42869 (0 connections now open)
^C2019-01-19T17:16:07.171+0000 I CONTROL  [signalProcessingThread] got signal 2 (Interrupt), will terminate after current cmd ends
2019-01-19T17:16:07.172+0000 I NETWORK  [signalProcessingThread] shutdown: going to close listening sockets...
2019-01-19T17:16:07.172+0000 I NETWORK  [signalProcessingThread] removing socket file: /tmp/mongodb-27017.sock
2019-01-19T17:16:07.175+0000 I CONTROL  [signalProcessingThread] Shutting down free monitoring
2019-01-19T17:16:07.175+0000 I FTDC     [signalProcessingThread] Shutting down full-time diagnostic data capture
2019-01-19T17:16:07.178+0000 I STORAGE  [signalProcessingThread] WiredTigerKVEngine shutting down
2019-01-19T17:16:07.323+0000 I STORAGE  [signalProcessingThread] shutdown: removing fs lock...
2019-01-19T17:16:07.323+0000 I CONTROL  [signalProcessingThread] now exiting
2019-01-19T17:16:07.323+0000 I CONTROL  [signalProcessingThread] shutting down with code:0
root@ssdvps-11658:~# mongod
2019-01-19T17:16:31.668+0000 I CONTROL  [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
2019-01-19T17:16:31.672+0000 I CONTROL  [initandlisten] MongoDB starting : pid=17903 port=27017 dbpath=/data/db 64-bit host=ssdvps-11658
2019-01-19T17:16:31.672+0000 I CONTROL  [initandlisten] db version v4.0.5
2019-01-19T17:16:31.673+0000 I CONTROL  [initandlisten] git version: 3739429dd92b92d1b0ab120911a23d50bf03c412
2019-01-19T17:16:31.673+0000 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.2g  1 Mar 2016
2019-01-19T17:16:31.673+0000 I CONTROL  [initandlisten] allocator: tcmalloc
2019-01-19T17:16:31.673+0000 I CONTROL  [initandlisten] modules: none
2019-01-19T17:16:31.673+0000 I CONTROL  [initandlisten] build environment:
2019-01-19T17:16:31.673+0000 I CONTROL  [initandlisten]     distmod: ubuntu1604
2019-01-19T17:16:31.673+0000 I CONTROL  [initandlisten]     distarch: x86_64
2019-01-19T17:16:31.673+0000 I CONTROL  [initandlisten]     target_arch: x86_64
2019-01-19T17:16:31.673+0000 I CONTROL  [initandlisten] options: {}
2019-01-19T17:16:31.673+0000 I STORAGE  [initandlisten] Detected data files in /data/db created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
2019-01-19T17:16:31.673+0000 I STORAGE  [initandlisten]
2019-01-19T17:16:31.673+0000 I STORAGE  [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
2019-01-19T17:16:31.673+0000 I STORAGE  [initandlisten] **          See http://dochub.mongodb.org/core/prodnotes-filesystem
2019-01-19T17:16:31.673+0000 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=256M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),statistics_log=(wait=0),verbose=(recovery_progress),
2019-01-19T17:16:32.630+0000 I STORAGE  [initandlisten] WiredTiger message [1547918192:630273][17903:0x7f08004ada40], txn-recover: Main recovery loop: starting at 9/7936 to 10/256
2019-01-19T17:16:32.750+0000 I STORAGE  [initandlisten] WiredTiger message [1547918192:750408][17903:0x7f08004ada40], txn-recover: Recovering log 9 through 10
2019-01-19T17:16:32.824+0000 I STORAGE  [initandlisten] WiredTiger message [1547918192:824057][17903:0x7f08004ada40], txn-recover: Recovering log 10 through 10
2019-01-19T17:16:32.880+0000 I STORAGE  [initandlisten] WiredTiger message [1547918192:880011][17903:0x7f08004ada40], txn-recover: Set global recovery timestamp: 0
2019-01-19T17:16:32.926+0000 I RECOVERY [initandlisten] WiredTiger recoveryTimestamp. Ts: Timestamp(0, 0)
2019-01-19T17:16:32.955+0000 I CONTROL  [initandlisten]
2019-01-19T17:16:32.955+0000 I CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.
2019-01-19T17:16:32.955+0000 I CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted.
2019-01-19T17:16:32.956+0000 I CONTROL  [initandlisten] ** WARNING: You are running this process as the root user, which is not recommended.
2019-01-19T17:16:32.956+0000 I CONTROL  [initandlisten]
2019-01-19T17:16:32.956+0000 I CONTROL  [initandlisten] ** WARNING: This server is bound to localhost.
2019-01-19T17:16:32.956+0000 I CONTROL  [initandlisten] **          Remote systems will be unable to connect to this server.
2019-01-19T17:16:32.956+0000 I CONTROL  [initandlisten] **          Start the server with --bind_ip <address> to specify which IP
2019-01-19T17:16:32.956+0000 I CONTROL  [initandlisten] **          addresses it should serve responses from, or with --bind_ip_all to
2019-01-19T17:16:32.956+0000 I CONTROL  [initandlisten] **          bind to all interfaces. If this behavior is desired, start the
2019-01-19T17:16:32.956+0000 I CONTROL  [initandlisten] **          server with --bind_ip 127.0.0.1 to disable this warning.
2019-01-19T17:16:32.956+0000 I CONTROL  [initandlisten]
2019-01-19T17:16:33.001+0000 I FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data'
2019-01-19T17:16:33.002+0000 I NETWORK  [initandlisten] waiting for connections on port 27017