오류해결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