[ec2] permission denied 0.0.0.0:80 웹서버 포트를 80으로 해서 접속했더니 타임아웃이 났다. 호옥시 80 막힌건가 검색했더니 aws에서는 루트사용자들에게만 허용된다 한다. 포트변경 후 웹서버 올리니 잘 접속.
[ec2] Permissions 0744 for '{name}.pem' are too open. ssh 로 ec2 접근시 이런 에러가 나온다. 해당 키의 퍼미션이 아무나 접근수정 가능한 상태일 경우 발생한다 sudo chmod 400 {name}.pem 소유자 읽기만 가능하게 변경후 접속하면 성공
[vue] import 경로 에러 이런 식으로 경로를 못찾는다고 나올 때 src 폴더 아래에 shims-vue.d.ts 라는 파일 생성 후 /* eslint-disable */ declare module '*.vue' { import type { DefineComponent } from 'vue' const component: DefineComponent<{}, {}, any> export default component } 라고 넣으면 해당 에러 사라짐
[error] WebSocket connection to 'ws://localhost:{port}/ws' failed: vue.js 에서 web socket 을 안쓰는데도 에러가 나올 경우에만 가능한 해결방법이다. vue.config.js 파일을 열고 아래처럼 const {defineConfig} = require( '@vue/cli-service' ) module.exports = defineConfig( { transpileDependencies: true, devServer: { allowedHosts: "all", webSocketServer: false } } ) webSocket connection to 'ws://localhost:58080/ws' failed: 부분을 추가해 준다.
[error] java.net.MalformedURLException: Local host name unknown: 말인지 방구인지 모를 에러가 떴다. 해결법은 hosts 파일을 열어서 127.0.0.1 localhost MacBookPro.local 식으로 localhost 옆에 호스트명을 추가해 주면 해결된다.
[ubuntu] Fix package post-installation script subprocess returned error exit status 10 for libpaper1:amd64 sudo rm /var/lib/dpkg/info/libpaper1* sudo dpkg --configure -D 777 libpaper1 sudo apt -f install
[nest.js]In order to use "defaultStrategy", please, ensure to import PassportModule in each place where AuthGuard() is being used. Otherwise, passport won't work correctly. @UseGuqrds( AuthGuard() ) 를 @UseGuqrds( AuthGuard( "jwt" ) ) 로 변경하면 해결
[nest.js] JwtModule에서 process.env 내용을 못 읽어 올 때 * 증상 : 다른 module 에서는 .env 내용을 잘 읽는데 jwt module 에서 못읽음 * 원인 : jwt module 이 환경설정이 메모리에 올라가기 전에 동작되기 때문 * 해결책 : 아래처럼 jwt module 이 사용되는 module 을 dynamic module 로 변경 한 뒤 app module 에서 사용 import { DynamicModule, Module } from "@nestjs/common"; import { JwtModule
[nest.js] TypeError: config.get is not a function import * as config from 'config'; TypeError: config.get is not a function at bootstrap (D:\workspace\crud-tutorial\src\main.ts:11:27) at processTicksAndRejections (node:internal/process/task_queues:96:5) 강의에서 하란데로 import 했는데 error 가 발생한다. import config = require( "config" ); 이렇게 변경하면 error가 사라진다.
TypeError: (0 , cookie_parser_1.default) is not a function 발생 : app.use( cookieParser() ); 원인 : tsconfig 설정값 누락 조치: tsconfig 에 "esModuleInterop": true 추가