ブログを新調した
code:hogeHoge.loghoge.log
UnhandledPromiseRejectionWarning: Error: EROFS: read-only file system, open '/srv/app/exports/graphql/schema.graphql'
backend_1 | (Use node --trace-warnings ... to show where the warning was created)
backend_1 | (node:26) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) backend_1 | (node:26) DEP0018 DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. backend_1 | at Function.Model.$wrapCallback (/srv/app/node_modules/mongoose/lib/model.js:4855:32)
backend_1 | at /srv/app/node_modules/mongoose/lib/query.js:4383:21
backend_1 | at /srv/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:5
backend_1 | at new Promise (<anonymous>)
backend_1 | at promiseOrCallback (/srv/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:30:10)
backend_1 | at model.Query.exec (/srv/app/node_modules/mongoose/lib/query.js:4382:10)
backend_1 | at model.Query.Query.then (/srv/app/node_modules/mongoose/lib/query.js:4463:15)
backend_1 | at Object.findByKeyQuery (/srv/app/node_modules/strapi-plugin-content-manager/services/utils/store.js:58:8)
backend_1 | at Object.findByKey (/srv/app/node_modules/strapi-plugin-content-manager/services/utils/store.js:70:75)
backend_1 | at Object.syncConfigurations (/srv/app/node_modules/strapi-plugin-content-manager/services/configuration.js:42:45)
backend_1 | at Object.syncConfigurations (/srv/app/node_modules/strapi-plugin-content-manager/services/components.js:90:33)
backend_1 | at module.exports (/srv/app/node_modules/strapi-plugin-content-manager/config/functions/bootstrap.js:6:34)
backend_1 | at execBootstrap (/srv/app/node_modules/strapi/lib/Strapi.js:421:14)
backend_1 | at /srv/app/node_modules/strapi/lib/Strapi.js:426:14
backend_1 | at Array.map (<anonymous>)
backend_1 | at Strapi.runBootstrapFunctions (/srv/app/node_modules/strapi/lib/Strapi.js:425:55)
backend_1 | npm ERR! code ELIFECYCLE
backend_1 | npm ERR! errno 1
backend_1 | npm ERR! backend@0.1.0 develop: node --inspect=127.0.0.1:9229 ./node_modules/strapi/bin/strapi.js develop
backend_1 | npm ERR! Exit status 1
backend_1 | npm ERR!
backend_1 | npm ERR! Failed at the backend@0.1.0 develop script.
backend_1 | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
blog_backend_1 exited with code 1
pi@raspberrypi:~ $ sudo fsck -n /dev/sda1
fsck from util-linux 2.33.1
e2fsck 1.44.5 (15-Dec-2018)
Warning! /dev/sda1 is mounted.
Warning: skipping journal recovery because doing a read-only filesystem check.
/dev/sda1 contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Unattached inode 10360538
Connect to /lost+found? no
Pass 5: Checking group summary information
Free blocks count wrong for group #1266 (1310, counted=1306). Fix? no
Free blocks count wrong (52715962, counted=52715958).
Fix? no
Free inodes count wrong for group #1264 (1, counted=0). Fix? no
Free inodes count wrong (13822361, counted=13822360).
Fix? no
Inode bitmap differences: Group 1264 inode bitmap does not match checksum.
IGNORED.
Block bitmap differences: Group 1266 block bitmap does not match checksum.
IGNORED.
/dev/sda1: ********** WARNING: Filesystem still has errors **********
/dev/sda1: 833127/14655488 files (0.1% non-contiguous), 5891543/58607505 blocks/srv/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:5
nginxのイメージベースに
certbotをインストール
cron設定
etc/配下に認証鍵配置
SSL設定をconfに追記
http->httpsに301(リダイレクト)
ssl_certificate等の設定