오류해결2021. 4. 13. 17:39

ssh 통신을 할 때 새로운 아이피에 새로 접속할 경우 rsa키를 가지게 됩니다.

그리고 추후 동일한 아이피로 접속할 경우 가지고 있는 rsa키를 이용하여 비교한 뒤 인증에 실패하면 이전에 통신했던 컴퓨터가 아니라 생각을 하고 오류를 발생시킵니다. 이는 중간자공격등을 막기 위해서 입니다.

오류 내역은 아래와 같습니다.

 

 

이런 경우에 해다 컴퓨터가 보관하고 있는 rsa키를 삭제한 뒤 새로 ssh 통신을 진행하면 됩니다.

 

삭제 명령어

ssh-keygen -R (대상 ip)

ex: ssh-keygen -R 192.168.0.5

 

명령어가 성공적으로 수행될경우 아래와 같은 명령어가 나오며

대상 ip와 관련된 rsa 키가 없을경우 not found 명령어가 나옵니다.

 

그다음 다시 대상 ip와 ssh 통신을 할 경우 새로운 키를 발급받게 됩니다.

Posted by richcherry
오류해결2021. 3. 18. 17:47

python multiprocessing 사용시 

self.pid = os.for() 부분에서 Cannot allocate memoery 문제가 발생합니다.

메모리가 남아도는데도 해당 오류가 발생하여 다른 원인으로 생각하고 해결방법을 찾아봤습니다.

해결방법은 아래 명령어를 입력해서 설정을 바꾸면 됩니다.

 

sudo bash -c "echo vm.overcommit_memory=1 >> /etc/sysctl.conf"

sudo sysctl -p

 

아래는 해결방법을 찾은 글입니다.

github.com/openai/gym/issues/110#issuecomment-220672405

 

Monitoring causes OOM Error when python holds more than 50% of available memory · Issue #110 · openai/gym

tl;dr It is useful if gym supports a recording method which does not involve subprocess.Popen. When monitoring is enabled, ImageEncoder execute recoding in subprocess with Popen. Popen requests OS ...

github.com

아래는 해당 원인에 대해서 설명한 블로그 글입니다.

hakkyoonjung31.github.io/linux/memory-overcommit/

 

메모리 상승과 오버커밋

사내 테스트용 DB서버에서 프로세스에 메모리할당을 하지못하는 부하문제가 발생하여 메모리 할당에 실패한 시간대에 메모리 사용량을 조사하였다$ sar -r -f /var/log/sa/sarXX결과적으로 %commit가 100

hakkyoonjung31.github.io

 

Posted by richcherry
오류해결2020. 12. 21. 12:51

pgadmin4를 설치하는 과정에서 발생한 오류입니다.

centos7 환경에서

yum install pgadmin4 를 하여 설치한 뒤

/usr/pgadmin4/bin/setpup-web.sh 를 실행시켜서 환경설정을 자동으로 하면

desktopmode 로 실행되서 외부 아이피 접속시에 _auth_source_manager_obj 응답을 받게 됩니다.

 

해결 방법으로는

pgadmin 이 설치된 경로 (ex: /usr/lib/python3.6/site-packages/pgadmin4-web 으로 이동하셔서

config_distro.py 안에 SERVER_MODE = True 를 적으시면 됩니다.

그리고 systemctl restart pgadmin4을 사용하셔서 시스템을 재시작해주시면 됩니다.

 

아래는 참고 문서 링크입니다.

 

 

config_distro.py 를 참고했습니다.

access.crunchydata.com/documentation/pgadmin4/1.3/desktop_deployment.html

 

pgAdmin 4 Documentation

pgAdmin may be deployed as a desktop application by configuring the application to run in desktop mode and then utilising the desktop runtime to host and display the program on a supported Windows, Mac OS X or Linux installation. Note: Pre-compiled and con

access.crunchydata.com

_auth_source_manager_obj의 정보를 참고했습니다.

www.postgresql.org/message-id/CANxoLDf5tnHSWMjmDkZj%3DbgvHHN9fafp0LxqDwJbHe1Zjgf-zg%40mail.gmail.com

 

Re: [pgAdmin4][Patch] - RM 2186 - Support external authentication sources [LDAP]

Hi Khushboo Following are the initial review comments (GUI): *Desktop Mode: * - KeyError: '_auth_source_manager_obj' in desktop mode. (*Note* error …

www.postgresql.org

 

Posted by richcherry
오류해결2019. 4. 9. 00:27

windows 환경에서 skvideo 라이브러리를 사용할 경우 ffmpeg 를 찾지 못해서 나는 오류입니다.

이럴 경우 환경변수를 설정해주시던가

 

코드를 사용하여 수동으로 잡아주시면 됩니다.

 

 

윈도우에 ffmpeg 를 설치하고 환경변수를 설정하는 법입니다.

https://www.wikihow.com/Install-FFmpeg-on-Windows

 

How to Install FFmpeg on Windows

This wikiHow teaches you how to install FFmpeg onto your Windows 10 computer. FFmpeg is a command line-only program that allows you to convert videos and audio into different formats, as well as record live audio and video. Open the FFmpeg...

www.wikihow.com

 

수동으로 할 경우 ffmpeg 를 구글에 검색해서 다운받으신 뒤

 

해당 압축파일을 풀고 나서

 

import skvideo
skvideo.setFFmpegPath("해당 위치")
import skvideo.io

 

해당 위치라 적혀 있는 부분에다 경로를 넣어주시고 해당 3줄 코드를 추가하면 됩니다.

https://github.com/scikit-video/scikit-video/issues/98 왼쪽 링크를 참고했습니다.

 

AssertionError: Cannot find installation of real FFmpeg (which comes with ffprobe). · Issue #98 · scikit-video/scikit-video

Hi, I have a mac and I was trying to use skvideo.io.vwrite from my spyder console. It throws the assertion error: Cannot find installation of real FFmpeg (which comes with ffprobe). When I type whi...

github.com

 

'오류해결' 카테고리의 다른 글

오류해결 Host key verification failed  (0) 2021.04.13
python can not allocate memory 문제  (0) 2021.03.18
오류 해결 _auth_source_manager_obj  (0) 2020.12.21
Posted by richcherry