본문 바로가기

오류30

Redis - 현재 연결은 원격 호스트에 의해 강제로 끊겼습니다. or Could not connect to Redis at REMOTE.IP:6379: Connection refused 가상환경(Ubuntu)에 Redis 구성시 Host에서 redis-cli를 통해 PING을 하면 아래와 같은 오류 발생 C:\Users\NT033>redis-cli -p 7001 ping Error: 현재 연결은 원격 호스트에 의해 강제로 끊겼습니다. 가상환경에 /etc/redis/redis.conf에 bind를 any로 오픈해야 함 (모두 오픈은 보안 문제 발생하므로 테스트 환경에서만 적용 ) Before bind 127.0.0.1 ::1 After bind 0.0.0.0 정상처리 후 C:\Users\NT033>redis-cli -p 7001 ping PONG 예외사항 - 방화벽(ufw)를 사용하는 경우 Redis 포트 오픈 등록 - Host, 가상환경 간 Network Ping 테스트 ( 연결 자체가.. 2023. 4. 5.
Vagrant - Ubuntu 가상환경 구동시 오류(Timed out while waiting for the machine to boot) 아래의 Vagrantfile 구동시 Timed out while waiting for the machine to boot 오류 발생. 사용된 이미지는 ubuntu/focal64 ( 20.04 LTS ) 이다. # -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure("2") do |config| N = 3 # max number of master redis (1..N).each do |i| config.vm.define "m#{i}-redis" do |cfg| cfg.vm.box = "ubuntu/focal64" cfg.vm.provider "virtualbox" do |vb| vb.name = "m#{i}-redis(KRS-system)" vb.cpus .. 2023. 4. 5.
PostgreSQL SQL Error [42725]: ERROR: function date_trunc(unknown, unknown) is not unique Hint: Could not choose a best candidate function. You might need to add explicit type casts. 문제의 쿼리 SELECT date_trunc('month', '2022-07-23 12:34:56'); 실행 시 아래 오류 발생 SQL Error [42725]: ERROR: function date_trunc(unknown, unknown) is not unique Hint: Could not choose a best candidate function. You might need to add explicit type casts. - 위 Hint에서 처럼 입력한 파라미터가 unknown으로 인식된다. 아래와 같이 캐스팅하여 문제를 해결한다. SELECT date_trunc('month'::text, '2022-07-23 12:34:56'::timestamp); 2023. 2. 5.
macOS 문제 해결: docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory')) MacOS에서 docker-compose up 커맨드 실행 후 다음과 같은 에러가 발생, 간단하게도 docker를 실행하지 않아 발생한 오류였습니다. docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory')) MacOS에 설치된 docker 를 실행하고 재실행, 정상 처리 되었습니다. Linus의 경우 아래 커맨드를 실행하여 Docker 실행여부를 확인합니다. systemctl status docker 실행 커맨드 systemctl start docker 2023. 2. 4.